65 return wxT(
"LIB_ARC" );
73 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override;
74 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
82 void BeginEdit(
const wxPoint aStartPoint )
override;
83 void CalcEdit(
const wxPoint& aPosition )
override;
86 void Offset(
const wxPoint& aOffset )
override;
88 void MoveTo(
const wxPoint& aPosition )
override;
94 void Rotate(
const wxPoint& aCenter,
bool aRotateCCW =
true )
override;
96 void Plot(
PLOTTER* aPlotter,
const wxPoint& aOffset,
bool aFill,
void Rotate(const wxPoint &aCenter, bool aRotateCCW=true) override
Rotate the object about aCenter point.
void Plot(PLOTTER *aPlotter, const wxPoint &aOffset, bool aFill, const TRANSFORM &aTransform) override
Plot the draw item using the plot object.
PNG memory record (file in memory).
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
void print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset, void *aData, const TRANSFORM &aTransform) override
Print the item to aDC.
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
void SetFirstRadiusAngle(int aAngle)
void CalcRadiusAngles()
Calculate the radius and angle of an arc using the start, end, and center points.
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
VECTOR2I CalcMidPoint() const
Calculate the arc mid point using the arc start and end angles and radius length.
The base class for create windows for drawing purpose.
The base class for drawable items used by schematic library components.
void MirrorVertical(const wxPoint &aCenter) override
Mirror the draw object along the MirrorVertical (Y) axis about aCenter point.
void SetWidth(int aWidth) override
int GetSecondRadiusAngle() const
void SetEnd(const wxPoint &aPoint)
wxString GetClass() const override
Return the class name.
COMPARE_FLAGS
The list of flags used by the compare function.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is contained within or on the bounding box of an item.
Define a library symbol object.
void MoveTo(const wxPoint &aPosition) override
Move a draw object to aPosition.
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.
wxString GetTypeName() const override
Provide a user-consumable name of the object type.
void CalcEdit(const wxPoint &aPosition) override
Calculates the attributes of an item at aPosition when it is being edited.
void SetSecondRadiusAngle(int aAngle)
void MirrorHorizontal(const wxPoint &aCenter) override
Mirror the draw object along the horizontal (X) axis about aCenter point.
Base plotter engine class.
int GetWidth() const override
int GetPenWidth() const override
LIB_ARC(LIB_PART *aParent)
void SetRadius(int aRadius)
void Offset(const wxPoint &aOffset) override
Set the drawing object by aOffset from the current position.
Handle the component boundary box.
A base class for most all the KiCad significant classes used in schematics and boards.
int compare(const LIB_ITEM &aOther, LIB_ITEM::COMPARE_FLAGS aCompareFlags=LIB_ITEM::COMPARE_FLAGS::NORMAL) const override
Provide the draw object specific comparison called by the == and < operators.
int GetFirstRadiusAngle() const
void SetStart(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...
void BeginEdit(const wxPoint aStartPoint) override
Begin drawing a component library draw item at aPosition.
wxPoint GetPosition() const override
void SetEditState(int aState)