47 #define MINIMUM_SELECTION_DISTANCE 2 // Minimum selection distance in internal units 117 virtual bool ContinueEdit(
const wxPoint& aPosition ) {
return false; }
135 virtual void CalcEdit(
const wxPoint& aPosition ) {}
149 void* aData,
const TRANSFORM& aTransform );
169 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
171 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override 178 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
205 return *
this == *aOther;
221 virtual void Offset(
const wxPoint& aOffset ) = 0;
228 virtual void MoveTo(
const wxPoint& aPosition ) = 0;
252 virtual void Rotate(
const wxPoint& aCenter,
bool aRotateCCW =
true ) = 0;
262 virtual void Plot(
PLOTTER* aPlotter,
const wxPoint& aOffset,
bool aFill,
272 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
296 virtual int compare(
const LIB_ITEM& aOther,
int aCompareFlags = 0 )
const;
327 #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...
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
std::vector< LIB_PIN * > LIB_PINS
Helper for defining a list of pin object pointers.
virtual int GetEffectivePenWidth(const RENDER_SETTINGS *aSettings) const
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)
Calculate the attributes of an item at aPosition when it is being edited.
The base class for create windows for drawing purpose.
Define a library symbol object.
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 symbols.
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 inside or on the boundary of this item.
virtual wxString GetTypeName() const =0
Provide a user-consumable name of the object type.
virtual void Plot(PLOTTER *aPlotter, const wxPoint &aOffset, bool aFill, const TRANSFORM &aTransform) const =0
Plot the draw item using the plot object.
LIB_ITEM(KICAD_T aType, LIB_SYMBOL *aSymbol=nullptr, int aUnit=0, int aConvert=0)
virtual int compare(const LIB_ITEM &aOther, int aCompareFlags=0) const
Provide the draw object specific comparison called by the == and < operators.
int m_unit
Unit identification for multiple parts per package.
bool operator==(const LIB_ITEM &aOther) const
Test LIB_ITEM objects for equivalence.
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.
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)
LIB_SYMBOL * GetParent() const
Base plotter engine class.
virtual bool ContinueEdit(const wxPoint &aPosition)
Continue an edit in progress at aPosition.
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 inside or on the boundary of this item.
virtual void BeginEdit(const wxPoint &aPosition)
Begin drawing a symbol 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.
int GetDefaultPenWidth() const
void SetPosition(const wxPoint &aPosition) override
int GetMinPenWidth() const
virtual const EDA_RECT GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
EDA_MSG_PANEL items for displaying messages.
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.