Skui 0.0.1
Build fast and easy to use control software with Skui.
 
Loading...
Searching...
No Matches
NodeGraphicsItem Class Reference

#include <node_graphicsitem.hpp>

Inheritance diagram for NodeGraphicsItem:

Public Member Functions

 NodeGraphicsItem (QGraphicsItem *parent=nullptr, Node *node=nullptr)
 
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override
 
QRectF boundingRect () const override
 
int type () const override
 
NodegetNode ()
 Gets the node represented by the graphicsitem.
 

Static Public Attributes

static const int Type = QGraphicsItem::UserType + 2
 

Constructor & Destructor Documentation

◆ NodeGraphicsItem()

NodeGraphicsItem::NodeGraphicsItem ( QGraphicsItem * parent = nullptr,
Node * node = nullptr )
explicit

Member Function Documentation

◆ boundingRect()

QRectF NodeGraphicsItem::boundingRect ( ) const
override

◆ getNode()

Node * NodeGraphicsItem::getNode ( )
inline

Gets the node represented by the graphicsitem.

This method gets the node that the NodeGrpahicsItem represents.

Returns
Pointer to the node
See also
Node::Node

◆ paint()

void NodeGraphicsItem::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget )
override

◆ type()

int NodeGraphicsItem::type ( ) const
inlineoverride

Member Data Documentation

◆ Type

const int NodeGraphicsItem::Type = QGraphicsItem::UserType + 2
static

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