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

#include <QtModuleWidget.h>

Inheritance diagram for Qt::QtModuleWidget:
Collaboration diagram for Qt::QtModuleWidget:

Public Member Functions

 QtModuleWidget (std::shared_ptr< Module > base=nullptr)
 
virtual ~QtModuleWidget ()
 
QString caption () const override
 
bool captionVisible () const override
 whether to hide caption in GUI
 
QString name () const override
 
void setName (QString name)
 
QString portCaption (PortType portType, PortIndex portIndex) const override
 
QString nodeTips () const override
 
QString portTips (PortType portType, PortIndex portIndex) const override
 
QString validationMessage () const override
 
unsigned int nPorts (PortType portType) const override
 
bool hotkeyEnabled () const override
 
bool allowExported () const override
 
bool portCaptionVisible (PortType portType, PortIndex portIndex) const override
 
std::shared_ptr< QtNodeData > outData (PortIndex port) override
 
void setInData (std::shared_ptr< QtNodeData > data, PortIndex portIndex) override
 
bool tryInData (PortIndex portIndex, std::shared_ptr< QtNodeData > nodeData) override
 
NodeDataType dataType (PortType portType, PortIndex portIndex) const override
 
QWidget * embeddedWidget () override
 
NodeValidationState validationState () const override
 
std::shared_ptr< ModulegetModule ()
 
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 OutFieldPtr = std::vector<std::shared_ptr<QtFieldData>>
 
using InFieldPtr = std::vector<std::shared_ptr<QtFieldData>>
 

Protected Member Functions

virtual void updateModule ()
 

Protected Attributes

InFieldPtr input_fields
 
OutFieldPtr output_fields
 
QString m_name
 
std::shared_ptr< ModulemModule = nullptr
 
NodeValidationState modelValidationState = NodeValidationState::Warning
 
QString modelValidationError = QString("Missing or incorrect inputs")
 

Private Member Functions

FBasegetField (PortType portType, PortIndex portIndex) const
 
std::vector< FBase * > & getOutputFields ()
 
std::vector< FBase * > & getInputFields ()
 

Private Attributes

bool mEditingEnabled = true
 

Detailed Description

The model dictates the number of inputs and outputs for the Node. In this example it has no logic.

Definition at line 22 of file QtModuleWidget.h.

Member Typedef Documentation

◆ InFieldPtr

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

Definition at line 93 of file QtModuleWidget.h.

◆ OutFieldPtr

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

Definition at line 89 of file QtModuleWidget.h.

Constructor & Destructor Documentation

◆ QtModuleWidget()

Qt::QtModuleWidget::QtModuleWidget ( std::shared_ptr< Module > base = nullptr)

Definition at line 10 of file QtModuleWidget.cpp.

Here is the call graph for this function:

◆ ~QtModuleWidget()

virtual Qt::QtModuleWidget::~QtModuleWidget ( )
inlinevirtual

Definition at line 29 of file QtModuleWidget.h.

Member Function Documentation

◆ allowExported()

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

Definition at line 54 of file QtModuleWidget.h.

◆ caption()

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

Definition at line 81 of file QtModuleWidget.cpp.

Here is the call graph for this function:

◆ captionVisible()

bool Qt::QtModuleWidget::captionVisible ( ) const
override

whether to hide caption in GUI

Definition at line 87 of file QtModuleWidget.cpp.

◆ dataType()

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

Definition at line 57 of file QtModuleWidget.cpp.

Here is the call graph for this function:

◆ disableEditing()

void Qt::QtModuleWidget::disableEditing ( )

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

Definition at line 213 of file QtModuleWidget.cpp.

◆ embeddedWidget()

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

Definition at line 68 of file QtModuleWidget.h.

◆ enableEditing()

void Qt::QtModuleWidget::enableEditing ( )

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

Definition at line 208 of file QtModuleWidget.cpp.

◆ getField()

FBase * Qt::QtModuleWidget::getField ( PortType portType,
PortIndex portIndex ) const
private

Definition at line 244 of file QtModuleWidget.cpp.

Here is the caller graph for this function:

◆ getInputFields()

std::vector< FBase * > & Qt::QtModuleWidget::getInputFields ( )
private

Definition at line 254 of file QtModuleWidget.cpp.

Here is the caller graph for this function:

◆ getModule()

std::shared_ptr< Module > Qt::QtModuleWidget::getModule ( )

Definition at line 203 of file QtModuleWidget.cpp.

Here is the caller graph for this function:

◆ getOutputFields()

std::vector< FBase * > & Qt::QtModuleWidget::getOutputFields ( )
private

Definition at line 249 of file QtModuleWidget.cpp.

Here is the caller graph for this function:

◆ hotkeyEnabled()

bool Qt::QtModuleWidget::hotkeyEnabled ( ) const
inlineoverride

Definition at line 52 of file QtModuleWidget.h.

◆ name()

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

Definition at line 92 of file QtModuleWidget.cpp.

Here is the caller graph for this function:

◆ nodeTips()

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

Definition at line 111 of file QtModuleWidget.cpp.

Here is the call graph for this function:

◆ nPorts()

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

Definition at line 40 of file QtModuleWidget.cpp.

◆ outData()

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

Definition at line 67 of file QtModuleWidget.cpp.

◆ portCaption()

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

Definition at line 103 of file QtModuleWidget.cpp.

Here is the call graph for this function:

◆ portCaptionVisible()

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

Definition at line 97 of file QtModuleWidget.cpp.

◆ portTips()

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

Definition at line 116 of file QtModuleWidget.cpp.

Here is the call graph for this function:

◆ setInData()

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

Definition at line 131 of file QtModuleWidget.cpp.

Here is the call graph for this function:

◆ setName()

void Qt::QtModuleWidget::setName ( QString name)
inline

Definition at line 39 of file QtModuleWidget.h.

Here is the call graph for this function:

◆ tryInData()

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

Definition at line 156 of file QtModuleWidget.cpp.

Here is the call graph for this function:

◆ updateModule()

void Qt::QtModuleWidget::updateModule ( )
protectedvirtual

Definition at line 223 of file QtModuleWidget.cpp.

Here is the caller graph for this function:

◆ validationMessage()

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

Definition at line 218 of file QtModuleWidget.cpp.

◆ validationState()

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

Definition at line 198 of file QtModuleWidget.cpp.

Member Data Documentation

◆ input_fields

InFieldPtr Qt::QtModuleWidget::input_fields
protected

Definition at line 94 of file QtModuleWidget.h.

◆ m_name

QString Qt::QtModuleWidget::m_name
protected

Definition at line 97 of file QtModuleWidget.h.

◆ mEditingEnabled

bool Qt::QtModuleWidget::mEditingEnabled = true
private

Definition at line 112 of file QtModuleWidget.h.

◆ mModule

std::shared_ptr<Module> Qt::QtModuleWidget::mModule = nullptr
protected

Definition at line 99 of file QtModuleWidget.h.

◆ modelValidationError

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

Definition at line 102 of file QtModuleWidget.h.

◆ modelValidationState

NodeValidationState Qt::QtModuleWidget::modelValidationState = NodeValidationState::Warning
protected

Definition at line 101 of file QtModuleWidget.h.

◆ output_fields

OutFieldPtr Qt::QtModuleWidget::output_fields
protected

Definition at line 95 of file QtModuleWidget.h.


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