30 #include <wx/gdicmn.h> 59 for(
const KICAD_T* p = aScanTypes; *p !=
EOT; ++p )
76 void SetArcGeometry0(
const wxPoint& aStart,
const wxPoint& aMid,
const wxPoint& aEnd );
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;
145 return wxT(
"MGRAPHIC" );
159 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
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)
void SetArcGeometry0(const wxPoint &aStart, const wxPoint &aMid, const wxPoint &aEnd)
void SetArcAngleAndEnd0(double aAngle, bool aCheckNegativeAngle=false)
Sets the angle for arcs, and normalizes it within the range 0 - 360 degrees.
wxString GetParentAsString() const
void Flip(const wxPoint &aCentre, bool aFlipLeftRight) override
Flip entity relative to aCentre.
double ViewGetLOD(int aLayer, KIGFX::VIEW *aView) const override
Return the level of detail (LOD) of the item.
const wxPoint & GetStart0() const
wxString AsString() const
class FP_SHAPE, a footprint edge
ARC_MID m_arcMidData_0
Originating Arc data, orient 0.
wxPoint m_arcCenter0
Center of arc, relative to footprint origin, orient 0.
The base class for create windows for drawing purpose.
static bool ClassOf(const EDA_ITEM *aItem)
search types array terminator (End Of Types)
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
wxPoint m_end0
End point or circle edge, relative to footprint origin, orient 0.
wxPoint GetCenter0() const
wxPoint GetArcMid0() const
FP_SHAPE(FOOTPRINT *parent, SHAPE_T aShape=SHAPE_T::SEGMENT)
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
void SetBezierC2_0(const wxPoint &aPoint)
wxString GetClass() const override
Return the class name.
void Rotate(const wxPoint &aRotCentre, double aAngle) override
Rotate an edge of the footprint.
wxPoint m_bezierC2_0
Bezier Control Point 2, relative to footprint origin, orient 0.
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.
virtual bool IsType(const KICAD_T aScanTypes[]) const
Check whether the item is one of the listed types.
void SetDrawCoord()
Set draw coordinates (absolute values ) from relative coordinates.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
void SetStart0(const wxPoint &aPoint)
bool IsParentFlipped() const
BITMAPS
A list of all bitmap identifiers.
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.
void SetBezierC1_0(const wxPoint &aPoint)
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
const wxPoint & GetBezierC2_0() const
void SetLocalCoord()
Set relative coordinates from draw coordinates.
void Move(const wxPoint &aMoveVector) override
Move an edge of the footprint.
EDA_MSG_PANEL items for displaying messages.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
wxPoint m_start0
Start point or circle center, relative to footprint origin, orient 0.
void SetCenter0(const wxPoint &aPt)
const wxPoint & GetBezierC1_0() const
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.
wxPoint m_bezierC1_0
Bezier Control Point 1, relative to footprint origin, orient 0.