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 92 bool Matches(
const wxFindReplaceData& aSearchData,
void* aAuxData )
const override 101 void SetZoom(
double aZoomFactor );
107 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
110 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
118 return wxT(
"PCB_MARKER" );
125 #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.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
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.
GAL_LAYER_ID
GAL layers are "virtual" layers, i.e.
wxPoint m_Pos
position of the marker
wxString Serialize() const
void SetZoom(double aZoomFactor)
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.
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, FLASHING aFlash=FLASHING::DEFAULT) 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
FLASHING
Enum used during connectivity building to ensure we do not query connectivity while building the data...
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 PCB_MARKER, a marker used to show something
BITMAPS
A list of all bitmap identifiers.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
PCB_MARKER(std::shared_ptr< RC_ITEM > aItem, const wxPoint &aPosition)
PCB_LAYER_ID
A quick note on layer IDs:
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_PANEL items 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.