44 return wxT(
"LIB_SHAPE" );
60 bool HitTest(
const VECTOR2I& aPosition,
int aAccuracy = 0 )
const override;
61 bool HitTest(
const BOX2I& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
68 return PLOT_DASH_TYPE::SOLID;
110 void Rotate(
const VECTOR2I& aCenter,
bool aRotateCCW =
true )
override;
113 const TRANSFORM& aTransform,
bool aDimmed )
const override;
121 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
132 int compare(
const LIB_ITEM& aOther,
int aCompareFlags = 0 )
const override;
135 const TRANSFORM& aTransform,
bool aDimmed )
override;
BITMAPS
A list of all bitmap identifiers.
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
VECTOR2I getCenter() const
void calcEdit(const VECTOR2I &aPosition)
bool continueEdit(const VECTOR2I &aPosition)
wxString ShowShape() const
std::vector< SHAPE * > makeEffectiveShapes(bool aEdgeOnly, bool aLineChainOnly=false) const
Make a set of SHAPE objects representing the EDA_SHAPE.
void beginEdit(const VECTOR2I &aStartPoint)
void endEdit(bool aClosed=true)
Finishes editing the shape.
void setPosition(const VECTOR2I &aPos)
VECTOR2I getPosition() const
void setEditState(int aState)
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
The base class for drawable items used by schematic library symbols.
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
STROKE_PARAMS GetStroke() const
void print(const RENDER_SETTINGS *aSettings, const VECTOR2I &aOffset, void *aData, const TRANSFORM &aTransform, bool aDimmed) override
Print the item to aDC.
void BeginEdit(const VECTOR2I &aStartPoint) override
Begin drawing a symbol library draw item at aPosition.
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.
void EndEdit(bool aClosed=false) override
End an object editing action.
void MirrorHorizontal(const VECTOR2I &aCenter) override
Mirror the draw object along the horizontal (X) axis about aCenter point.
void SetStroke(const STROKE_PARAMS &aStroke)
void AddPoint(const VECTOR2I &aPosition)
void MirrorVertical(const VECTOR2I &aCenter) override
Mirror the draw object along the MirrorVertical (Y) axis about aCenter point.
void Offset(const VECTOR2I &aOffset) override
Set the drawing object by aOffset from the current position.
void Plot(PLOTTER *aPlotter, bool aBackground, const VECTOR2I &aOffset, const TRANSFORM &aTransform, bool aDimmed) const override
Plot the draw item using the plot object.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
int GetPenWidth() const override
const BOX2I GetBoundingBox() const override
PLOT_DASH_TYPE GetEffectiveLineStyle() const
void Rotate(const VECTOR2I &aCenter, bool aRotateCCW=true) override
Rotate the object about aCenter point.
wxString GetClass() const override
Return the class name.
int compare(const LIB_ITEM &aOther, int aCompareFlags=0) const override
Provide the draw object specific comparison called by the == and < operators.
void SetEditState(int aState)
void SetPosition(const VECTOR2I &aPosition) override
bool ContinueEdit(const VECTOR2I &aPosition) override
Continue an edit in progress at aPosition.
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider) const override
Return a user-visible description string of this item.
static bool ClassOf(const EDA_ITEM *aItem)
void CalcEdit(const VECTOR2I &aPosition) override
Calculate the attributes of an item at aPosition when it is being edited.
VECTOR2I GetCenter() const
wxString GetTypeName() const override
Provide a user-consumable name of the object type.
void MoveTo(const VECTOR2I &aPosition) override
Move a draw object to aPosition.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
VECTOR2I GetPosition() const override
virtual std::vector< SHAPE * > MakeEffectiveShapes(bool aEdgeOnly=false) const override
Make a set of SHAPE objects representing the LIB_SHAPE.
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the all the layers within the VIEW the object is painted on.
Define a library symbol object.
Base plotter engine class.
Simple container to manage line stroke parameters.
PLOT_DASH_TYPE GetPlotStyle() const
PLOT_DASH_TYPE
Dashed line types.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.