30 #ifndef CLASS_MARKER_PCB_H 31 #define CLASS_MARKER_PCB_H 58 const wxString& aText,
const wxPoint& aPos,
59 const wxString& bText,
const wxPoint& bPos );
69 const wxString& aText,
const wxPoint& aPos );
78 void Rotate(
const wxPoint& aRotCentre,
double aAngle )
override;
122 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
125 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
133 return wxT(
"MARKER_PCB" );
141 #endif // CLASS_MARKER_PCB_H void Draw(EDA_DRAW_PANEL *aPanel, wxDC *aDC, GR_DRAWMODE aDrawMode, const wxPoint &aOffset=ZeroOffset) override
Function Draw BOARD_ITEMs have their own color information.
const EDA_RECT GetBoundingBox() const override
Function GetBoundingBox returns the orthogonal, bounding box of this object for display purposes...
bool HitTestMarker(const wxPoint &ref_pos) const
Function HitTestMarker tests if the given wxPoint is within the bounds of this object.
const wxPoint GetPosition() const override
PNG memory record (file in memory).
void Flip(const wxPoint &aCentre) override
Function Flip Flip this object, i.e.
Class BOARD_ITEM is a base class for any item which can be embedded within the BOARD container class...
Classes BOARD_ITEM and BOARD_CONNECTED_ITEM.
BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
wxPoint m_Pos
position of the marker
bool HitTest(const wxPoint &aPosition) const override
Function HitTest tests if aPosition is contained within or on the bounding area of an item...
const BOARD_ITEM * GetItem() const
void DrawMarker(EDA_DRAW_PANEL *aPanel, wxDC *aDC, GR_DRAWMODE aDrawMode, const wxPoint &aOffset)
Function DrawMarker draws the shape is the polygon defined in m_Corners (array of wxPoints)...
static wxPoint ZeroOffset
A value of wxPoint(0,0) which can be passed to the Draw() functions.
virtual wxString GetClass() const override
Get class name.
void SetItem(const BOARD_ITEM *aItem)
const BOARD_ITEM * m_item
Pointer to BOARD_ITEM that causes DRC error.
bool IsOnLayer(PCB_LAYER_ID aLayer) const override
Function IsOnLayer tests to see if this object is on the given layer.
PCB_LAYER_ID
A quick note on layer IDs:
GR_DRAWMODE
Drawmode. Compositing mode plus a flag or two.
MARKER_PCB(BOARD_ITEM *aParent)
const BOX2I ViewBBox() const override
Function ViewBBox() returns the bounding box of the item covering all its layers. ...
void Rotate(const wxPoint &aRotCentre, double aAngle) override
Function Rotate Rotate this object.
wxString GetSelectMenuText() const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
Class EDA_RECT handles the component boundary box.
void GetMsgPanelInfo(std::vector< MSG_PANEL_ITEM > &aList) override
Function GetMsgPanelInfo populates aList of MSG_PANEL_ITEM objects with it's internal state for displ...
void ViewGetLayers(int aLayers[], int &aCount) const override
Function ViewGetLayers() Returns the all the layers within the VIEW the object is painted on...
Class EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type for displaying messages.
void Move(const wxPoint &aMoveVector) override
Function Move move this object.
void SetPosition(const wxPoint &aPos) override