36 #define MARKER_SHAPE_POINT_COUNT 9 44 PCB_MARKER( std::shared_ptr<RC_ITEM> aItem,
const wxPoint& aPosition );
58 void Move(
const wxPoint& aMoveVector)
override 63 void Rotate(
const wxPoint& aRotCentre,
double aAngle )
override;
65 void Flip(
const wxPoint& aCentre,
bool aFlipLeftRight )
override;
75 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override 86 bool Matches(
const wxFindReplaceData& aSearchData,
void* aAuxData )
const override 99 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
102 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
110 return wxT(
"PCB_MARKER" );
117 #endif // PCB_MARKER_H KIGFX::COLOR4D getColor() const override
virtual bool Matches(const wxFindReplaceData &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
PNG memory record (file in memory).
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
void Move(const wxPoint &aMoveVector) override
Move this object.
void Rotate(const wxPoint &aRotCentre, double aAngle) override
Rotate this object.
wxPoint GetCenter() const override
This defaults to the center of the bounding box if not overridden.
wxPoint m_Pos
position of the marker
GAL_LAYER_ID
GAL layers are "virtual" layers, i.e.
wxString Serialize() const
The base class for create windows for drawing purpose.
virtual wxString GetClass() const override
Get class name.
bool Matches(const wxFindReplaceData &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
bool HitTestMarker(const wxPoint &aHitPosition, int aAccuracy) const
Test if the given wxPoint is within the bounds of this object.
PCB_LAYER_ID
A quick note on layer IDs:
const KIID GetUUID() const override
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the all the layers within the VIEW the object is painted on.
std::shared_ptr< RC_ITEM > m_rcItem
std::shared_ptr< SHAPE > GetEffectiveShape(PCB_LAYER_ID aLayer) const override
Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes.
static PCB_MARKER * Deserialize(const wxString &data)
static bool ClassOf(const EDA_ITEM *aItem)
GAL_LAYER_ID GetColorLayer() const
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
void Flip(const wxPoint &aCentre, bool aFlipLeftRight) override
Flip this object, i.e.
class MARKER_PCB, a marker used to show something
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is contained within or on the bounding box of an item.
PCB_MARKER(std::shared_ptr< RC_ITEM > aItem, const wxPoint &aPosition)
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
Handle the component boundary box.
A base class for most all the KiCad significant classes used in schematics and boards.
EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type for displaying messages.
void SetPosition(const wxPoint &aPos) override
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
wxPoint GetPosition() const override
KICAD_T Type() const
Returns the type of object.
A color representation with 4 components: red, green, blue, alpha.