30 #include <wx/gdicmn.h> 59 for(
const KICAD_T* p = aScanTypes; *p !=
EOT; ++p )
76 void SetAngle(
double aAngle,
bool aUpdateEnd =
true )
override;
83 void Move(
const wxPoint& aMoveVector )
override;
91 void Mirror(
const wxPoint& aCentre,
bool aMirrorAroundXAxis );
98 void Rotate(
const wxPoint& aRotCentre,
double aAngle )
override;
107 void Flip(
const wxPoint& aCentre,
bool aFlipLeftRight )
override;
143 return wxT(
"MGRAPHIC" );
157 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
FP_SHAPE(FOOTPRINT *parent, PCB_SHAPE_TYPE_T aShape=S_SEGMENT)
EDA_ITEM * m_parent
Linked list: Link (parent struct)
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
void SetEnd0(const wxPoint &aPoint)
PNG memory record (file in memory).
wxString GetParentAsString() const
void Flip(const wxPoint &aCentre, bool aFlipLeftRight) override
Flip entity relative to aCentre.
void SetBezier0_C1(const wxPoint &aPoint)
double ViewGetLOD(int aLayer, KIGFX::VIEW *aView) const override
Return the level of detail (LOD) of the item.
const wxPoint & GetStart0() const
usual segment : line with rounded ends
wxString AsString() const
class FP_SHAPE, a footprint edge
The base class for create windows for drawing purpose.
static bool ClassOf(const EDA_ITEM *aItem)
void SetBezier0_C2(const wxPoint &aPoint)
search types array terminator (End Of Types)
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
wxPoint m_ThirdPoint0
End point for an arc.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
PCB_SHAPE_TYPE_T
The set of shapes for PCB graphics and tracks and footprint graphics in the .m_Shape member.
const wxPoint & GetThirdPoint0() const
wxString GetClass() const override
Return the class name.
void Rotate(const wxPoint &aRotCentre, double aAngle) override
Rotate an edge of the footprint.
void SetAngle(double aAngle, bool aUpdateEnd=true) override
Sets the angle for arcs, and normalizes it within the range 0 - 360 degrees.
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.
wxPoint m_End0
End point, relative to footprint origin, orient 0.
wxPoint m_Start0
Start point or center, relative to footprint origin, orient 0.
virtual bool IsType(const KICAD_T aScanTypes[]) const
Check whether the item is one of the listed types.
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
void SetDrawCoord()
Set draw coordinates (absolute values ) from relative coordinates.
void SetStart0(const wxPoint &aPoint)
wxPoint m_Bezier0_C2
Bezier Control Point 2, relative to footprint origin, orient 0.
bool IsParentFlipped() const
const wxPoint & GetBezier0_C2() const
const wxPoint & GetBezier0_C1() const
void Mirror(const wxPoint &aCentre, bool aMirrorAroundXAxis)
Mirror an edge of the footprint.
const wxPoint & GetEnd0() const
A base class for most all the KiCad significant classes used in schematics and boards.
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
void SetLocalCoord()
Set relative coordinates from draw coordinates.
void Move(const wxPoint &aMoveVector) override
Move an edge of the footprint.
EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type for displaying messages.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
wxPoint m_Bezier0_C1
Bezier Control Point 1, relative to footprint origin, orient 0.
void SetThirdPoint0(const wxPoint &aPoint)
bool IsType(const KICAD_T aScanTypes[]) const override
Check whether the item is one of the listed types.
KICAD_T Type() const
Returns the type of object.