|
KiCad PCB EDA Suite
|
Turn imported geometry into drawing sheet items. More...
#include <graphics_importer_pl_editor.h>
Public Types | |
| enum | POLY_FILL_RULE { PF_NONZERO = 0 , PF_EVEN_ODD } |
Public Member Functions | |
| GRAPHICS_IMPORTER_PL_EDITOR () | |
| std::vector< std::unique_ptr< DS_DATA_ITEM > > & | GetDataItems () |
| The imported items, which the caller takes over. | |
| void | AddLine (const VECTOR2D &aOrigin, const VECTOR2D &aEnd, const IMPORTED_STROKE &aStroke) override |
| Create an object representing a line segment. | |
| void | AddCircle (const VECTOR2D &aCenter, double aRadius, const IMPORTED_STROKE &aStroke, bool aFilled, const COLOR4D &aFillColor) override |
| Create an object representing a circle. | |
| void | AddArc (const VECTOR2D &aCenter, const VECTOR2D &aStart, const EDA_ANGLE &aAngle, const IMPORTED_STROKE &aStroke) override |
| Create an object representing an arc. | |
| void | AddPolygon (const std::vector< VECTOR2D > &aVertices, const IMPORTED_STROKE &aStroke, bool aFilled, const COLOR4D &aFillColor) override |
| Create an object representing a polygon. | |
| void | AddText (const VECTOR2D &aOrigin, const wxString &aText, double aHeight, double aWidth, double aThickness, double aOrientation, GR_TEXT_H_ALIGN_T aHJustify, GR_TEXT_V_ALIGN_T aVJustify, const COLOR4D &aColor) override |
| Create an object representing a text. | |
| void | AddSpline (const VECTOR2D &aStart, const VECTOR2D &aBezierControl1, const VECTOR2D &aBezierControl2, const VECTOR2D &aEnd, const IMPORTED_STROKE &aStroke) override |
| Create an object representing an arc. | |
| void | AddEllipse (const VECTOR2D &aCenter, double aMajorRadius, double aMinorRadius, const EDA_ANGLE &aRotation, const IMPORTED_STROKE &aStroke, bool aFilled, const COLOR4D &aFillColor=COLOR4D::UNSPECIFIED) override |
| Create an object representing a closed ellipse. | |
| void | AddEllipseArc (const VECTOR2D &aCenter, double aMajorRadius, double aMinorRadius, const EDA_ANGLE &aRotation, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aEndAngle, const IMPORTED_STROKE &aStroke) override |
| Create an object representing an elliptical arc. | |
| void | SetPlugin (std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > aPlugin) |
| Set the import plugin used to obtain shapes from a file. | |
| bool | Load (const wxString &aFileName) |
| Load file and get its basic data. | |
| bool | Import (const VECTOR2D &aScale=VECTOR2D(1.0, 1.0)) |
| Import shapes from loaded file. | |
| const wxString & | GetMessages () const |
| Collect warning and error messages after loading/importing. | |
| void | ReportMsg (const wxString &aMessage) |
| double | GetImageWidthMM () const |
| Get original image Width. | |
| double | GetImageHeightMM () const |
| Get original image Height. | |
| void | SetLineWidthMM (double aWidth) |
| Set the line width for the imported outlines (in mm). | |
| double | GetLineWidthMM () const |
| Return the line width used for importing the outlines (in mm). | |
| VECTOR2D | GetScale () const |
| const VECTOR2D & | GetImportOffsetMM () const |
| void | SetImportOffsetMM (const VECTOR2D &aOffset) |
| Set the offset in millimeters to add to coordinates when importing graphic items. | |
| void | SetScale (const VECTOR2D &aScale) |
| Set the scale factor affecting the imported shapes. | |
| double | GetMillimeterToIuFactor () |
| VECTOR2D | ImportScalingFactor () const |
| std::list< std::unique_ptr< EDA_ITEM > > & | GetItems () |
| Return the list of objects representing the imported shapes. | |
| void | ClearItems () |
| Empties out the imported shapes list. | |
| virtual void | NewShape (POLY_FILL_RULE aFillRule=PF_NONZERO) |
| virtual bool | CanImportSourceLayer (const wxString &) const |
| Return true if shapes from a given source layer should be imported. | |
| virtual void | SetCurrentSourceLayer (const wxString &) |
| Set the source layer for the next buffered shape to be imported. | |
Static Public Attributes | |
| static constexpr unsigned int | DEFAULT_LINE_WIDTH_DFX = 1 |
| Default line thickness (in mm). | |
Protected Member Functions | |
| void | addItem (std::unique_ptr< EDA_ITEM > aItem) |
| Add an item to the imported shapes list. | |
| bool | setupSplineOrLine (EDA_SHAPE &aShape, int aAccuracy) |
| Configure a shape as a spline or a line segment if it's degenerate. | |
Protected Attributes | |
| double | m_millimeterToIu |
| Factor to convert millimeters to Internal Units. | |
| VECTOR2D | m_offsetCoordmm |
| Offset (in mm) for imported coordinates. | |
| std::vector< POLY_FILL_RULE > | m_shapeFillRules |
Private Member Functions | |
| VECTOR2D | mapPoint (const VECTOR2D &aPoint) const |
| Scale and offset an imported point into the drawing sheet's millimetres. | |
| double | mapLineWidth (const IMPORTED_STROKE &aStroke) const |
| The line width to draw a stroke with, in millimetres. | |
| void | addSegment (const VECTOR2D &aStart, const VECTOR2D &aEnd, double aWidth) |
| void | addPolyline (const std::vector< VECTOR2D > &aPoints, double aWidth, bool aClose) |
| Add a run of points as segments, closing back to the first point when asked. | |
| void | addFilledPolygon (const std::vector< VECTOR2D > &aPoints) |
| Add a run of points as one contour of the filled polygon item. | |
| std::vector< VECTOR2D > | flattenEllipseArc (const VECTOR2D &aCenter, double aMajorRadius, double aMinorRadius, const EDA_ANGLE &aRotation, double aStartRadians, double aSweepRadians) const |
| Walk an elliptical arc, which covers circles and arcs as well. | |
Private Attributes | |
| std::vector< std::unique_ptr< DS_DATA_ITEM > > | m_dataItems |
| DS_DATA_ITEM_POLYGONS * | m_polygons |
| All filled areas go into one item, the way a traced logo is one object. | |
| std::list< std::unique_ptr< EDA_ITEM > > | m_items |
| List of imported items. | |
| std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > | m_plugin |
| Plugin used to load a file. | |
| double | m_originalWidth |
| Total image width. | |
| double | m_originalHeight |
| Total image Height. | |
| VECTOR2D | m_scale |
| Scale factor applied to the imported graphics. | |
| double | m_lineWidth |
| Default line thickness for the imported graphics. | |
Turn imported geometry into drawing sheet items.
A drawing sheet holds only text, segments, rectangles and filled polygons, so curves arrive as the segments they are flattened into. Everything is kept in millimetres, which is what a drawing sheet item stores.
Definition at line 37 of file graphics_importer_pl_editor.h.
|
inherited |
| Enumerator | |
|---|---|
| PF_NONZERO | |
| PF_EVEN_ODD | |
Definition at line 75 of file graphics_importer.h.
| GRAPHICS_IMPORTER_PL_EDITOR::GRAPHICS_IMPORTER_PL_EDITOR | ( | ) |
Definition at line 31 of file graphics_importer_pl_editor.cpp.
References GRAPHICS_IMPORTER::m_millimeterToIu, and m_polygons.
|
overridevirtual |
Create an object representing an arc.
| aCenter | is the arc center point expressed in mm. |
| aStart | is the arc arm end point expressed in mm. Its length is the arc radius. |
| aAngle | is the arc angle. |
| aStroke | is the shape stroke parameters. |
Implements GRAPHICS_IMPORTER.
Definition at line 163 of file graphics_importer_pl_editor.cpp.
References addPolyline(), ANGLE_0, EDA_ANGLE::AsRadians(), VECTOR2< T >::EuclideanNorm(), flattenEllipseArc(), mapLineWidth(), mapPoint(), radius, VECTOR2< T >::x, and VECTOR2< T >::y.
|
overridevirtual |
Create an object representing a circle.
| aCenter | is the circle center point expressed in mm. | |
| aRadius | is the circle radius expressed in mm. | |
| aStroke | is the shape stroke parameters. | |
| aFilled | is a flag to indicate if the circle should be filled. | |
| [in] | aFillColor | is the fill color if the circle should be filled. |
Implements GRAPHICS_IMPORTER.
Definition at line 156 of file graphics_importer_pl_editor.cpp.
References AddEllipse(), and ANGLE_0.
|
overridevirtual |
Create an object representing a closed ellipse.
| aCenter | is the ellipse center expressed in mm. | |
| aMajorRadius | is the semi-major radius expressed in mm. | |
| aMinorRadius | is the semi-minor radius expressed in mm. | |
| aRotation | is the rotation of the major axis from +X (CCW). | |
| aStroke | is the shape stroke parameters. | |
| aFilled | is a flag to indicate if the circle should be filled. | |
| [in] | aFillColor | is the fill color if the circle should be filled. |
Implements GRAPHICS_IMPORTER.
Definition at line 238 of file graphics_importer_pl_editor.cpp.
References addFilledPolygon(), addPolyline(), flattenEllipseArc(), M_PI, mapLineWidth(), and mapPoint().
Referenced by AddCircle().
|
overridevirtual |
Create an object representing an elliptical arc.
| aCenter | is the ellipse center expressed in mm. |
| aMajorRadius | is the semi-major radius expressed in mm. |
| aMinorRadius | is the semi-minor radius expressed in mm. |
| aRotation | is the rotation of the major axis from +X (CCW). |
| aStartAngle | is the parametric angle (CCW from major axis) of the arc start. |
| aEndAngle | is the parametric angle (CCW from major axis) of the arc end. |
| aStroke | is the shape stroke parameters. |
Implements GRAPHICS_IMPORTER.
Definition at line 260 of file graphics_importer_pl_editor.cpp.
References addPolyline(), EDA_ANGLE::AsRadians(), flattenEllipseArc(), M_PI, mapLineWidth(), and mapPoint().
|
private |
Add a run of points as one contour of the filled polygon item.
Definition at line 85 of file graphics_importer_pl_editor.cpp.
References LT_CORNER, m_dataItems, and m_polygons.
Referenced by AddEllipse(), and AddPolygon().
|
protectedinherited |
Add an item to the imported shapes list.
Definition at line 101 of file graphics_importer.cpp.
References m_items.
Referenced by GRAPHICS_IMPORTER_LIB_SYMBOL::AddArc(), GRAPHICS_IMPORTER_PCBNEW::AddArc(), GRAPHICS_IMPORTER_SCH::AddArc(), GRAPHICS_IMPORTER_LIB_SYMBOL::AddCircle(), GRAPHICS_IMPORTER_PCBNEW::AddCircle(), GRAPHICS_IMPORTER_SCH::AddCircle(), GRAPHICS_IMPORTER_LIB_SYMBOL::AddEllipse(), GRAPHICS_IMPORTER_PCBNEW::AddEllipse(), GRAPHICS_IMPORTER_SCH::AddEllipse(), GRAPHICS_IMPORTER_LIB_SYMBOL::AddEllipseArc(), GRAPHICS_IMPORTER_PCBNEW::AddEllipseArc(), GRAPHICS_IMPORTER_SCH::AddEllipseArc(), GRAPHICS_IMPORTER_LIB_SYMBOL::AddLine(), GRAPHICS_IMPORTER_PCBNEW::AddLine(), GRAPHICS_IMPORTER_SCH::AddLine(), GRAPHICS_IMPORTER_LIB_SYMBOL::AddPolygon(), GRAPHICS_IMPORTER_PCBNEW::AddPolygon(), GRAPHICS_IMPORTER_SCH::AddPolygon(), GRAPHICS_IMPORTER_LIB_SYMBOL::AddSpline(), GRAPHICS_IMPORTER_PCBNEW::AddSpline(), GRAPHICS_IMPORTER_SCH::AddSpline(), GRAPHICS_IMPORTER_LIB_SYMBOL::AddText(), GRAPHICS_IMPORTER_PCBNEW::AddText(), and GRAPHICS_IMPORTER_SCH::AddText().
|
overridevirtual |
Create an object representing a line segment.
| aOrigin | is the segment origin point expressed in mm. |
| aEnd | is the segment end point expressed in mm. |
| aStroke | is the shape stroke parameters. |
Implements GRAPHICS_IMPORTER.
Definition at line 149 of file graphics_importer_pl_editor.cpp.
References addSegment(), mapLineWidth(), and mapPoint().
|
overridevirtual |
Create an object representing a polygon.
| aVertices | is the array of vertices. |
| aStroke | is the shape stroke parameters. |
| aFilled | is a flag to indicate if the circle should be filled. |
| aFillColor | is the fill color. |
Implements GRAPHICS_IMPORTER.
Definition at line 181 of file graphics_importer_pl_editor.cpp.
References addFilledPolygon(), addPolyline(), mapLineWidth(), and mapPoint().
|
private |
Add a run of points as segments, closing back to the first point when asked.
Definition at line 75 of file graphics_importer_pl_editor.cpp.
References addSegment().
Referenced by AddArc(), AddEllipse(), AddEllipseArc(), AddPolygon(), and AddSpline().
|
private |
Definition at line 62 of file graphics_importer_pl_editor.cpp.
References DS_DATA_ITEM::DS_SEGMENT, LT_CORNER, m_dataItems, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by AddLine(), and addPolyline().
|
overridevirtual |
Create an object representing an arc.
| aStart | is the curve start point expressed in mm. |
| aBezierControl1 | is the first Bezier control point expressed in mm. |
| aBezierControl2 | is the second Bezier control point expressed in mm. |
| aEnd | is the curve end point expressed in mm. |
| aStroke | is the shape stroke parameters. |
Implements GRAPHICS_IMPORTER.
Definition at line 224 of file graphics_importer_pl_editor.cpp.
References addPolyline(), FLATTEN_ERROR_MM, BEZIER_POLY::GetPoly(), mapLineWidth(), and mapPoint().
|
overridevirtual |
Create an object representing a text.
| aOrigin | is the text position. |
| aText | is the displayed text. |
| aHeight | is the text height expressed in mm. |
| aWidth | is the text width expressed in mm. |
| aThickness | is the text strke thickness. |
| aOrientation | is the text orientation angle expressed in degrees. |
| aHJustify | is the text horizontal justification. |
| aVJustify | is the text vertical justification. |
| aColor | is the shape color |
Implements GRAPHICS_IMPORTER.
Definition at line 198 of file graphics_importer_pl_editor.cpp.
References std::abs(), GRAPHICS_IMPORTER::GetScale(), LT_CORNER, m_dataItems, mapPoint(), scale, VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlinevirtualinherited |
Return true if shapes from a given source layer should be imported.
This is used by buffered importers that preserve source-format layer names.
Reimplemented in GRAPHICS_IMPORTER_PCBNEW, and TEST_GRAPHICS_IMPORTER.
Definition at line 242 of file graphics_importer.h.
Referenced by GRAPHICS_IMPORTER_BUFFER::ImportTo().
|
inlineinherited |
Empties out the imported shapes list.
Definition at line 227 of file graphics_importer.h.
References m_items.
|
private |
Walk an elliptical arc, which covers circles and arcs as well.
The sweep is signed, because an arc runs the way its angle says, not the short way.
Definition at line 115 of file graphics_importer_pl_editor.cpp.
References std::abs(), EDA_ANGLE::AsRadians(), FLATTEN_ERROR_MM, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by AddArc(), AddEllipse(), and AddEllipseArc().
|
inline |
The imported items, which the caller takes over.
The base class list stays empty, because a drawing sheet item is not an EDA_ITEM.
Definition at line 47 of file graphics_importer_pl_editor.h.
References m_dataItems.
Referenced by PL_DRAWING_TOOLS::PlaceImportedGraphics().
|
inlineinherited |
Get original image Height.
Definition at line 145 of file graphics_importer.h.
References m_originalHeight.
|
inlineinherited |
Get original image Width.
Definition at line 135 of file graphics_importer.h.
References m_originalWidth.
|
inlineinherited |
Definition at line 177 of file graphics_importer.h.
References m_offsetCoordmm.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GRAPHICS_IMPORTER_BUFFER::ImportTo(), GRAPHICS_IMPORTER_LIB_SYMBOL::MapCoordinate(), GRAPHICS_IMPORTER_PCBNEW::MapCoordinate(), GRAPHICS_IMPORTER_SCH::MapCoordinate(), and GRAPHICS_IMPORTER_PL_EDITOR::mapPoint().
|
inlineinherited |
Return the list of objects representing the imported shapes.
Definition at line 219 of file graphics_importer.h.
References m_items.
Referenced by BOOST_AUTO_TEST_CASE(), SCH_EASYEDA_PARSER::ParseSchematic(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), SCH_EASYEDAPRO_PARSER::ParseSymbol(), SCH_EASYEDAPRO_V3_PARSER::ParseSymbol(), and SCH_EASYEDA_PARSER::ParseSymbolShapes().
|
inlineinherited |
Return the line width used for importing the outlines (in mm).
Definition at line 161 of file graphics_importer.h.
References m_lineWidth.
Referenced by GRAPHICS_IMPORTER_LIB_SYMBOL::MapLineWidth(), GRAPHICS_IMPORTER_PCBNEW::MapLineWidth(), GRAPHICS_IMPORTER_SCH::MapLineWidth(), and GRAPHICS_IMPORTER_PL_EDITOR::mapLineWidth().
|
inlineinherited |
Collect warning and error messages after loading/importing.
Definition at line 120 of file graphics_importer.h.
References m_plugin.
|
inlineinherited |
Definition at line 203 of file graphics_importer.h.
References m_millimeterToIu.
Referenced by BOOST_AUTO_TEST_CASE(), GRAPHICS_IMPORTER_BUFFER::ImportTo(), GRAPHICS_IMPORTER_LIB_SYMBOL::MapCoordinate(), GRAPHICS_IMPORTER_PCBNEW::MapCoordinate(), and GRAPHICS_IMPORTER_SCH::MapCoordinate().
|
inlineinherited |
Definition at line 169 of file graphics_importer.h.
References m_scale.
Referenced by GRAPHICS_IMPORTER_PL_EDITOR::AddText(), GRAPHICS_IMPORTER_BUFFER::ImportTo(), GRAPHICS_IMPORTER_LIB_SYMBOL::MapCoordinate(), GRAPHICS_IMPORTER_PCBNEW::MapCoordinate(), GRAPHICS_IMPORTER_SCH::MapCoordinate(), GRAPHICS_IMPORTER_PL_EDITOR::mapLineWidth(), and GRAPHICS_IMPORTER_PL_EDITOR::mapPoint().
Import shapes from loaded file.
It is important to have the file loaded before importing.
| aScale | allow import graphic items with a non 1:1 import ratio VECTOR2D( 1.0, 1.0 ) to import graphics with their actual size. |
Definition at line 66 of file graphics_importer.cpp.
References m_plugin, and SetScale().
|
inlineinherited |
Definition at line 211 of file graphics_importer.h.
References m_millimeterToIu, and m_scale.
Referenced by GRAPHICS_IMPORTER_LIB_SYMBOL::AddEllipse(), GRAPHICS_IMPORTER_PCBNEW::AddEllipse(), GRAPHICS_IMPORTER_SCH::AddEllipse(), GRAPHICS_IMPORTER_LIB_SYMBOL::AddEllipseArc(), GRAPHICS_IMPORTER_PCBNEW::AddEllipseArc(), GRAPHICS_IMPORTER_SCH::AddEllipseArc(), GRAPHICS_IMPORTER_LIB_SYMBOL::AddText(), GRAPHICS_IMPORTER_PCBNEW::AddText(), GRAPHICS_IMPORTER_SCH::AddText(), GRAPHICS_IMPORTER_LIB_SYMBOL::MapLineWidth(), GRAPHICS_IMPORTER_PCBNEW::MapLineWidth(), and GRAPHICS_IMPORTER_SCH::MapLineWidth().
|
inherited |
Load file and get its basic data.
Definition at line 42 of file graphics_importer.cpp.
References m_items, m_originalHeight, m_originalWidth, and m_plugin.
|
private |
The line width to draw a stroke with, in millimetres.
Definition at line 48 of file graphics_importer_pl_editor.cpp.
References std::abs(), GRAPHICS_IMPORTER::GetLineWidthMM(), GRAPHICS_IMPORTER::GetScale(), IMPORTED_STROKE::GetWidth(), and scale.
Referenced by AddArc(), AddEllipse(), AddEllipseArc(), AddLine(), AddPolygon(), and AddSpline().
Scale and offset an imported point into the drawing sheet's millimetres.
Definition at line 39 of file graphics_importer_pl_editor.cpp.
References GRAPHICS_IMPORTER::GetImportOffsetMM(), GRAPHICS_IMPORTER::GetScale(), scale, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by AddArc(), AddEllipse(), AddEllipseArc(), AddLine(), AddPolygon(), AddSpline(), and AddText().
|
virtualinherited |
Definition at line 95 of file graphics_importer.cpp.
References m_shapeFillRules.
|
inlineinherited |
Definition at line 125 of file graphics_importer.h.
References m_plugin.
Referenced by GRAPHICS_IMPORTER_BUFFER::ImportTo().
|
inlinevirtualinherited |
Set the source layer for the next buffered shape to be imported.
Reimplemented in GRAPHICS_IMPORTER_BUFFER, GRAPHICS_IMPORTER_PCBNEW, and TEST_GRAPHICS_IMPORTER.
Definition at line 247 of file graphics_importer.h.
Referenced by GRAPHICS_IMPORTER_BUFFER::ImportTo().
|
inlineinherited |
Set the offset in millimeters to add to coordinates when importing graphic items.
Definition at line 185 of file graphics_importer.h.
References m_offsetCoordmm.
Referenced by ConvertSVGToLibShapes(), GRAPHICS_IMPORTER_BUFFER::ImportTo(), SCH_EASYEDA_PARSER::ParseSchematic(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), SCH_EASYEDAPRO_PARSER::ParseSymbol(), SCH_EASYEDAPRO_V3_PARSER::ParseSymbol(), and SCH_EASYEDA_PARSER::ParseSymbolShapes().
|
inlineinherited |
Set the line width for the imported outlines (in mm).
Definition at line 153 of file graphics_importer.h.
References m_lineWidth.
|
inlineinherited |
Set the import plugin used to obtain shapes from a file.
Definition at line 90 of file graphics_importer.h.
References m_plugin.
|
inlineinherited |
Set the scale factor affecting the imported shapes.
This allows conversion between imported shapes units and millimeters.
Definition at line 195 of file graphics_importer.h.
References m_scale.
Referenced by ConvertSVGToLibShapes(), Import(), SCH_EASYEDA_PARSER::ParseSchematic(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), SCH_EASYEDAPRO_PARSER::ParseSymbol(), SCH_EASYEDAPRO_V3_PARSER::ParseSymbol(), and SCH_EASYEDA_PARSER::ParseSymbolShapes().
|
protectedinherited |
Configure a shape as a spline or a line segment if it's degenerate.
Definition at line 107 of file graphics_importer.cpp.
References BEZIER, EDA_SHAPE::GetBezierC1(), EDA_SHAPE::GetBezierC2(), EDA_SHAPE::GetBezierPoints(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetStart(), EDA_SHAPE::RebuildBezierToSegmentsPointsList(), SEGMENT, and EDA_SHAPE::SetShape().
Referenced by GRAPHICS_IMPORTER_PCBNEW::AddSpline(), and GRAPHICS_IMPORTER_SCH::AddSpline().
|
staticconstexprinherited |
Default line thickness (in mm).
Definition at line 233 of file graphics_importer.h.
Referenced by GRAPHICS_IMPORTER().
|
private |
Definition at line 97 of file graphics_importer_pl_editor.h.
Referenced by addFilledPolygon(), addSegment(), AddText(), and GetDataItems().
|
privateinherited |
List of imported items.
Definition at line 376 of file graphics_importer.h.
Referenced by addItem(), ClearItems(), GetItems(), and Load().
|
privateinherited |
Default line thickness for the imported graphics.
Definition at line 396 of file graphics_importer.h.
Referenced by GetLineWidthMM(), GRAPHICS_IMPORTER(), and SetLineWidthMM().
|
protectedinherited |
Factor to convert millimeters to Internal Units.
Definition at line 367 of file graphics_importer.h.
Referenced by GetMillimeterToIuFactor(), GRAPHICS_IMPORTER(), GRAPHICS_IMPORTER_LIB_SYMBOL::GRAPHICS_IMPORTER_LIB_SYMBOL(), GRAPHICS_IMPORTER_PCBNEW::GRAPHICS_IMPORTER_PCBNEW(), GRAPHICS_IMPORTER_PL_EDITOR::GRAPHICS_IMPORTER_PL_EDITOR(), GRAPHICS_IMPORTER_SCH::GRAPHICS_IMPORTER_SCH(), ImportScalingFactor(), SVG_IMPORT_TEST_IMPORTER::SVG_IMPORT_TEST_IMPORTER(), and TEST_GRAPHICS_IMPORTER::TEST_GRAPHICS_IMPORTER().
|
protectedinherited |
Offset (in mm) for imported coordinates.
Definition at line 370 of file graphics_importer.h.
Referenced by GetImportOffsetMM(), and SetImportOffsetMM().
|
privateinherited |
Total image Height.
Definition at line 385 of file graphics_importer.h.
Referenced by GetImageHeightMM(), GRAPHICS_IMPORTER(), and Load().
|
privateinherited |
Total image width.
Definition at line 382 of file graphics_importer.h.
Referenced by GetImageWidthMM(), GRAPHICS_IMPORTER(), and Load().
|
privateinherited |
Plugin used to load a file.
Definition at line 379 of file graphics_importer.h.
Referenced by GetMessages(), Import(), Load(), ReportMsg(), and SetPlugin().
|
private |
All filled areas go into one item, the way a traced logo is one object.
Definition at line 100 of file graphics_importer_pl_editor.h.
Referenced by addFilledPolygon(), and GRAPHICS_IMPORTER_PL_EDITOR().
|
privateinherited |
Scale factor applied to the imported graphics.
1.0 does not change the size of imported items scale < 1.0 reduce the size of imported items
Definition at line 393 of file graphics_importer.h.
Referenced by GetScale(), GRAPHICS_IMPORTER(), ImportScalingFactor(), and SetScale().
|
protectedinherited |
Definition at line 372 of file graphics_importer.h.
Referenced by GRAPHICS_IMPORTER_BUFFER::AddPolygon(), NewShape(), and GRAPHICS_IMPORTER_BUFFER::PostprocessNestedPolygons().