59 MARKER_BASE(
int aScalingFactor, std::shared_ptr<RC_ITEM> aItem,
108 bool HitTestMarker(
const wxPoint& aHitPosition,
int aAccuracy )
const;
138 #endif // MARKER_BASE_H const wxPoint & GetPos() const
The Cairo implementation of the graphics abstraction layer.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
wxPoint m_Pos
position of the marker
virtual KIGFX::COLOR4D getColor() const =0
EDA_RECT GetBoundingBoxMarker() const
Return the orthogonal, bounding box of this object for display purposes.
void PrintMarker(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset)
Print the shape is the polygon defined in m_Corners (array of wxPoints).
bool HitTestMarker(const wxPoint &aHitPosition, int aAccuracy) const
Test if the given wxPoint is within the bounds of this object.
void SetExcluded(bool aExcluded)
std::shared_ptr< RC_ITEM > m_rcItem
EDA_RECT m_shapeBoundingBox
void SetMarkerType(enum TYPEMARKER aMarkerType)
Accessors to set/get marker type (DRC, ERC, or other)
void ShapeToPolygon(SHAPE_LINE_CHAIN &aPolygon, int aScale=-1) const
Return the shape polygon in internal units in a SHAPE_LINE_CHAIN the coordinates are relatives to the...
int MarkerScale() const
The scaling factor to convert polygonal shape coordinates to internal units.
MARKER_BASE(int aScalingFactor, std::shared_ptr< RC_ITEM > aItem, TYPEMARKER aType=MARKER_UNSPEC)
enum TYPEMARKER GetMarkerType() const
Handle the component boundary box.
virtual const KIID GetUUID() const =0
std::shared_ptr< RC_ITEM > GetRCItem() const
A color representation with 4 components: red, green, blue, alpha.