43 #define SCALING_FACTOR Millimeter2iu( 0.1625 ) 70 m_rcItem->GetMainItemID().AsString(),
71 m_rcItem->GetAuxItemID().AsString() );
77 wxArrayString props = wxSplit( data,
'|' );
78 wxPoint markerPos( (
int) strtol( props[1].c_str(),
nullptr, 10 ),
79 (
int) strtol( props[2].c_str(),
nullptr, 10 ) );
86 drcItem->SetItems(
KIID( props[3] ),
KIID( props[4] ) );
94 aList.emplace_back(
_(
"Type" ),
_(
"Marker" ) );
95 aList.emplace_back(
_(
"Violation" ),
m_rcItem->GetErrorMessage() );
114 aList.emplace_back( mainText, auxText );
134 return std::make_shared<SHAPE_NULL>();
169 BOARD* board = static_cast<BOARD*>( ancestor );
190 BOARD* board = static_cast<BOARD*>( ancestor );
KIGFX::COLOR4D getColor() const override
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
layer for drc markers with SEVERITY_ERROR
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.
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.
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.
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
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, 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)
Functions to provide common constants and other functions to assist in making a consistent UI.
SEVERITY GetSeverity(int aDRCErrorCode)
void SetMarkerScale(int aScale)
GAL_LAYER_ID GetColorLayer() const
virtual EDA_ITEM * GetItem(const KIID &aId) const
Fetch an item by KIID.
FLASHING
Enum used during connectivity building to ensure we do not query connectivity while building the data...
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
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.
COLOR4D GetColor(int aLayer) const
class PCB_MARKER, a marker used to show something
BITMAPS
A list of all bitmap identifiers.
layer for drc markers which have been individually excluded
Information pertinent to a Pcbnew printed circuit board.
PCB_MARKER(std::shared_ptr< RC_ITEM > aItem, const wxPoint &aPosition)
PCB_LAYER_ID
A quick note on layer IDs:
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.
layer for drc markers with SEVERITY_WARNING
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:
EDA_UNITS GetUserUnits() const
Return the user units currently in use.
A color representation with 4 components: red, green, blue, alpha.