![]() |
PeriDyno 1.2.1
|
#include <WtNodeWidget.h>
Public Member Functions | |
WtNodeWidget (std::shared_ptr< Node > base=nullptr) | |
virtual | ~WtNodeWidget () |
std::string | caption () const override |
std::string | name () const override |
Name makes this model unique. | |
std::string | nodeTips () const override |
std::string | portCaption (PortType portType, PortIndex portIndex) const override |
Port caption is used in GUI to label individual ports. | |
std::string | portTips (PortType portType, PortIndex portIndex) const override |
std::string | validationMessage () const override |
unsigned int | nPorts (PortType portType) const override |
bool | portCaptionVisible (PortType portType, PortIndex portIndex) const override |
It is possible to hide port caption in GUI. | |
bool | allowExported () const override |
bool | tryInData (PortIndex portIndex, std::shared_ptr< WtNodeData > nodeData) override |
To test whether nodaData can be set as the input data for portIndex. | |
void | setInData (std::shared_ptr< WtNodeData > data, PortIndex portIndex) override |
Triggers the algorithm. | |
NodeDataType | dataType (PortType portType, PortIndex portIndex) const override |
NodeValidationState | validationState () const override |
WtNodeDataModel::ConnectionPolicy | portInConnectionPolicy (PortIndex portIndex) const override |
std::shared_ptr< Node > | getNode () |
std::shared_ptr< WtNodeData > | 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. | |
![]() | |
WtNodeDataModel () | |
virtual | ~WtNodeDataModel ()=default |
virtual bool | captionVisible () const |
It is possible to hide caption in GUI. | |
virtual bool | hotkeyEnabled () const |
virtual ConnectionPolicy | portOutConnectionPolicy (PortIndex) const |
WtNodeStyle const & | nodeStyle () const |
void | setNodeStyle (WtNodeStyle const &style) |
virtual bool | resizable () const |
virtual WtNodePainterDelegate * | painterDelegate () const |
virtual void | inputConnectionCreated (WtConnection const &) |
virtual void | inputConnectionDeleted (WtConnection const &) |
virtual void | outputConnectionCreated (WtConnection const &) |
virtual void | outputConnectionDeleted (WtConnection const &) |
Protected Types | |
using | ExportNodePtr = std::shared_ptr<WtExportNode> |
using | ImportNodePtr = std::vector<std::shared_ptr<WtImportNode>> |
using | OutFieldPtr = std::vector<std::shared_ptr<WtFieldData>> |
using | InFieldPtr = std::vector<std::shared_ptr<WtFieldData>> |
Protected Member Functions | |
virtual void | updateModule () |
Protected Attributes | |
ImportNodePtr | mNodeInport |
ExportNodePtr | mNodeExport |
InFieldPtr | mFieldInport |
OutFieldPtr | mFieldExport |
std::shared_ptr< Node > | mNode = nullptr |
NodeValidationState | modelValidationState = NodeValidationState::Valid |
std::string | modelValidationError = std::string("Missing or incorrect inputs") |
Private Attributes | |
bool | mEditingEnabled = true |
Additional Inherited Members | |
![]() | |
enum class | ConnectionPolicy { One , Many } |
Definition at line 11 of file WtNodeWidget.h.
|
protected |
Definition at line 76 of file WtNodeWidget.h.
|
protected |
Definition at line 77 of file WtNodeWidget.h.
|
protected |
Definition at line 83 of file WtNodeWidget.h.
|
protected |
Definition at line 82 of file WtNodeWidget.h.
WtNodeWidget::WtNodeWidget | ( | std::shared_ptr< Node > | base = nullptr | ) |
|
virtual |
Definition at line 48 of file WtNodeWidget.cpp.
|
inlineoverridevirtual |
Reimplemented from WtNodeDataModel.
Definition at line 34 of file WtNodeWidget.h.
|
overridevirtual |
Implements WtNodeDataModel.
Definition at line 110 of file WtNodeWidget.cpp.
|
overridevirtual |
Implements WtNodeDataModel.
Definition at line 66 of file WtNodeWidget.cpp.
void WtNodeWidget::disableEditing | ( | ) |
When disabled, the scenegraph can not be affected by the corresponding GUI.
Definition at line 368 of file WtNodeWidget.cpp.
void WtNodeWidget::enableEditing | ( | ) |
When enabled, the scenegraph can be updated as long as the corresponding GUI is updated.
Definition at line 363 of file WtNodeWidget.cpp.
std::vector< FBase * > & WtNodeWidget::getInputFields | ( | ) | const |
std::shared_ptr< Node > WtNodeWidget::getNode | ( | ) |
std::vector< FBase * > & WtNodeWidget::getOutputFields | ( | ) | const |
|
overridevirtual |
Name makes this model unique.
Implements WtNodeDataModel.
Definition at line 115 of file WtNodeWidget.cpp.
|
overridevirtual |
Reimplemented from WtNodeDataModel.
Definition at line 121 of file WtNodeWidget.cpp.
|
overridevirtual |
Implements WtNodeDataModel.
Definition at line 50 of file WtNodeWidget.cpp.
|
overridevirtual |
Implements WtNodeDataModel.
Definition at line 105 of file WtNodeWidget.cpp.
Port caption is used in GUI to label individual ports.
Reimplemented from WtNodeDataModel.
Definition at line 132 of file WtNodeWidget.cpp.
It is possible to hide port caption in GUI.
Reimplemented from WtNodeDataModel.
Definition at line 126 of file WtNodeWidget.cpp.
|
overridevirtual |
Reimplemented from WtNodeDataModel.
Definition at line 324 of file WtNodeWidget.cpp.
Reimplemented from WtNodeDataModel.
Definition at line 164 of file WtNodeWidget.cpp.
|
overridevirtual |
Triggers the algorithm.
Implements WtNodeDataModel.
Definition at line 207 of file WtNodeWidget.cpp.
|
overridevirtual |
To test whether nodaData can be set as the input data for portIndex.
portIndex | Input index |
nodeData | Input data |
Reimplemented from WtNodeDataModel.
Definition at line 258 of file WtNodeWidget.cpp.
|
protectedvirtual |
|
overridevirtual |
Reimplemented from WtNodeDataModel.
Definition at line 343 of file WtNodeWidget.cpp.
|
overridevirtual |
Reimplemented from WtNodeDataModel.
Definition at line 319 of file WtNodeWidget.cpp.
|
private |
Definition at line 94 of file WtNodeWidget.h.
|
protected |
Definition at line 86 of file WtNodeWidget.h.
|
protected |
Definition at line 85 of file WtNodeWidget.h.
|
protected |
Definition at line 88 of file WtNodeWidget.h.
|
protected |
Definition at line 80 of file WtNodeWidget.h.
|
protected |
Definition at line 79 of file WtNodeWidget.h.
|
protected |
Definition at line 91 of file WtNodeWidget.h.
|
protected |
Definition at line 90 of file WtNodeWidget.h.