30 #ifndef _SCH_BUS_ENTRY_H_ 31 #define _SCH_BUS_ENTRY_H_ 36 #define TARGET_BUSENTRY_RADIUS Mils2iu( 12 ) // Circle diameter drawn at the ends 80 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
86 void Move(
const wxPoint& aMoveVector )
override 93 void Rotate( wxPoint aPosition )
override;
104 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override;
105 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
114 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
118 bool doIsConnected(
const wxPoint& aPosition )
const override;
145 return wxT(
"SCH_BUS_WIRE_ENTRY" );
150 void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList )
override;
193 return wxT(
"SCH_BUS_BUS_ENTRY" );
198 void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList )
override;
221 #endif // _SCH_BUS_ENTRY_H_ Class for a bus to bus entry.
bool UpdateDanglingState(std::vector< DANGLING_END_ITEM > &aItemList, const SCH_SHEET_PATH *aPath=nullptr) override
Test the schematic item to aItemList to check if it's dangling state has changed.
void SetWidth(int aWidth)
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
void Move(const wxPoint &aMoveVector) override
Move the item by aMoveVector to a new position.
bool doIsConnected(const wxPoint &aPosition) const override
Provide the object specific test to see if it is connected to aPosition.
PNG memory record (file in memory).
virtual bool HasLineStroke() const override
Check if this schematic item has line stoke properties.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
void SetSize(const wxSize &aSize)
SCH_ITEM * m_connected_bus_item
Pointer to the bus item (usually a bus wire) connected to this bus-wire entry, if it is connected to ...
void Print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset) override
Print a schematic item.
SCH_ITEM * m_connected_bus_items[2]
Pointer to the bus items (usually bus wires) connected to this bus-bus entry (either or both may be n...
bool CanConnect(const SCH_ITEM *aItem) const override
void SetPenWidth(int aWidth)
virtual STROKE_PARAMS GetStroke() const override
SCH_BUS_BUS_ENTRY(const wxPoint &pos=wxPoint(0, 0), bool aFlipY=false)
bool IsConnectable() const override
SCH_BUS_ENTRY_BASE(KICAD_T aType, const wxPoint &pos=wxPoint(0, 0), bool aFlipY=false)
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the all the layers within the VIEW the object is painted on.
void SetPosition(const wxPoint &aPosition) override
SCH_BUS_WIRE_ENTRY(const wxPoint &pos=wxPoint(0, 0), bool aFlipY=false)
void Rotate(wxPoint aPosition) override
Rotate the item around aPosition 90 degrees in the clockwise direction.
wxString GetClass() const override
Return the class name.
void SetPlotStyle(PLOT_DASH_TYPE aPlotStyle)
bool CanConnect(const SCH_ITEM *aItem) const override
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
The base class for create windows for drawing purpose.
void SwapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
bool IsDanglingEnd() const
Base class for a bus or wire entry.
virtual bool ConnectionPropagatesTo(const EDA_ITEM *aItem) const override
Returns true if this item should propagate connection info to aItem.
PLOT_DASH_TYPE GetStrokeStyle() const
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
bool IsMovableFromAnchorPoint() const override
Return true for items which are moved with the anchor point at mouse cursor and false for items moved...
void SetStrokeColor(const COLOR4D &aColor)
virtual void SetStroke(const STROKE_PARAMS &aStroke) 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...
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
bool IsDangling() const override
bool IsDanglingStart() const
std::vector< wxPoint > GetConnectionPoints() const override
Add all the connection points for this item to aPoints.
wxString GetClass() const override
Return the class name.
void SetStrokeStyle(PLOT_DASH_TYPE aStyle)
static bool ClassOf(const EDA_ITEM *aItem)
void GetEndPoints(std::vector< DANGLING_END_ITEM > &aItemList) override
Add the schematic item end points to aItemList if the item has end points.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
bool UpdateDanglingState(std::vector< DANGLING_END_ITEM > &aItemList, const SCH_SHEET_PATH *aPath=nullptr) override
Test the schematic item to aItemList to check if it's dangling state has changed.
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
PLOT_DASH_TYPE
Dashed line types.
SCH_LAYER_ID GetLayer() const
Return the layer this item is on.
Base plotter engine class.
void GetEndPoints(std::vector< DANGLING_END_ITEM > &aItemList) override
Add the schematic item end points to aItemList if the item has end points.
int GetPenWidth() const 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...
Simple container to manage line stroke parameters.
Handle the component boundary box.
void Plot(PLOTTER *aPlotter) override
Plot the schematic item to aPlotter.
A base class for most all the KiCad significant classes used in schematics and boards.
Class for a wire to bus entry.
void SetColor(const COLOR4D &aColor)
COLOR4D GetStrokeColor() const
bool operator<(const SCH_ITEM &aItem) const override
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.
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is contained within or on the bounding box of an item.
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
Base class for any item which can be embedded within the SCHEMATIC container class,...
int GetPenWidth() const override
KICAD_T Type() const
Returns the type of object.
static bool ClassOf(const EDA_ITEM *aItem)
A color representation with 4 components: red, green, blue, alpha.
wxPoint GetPosition() const override