47    using DRAWABLE = std::variant<SEG, LINE, HALF_LINE, CIRCLE, SHAPE_ARC, VECTOR2I>;
 
   58    wxString 
GetClass()
 const override { 
return wxT( 
"CONSTRUCTION_GEOM" ); }
 
 
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
 
A color representation with 4 components: red, green, blue, alpha.
 
void AddDrawable(const DRAWABLE &aItem, bool aIsPersistent, int aLineWidth=1)
 
std::optional< SEG > m_snapLine
 
std::vector< SNAP_GUIDE > m_snapGuides
 
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
 
void SetSnapGuides(std::vector< SNAP_GUIDE > aGuides)
 
void SetColor(const COLOR4D &aColor)
 
void SetPersistentColor(const COLOR4D &aColor)
 
COLOR4D m_persistentColor
 
std::vector< DRAWABLE_INFO > m_drawables
 
std::variant< SEG, LINE, HALF_LINE, CIRCLE, SHAPE_ARC, VECTOR2I > DRAWABLE
 
std::vector< int > ViewGetLayers() const override
Return the all the layers within the VIEW the object is painted on.
 
void SetSnapLine(const SEG &aLine)
 
wxString GetClass() const override
Return the class name.
 
void ViewDraw(int aLayer, VIEW *aView) const override
Draw the parts of the object belonging to layer aLayer.
 
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
 
The Cairo implementation of the graphics abstraction layer.