Inheritance diagram for oscr::NodeItem:

Public Member Functions

 NodeItem (QGraphicsItem *parent)
 
void setLabel (QString label)
 
void addInlet (QString name)
 
void addOutlet (QString name)
 
void updateRect ()
 
QRectF rect () const noexcept
 
QRectF boundingRect () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
void hoverMoveEvent (QGraphicsSceneHoverEvent *event)
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
QPointF firstInletPos ()
 
QPointF firstOutletPos ()
 
std::optional< int > inletAtPos (QPointF pos)
 
std::optional< int > outletAtPos (QPointF pos)
 

Public Attributes

QString m_label
 
std::vector< Portm_inlets
 
std::vector< Portm_outlets
 
QRectF m_rect {0, 0, 100, 100}
 
bool m_hover {}
 

Static Public Attributes

static constexpr double diameter = 20.
 
static constexpr double radius = diameter / 2.
 

The documentation for this struct was generated from the following file:
  • score_plugin_avnd.graph.cpp