48 wxASSERT_MSG(
false, wxT(
"Plugin must be set before load." ) );
54 bool ret =
m_plugin->Load( aFileName );
70 wxASSERT_MSG(
false, wxT(
"Plugin must be set before import." ) );
84 catch(
const std::bad_alloc& )
static constexpr unsigned int DEFAULT_LINE_WIDTH_DFX
virtual void NewShape(POLY_FILL_RULE aFillRule=PF_NONZERO)
VECTOR2D m_scale
Scale factor applied to the imported graphics.
std::vector< POLY_FILL_RULE > m_shapeFillRules
std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > m_plugin
Total image width.
void SetScale(const VECTOR2D &aScale)
Set the scale factor affecting the imported shapes.
bool Import(const VECTOR2D &aScale=VECTOR2D(1.0, 1.0))
Import shapes from loaded file.
bool Load(const wxString &aFileName)
Load file and get its basic data.
double m_millimeterToIu
Offset (in mm) for imported coordinates.
double m_originalWidth
Total image Height;.
std::list< std::unique_ptr< EDA_ITEM > > m_items
< List of imported items
VECTOR2< double > VECTOR2D