MeVisLab Scripting Reference
MLABDoubleListField Class Reference

#include <mlabDoubleListField.h>

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 QVector< double > &value)
 
void updateListValue (const QVector< double > &value)
 

Signals

void valueChanged ()
 

Properties

QVector< double > listValue
 
QString value
 

Detailed Description

A field containing a list of doubles.

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

# getting value:
value = ctx.field("somefield").listValue
# setting value:
ctx.field("somefield").listValue = [42.1, 43.5, 44.0]
QString value
String value of the field (for backwards compatibility reasons).
Definition mlabDoubleListField.h:38

Member Function Documentation

◆ py_set_ndarray

void MLABDoubleListField::py_set_ndarray ( PyObject * value)
slot

Set value as a NumPy array.

◆ setListValue

void MLABDoubleListField::setListValue ( const QVector< double > & value)
inlineslot

Sets the int value.

◆ setValue

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

Sets the value as string (for backwards compatibility).

◆ updateListValue

void MLABDoubleListField::updateListValue ( const QVector< double > & value)
inlineslot

Sets the int value if different from the current value.

◆ updateValue

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

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

◆ valueChanged

void MLABDoubleListField::valueChanged ( )
signal

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

Property Documentation

◆ listValue

QVector<double> MLABDoubleListField::listValue
readwrite

Double list value of the field.

◆ value

QString MLABDoubleListField::value
readwrite

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