MeVisLab Scripting Reference
MLABVector2ListField 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 Vector2.

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

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

Member Function Documentation

◆ py_set_ndarray

void MLABVector2ListField::py_set_ndarray ( PyObject *  value)
slot

Set value as a NumPy array.

◆ setListValue

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

Sets the int value.

◆ setValue

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

Sets the value as string (for backwards compatibility).

◆ updateListValue

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

Sets the int value if different from the current value.

◆ updateValue

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

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

◆ valueChanged

void MLABVector2ListField::valueChanged ( )
signal

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

Property Documentation

◆ listValue

QVariantList MLABVector2ListField::listValue
readwrite

Vector2 list value of the field.

◆ value

QString MLABVector2ListField::value
readwrite

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