25#ifndef TYPE_SCH_MARKER_H_
26#define TYPE_SCH_MARKER_H_
49 return wxT(
"SCH_MARKER" );
59 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
100 return wxString(
_(
"ERC Marker" ) );
108 bool HitTest(
const VECTOR2I& aPosition,
int aAccuracy = 0 )
const override;
135 void Show(
int nestLevel, std::ostream& os )
const override;
BITMAPS
A list of all bitmap identifiers.
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.
A color representation with 4 components: red, green, blue, alpha.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
VECTOR2I m_Pos
position of the marker
Base plotter engine class.
Holds all the data relating to one schematic.
Base class for any item which can be embedded within the SCHEMATIC container class,...
SEVERITY GetSeverity() const override
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the layers the item is drawn on (which may be more than its "home" layer)
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxDat) const override
Compare DRC marker main and auxiliary text against search string.
bool operator==(const SCH_ITEM &aOther) const override
wxString Serialize() const
wxString GetClass() const override
Return the class name.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
const KIID GetUUID() const override
void SetIsLegacyMarker(bool isLegacyMarker=true)
Sets this marker as a legacy artifact.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
SCH_LAYER_ID GetColorLayer() const
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
void Print(const RENDER_SETTINGS *aSettings, const VECTOR2I &aOffset) override
Print a schematic item.
double Similarity(const SCH_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
void Move(const VECTOR2I &aMoveVector) override
Move the item by aMoveVector to a new position.
void Rotate(const VECTOR2I &aCenter) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
void Plot(PLOTTER *, bool, const SCH_PLOT_SETTINGS &) const override
Plot the schematic item to aPlotter.
void SwapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
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.
KIGFX::COLOR4D getColor() const override
BOX2I const GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
bool IsLegacyMarker() const
Determines if this marker is legacy (i.e.
void SetPosition(const VECTOR2I &aPosition) override
static SCH_MARKER * Deserialize(SCHEMATIC *schematic, const wxString &data)
VECTOR2I GetPosition() const override
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider) const override
Return a user-visible description string of this item.
static bool ClassOf(const EDA_ITEM *aItem)
SCH_LAYER_ID
Eeschema drawing layers.