25 #ifndef _SCH_JUNCTION_H_ 26 #define _SCH_JUNCTION_H_ 33 class NETLIST_OBJECT_LIST;
42 SCH_JUNCTION(
const wxPoint& aPosition = wxPoint( 0, 0 ),
int aDiameter = 0,
56 return wxT(
"SCH_JUNCTION" );
61 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
67 void Move(
const wxPoint& aMoveVector )
override 74 void Rotate( wxPoint aPosition )
override;
76 void GetEndPoints( std::vector <DANGLING_END_ITEM>& aItemList )
override;
91 return wxString(
_(
"Junction" ) );
109 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override;
110 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
119 void Show(
int nestLevel, std::ostream& os )
const override;
123 bool doIsConnected(
const wxPoint& aPosition )
const override;
129 #endif // _SCH_JUNCTION_H_ void Move(const wxPoint &aMoveVector) override
Move the item by aMoveVector to a new position.
wxString GetClass() const override
Return the class name.
COLOR4D GetJunctionColor() const
bool IsPointClickableAnchor(const wxPoint &aPos) const override
PNG memory record (file in memory).
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
void SetDiameter(int aDiameter)
void SetColor(const COLOR4D &aColor)
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
void Rotate(wxPoint aPosition) override
Rotate the item around aPosition 90 degrees in the clockwise direction.
void SwapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
std::vector< wxPoint > GetConnectionPoints() const override
Add all the connection points for this item to aPoints.
virtual bool operator<(const SCH_ITEM &aItem) const override
static bool ClassOf(const EDA_ITEM *aItem)
bool doIsConnected(const wxPoint &aPosition) const override
Provide the object specific test to see if it is connected to aPosition.
SCH_JUNCTION(const wxPoint &aPosition=wxPoint(0, 0), int aDiameter=0, SCH_LAYER_ID aLayer=LAYER_JUNCTION)
wxPoint GetPosition() const override
void SetPosition(const wxPoint &aPosition) override
bool CanConnect(const SCH_ITEM *aItem) const override
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is contained within or on the bounding box of an item.
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
SCH_LAYER_ID
Eeschema drawing layers.
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 IsConnectable() const override
SCH_LAYER_ID GetLayer() const
Return the layer this item is on.
void GetEndPoints(std::vector< DANGLING_END_ITEM > &aItemList) override
Add the schematic item end points to aItemList if the item has end points.
void Print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset) override
Print a schematic item.
Base plotter engine class.
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
Handle the component boundary box.
SHAPE_CIRCLE getEffectiveShape() const
A base class for most all the KiCad significant classes used in schematics and boards.
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
Base class for any item which can be embedded within the SCHEMATIC container class,...
void Plot(PLOTTER *aPlotter) override
Plot the schematic item to aPlotter.
KICAD_T Type() const
Returns the type of object.
A color representation with 4 components: red, green, blue, alpha.