MeVisLab Scripting Reference
MLABVector4ListField Class Reference

Inherits MLABListField< T >.

Public Slots

void py_set_ndarray (PyObject *value)
 
Scripting access.


void setValue (const QString &value)
 
void updateValue (const QString &value)
 
void setListValue (const QVariantList &value)
 
void updateListValue (const QVariantList &value)
 

Signals

void valueChanged ()
 

Properties

QVariantList listValue
 
QString value
 

Detailed Description

A field containing a list of Vector4.

The "listValue" property of this field is a list of double value quadruples.

# getting value:
value = ctx.field("somefield").listValue
# setting value:
ctx.field("somefield").listValue = [[42.0, 43.13, -41.6, 5.0], [44.2, -13.5, 5.6, 100.8]]
QString value
String value of the field (for backwards compatibility reasons).
Definition: mlabVector4ListField.h:38

Member Function Documentation

◆ py_set_ndarray

void MLABVector4ListField::py_set_ndarray ( PyObject *  value)
slot

Set value as a NumPy array.

◆ setListValue

void MLABVector4ListField::setListValue ( const QVariantList &  value)
slot

Sets the int value.

◆ setValue

void MLABVector4ListField::setValue ( const QString &  value)
inlineslot

Sets the value as string (for backwards compatibility).

◆ updateListValue

void MLABVector4ListField::updateListValue ( const QVariantList &  value)
slot

Sets the int value if different from the current value.

◆ updateValue

void MLABVector4ListField::updateValue ( const QString &  value)
inlineslot

Sets the value as string if different from the current value.

◆ valueChanged

void MLABVector4ListField::valueChanged ( )
signal

Signal that is emitted when the field's value changes.

Property Documentation

◆ listValue

QVariantList MLABVector4ListField::listValue
readwrite

Vector4 list value of the field.

◆ value

QString MLABVector4ListField::value
readwrite

String value of the field (for backwards compatibility reasons).