MeVisLab Scripting Reference
MLABIntegerListField Class Reference

#include <mlabIntegerListField.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< MLint > &value)
 
void updateListValue (const QVector< MLint > &value)
 

Signals

void valueChanged ()
 

Properties

QVector< qint64 > listValue
 
QString value
 

Detailed Description

A field containing a list of integers.

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

# getting value:
value = ctx.field("somefield").listValue
# setting value:
ctx.field("somefield").listValue = [42, 43, 44]
QString value
String value of the field (for backwards compatibility reasons).
Definition mlabIntegerListField.h:38

Member Function Documentation

◆ py_set_ndarray

void MLABIntegerListField::py_set_ndarray ( PyObject * value)
slot

Set value as a NumPy array.

◆ setListValue

void MLABIntegerListField::setListValue ( const QVector< MLint > & value)
inlineslot

Sets the int value.

◆ setValue

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

Sets the value as string (for backwards compatibility).

◆ updateListValue

void MLABIntegerListField::updateListValue ( const QVector< MLint > & value)
inlineslot

Sets the int value if different from the current value.

◆ updateValue

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

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

◆ valueChanged

void MLABIntegerListField::valueChanged ( )
signal

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

Property Documentation

◆ listValue

QVector<qint64> MLABIntegerListField::listValue
readwrite

Integer list value of the field.

◆ value

QString MLABIntegerListField::value
readwrite

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