|
Developer Documentation
|
#include <Plugin-VSI/scene/elementInput.hh>
Public Member Functions | |
| ElementInput (Input *_in, SceneElement *_parent) | |
| Constructor. | |
| ~ElementInput () | |
| Destructor. | |
| Type | type () const override |
| Type (=Input) | |
| void | setValid (bool _value) |
| Sets the valid flag (needed during code generation) | |
| bool | valid () |
| Returns state of valid flag (needed during code generation) | |
| void | setValue (const QString &_value) |
| Set to a user value. | |
| QString | value () const |
| Returns value set by user. | |
| void | addConnection (Connection *_conn) override |
| Add connection. | |
| void | removeConnection (Connection *_conn) override |
| Remove connection. | |
| void | set (bool _set) |
| "Set" flag to mark input as set by user | |
| bool | isSet () |
| Return "set" flag. | |
| void | setForceAsk (bool _set) |
| "ForceAsk" flag to mark an optional input for asking during script execution | |
| bool | isForceAskSet () const |
| Return "ForceAsk" flag. | |
| unsigned int | state () |
| VSI::Input state passthrough. | |
| void | saveToXml (QDomDocument &_doc, QDomElement &_root) |
| Save to xml. | |
| void | loadElementInputFromXml (QDomElement &_domElement) |
| Load from xml. | |
Public Member Functions inherited from VSI::ElementInOut | |
| ElementInOut (InOut *_io, SceneElement *_parent) | |
| Constructor. | |
| virtual | ~ElementInOut () |
| Destructor. | |
| ConnectionPoint * | connectionPointItem () const |
| Connection point widget. | |
| Text * | typeTextItem () const |
| Type text widget. | |
| Text * | descriptionTextItem () const |
| Short description widget. | |
| QList< Connection * > | connections () const |
| Connections. | |
| bool | validConnection (ElementInOut *_e) |
| Can this input/output be connected to _e. | |
| InOut * | inOut () const |
| InOut context object. | |
| SceneElement * | element () |
| Scene element. | |
Private Attributes | |
| Input * | in_ |
| bool | valid_ |
| bool | isSet_ |
| QString | value_ |
| bool | forceAsk_ |
Additional Inherited Members | |
Public Types inherited from VSI::ElementInOut | |
| enum | Type { TypeInput , TypeOutput } |
| Type. More... | |
Class for inputs of a scene element. It handles all the different ways of input (connection to an output, user configured during script creation, asking user during script execution, optional)
Definition at line 66 of file elementInput.hh.
| VSI::ElementInput::ElementInput | ( | Input * | _in, |
| SceneElement * | _parent | ||
| ) |
Constructor.
Definition at line 67 of file elementInput.cc.
| VSI::ElementInput::~ElementInput | ( | ) |
Destructor.
Definition at line 107 of file elementInput.cc.
|
overridevirtual |
Add connection.
Reimplemented from VSI::ElementInOut.
Definition at line 136 of file elementInput.cc.
|
inline |
Return "ForceAsk" flag.
Definition at line 107 of file elementInput.hh.
| bool VSI::ElementInput::isSet | ( | ) |
Return "set" flag.
Definition at line 199 of file elementInput.cc.
| void VSI::ElementInput::loadElementInputFromXml | ( | QDomElement & | _domElement | ) |
Load from xml.
Definition at line 255 of file elementInput.cc.
|
overridevirtual |
Remove connection.
Reimplemented from VSI::ElementInOut.
Definition at line 147 of file elementInput.cc.
| void VSI::ElementInput::saveToXml | ( | QDomDocument & | _doc, |
| QDomElement & | _root | ||
| ) |
Save to xml.
Definition at line 210 of file elementInput.cc.
| void VSI::ElementInput::set | ( | bool | _set | ) |
"Set" flag to mark input as set by user
Definition at line 172 of file elementInput.cc.
|
inline |
"ForceAsk" flag to mark an optional input for asking during script execution
Definition at line 104 of file elementInput.hh.
|
inline |
Sets the valid flag (needed during code generation)
Definition at line 80 of file elementInput.hh.
| void VSI::ElementInput::setValue | ( | const QString & | _value | ) |
Set to a user value.
Definition at line 290 of file elementInput.cc.
| unsigned int VSI::ElementInput::state | ( | ) |
VSI::Input state passthrough.
Definition at line 128 of file elementInput.cc.
|
inlineoverridevirtual |
| bool VSI::ElementInput::valid | ( | ) |
Returns state of valid flag (needed during code generation)
Definition at line 114 of file elementInput.cc.
|
inline |
Returns value set by user.
Definition at line 89 of file elementInput.hh.
|
private |
Definition at line 127 of file elementInput.hh.
|
private |
Definition at line 119 of file elementInput.hh.
|
private |
Definition at line 124 of file elementInput.hh.
|
private |
Definition at line 122 of file elementInput.hh.
|
private |
Definition at line 125 of file elementInput.hh.