40 #define SCALING_FACTOR Millimeter2iu( 0.15 ) 72 m_rcItem->GetMainItemID().AsString(),
73 m_rcItem->GetAuxItemID().AsString() );
79 wxArrayString props = wxSplit( data,
'|' );
80 wxPoint markerPos( (
int) strtol( props[1].c_str(),
nullptr, 10 ),
81 (
int) strtol( props[2].c_str(),
nullptr, 10 ) );
88 ercItem->SetItems(
KIID( props[3] ),
KIID( props[4] ) );
96 void SCH_MARKER::Show(
int nestLevel, std::ostream& os )
const 99 NestedSpace( nestLevel, os ) <<
'<' <<
GetClass().Lower().mb_str() <<
GetPos() <<
"/>\n";
109 wxCHECK_RET(
Schematic(), wxT(
"No SCHEMATIC set for SCH_MARKER!" ) );
165 aList.emplace_back(
_(
"Electrical Rule Check Error" ),
m_rcItem->GetErrorMessage() );
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.
const wxPoint & GetPos() const
virtual bool Matches(const wxFindReplaceData &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
EDA_RECT const GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
bool Matches(const wxFindReplaceData &aSearchData, void *aAuxDat) const override
Compare DRC marker main and auxiliary text against search string.
SCH_LAYER_ID GetColorLayer() const
void SwapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
Implementation of conversion functions that require both schematic and board internal units.
#define SCALING_FACTOR
Factor to convert the maker unit shape to internal units:
static std::shared_ptr< ERC_ITEM > Create(int aErrorCode)
Constructs an ERC_ITEM for the given error code.
wxPoint m_Pos
position of the marker
SCHEMATIC * Schematic() const
Searches the item hierarchy to find a SCHEMATIC.
SCH_MARKER(std::shared_ptr< ERC_ITEM > aItem, const wxPoint &aPos)
The base class for create windows for drawing purpose.
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
EDA_RECT GetBoundingBoxMarker() const
Return the orthogonal, bounding box of this object for display purposes.
void Print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset) override
Print a schematic item.
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.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
SCH_LAYER_ID
Eeschema drawing layers.
std::shared_ptr< RC_ITEM > m_rcItem
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the layers the item is drawn on (which may be more than its "home" layer)
Functions to provide common constants and other functions to assist in making a consistent UI.
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
wxString Serialize() const
void Rotate(const wxPoint &aCenter) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
COLOR4D GetColor(int aLayer) const
BITMAPS
A list of all bitmap identifiers.
KIGFX::COLOR4D getColor() const override
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
Handle the component boundary box.
A base class for most all the KiCad significant classes used in schematics and boards.
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
Color settings are a bit different than most of the settings objects in that there can be more than o...
wxString GetClass() const override
Return the class name.
Message panel definition file.
static SCH_MARKER * Deserialize(const wxString &data)
Base class for any item which can be embedded within the SCHEMATIC container class,...
A color representation with 4 components: red, green, blue, alpha.