MeVisLab Scripting Reference
|
Public Slots | |
virtual void | copyProperties (QObject *wrapper) |
QVariantMap | getProperties () |
QVariant | getProperty (const QString &name) |
void | setProperty (const QString &name, QVariant value) |
size_t | getPropertyIndex (const QString &name) |
QVariant | getProperty (size_t index) |
void | setProperty (size_t index, QVariant value) |
size_t | createPropertyDouble (const QString &name, double defaultValue) |
size_t | createPropertyUInt8 (const QString &name, long defaultValue) |
size_t | createPropertyInt32 (const QString &name, long defaultValue) |
size_t | createPropertyVector3 (const QString &name, QVariantList pos) |
void | removeProperty (const QString &name) |
Properties | |
QVariantMap | properties |
A class that wraps PropertyContainer objects for use in scripting.
Properties are a general approach to attach various data to the objects in a graph. Note that these are no Qt properties and must always be accessed with getProperty() or other methods of this class.
|
virtualslot |
Copies all properties from the given object.
|
inlineslot |
Creates a new property with the given name and default value, returns the index of this property.
This does not set the property on the given object, this just reserves a slot on the property manager.
|
inlineslot |
Same as above for signed 32-bit integer value.
|
inlineslot |
Same as above for unsigned 8-bit integer value.
|
inlineslot |
Same as above for 3D position (given as [x, y, z]).
|
slot |
Returns all properties of this object.
|
inlineslot |
Returns the value of the property with the given name.
References getProperty().
Referenced by getProperty().
|
inlineslot |
Returns the value of the property value with the given index.
|
inlineslot |
Returns the index of the property with given name.
The index is constant across objects of the same type, and can be used to speed up the access across many object.
|
inlineslot |
Removes a property with the given name
name
.
|
inlineslot |
Sets the value of the property with the given name.
References setProperty().
Referenced by setProperty().
|
inlineslot |
Sets the value of the property value with the given index.
|
read |
The properties of this object (read-only).