|
MeVisLab Scripting Reference
|
#include <mlabMLBaseField.h>
Inherits MLABField.
Public Slots | |
Scripting access. | |
| |
| QString | persistentString () |
| void | setPersistentString (const QString &string) |
| QString | getMLBaseType () |
| bool | isMLBaseDerivedFrom (const QString &parent) |
| QStringList | getMLBaseAncestors () |
| bool | isNull () const |
| QVariant | object () |
| void | setObject (MLRefCountedBaseWrapper *value) |
| void | setObject (PyObject *object) |
| void | updateObject (MLRefCountedBaseWrapper *value) |
| void | updateObject (PyObject *object) |
Type checking. | |
Returns a list of allowed types as strings. | |
| bool | matchesTypes (MLABMLBaseField *field) |
Public Slots inherited from MLABField | |
| bool | isInventorField () |
| bool | isMLField () |
| QString | getType () const |
| QString | getName () const |
| virtual QString | persistentStringValue () |
| virtual void | setPersistentStringValue (const QString &value) |
| QString | truncatedStringValue (int maxChars=80) |
| MLABFieldOwner * | owner () |
| MLABField * | connectedField () |
| MLABField * | inputField () |
| bool | isConnected () |
| bool | isConnectedToFieldInSameNetwork () |
| int | outputCount () |
| MLABField * | outputField (int index) |
| QList< MLABField * > | outputFields () |
| bool | connectFrom (MLABField *field) |
| void | disconnect () |
| void | disconnectOutputs () |
| void | disconnectAll () |
| bool | connectFromUndoable (MLABField *field) |
| virtual bool | isConnectionPossible (MLABField *field) |
| bool | isConnectionInSameNetworkPossible (MLABField *field) |
| bool | isInSameNetwork (MLABField *field) |
| virtual QString | toolTipInfo () |
| void | setPriority (int aPriority) |
| int | priority () |
| void | setProxy (bool flag) |
| bool | isProxy () |
| void | setComment (const QString &comment) |
| QString | comment () |
| void | setTitle (const QString &title) |
| QString | title () |
| QString | fullName () const |
| bool | isHidden () |
| void | setHidden (bool flag) |
| bool | isIgnored () |
| void | setIgnored (bool flag) |
| bool | isFilePath () |
| void | setIsFilePath (bool flag) |
| bool | isInterfaceField () |
| bool | isParameterField () |
| bool | isInput () |
| bool | isOutput () |
| bool | isInOut () |
| QString | infoString () |
| bool | isPersistent () const |
| bool | isEditable () const |
| bool | triggersLoading () const |
| void | setTriggersLoading (bool flag) |
Signals | |
| void | valueChanged () |
Public Member Functions | |
| void | setStringValue (const QString &) override |
| QString | stringValue () override |
| QString | stringValueForProfiling () override |
| void | touch () override |
A field containing a ML Base object pointer.
|
slot |
Returns a list of ancestors of the current base object, starting with the parent of the object.
|
slot |
Returns the type of the internal ML Base object, returns an empty string if there is no object set.
|
slot |
Returns whether the current ML Base object is derived from the given parent.
|
slot |
Return true if no Base object is set on this field.
|
slot |
Returns whether the allowed types of this field matches (intersects) the types of the given field.
|
slot |
Returns access to a scriptable base object (NOTE: this is only available if there is a CPPWrapperObject registered for the type of the contained ML Base object).
|
slot |
Returns the persistent string of the ML Base object.
|
slot |
Sets the pointer to the ML Base object (from a wrapped object).
|
slot |
Sets the pointer to the Python object.
|
slot |
Sets the persistent string of the ML Base object and touches it.
|
inlineoverridevirtual |
Sets the value of the field as a string value.
Reimplemented from MLABField.
|
inlineoverridevirtual |
Returns the value of the field as a string value.
Reimplemented from MLABField.
|
overridevirtual |
Returns the string value used for profiling, default returns the string value.
NOTE: be careful on how you re-implement this method in subclasses, since we do not want the profiling to cause side effects, e.g., changing the state of an ML image.
Reimplemented from MLABField.
|
overridevirtual |
Forces a notify to all observers without changing the value of the field.
Reimplemented from MLABField.
|
slot |
Sets the pointer to the M LBase object (from a wrapped object) if different from current object.
|
slot |
Sets the pointer to the Python object if different from current object.
|
signal |
Signal that is emitted when the field's value changes.