37#define MARKER_SHAPE_POINT_COUNT 9
85 bool HitTest(
const BOX2I& aRect,
bool aContained,
int aAccuracy = 0 )
const override
101 FLASHING aFlash = FLASHING::DEFAULT )
const override;
114 void SetZoom(
double aZoomFactor );
135 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
143 return wxT(
"PCB_MARKER" );
BITMAPS
A list of all bitmap identifiers.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
A color representation with 4 components: red, green, blue, alpha.
bool HitTestMarker(const VECTOR2I &aHitPosition, int aAccuracy) const
Test if the given VECTOR2I is within the bounds of this object.
VECTOR2I m_Pos
position of the marker
std::shared_ptr< RC_ITEM > m_rcItem
enum MARKER_T GetMarkerType() const
EDA_MSG_PANEL items for displaying messages.
const KIID GetUUID() const 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.
std::vector< PCB_SHAPE > m_shapes2
bool operator==(const BOARD_ITEM &aBoardItem) const override
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.
std::vector< PCB_SHAPE > m_shapes1
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
void Move(const VECTOR2I &aMoveVector) override
Move this object.
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
virtual wxString GetClass() const override
Get class name.
std::vector< int > ViewGetLayers() const override
Return the all the layers within the VIEW the object is painted on.
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
SEVERITY GetSeverity() const override
static PCB_MARKER * DeserializeFromString(const wxString &data)
std::vector< PCB_SHAPE > GetShapes1() const
void Flip(const VECTOR2I &aCentre, FLIP_DIRECTION aFlipDirection) override
Flip this object, i.e.
void SetShapes2(const std::vector< PCB_SHAPE > &aShapes)
bool HitTest(const BOX2I &aRect, bool aContained, int aAccuracy=0) const override
Test if aRect intersects this item.
VECTOR2I GetCenter() const override
This defaults to the center of the bounding box if not overridden.
wxString SerializeToString() const
GAL_LAYER_ID GetColorLayer() const
VECTOR2I GetPosition() const override
KIGFX::COLOR4D getColor() const override
static bool ClassOf(const EDA_ITEM *aItem)
std::vector< PCB_SHAPE > GetShapes2() const
double Similarity(const BOARD_ITEM &aBoardItem) const override
Return a measure of how likely the other object is to represent the same object.
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
void SetShapes1(const std::vector< PCB_SHAPE > &aShapes)
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
void Rotate(const VECTOR2I &aRotCentre, const EDA_ANGLE &aAngle) override
Rotate this object.
void SetZoom(double aZoomFactor)
void SetPosition(const VECTOR2I &aPos) override
FLASHING
Enum used during connectivity building to ensure we do not query connectivity while building the data...
GAL_LAYER_ID
GAL layers are "virtual" layers, i.e.
PCB_LAYER_ID
A quick note on layer IDs:
@ PCB_MARKER_T
class PCB_MARKER, a marker used to show something