HAL
hal::GraphicsNode Class Referenceabstract

Abstract base class for nodes (e.g. gates, modules) More...

#include <graphics_node.h>

Inheritance diagram for hal::GraphicsNode:
Inheritance graph
Collaboration diagram for hal::GraphicsNode:
Collaboration graph

Classes

struct  Visuals
 

Public Member Functions

 GraphicsNode (const ItemType type, const u32 id, const QString &name)
 
virtual QRectF boundingRect () const override
 
virtual QPainterPath shape () const override
 
virtual QPointF getInputScenePosition (const u32 mNetId, const QString &pin_type) const =0
 
virtual QPointF getOutputScenePosition (const u32 mNetId, const QString &pin_type) const =0
 
virtual QPointF endpointPositionByIndex (int index, bool isInput) const =0
 
virtual float yEndpointDistance () const =0
 
virtual float yTopPinDistance () const =0
 
int inputByNet (u32 netId) const
 
int outputByNet (u32 netId) const
 
QList< u32inputNets () const
 
QList< u32outputNets () const
 
virtual void setVisuals (const Visuals &v)
 
qreal width () const
 
qreal height () const
 
void set_name (const QString &name)
 
- Public Member Functions inherited from hal::GraphicsItem
 GraphicsItem (const ItemType type, const u32 id)
 
ItemType itemType () const
 
u32 id () const
 
void setHightlight (bool hl)
 
- Public Member Functions inherited from QGraphicsItem
 QGraphicsItem (QGraphicsItem *parent)
 
virtual ~QGraphicsItem ()
 
QGraphicsScenescene () const const
 
QGraphicsItemparentItem () const const
 
QGraphicsItemtopLevelItem () const const
 
QGraphicsObjectparentObject () const const
 
QGraphicsWidgetparentWidget () const const
 
QGraphicsWidgettopLevelWidget () const const
 
QGraphicsWidgetwindow () const const
 
QGraphicsItempanel () const const
 
void setParentItem (QGraphicsItem *newParent)
 
QList< QGraphicsItem * > children () const const
 
QList< QGraphicsItem * > childItems () const const
 
bool isWidget () const const
 
bool isWindow () const const
 
bool isPanel () const const
 
QGraphicsObjecttoGraphicsObject ()
 
const QGraphicsObjecttoGraphicsObject () const const
 
QGraphicsItemGroupgroup () const const
 
void setGroup (QGraphicsItemGroup *group)
 
QGraphicsItem::GraphicsItemFlags flags () const const
 
void setFlag (QGraphicsItem::GraphicsItemFlag flag, bool enabled)
 
void setFlags (QGraphicsItem::GraphicsItemFlags flags)
 
QGraphicsItem::CacheMode cacheMode () const const
 
void setCacheMode (QGraphicsItem::CacheMode mode, const QSize &logicalCacheSize)
 
QGraphicsItem::PanelModality panelModality () const const
 
void setPanelModality (QGraphicsItem::PanelModality panelModality)
 
bool isBlockedByModalPanel (QGraphicsItem **blockingPanel) const const
 
QString toolTip () const const
 
void setToolTip (const QString &toolTip)
 
QCursor cursor () const const
 
void setCursor (const QCursor &cursor)
 
bool hasCursor () const const
 
void unsetCursor ()
 
bool isVisible () const const
 
bool isVisibleTo (const QGraphicsItem *parent) const const
 
void setVisible (bool visible)
 
void hide ()
 
void show ()
 
bool isEnabled () const const
 
void setEnabled (bool enabled)
 
bool isSelected () const const
 
void setSelected (bool selected)
 
bool acceptDrops () const const
 
void setAcceptDrops (bool on)
 
qreal opacity () const const
 
qreal effectiveOpacity () const const
 
void setOpacity (qreal opacity)
 
QGraphicsEffectgraphicsEffect () const const
 
void setGraphicsEffect (QGraphicsEffect *effect)
 
Qt::MouseButtons acceptedMouseButtons () const const
 
void setAcceptedMouseButtons (Qt::MouseButtons buttons)
 
bool acceptsHoverEvents () const const
 
