PeriDyno 1.0.0
Loading...
Searching...
No Matches
Qt::QtNodeWidget Class Reference

The model dictates the number of inputs and outputs for the Node. More...

#include <QtNodeWidget.h>

Inheritance diagram for Qt::QtNodeWidget:
Collaboration diagram for Qt::QtNodeWidget:

Public Member Functions

 QtNodeWidget (std::shared_ptr< Node > base=nullptr)
 
virtual ~QtNodeWidget ()
 
QString caption () const override
 
QString name () const override
 
QString nodeTips () const override
 
QString portCaption (PortType portType, PortIndex portIndex) const override
 
QString portTips (PortType portType, PortIndex portIndex) const override
 
QString validationMessage () const override
 
unsigned int nPorts (PortType portType) const override
 
bool portCaptionVisible (PortType portType, PortIndex portIndex) const override
 
bool allowExported () const override
 
bool hotKey0Checked () const override
 
bool hotKey1Checked () const override
 
bool tryInData (PortIndex portIndex, std::shared_ptr< QtNodeData > nodeData) override
 To test whether nodaData can be set as the input data for portIndex.
 
void setInData (std::shared_ptr< QtNodeData > data, PortIndex portIndex) override
 
NodeDataType dataType (PortType portType, PortIndex portIndex) const override
 
QWidget * embeddedWidget () override
 
NodeValidationState validationState () const override
 
QtNodeDataModel::ConnectionPolicy portInConnectionPolicy (PortIndex portIndex) const override
 
std::shared_ptr< NodegetNode ()
 
std::shared_ptr< QtNodeData > outData (PortIndex port) override
 
std::vector< FBase * > & getOutputFields () const
 
std::vector< FBase * > & getInputFields () const
 
void enableEditing ()
 When enabled, the scenegraph can be updated as long as the corresponding GUI is updated.
 
void disableEditing ()
 When disabled, the scenegraph can not be affected by the corresponding GUI.
 

Protected Types

using ExportNodePtr = std::shared_ptr<QtExportNode>
 
using ImportNodePtr = std::vector<std::shared_ptr<QtImportNode>>
 
using OutFieldPtr = std::vector<std::shared_ptr<QtFieldData>>
 
using InFieldPtr = std::vector<std::shared_ptr<QtFieldData>>
 

Protected Member Functions

virtual void updateModule ()
 

Protected Attributes

ImportNodePtr mNodeInport
 
ExportNodePtr mNodeExport
 
InFieldPtr mFieldInport
 
OutFieldPtr mFieldExport
 
std::shared_ptr< NodemNode = nullptr
 
NodeValidationState modelValidationState = NodeValidationState::Valid
 
QString modelValidationError = QString("Missing or incorrect inputs")
 

Private Attributes

bool mEditingEnabled = true
 

Detailed Description

The model dictates the number of inputs and outputs for the Node.

Definition at line 21 of file QtNodeWidget.h.

Member Typedef Documentation

◆ ExportNodePtr

using Qt::QtNodeWidget::ExportNodePtr = std::shared_ptr<QtExportNode>
protected

Definition at line 95 of file QtNodeWidget.h.

◆ ImportNodePtr

using Qt::QtNodeWidget::ImportNodePtr = std::vector<std::shared_ptr<QtImportNode>>
protected

Definition at line 96 of file QtNodeWidget.h.

◆ InFieldPtr

using Qt::QtNodeWidget::InFieldPtr = std::vector<std::shared_ptr<QtFieldData>>
protected

Definition at line 102 of file QtNodeWidget.h.

◆ OutFieldPtr

using Qt::QtNodeWidget::OutFieldPtr = std::vector<std::shared_ptr<QtFieldData>>
protected

Definition at line 101 of file QtNodeWidget.h.

Constructor & Destructor Documentation

◆ QtNodeWidget()

Qt::QtNodeWidget::QtNodeWidget ( std::shared_ptr< Node > base = nullptr)

Definition at line 16 of file QtNodeWidget.cpp.

Here is the call graph for this function:

◆ ~QtNodeWidget()

Qt::QtNodeWidget::~QtNodeWidget ( )
virtual

Definition at line 55 of file QtNodeWidget.cpp.

Member Function Documentation

◆ allowExported()

bool Qt::QtNodeWidget::allowExported ( ) const
inlineoverride

Definition at line 48 of file QtNodeWidget.h.

◆ caption()

QString Qt::QtNodeWidget::caption ( ) const
override

Definition at line 125 of file QtNodeWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dataType()

NodeDataType Qt::QtNodeWidget::dataType ( PortType portType,
PortIndex portIndex ) const
override

Definition at line 76 of file QtNodeWidget.cpp.

Here is the call graph for this function:

◆ disableEditing()

void Qt::QtNodeWidget::disableEditing ( )

When disabled, the scenegraph can not be affected by the corresponding GUI.

Definition at line 384 of file QtNodeWidget.cpp.

◆ embeddedWidget()

QWidget * Qt::QtNodeWidget::embeddedWidget ( )
inlineoverride

Definition at line 68 of file QtNodeWidget.h.

◆ enableEditing()

void Qt::QtNodeWidget::enableEditing ( )

