42 #define SCALING_FACTOR Millimeter2iu( 0.075 ) 69 m_rcItem->GetMainItemID().AsString(),
70 m_rcItem->GetAuxItemID().AsString() );
76 wxArrayString props = wxSplit( data,
'|' );
77 wxPoint markerPos( (
int) strtol( props[1].c_str(),
nullptr, 10 ),
78 (
int) strtol( props[2].c_str(),
nullptr, 10 ) );
85 drcItem->SetItems(
KIID( props[3] ),
KIID( props[4] ) );
93 aList.emplace_back(
_(
"Type" ),
_(
"Marker" ) );
94 aList.emplace_back(
_(
"Violation" ),
m_rcItem->GetErrorMessage() );
113 aList.emplace_back( mainText, auxText );
133 return std::make_shared<SHAPE_NULL>();
168 BOARD* board = static_cast<BOARD*>( ancestor );
189 BOARD* board = static_cast<BOARD*>( ancestor );
KIGFX::COLOR4D getColor() const override
virtual EDA_ITEM * GetItem(const KIID &aId)
Fetch an item by KIID.
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
PNG memory record (file in memory).
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
Implementation of conversion functions that require both schematic and board internal units.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
void Rotate(const wxPoint &aRotCentre, double aAngle) override
Rotate this object.
wxPoint m_Pos
position of the marker
GAL_LAYER_ID
GAL layers are "virtual" layers, i.e.
wxString Serialize() const
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
const BITMAP_OPAQUE drc_xpm[1]
The base class for create windows for drawing purpose.
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
Classes used in Pcbnew, CvPcb and GerbView.
PCB_LAYER_ID
A quick note on layer IDs:
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the all the layers within the VIEW the object is painted on.
const wxPoint GetOrigin() const
std::shared_ptr< RC_ITEM > m_rcItem
EDA_RECT m_shapeBoundingBox
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)
Functions to provide common constants and other functions to assist in making a consistent UI.
SEVERITY GetSeverity(int aDRCErrorCode)
GAL_LAYER_ID GetColorLayer() const
layer for drc markers which have been individually excluded
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
layer for drc markers with SEVERITY_WARNING
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
int MarkerScale() const
The scaling factor to convert polygonal shape coordinates to internal units.
void Flip(const wxPoint &aCentre, bool aFlipLeftRight) override
Flip this object, i.e.
class MARKER_PCB, a marker used to show something
Board layer functions and definitions.
Information pertinent to a Pcbnew printed circuit board.
PCB_MARKER(std::shared_ptr< RC_ITEM > aItem, const wxPoint &aPosition)
virtual wxString GetSelectMenuText(EDA_UNITS aUnits) const
Return the text to display to be used in the selection clarification context menu when multiple items...
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.
Color settings are a bit different than most of the settings objects in that there can be more than o...
Abstract interface for BOARD_ITEMs capable of storing other items inside.
BOARD_ITEM_CONTAINER * GetParent() const
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.
#define SCALING_FACTOR
Factor to convert the maker unit shape to internal units:
static VRML_COLOR colors[VRML_COLOR_LAST]
EDA_UNITS GetUserUnits() const
Return the user units currently in use.
layer for drc markers with SEVERITY_ERROR
A color representation with 4 components: red, green, blue, alpha.