void setAcceptsHoverEvents (bool enabled)
 
bool acceptHoverEvents () const const
 
void setAcceptHoverEvents (bool enabled)
 
bool acceptTouchEvents () const const
 
void setAcceptTouchEvents (bool enabled)
 
bool filtersChildEvents () const const
 
void setFiltersChildEvents (bool enabled)
 
bool handlesChildEvents () const const
 
void setHandlesChildEvents (bool enabled)
 
bool isActive () const const
 
void setActive (bool active)
 
bool hasFocus () const const
 
void setFocus (Qt::FocusReason focusReason)
 
void clearFocus ()
 
QGraphicsItemfocusProxy () const const
 
void setFocusProxy (QGraphicsItem *item)
 
QGraphicsItemfocusItem () const const
 
void grabMouse ()
 
void ungrabMouse ()
 
void grabKeyboard ()
 
void ungrabKeyboard ()
 
QPointF pos () const const
 
qreal x () const const
 
void setX (qreal x)
 
qreal y () const const
 
void setY (qreal y)
 
QPointF scenePos () const const
 
void setPos (const QPointF &pos)
 
void setPos (qreal x, qreal y)
 
void moveBy (qreal dx, qreal dy)
 
void ensureVisible (const QRectF &rect, int xmargin, int ymargin)
 
void ensureVisible (qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin)
 
QMatrix matrix () const const
 
QMatrix sceneMatrix () const const
 
void setMatrix (const QMatrix &matrix, bool combine)
 
void resetMatrix ()
 
QTransform transform () const const
 
QTransform sceneTransform () const const
 
QTransform deviceTransform (const QTransform &viewportTransform) const const
 
QTransform itemTransform (const QGraphicsItem *other, bool *ok) const const
 
void setTransform (const QTransform &matrix, bool combine)
 
void resetTransform ()
 
void rotate (qreal angle)
 
void scale (qreal sx, qreal sy)
 
void shear (qreal sh, qreal sv)
 
void translate (qreal dx, qreal dy)
 
void setRotation (qreal angle)
 
qreal rotation () const const
 
void setScale (qreal factor)
 
qreal scale () const const
 
QList< QGraphicsTransform * > transformations () const const
 
void setTransformations (const QList< QGraphicsTransform * > &transformations)
 
QPointF transformOriginPoint () const const
 
void setTransformOriginPoint (const QPointF &origin)
 
void setTransformOriginPoint (qreal x, qreal y)
 
virtual void advance (int phase)
 
qreal zValue () const const
 
void setZValue (qreal z)
 
void stackBefore (const QGraphicsItem *sibling)
 
QRectF childrenBoundingRect () const const
 
QRectF sceneBoundingRect () const const
 
bool isClipped () const const
 
QPainterPath clipPath () const const
 
virtual bool contains (const QPointF &point) const const
 
virtual bool collidesWithItem (const QGraphicsItem *other, Qt::ItemSelectionMode mode) const const
 
virtual bool collidesWithPath (const QPainterPath &path, Qt::ItemSelectionMode mode) const const
 
QList< QGraphicsItem * > collidingItems (Qt::ItemSelectionMode mode) const const
 
bool isObscured (const QRectF &rect) const const
 
bool isObscured (qreal x, qreal y, qreal w, qreal h) const const
 
virtual bool isObscuredBy (const QGraphicsItem *item) const const
 
virtual QPainterPath opaqueArea () const const
 
QRegion boundingRegion (const QTransform &itemToDeviceTransform) const const
 
qreal boundingRegionGranularity () const const
 
void setBoundingRegionGranularity (qreal granularity)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)=0
 
void update (const QRectF &rect)
 
void update (qreal x, qreal y, qreal width, qreal height)
 
void scroll (qreal dx, qreal dy, const QRectF &rect)
 
QPointF mapToItem (const QGraphicsItem *item, const QPointF &point) const const
 
QPointF mapToParent (const QPointF &point) const const
 
QPointF mapToScene (const QPointF &point) const const
 
QPolygonF mapToItem (const QGraphicsItem *item, const QRectF &rect) const const
 