When enabled, the scenegraph can be updated as long as the corresponding GUI is updated.

Definition at line 379 of file QtNodeWidget.cpp.

◆ getInputFields()

std::vector< FBase * > & Qt::QtNodeWidget::getInputFields ( ) const

Definition at line 374 of file QtNodeWidget.cpp.

Here is the caller graph for this function:

◆ getNode()

std::shared_ptr< Node > Qt::QtNodeWidget::getNode ( )

Definition at line 354 of file QtNodeWidget.cpp.

Here is the caller graph for this function:

◆ getOutputFields()

std::vector< FBase * > & Qt::QtNodeWidget::getOutputFields ( ) const

Definition at line 369 of file QtNodeWidget.cpp.

Here is the caller graph for this function:

◆ hotKey0Checked()

bool Qt::QtNodeWidget::hotKey0Checked ( ) const
inlineoverride

Definition at line 50 of file QtNodeWidget.h.

◆ hotKey1Checked()

bool Qt::QtNodeWidget::hotKey1Checked ( ) const
inlineoverride

Definition at line 52 of file QtNodeWidget.h.

◆ name()

QString Qt::QtNodeWidget::name ( ) const
override

Definition at line 130 of file QtNodeWidget.cpp.

Here is the call graph for this function:

◆ nodeTips()

QString Qt::QtNodeWidget::nodeTips ( ) const
override

Definition at line 136 of file QtNodeWidget.cpp.

Here is the call graph for this function:

◆ nPorts()

unsigned int Qt::QtNodeWidget::nPorts ( PortType portType) const
override

Definition at line 60 of file QtNodeWidget.cpp.

◆ outData()

std::shared_ptr< QtNodeData > Qt::QtNodeWidget::outData ( PortIndex port)
override

Definition at line 115 of file QtNodeWidget.cpp.

◆ portCaption()

QString Qt::QtNodeWidget::portCaption ( PortType portType,
PortIndex portIndex ) const
override

Definition at line 147 of file QtNodeWidget.cpp.

Here is the call graph for this function:

◆ portCaptionVisible()

bool Qt::QtNodeWidget::portCaptionVisible ( PortType portType,
PortIndex portIndex ) const
override

Definition at line 141 of file QtNodeWidget.cpp.

◆ portInConnectionPolicy()

QtNodeDataModel::ConnectionPolicy Qt::QtNodeWidget::portInConnectionPolicy ( PortIndex portIndex) const
override

Definition at line 340 of file QtNodeWidget.cpp.

◆ portTips()

QString Qt::QtNodeWidget::portTips ( PortType portType,
PortIndex portIndex ) const
override

Definition at line 179 of file QtNodeWidget.cpp.

Here is the call graph for this function:

◆ setInData()

void Qt::QtNodeWidget::setInData ( std::shared_ptr< QtNodeData > data,
PortIndex portIndex )
override

Definition at line 222 of file QtNodeWidget.cpp.

Here is the call graph for this function:

◆ tryInData()

bool Qt::QtNodeWidget::tryInData ( PortIndex portIndex,
std::shared_ptr< QtNodeData > nodeData )
override

To test whether nodaData can be set as the input data for portIndex.

Parameters
portIndexInput index
nodeDataInput data
Returns
true
false

Definition at line 274 of file QtNodeWidget.cpp.

Here is the call graph for this function:

◆ updateModule()

void Qt::QtNodeWidget::updateModule ( )
protectedvirtual

Definition at line 364 of file QtNodeWidget.cpp.

Here is the caller graph for this function:

◆ validationMessage()

QString Qt::QtNodeWidget::validationMessage ( ) const
override

Definition at line 359 of file QtNodeWidget.cpp.

◆ validationState()

NodeValidationState Qt::QtNodeWidget::validationState ( ) const
override

Definition at line 335 of file QtNodeWidget.cpp.

Member Data Documentation

◆ mEditingEnabled

bool Qt::QtNodeWidget::mEditingEnabled = true
private

Definition at line 113 of file QtNodeWidget.h.

◆ mFieldExport

OutFieldPtr Qt::QtNodeWidget::mFieldExport
protected

Definition at line 105 of file QtNodeWidget.h.

◆ mFieldInport

InFieldPtr Qt::QtNodeWidget::mFieldInport
protected

Definition at line 104 of file QtNodeWidget.h.

◆ mNode

std::shared_ptr<Node> Qt::QtNodeWidget::mNode = nullptr
protected

Definition at line 107 of file QtNodeWidget.h.

◆ mNodeExport

ExportNodePtr Qt::QtNodeWidget::mNodeExport
protected

Definition at line 99 of file QtNodeWidget.h.

◆ mNodeInport

ImportNodePtr Qt::QtNodeWidget::mNodeInport
protected

Definition at line 98 of file QtNodeWidget.h.

◆ modelValidationError

QString Qt::QtNodeWidget::modelValidationError = QString("Missing or incorrect inputs")
protected

Definition at line 110 of file QtNodeWidget.h.

◆ modelValidationState

NodeValidationState Qt::QtNodeWidget::modelValidationState = NodeValidationState::Valid
protected

Definition at line 109 of file QtNodeWidget.h.


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