![]() |
PeriDyno 1.2.1
|
#include <QtModuleWidget.h>


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 | allowImported () 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 |
| QtNodeDataModel::ConnectionPolicy | portInConnectionPolicy (PortIndex portIndex) const override |
| std::shared_ptr< Module > | getModule () |
| 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 | ImportModulePtr = std::vector<std::shared_ptr<QtImportModule>> |
| using | ExportModulePtr = std::shared_ptr<QtExportModule> |
| using | OutFieldPtr = std::vector<std::shared_ptr<QtFieldData>> |
| using | InFieldPtr = std::vector<std::shared_ptr<QtFieldData>> |
Protected Member Functions | |
| virtual void | updateModule () |
Protected Attributes | |
| ImportModulePtr | mModuleImports |
| ExportModulePtr | mModuleExport |
| InFieldPtr | input_fields |
| OutFieldPtr | output_fields |
| QString | m_name |
| std::shared_ptr< Module > | mModule = nullptr |
| NodeValidationState | modelValidationState = NodeValidationState::Warning |
| QString | modelValidationError = QString("Missing or incorrect inputs") |
Private Member Functions | |
| FBase * | getField (PortType portType, PortIndex portIndex) const |
| std::vector< FBase * > & | getOutputFields () |
| std::vector< FBase * > & | getInputFields () |
Private Attributes | |
| bool | mEditingEnabled = true |
The model dictates the number of inputs and outputs for the Node. In this example it has no logic.
Definition at line 24 of file QtModuleWidget.h.
|
protected |
Definition at line 95 of file QtModuleWidget.h.
|
protected |
Definition at line 94 of file QtModuleWidget.h.
|
protected |
Definition at line 104 of file QtModuleWidget.h.
|
protected |
Definition at line 100 of file QtModuleWidget.h.
| Qt::QtModuleWidget::QtModuleWidget | ( | std::shared_ptr< Module > | base = nullptr | ) |
|
inlinevirtual |
Definition at line 31 of file QtModuleWidget.h.
|
inlineoverride |
Definition at line 57 of file QtModuleWidget.h.
|
inlineoverride |
|
override |
|
override |
whether to hide caption in GUI
Definition at line 137 of file QtModuleWidget.cpp.
|
override |
| void Qt::QtModuleWidget::disableEditing | ( | ) |
When disabled, the scenegraph can not be affected by the corresponding GUI.
Definition at line 390 of file QtModuleWidget.cpp.
|
inlineoverride |
Definition at line 71 of file QtModuleWidget.h.
| void Qt::QtModuleWidget::enableEditing | ( | ) |
When enabled, the scenegraph can be updated as long as the corresponding GUI is updated.
Definition at line 385 of file QtModuleWidget.cpp.
|
private |
| std::shared_ptr< Module > Qt::QtModuleWidget::getModule | ( | ) |
|
private |
|
inlineoverride |
Definition at line 54 of file QtModuleWidget.h.
|
override |
|
override |
|
override |
Definition at line 51 of file QtModuleWidget.cpp.
|
override |
Definition at line 112 of file QtModuleWidget.cpp.
|
override |
Definition at line 147 of file QtModuleWidget.cpp.
|
override |
Definition at line 364 of file QtModuleWidget.cpp.
|
override |
|
inline |
|
override |
|
protectedvirtual |
|
override |
Definition at line 395 of file QtModuleWidget.cpp.
|
override |
Definition at line 359 of file QtModuleWidget.cpp.
|
protected |
Definition at line 105 of file QtModuleWidget.h.
|
protected |
Definition at line 108 of file QtModuleWidget.h.
|
private |
Definition at line 123 of file QtModuleWidget.h.
|
protected |
Definition at line 110 of file QtModuleWidget.h.
|
protected |
Definition at line 98 of file QtModuleWidget.h.
|
protected |
Definition at line 97 of file QtModuleWidget.h.
|
protected |
Definition at line 113 of file QtModuleWidget.h.
|
protected |
Definition at line 112 of file QtModuleWidget.h.
|
protected |
Definition at line 106 of file QtModuleWidget.h.