29 #ifndef _SCH_NO_CONNECT_H_ 30 #define _SCH_NO_CONNECT_H_ 36 class NETLIST_OBJECT_LIST;
54 return wxT(
"SCH_NO_CONNECT" );
66 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
70 void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList )
override;
76 void Move(
const wxPoint& aMoveVector )
override 83 void Rotate(
const wxPoint& aCenter )
override;
97 return wxString(
_(
"No Connect" ) );
105 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override;
106 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
113 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
117 bool doIsConnected(
const wxPoint& aPosition )
const override;
124 #endif // _SCH_NO_CONNECT_H_ std::vector< wxPoint > GetConnectionPoints() const override
Add all the connection points for this item to aPoints.
int GetPenWidth() const override
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
wxPoint GetPosition() const override
wxPoint m_pos
Position of the no connect object.
wxString GetClass() const override
Return the class name.
void GetEndPoints(std::vector< DANGLING_END_ITEM > &aItemList) override
Add the schematic item end points to aItemList if the item has end points.
SCH_NO_CONNECT(const wxPoint &pos=wxPoint(0, 0))
void SwapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
void SetPosition(const wxPoint &aPosition) override
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
bool IsConnectable() const override
void Rotate(const wxPoint &aCenter) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
bool CanConnect(const SCH_ITEM *aItem) const override
void Move(const wxPoint &aMoveVector) override
Move the item by aMoveVector to a new position.
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
SCH_LAYER_ID GetLayer() const
Return the layer this item is on.
Base plotter engine class.
BITMAPS
A list of all bitmap identifiers.
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
Handle the component boundary box.
A base class for most all the KiCad significant classes used in schematics and boards.
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the layers the item is drawn on (which may be more than its "home" layer)
void Plot(PLOTTER *aPlotter) const override
Plot the schematic item to aPlotter.
BITMAPS 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.
Base class for any item which can be embedded within the SCHEMATIC container class,...
static bool ClassOf(const EDA_ITEM *aItem)
void Print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset) override
Print a schematic item.
bool doIsConnected(const wxPoint &aPosition) const override
Provide the object specific test to see if it is connected to aPosition.
int m_size
Size of the no connect object.
KICAD_T Type() const
Returns the type of object.