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

#include <node.hpp>

Inheritance diagram for Node:
TextCombine Visual Label LineEdit SerialSend Slider

Signals

void changedInterfaceValue (const Interface &)
 
void positionHintChanged (const QPoint position_hint)
 

Public Member Functions

 Node (QObject *parent)
 
void setInterfaces (const QList< Interface > &interfaces)
 
QList< Interface > & getInterfaces ()
 Get the list of interfaces.
 
InterfacegetInterface (const QString &identifier)
 Get an interface by its identifier.
 
virtual const bool isVisual () const
 Checks if the node is a visual node.
 
QPoint positionHint () const
 Get the position hint.
 
void setPositionHint (QPoint position_hint)
 Set the position hint.
 

Protected Member Functions

void config ()
 Set various configurations.
 

Properties

QString name
 
QPoint position_hint
 

Constructor & Destructor Documentation

◆ Node()

Node::Node ( QObject * parent)
explicit

Member Function Documentation

◆ changedInterfaceValue

void Node::changedInterfaceValue ( const Interface & )
signal

◆ config()

void Node::config ( )
protected

Set various configurations.

This method sets the object name of instance. It contains the class name and an instance counter. The method also logs the creation of the object.

◆ getInterface()

Interface * Node::getInterface ( const QString & identifier)

Get an interface by its identifier.

This method returns a pointer to the interface with the given identifier, or nullptr if no such interface exists.

Parameters
identifierThe identifier of the interface to retrieve.
Returns
A pointer to the interface with the given identifier, or nullptr if no such interface exists.
See also
setInterfaces()
Interface

◆ getInterfaces()

QList< Interface > & Node::getInterfaces ( )
inline

Get the list of interfaces.

This method returns the reference to the interfaces of the node.

Returns
A reference to the list of interfaces.
See also
getInterface()
Interface

◆ isVisual()

virtual const bool Node::isVisual ( ) const
inlinevirtual

Checks if the node is a visual node.

This method returns true if the node is a visual node, false otherwise. Nodes are no visual nodes by default, so this method is overridden by the visual base class.

Returns
True if the node is a visual node, false otherwise.
See also
Visual

Reimplemented in Visual.

◆ positionHint()

QPoint Node::positionHint ( ) const
inline

Get the position hint.

This property is used to store the position hint of the node. It is used to position the node in the node editor or panel.

Returns
The position hint of the node.
See also
setPositionHint()

◆ positionHintChanged

void Node::positionHintChanged ( const QPoint position_hint)
signal

◆ setInterfaces()

void Node::setInterfaces ( const QList< Interface > & interfaces)
inline

◆ setPositionHint()

void Node::setPositionHint ( QPoint position_hint)

Set the position hint.

This property is used to store the position hint of the node. It is used to position the node in the node editor or panel.

Parameters
position_hintThe position hint of the node.
See also
positionHint()

Property Documentation

◆ name

QString Node::name

◆ position_hint

QPoint Node::position_hint
readwrite

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