25 #ifndef _LIB_POLYLINE_H_ 26 #define _LIB_POLYLINE_H_ 48 return wxT(
"LIB_POLYLINE" );
53 return _(
"PolyLine" );
58 void AddPoint(
const wxPoint& aPoint );
67 void AddCorner(
const wxPoint& aPosition );
75 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override;
76 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
84 void BeginEdit(
const wxPoint aStartPoint )
override;
85 void CalcEdit(
const wxPoint& aPosition )
override;
89 void Offset(
const wxPoint& aOffset )
override;
91 void MoveTo(
const wxPoint& aPosition )
override;
97 void Rotate(
const wxPoint& aCenter,
bool aRotateCCW =
true )
override;
99 void Plot(
PLOTTER* aPlotter,
const wxPoint& aOffset,
bool aFill,
125 #endif // _LIB_POLYLINE_H_ void AddCorner(const wxPoint &aPosition)
wxPoint GetPosition() const override
PNG memory record (file in memory).
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
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 MirrorHorizontal(const wxPoint &aCenter) override
Mirror the draw object along the horizontal (X) axis about aCenter point.
void MirrorVertical(const wxPoint &aCenter) override
Mirror the draw object along the MirrorVertical (Y) axis about aCenter point.
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
The base class for create windows for drawing purpose.
void SetWidth(int aWidth) override
int GetWidth() const override
unsigned GetCornerCount() const
The base class for drawable items used by schematic library components.
const std::vector< wxPoint > & GetPolyPoints() const
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is contained within or on the bounding box of an item.
void Offset(const wxPoint &aOffset) override
Set the drawing object by aOffset from the current position.
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 GetPenWidth() const override
COMPARE_FLAGS
The list of flags used by the compare function.
void Reserve(size_t aPointCount)
bool ContinueEdit(const wxPoint aNextPoint) override
Continue an edit in progress at aPosition.
Define a library symbol object.
void print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset, void *aData, const TRANSFORM &aTransform) override
Print the item to aDC.
std::vector< wxPoint > m_PolyPoints
void AddPoint(const wxPoint &aPoint)
void Rotate(const wxPoint &aCenter, bool aRotateCCW=true) override
Rotate the object about aCenter point.
void DeleteSegment(const wxPoint aPosition)
Delete the segment at aPosition.
Base plotter engine class.
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Display basic info (type, part and convert) about the current item in message panel.
wxString GetClass() const override
Return the class name.
void BeginEdit(const wxPoint aStartPoint) override
Begin drawing a component library draw item at aPosition.
Handle the component boundary box.
A base class for most all the KiCad significant classes used in schematics and boards.
void EndEdit() override
End an object editing action.
const EDA_RECT GetBoundingBox() const override
void MoveTo(const wxPoint &aPosition) override
Move a draw object to aPosition.
void RemoveCorner(int aIdx)
wxString GetTypeName() const override
Provide a user-consumable name of the object type.
LIB_POLYLINE(LIB_PART *aParent)
void CalcEdit(const wxPoint &aPosition) override
Calculates the attributes of an item at aPosition when it is being edited.
void Plot(PLOTTER *aPlotter, const wxPoint &aOffset, bool aFill, const TRANSFORM &aTransform) override
Plot the draw item using the plot object.