QPolygonF mapToParent (const QRectF &rect) const const
 
QPolygonF mapToScene (const QRectF &rect) const const
 
QRectF mapRectToItem (const QGraphicsItem *item, const QRectF &rect) const const
 
QRectF mapRectToParent (const QRectF &rect) const const
 
QRectF mapRectToScene (const QRectF &rect) const const
 
QPolygonF mapToItem (const QGraphicsItem *item, const QPolygonF &polygon) const const
 
QPolygonF mapToParent (const QPolygonF &polygon) const const
 
QPolygonF mapToScene (const QPolygonF &polygon) const const
 
QPainterPath mapToItem (const QGraphicsItem *item, const QPainterPath &path) const const
 
QPainterPath mapToParent (const QPainterPath &path) const const
 
QPainterPath mapToScene (const QPainterPath &path) const const
 
QPointF mapFromItem (const QGraphicsItem *item, const QPointF &point) const const
 
QPointF mapFromParent (const QPointF &point) const const
 
QPointF mapFromScene (const QPointF &point) const const
 
QPolygonF mapFromItem (const QGraphicsItem *item, const QRectF &rect) const const
 
QPolygonF mapFromParent (const QRectF &rect) const const
 
QPolygonF mapFromScene (const QRectF &rect) const const
 
QRectF mapRectFromItem (const QGraphicsItem *item, const QRectF &rect) const const
 
QRectF mapRectFromParent (const QRectF &rect) const const
 
QRectF mapRectFromScene (const QRectF &rect) const const
 
QPolygonF mapFromItem (const QGraphicsItem *item, const QPolygonF &polygon) const const
 
QPolygonF mapFromParent (const QPolygonF &polygon) const const
 
QPolygonF mapFromScene (const QPolygonF &polygon) const const
 
QPainterPath mapFromItem (const QGraphicsItem *item, const QPainterPath &path) const const
 
QPainterPath mapFromParent (const QPainterPath &path) const const
 
QPainterPath mapFromScene (const QPainterPath &path) const const
 
QPointF mapToItem (const QGraphicsItem *item, qreal x, qreal y) const const
 
QPointF mapToParent (qreal x, qreal y) const const
 
QPointF mapToScene (qreal x, qreal y) const const
 
QPolygonF mapToItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const const
 
QPolygonF mapToParent (qreal x, qreal y, qreal w, qreal h) const const
 
