MeVisLab Scripting Reference
MLABFloatField Class Reference
Inheritance diagram for MLABFloatField:
MLABNumberField MLABField

Public Slots

Scripting access.


void setValue (double value)
 
void updateValue (double value)
 
- Public Slots inherited from MLABNumberField
virtual bool isIntegral ()
 
double minValue ()
 
double maxValue ()
 
bool hasMinValue ()
 
bool hasMaxValue ()
 
MLABNumberFieldminField ()
 
MLABNumberFieldmaxField ()
 
void setMinValue (double min)
 
void setMaxValue (double max)
 
void setMinMaxValue (double min, double max)
 
void setMinField (MLABNumberField *min)
 
void setMaxField (MLABNumberField *max)
 
void removeMinValue ()
 
void removeMaxValue ()
 
void removeMinMaxValue ()
 
QString minValueExpression ()
 
QString maxValueExpression ()
 
- Public Slots inherited from MLABField
bool isInventorField ()
 
bool isMLField ()
 
QString getType () const
 
QString getName () const
 
virtual QString stringValue ()
 
virtual QString persistentStringValue ()
 
virtual void setPersistentStringValue (const QString &value)
 
QString truncatedStringValue (int maxChars=80)
 
virtual QString stringValueForProfiling ()
 
virtual void touch ()
 
MLABFieldOwnerowner ()
 
MLABFieldconnectedField ()
 
MLABFieldinputField ()
 
bool isConnected ()
 
bool isConnectedToFieldInSameNetwork ()
 
int outputCount ()
 
MLABFieldoutputField (int index)
 
QList< MLABField * > outputFields ()
 
bool connectFrom (MLABField *field)
 
void disconnect ()
 
void disconnectOutputs ()
 
void disconnectAll ()
 
bool connectFromUndoable (MLABField *field)
 
void disconnectUndoable ()
 
void disconnectOutputsUndoable ()
 
void disconnectAllUndoable ()
 
virtual bool isConnectionPossible (MLABField *field)
 
bool isConnectionInSameNetworkPossible (MLABField *field)
 
bool isInSameNetwork (MLABField *field)
 
virtual QString toolTipInfo ()
 
void setPriority (int aPriority)
 
int priority ()
 
void setProxy (bool flag)
 
bool isProxy ()
 
void setComment (const QString &comment)
 
QString comment ()
 
void setTitle (const QString &title)
 
QString title ()
 
QString fullName () const
 
bool isHidden ()
 
void setHidden (bool flag)
 
bool isIgnored ()
 
void setIgnored (bool flag)
 
bool isFilePath ()
 
void setIsFilePath (bool flag)
 
bool isInterfaceField ()
 
bool isParameterField ()
 
bool isInput ()
 
bool isOutput ()
 
bool isInOut ()
 
QString infoString ()
 
bool isPersistent () const
 
bool isEditable () const
 
bool triggersLoading () const
 
void setTriggersLoading (bool flag)
 

Signals

void valueChanged ()
 

Public Member Functions

double doubleValue () const override
 
double floatValue () const override
 
QString formattedStringValue (const QString &cformat) override
 
qint64 intValue () const override
 
void setDoubleValue (double value) override
 
void setFloatValue (double value) override
 
void setIntValue (qint64 value) override
 
void setStringValue (const QString &value) override
 

Properties

double value
 

Detailed Description

A field containing a float value.

The "value" property of this field is a float value.

# getting value:
value = ctx.field("somefield").value
# setting value:
ctx.field("somefield").value = 47.11
double value
Float value of the field.
Definition: mlabFloatField.h:37

Member Function Documentation

◆ doubleValue()

double MLABFloatField::doubleValue ( ) const
inlineoverridevirtual

Returns the double value.

Implements MLABNumberField.

◆ floatValue()

double MLABFloatField::floatValue ( ) const
inlineoverridevirtual

Returns the float value (as double).

Implements MLABNumberField.

◆ formattedStringValue()

QString MLABFloatField::formattedStringValue ( const QString &  cformat)
overridevirtual

Returns a formatted string value.

Implements MLABNumberField.

◆ intValue()

qint64 MLABFloatField::intValue ( ) const
inlineoverridevirtual

Returns the int value.

Implements MLABNumberField.

◆ setDoubleValue()

void MLABFloatField::setDoubleValue ( double  value)
inlineoverridevirtual

Sets the double value.

Implements MLABNumberField.

◆ setFloatValue()

void MLABFloatField::setFloatValue ( double  value)
inlineoverridevirtual

Sets the float value (as double).

Implements MLABNumberField.

◆ setIntValue()

void MLABFloatField::setIntValue ( qint64  value)
inlineoverridevirtual

Sets the int value.

Implements MLABNumberField.

◆ setStringValue()

void MLABFloatField::setStringValue ( const QString &  )
overridevirtual

Sets the value of the field as a string value.

Reimplemented from MLABField.

◆ setValue

void MLABFloatField::setValue ( double  value)
slot

Sets the float value as double.

◆ updateValue

void MLABFloatField::updateValue ( double  value)
slot

Sets the float value as double if different from the current value.

◆ valueChanged

void MLABFloatField::valueChanged ( )
signal

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

Property Documentation

◆ value

double MLABFloatField::value
readwrite

Float value of the field.

(Historically, this returns double instead of float because QSA supported only double.)