48 #define MINIMUM_SELECTION_DISTANCE 2 // Minimum selection distance in internal units 131 virtual void CalcEdit(
const wxPoint& aPosition ) {}
145 void* aData,
const TRANSFORM& aTransform );
154 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
156 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override 163 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
190 return *
this == *aOther;
206 virtual void Offset(
const wxPoint& aOffset ) = 0;
213 virtual void MoveTo(
const wxPoint& aPosition ) = 0;
237 virtual void Rotate(
const wxPoint& aCenter,
bool aRotateCCW =
true ) = 0;
247 virtual void Plot(
PLOTTER* aPlotter,
const wxPoint& aOffset,
bool aFill,
251 virtual void SetWidth(
int aWidth ) = 0;
271 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
331 #endif // _LIB_ITEM_H_ const EDA_RECT GetBoundingBox() const override
virtual int GetPenWidth() const =0
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...
FILL_TYPE
The set of fill types used in plotting or drawing enclosed areas.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
LIB_PART * GetParent() const
virtual void SetWidth(int aWidth)=0
std::vector< LIB_PIN * > LIB_PINS
Helper for defining a list of pin object pointers.
void SetFillMode(FILL_TYPE aFillMode)
virtual void Plot(PLOTTER *aPlotter, const wxPoint &aOffset, bool aFill, const TRANSFORM &aTransform)=0
Plot the draw item using the plot object.
virtual void MirrorHorizontal(const wxPoint &aCenter)=0
Mirror the draw object along the horizontal (X) axis about aCenter point.
virtual void CalcEdit(const wxPoint &aPosition)
Calculates the attributes of an item at aPosition when it is being edited.
The base class for create windows for drawing purpose.
FILL_TYPE m_fill
The body fill type.
bool operator==(const LIB_ITEM *aOther) const
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
The base class for drawable items used by schematic library components.
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the all the layers within the VIEW the object is painted on.
virtual void Offset(const wxPoint &aOffset)=0
Set the drawing object by aOffset from the current position.
virtual bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const
Test if aPosition is contained within or on the bounding box of an item.
virtual wxString GetTypeName() const =0
Provide a user-consumable name of the object type.
FILL_TYPE GetFillMode() const
int m_unit
Unit identification for multiple parts per package.
bool operator==(const LIB_ITEM &aOther) const
Test LIB_ITEM objects for equivalence.
virtual bool ContinueEdit(const wxPoint aPosition)
Continue an edit in progress at aPosition.
COMPARE_FLAGS
The list of flags used by the compare function.
int m_convert
Shape identification for alternate body styles.
bool operator<(const LIB_ITEM &aOther) const
Test if another draw item is less than this draw object.
virtual void Rotate(const wxPoint &aCenter, bool aRotateCCW=true)=0
Rotate the object about aCenter point.
Define a library symbol object.
virtual void MirrorVertical(const wxPoint &aCenter)=0
Mirror the draw object along the MirrorVertical (Y) axis about aCenter point.
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.
virtual void MoveTo(const wxPoint &aPosition)=0
Move a draw object to aPosition.
void SetConvert(int aConvert)
virtual void BeginEdit(const wxPoint aPosition)
Begin drawing a component library draw item at aPosition.
virtual int GetWidth() const =0
Base plotter engine class.
virtual void Print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset, void *aData, const TRANSFORM &aTransform)
Draw an item.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is contained within or on the bounding box of an item.
Handle the component boundary box.
A base class for most all the KiCad significant classes used in schematics and boards.
void SetPosition(const wxPoint &aPosition) override
bool IsFillable() const
Check if draw object can be filled.
virtual const EDA_RECT GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type for displaying messages.
LIB_ITEM(KICAD_T aType, LIB_PART *aComponent=NULL, int aUnit=0, int aConvert=0, FILL_TYPE aFillType=FILL_TYPE::NO_FILL)
virtual int compare(const LIB_ITEM &aOther, LIB_ITEM::COMPARE_FLAGS aCompareFlags=LIB_ITEM::COMPARE_FLAGS::NORMAL) const
Provide the draw object specific comparison called by the == and < operators.
virtual void print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset, void *aData, const TRANSFORM &aTransform)=0
Print the item to aDC.
virtual void EndEdit()
End an object editing action.