27#ifndef GRAPHICS_IMPORTER_PCBNEW_H 
   28#define GRAPHICS_IMPORTER_PCBNEW_H 
   55    void AddText( 
const VECTOR2D& aOrigin, 
const wxString& aText, 
double aHeight, 
double aWidth,
 
 
Abstract interface for BOARD_ITEMs capable of storing other items inside.
 
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
 
GRAPHICS_IMPORTER_PCBNEW(BOARD_ITEM_CONTAINER *aParent)
 
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=COLOR4D::UNSPECIFIED) override
Create an object representing a text.
 
BOARD_ITEM_CONTAINER * m_parent
 
void AddArc(const VECTOR2D &aCenter, const VECTOR2D &aStart, const EDA_ANGLE &aAngle, const IMPORTED_STROKE &aStroke) override
Create an object representing an arc.
 
void AddCircle(const VECTOR2D &aCenter, double aRadius, const IMPORTED_STROKE &aStroke, bool aFilled, const COLOR4D &aFillColor=COLOR4D::UNSPECIFIED) override
Create an object representing a circle.
 
void AddLine(const VECTOR2D &aStart, const VECTOR2D &aEnd, const IMPORTED_STROKE &aStroke) override
Create an object representing a line segment.
 
void SetLayer(PCB_LAYER_ID aLayer)
 
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.
 
int MapLineWidth(double aLineWidth)
If aLineWidth < 0, the default line thickness value is returned.
 
PCB_LAYER_ID GetLayer() const
 
PCB_LAYER_ID m_layer
< Target layer for the imported shapes.
 
void AddPolygon(const std::vector< VECTOR2D > &aVertices, const IMPORTED_STROKE &aStroke, bool aFilled, const COLOR4D &aFillColor=COLOR4D::UNSPECIFIED) override
Create an object representing a polygon.
 
STROKE_PARAMS MapStrokeParams(const IMPORTED_STROKE &aStroke)
 
VECTOR2I MapCoordinate(const VECTOR2D &aCoordinate)
Convert an imported coordinate to a board coordinate, according to the internal units,...
 
A clone of IMPORTED_STROKE, but with floating-point width.
 
A color representation with 4 components: red, green, blue, alpha.
 
Simple container to manage line stroke parameters.
 
PCB_LAYER_ID
A quick note on layer IDs:
 
GR_TEXT_H_ALIGN_T
This is API surface mapped to common.types.HorizontalAlignment.
 
GR_TEXT_V_ALIGN_T
This is API surface mapped to common.types.VertialAlignment.
 
VECTOR2< int32_t > VECTOR2I
 
VECTOR2< double > VECTOR2D