44 return wxT(
"SCH_SHAPE" );
51 return hitTest( aPosition, aAccuracy );
54 bool HitTest(
const BOX2I& aRect,
bool aContained,
int aAccuracy = 0 )
const override
56 return hitTest( aRect, aContained, aAccuracy );
70 return PLOT_DASH_TYPE::SOLID;
98 void Plot(
PLOTTER* aPlotter,
bool aBackground )
const override;
108 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
111 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
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.
VECTOR2I getCenter() const
void calcEdit(const VECTOR2I &aPosition)
bool continueEdit(const VECTOR2I &aPosition)
bool hitTest(const VECTOR2I &aPosition, int aAccuracy=0) const
void beginEdit(const VECTOR2I &aStartPoint)
void endEdit(bool aClosed=true)
Finishes editing the shape.
void setPosition(const VECTOR2I &aPos)
const BOX2I getBoundingBox() const
VECTOR2I getPosition() const
void setEditState(int aState)
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
Base plotter engine class.
Base class for any item which can be embedded within the SCHEMATIC container class,...
PLOT_DASH_TYPE GetEffectiveLineStyle() const
void SetPosition(const VECTOR2I &aPos) override
void CalcEdit(const VECTOR2I &aPosition)
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider) const override
Return a user-visible description string of this item.
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the layers the item is drawn on (which may be more than its "home" layer)
bool ContinueEdit(const VECTOR2I &aPosition)
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
bool HitTest(const BOX2I &aRect, bool aContained, int aAccuracy=0) const override
Test if aRect intersects this item.
void BeginEdit(const VECTOR2I &aStartPoint)
void Move(const VECTOR2I &aOffset) override
Move the item by aMoveVector to a new position.
void SetEditState(int aState)
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
void SetStroke(const STROKE_PARAMS &aStroke) override
void SwapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
VECTOR2I GetCenter() const
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
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.
void Rotate(const VECTOR2I &aCenter) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
void Plot(PLOTTER *aPlotter, bool aBackground) const override
Plot the schematic item to aPlotter.
void AddPoint(const VECTOR2I &aPosition)
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
bool HasLineStroke() const override
Check if this schematic item has line stoke properties.
wxString GetClass() const override
Return the class name.
void PrintBackground(const RENDER_SETTINGS *aSettings, const VECTOR2I &aOffset) override
Print the (optional) backaground elements if they exist.
void Print(const RENDER_SETTINGS *aSettings, const VECTOR2I &aOffset) override
Print a schematic item.
int GetPenWidth() const override
STROKE_PARAMS GetStroke() const override
VECTOR2I GetPosition() const override
int GetEffectiveWidth() const override
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.