QPolygonF mapToScene (qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectToItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectToParent (qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectToScene (qreal x, qreal y, qreal w, qreal h) const const
 
QPointF mapFromItem (const QGraphicsItem *item, qreal x, qreal y) const const
 
QPointF mapFromParent (qreal x, qreal y) const const
 
QPointF mapFromScene (qreal x, qreal y) const const
 
QPolygonF mapFromItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const const
 
QPolygonF mapFromParent (qreal x, qreal y, qreal w, qreal h) const const
 
QPolygonF mapFromScene (qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectFromItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectFromParent (qreal x, qreal y, qreal w, qreal h) const const
 
QRectF mapRectFromScene (qreal x, qreal y, qreal w, qreal h) const const
 
bool isAncestorOf (const QGraphicsItem *child) const const
 
QGraphicsItemcommonAncestorItem (const QGraphicsItem *other) const const
 
bool isUnderMouse () const const
 
QVariant data (int key) const const
 
void setData (int key, const QVariant &value)
 
Qt::InputMethodHints inputMethodHints () const const
 
void setInputMethodHints (Qt::InputMethodHints hints)
 
virtual int type () const const
 
void installSceneEventFilter (QGraphicsItem *filterItem)
 
void removeSceneEventFilter (QGraphicsItem *filterItem)
 
qgraphicsitem_cast (QGraphicsItem *item)
 

Protected Attributes

QString mNodeText [3]
 
qreal mWidth
 
qreal mHeight
 
QMultiHash< u32, int > mInputByNet
 
QMultiHash< u32, int > mOutputByNet
 
- Protected Attributes inherited from hal::GraphicsItem
ItemType mItemType
 
bool mHighlight
 
u32 mId
 
QColor mColor
 

Additional Inherited Members

- Public Types inherited from QGraphicsItem
enum  GraphicsItemFlag
 
enum  GraphicsItemChange
 
enum  CacheMode
 
enum  PanelModality
 
enum  anonymous
 
- Static Public Member Functions inherited from hal::GraphicsItem
static void loadSettings ()
 
static void setLod (const qreal lod)
 
- Public Attributes inherited from QGraphicsItem
typedef GraphicsItemFlags
 
 ItemIsMovable
 
 ItemIsSelectable
 
 ItemIsFocusable
 
 ItemClipsToShape
 
 ItemClipsChildrenToShape
 
 ItemIgnoresTransformations
 
 ItemIgnoresParentOpacity
 
 ItemDoesntPropagateOpacityToChildren
 
 ItemStacksBehindParent
 
 ItemUsesExtendedStyleOption
 
 ItemHasNoContents
 
 ItemSendsGeometryChanges
 
 ItemAcceptsInputMethod
 
 ItemNegativeZStacksBehindParent
 
 ItemIsPanel
 
 ItemIsFocusScope
 
 ItemSendsScenePositionChanges
 
 ItemStopsClickFocusPropagation
 
 ItemStopsFocusHandling
 
 ItemContainsChildrenInShape
 
 ItemPositionChange
 
 ItemMatrixChange
 
 ItemVisibleChange
 
 ItemEnabledChange
 
 ItemSelectedChange
 
 ItemParentChange
 
 ItemChildAddedChange
 
 ItemChildRemovedChange
 
 ItemTransformChange
 
 ItemPositionHasChanged
 
 ItemTransformHasChanged
 
 ItemSceneChange
 
 ItemVisibleHasChanged
 
 ItemEnabledHasChanged
 
 ItemSelectedHasChanged
 
 ItemParentHasChanged
 
 ItemSceneHasChanged
 
 ItemCursorChange
 
 ItemCursorHasChanged
 
 ItemToolTipChange
 
 ItemToolTipHasChanged
 
 ItemFlagsChange
 
 ItemFlagsHaveChanged
 
 ItemZValueChange
 
 ItemZValueHasChanged
 
 ItemOpacityChange
 
 ItemOpacityHasChanged
 
 ItemScenePositionHasChanged
 
 ItemRotationChange
 
 ItemRotationHasChanged
 
 ItemScaleChange
 
 ItemScaleHasChanged
 
 ItemTransformOriginPointChange
 
 ItemTransformOriginPointHasChanged
 
 NoCache
 
 ItemCoordinateCache
 
 DeviceCoordinateCache
 
 NonModal
 
 PanelModal
 
 SceneModal
 
 Type
 
 UserType
 
- Protected Member Functions inherited from hal::GraphicsItem
QColor penColor (QStyle::State state, const QColor &colorHint=QColor()) const
 
QColor selectionColor () const
 
QColor groupingColor () const
 
- Protected Member Functions inherited from QGraphicsItem
void updateMicroFocus ()
 
virtual bool sceneEventFilter (QGraphicsItem *watched, QEvent *event)
 
virtual bool sceneEvent (QEvent *event)
 
virtual void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
 
virtual void dragEnterEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void dragLeaveEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void dragMoveEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void dropEvent (QGraphicsSceneDragDropEvent *event)
 
virtual void focusInEvent (QFocusEvent *event)
 
virtual void focusOutEvent (QFocusEvent *event)
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
virtual void hoverMoveEvent (QGraphicsSceneHoverEvent *event)
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
 
virtual void wheelEvent (QGraphicsSceneWheelEvent *event)
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const const
 
virtual QVariant itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value)
 
void prepareGeometryChange ()
 
- Static Protected Attributes inherited from hal::GraphicsItem
static qreal sLod
 
static QColor sSelectionColor
 
static QColor sHighlightColor
 

Detailed Description

Abstract base class for nodes (e.g. gates, modules)

Abstract base class of every node in the netlist graph, i.e. GraphicsGates and GraphicsModules.

Definition at line 40 of file graphics_node.h.

Constructor & Destructor Documentation

◆ GraphicsNode()

hal::GraphicsNode::GraphicsNode ( const ItemType  type,
const u32  id,
const QString name 
)

Constructor of the abstract class GraphicsNode.

Parameters
type- The type of the GraphicsItem (i.e. module, gate or net)
id- The id of the underlying object (e.g. the module id if ItemType::Module)
name- The name of the node

Definition at line 9 of file graphics_node.cpp.

References QGraphicsItem::ItemIsSelectable, QGraphicsItem::ItemSendsGeometryChanges, mNodeText, name, and QGraphicsItem::setFlags().

Member Function Documentation

◆ boundingRect()

QRectF hal::GraphicsNode::boundingRect ( ) const
overridevirtual

Get the bounding rectangle of the GrahpicsNode that represent its size. Therefore the returned rectangle is set to position (0, 0) with the width and hight of its GraphicsNode.

Returns
The bounding rectangle as a QRectF

Implements QGraphicsItem.

Definition at line 18 of file graphics_node.cpp.

References mHeight, and mWidth.

Referenced by hal::StandardGraphicsGate::paint(), hal::StandardGraphicsModule::paint(), and hal::GatelibraryGraphicsView::showGate().

◆ endpointPositionByIndex()

virtual QPointF hal::GraphicsNode::endpointPositionByIndex ( int  index,
bool  isInput 
) const
pure virtual

Given the index of an input/output pin, this function returns the position of this pin in the scene.
(Pins are positioned from top (idx=0) to bottom (idx=maxIdx))

Parameters
index- The index of the pin
isInput- true if the pin is an input pin
  • false if the pin is an output pin
Returns
the position of the endpoint in the scene

Implemented in hal::StandardGraphicsModule, and hal::StandardGraphicsGate.

◆ getInputScenePosition()

virtual QPointF hal::GraphicsNode::getInputScenePosition ( const u32  mNetId,
const QString pin_type 
) const
pure virtual

Given the id of a net and the type of the pin of one of its destinations, this function returns the position of the input pin in the scene.

Parameters
mNetId- The net id
pin_type- The input pin type
Returns
The pin's position in the scene

Implemented in hal::StandardGraphicsModule, and hal::StandardGraphicsGate.

◆ getOutputScenePosition()

virtual QPointF hal::GraphicsNode::getOutputScenePosition ( const u32  mNetId,
const QString pin_type 
) const
pure virtual

Given the id of a net and the type of the pin of one of its sources, this function returns the position of the output pin in the scene.

Parameters
mNetId- The net id
pin_type- The output pin type
Returns
The pin's position in the scene

Implemented in hal::StandardGraphicsModule, and hal::StandardGraphicsGate.

◆ height()

qreal hal::GraphicsNode::height ( ) const

Gets the height of the GraphicsNode

Returns
the height of the GraphicsNode

Definition at line 42 of file graphics_node.cpp.

References mHeight.

◆ inputByNet()

int hal::GraphicsNode::inputByNet ( u32  netId) const

Given a net by its id, this function returns the index of a pin that is a destination of the net. If no pin of this gate is a destination of this net -1 is returned.
Note(TODO): Undefined behaviour if there are multiple destinations on this gate!

Parameters
netId- The id of the net
Returns
the index of a pin that is connected to the net.

Definition at line 73 of file graphics_node.cpp.

References mInputByNet.

◆ inputNets()

QList< u32 > hal::GraphicsNode::inputNets ( ) const

Returns the following list:

  • The list contains an entry for each input pin.
  • An entry netId at index idx implies that the net of id netId is connected to the input pin at position idx.
  • If netId=0 there is no net connected to the pin at index idx.
Returns
the list of input nets

Definition at line 47 of file graphics_node.cpp.

References mInputByNet, test::n, and QVector::toList().

Referenced by hal::StandardGraphicsGate::paint().

◆ outputByNet()

int hal::GraphicsNode::outputByNet ( u32  netId) const

Given a net by its id, this function returns the index of a pin that is a source of the net. If no pin of this gate is a source of this net -1 is returned.
Note(TODO): Undefined behaviour if there are multiple sources on this gate!

Parameters
netId- The id of the net
Returns
the index of a pin that is connected to the net.

Definition at line 78 of file graphics_node.cpp.

References mOutputByNet.

◆ outputNets()

QList< u32 > hal::GraphicsNode::outputNets ( ) const

Returns the following list:

  • The list contains an entry for each output pin.
  • An entry netId at index idx implies that the net of id netId is connected to the output pin at position idx.
  • If netId=0 there is no net connected to the pin at index idx.
Returns
the list of output nets

Definition at line 60 of file graphics_node.cpp.

References mOutputByNet, test::n, and QVector::toList().

Referenced by hal::StandardGraphicsGate::paint().

◆ set_name()

void hal::GraphicsNode::set_name ( const QString name)

Changes the name text of the GraphicsNode to the passed name.

Parameters
name- The new name

Definition at line 83 of file graphics_node.cpp.

References mNodeText, and name.

◆ setVisuals()

void hal::GraphicsNode::setVisuals ( const Visuals v)
virtual

Configures the passed visuals.

Parameters
v- The visuals to apply

Definition at line 30 of file graphics_node.cpp.

References hal::GraphicsItem::mColor, hal::GraphicsNode::Visuals::mMainColor, hal::GraphicsNode::Visuals::mVisible, and QGraphicsItem::setVisible().

◆ shape()

QPainterPath hal::GraphicsNode::shape ( ) const
overridevirtual

Creates and returns a painter path of the frame of the GraphicsNode.

Returns
a QPainterPath of the frame of the GraphicsNode

Reimplemented from QGraphicsItem.

Definition at line 23 of file graphics_node.cpp.

References QPainterPath::addRect(), mHeight, and mWidth.

◆ width()

qreal hal::GraphicsNode::width ( ) const

Gets the width of the GraphicsNode

Returns
the width of the GraphicsNode

Definition at line 37 of file graphics_node.cpp.

References mWidth.

◆ yEndpointDistance()

virtual float hal::GraphicsNode::yEndpointDistance ( ) const
pure virtual

Gets the vertical space between two endpoints (in scene coordinates).

Returns
the vertical space between two endpoints

Implemented in hal::StandardGraphicsModule, and hal::StandardGraphicsGate.

◆ yTopPinDistance()

virtual float hal::GraphicsNode::yTopPinDistance ( ) const
pure virtual

Gets the distance between the top edge of the node and the first pin (in scene coordinates).

Returns
the vertical space between the top edge of the node and the first pin

Implemented in hal::StandardGraphicsModule, and hal::StandardGraphicsGate.

Member Data Documentation

◆ mHeight

qreal hal::GraphicsNode::mHeight
protected

◆ mInputByNet

QMultiHash<u32,int> hal::GraphicsNode::mInputByNet
protected

Stores pairs (netId, pinIdx) for every input pin of this gate.
netId=0 implies that no net is connected to the input pin at pinIdx.

Definition at line 229 of file graphics_node.h.

Referenced by hal::GraphicsGate::GraphicsGate(), hal::GraphicsModule::GraphicsModule(), inputByNet(), and inputNets().

◆ mNodeText

QString hal::GraphicsNode::mNodeText[3]
protected

The text in the center of the GraphicsNode. Each index stores one line of text. Therefore there is a maximum of 3 lines in total.

Definition at line 211 of file graphics_node.h.

Referenced by hal::GraphicsGate::GraphicsGate(), hal::GraphicsModule::GraphicsModule(), GraphicsNode(), hal::StandardGraphicsGate::paint(), hal::StandardGraphicsModule::paint(), and set_name().

◆ mOutputByNet

QMultiHash<u32,int> hal::GraphicsNode::mOutputByNet
protected

Stores pairs (netId, pinIdx) for every output pin of this gate.
netId=0 implies that no net is connected to the output pin at pinIdx.

Definition at line 235 of file graphics_node.h.

Referenced by hal::GraphicsGate::GraphicsGate(), hal::GraphicsModule::GraphicsModule(), outputByNet(), and outputNets().

◆ mWidth


The documentation for this class was generated from the following files: