MeVisLab Scripting Reference
MLABNumberField Class Referenceabstract

#include <mlabNumberField.h>

Inherits MLABField.

Inherited by MLABDoubleField, MLABFloatField, and MLABIntegerField.

Public Slots

Scripting access.


virtual bool isIntegral ()
 
virtual double floatValue () const =0
 
virtual double doubleValue () const =0
 
virtual qint64 intValue () const =0
 
virtual void setFloatValue (double value)=0
 
virtual void setDoubleValue (double value)=0
 
virtual void setIntValue (qint64 value)=0
 
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 ()
 
virtual QString formattedStringValue (const QString &cformat)=0
 
- Public Slots inherited from MLABField
bool isInventorField ()
 
bool isMLField ()
 
QString getType () const
 
QString getName () const
 
virtual QString stringValue ()
 
virtual void setStringValue (const QString &)
 
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)
 
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)
 

Detailed Description

Base field for fields containing a single number.

Member Function Documentation

◆ doubleValue

virtual double MLABNumberField::doubleValue ( ) const
pure virtualslot

Returns the double value.

Implemented in MLABDoubleField, MLABFloatField, and MLABIntegerField.

◆ floatValue

virtual double MLABNumberField::floatValue ( ) const
pure virtualslot

Returns the float value (as double).

Implemented in MLABDoubleField, MLABFloatField, and MLABIntegerField.

◆ formattedStringValue

virtual QString MLABNumberField::formattedStringValue ( const QString & cformat)
pure virtualslot

Returns a formatted string value.

Implemented in MLABDoubleField, MLABFloatField, and MLABIntegerField.

◆ hasMaxValue

bool MLABNumberField::hasMaxValue ( )
slot

Returns whether this field has a max value.

◆ hasMinValue

bool MLABNumberField::hasMinValue ( )
slot

Returns whether this field has a min value.

◆ intValue

virtual qint64 MLABNumberField::intValue ( ) const
pure virtualslot

Returns the int value.

Implemented in MLABDoubleField, MLABFloatField, and MLABIntegerField.

◆ isIntegral

virtual bool MLABNumberField::isIntegral ( )
inlinevirtualslot

Returns whether the type is integral (otherwise it's float/double).

Reimplemented in MLABIntegerField.

◆ maxField

MLABNumberField * MLABNumberField::maxField ( )
slot

Returns the maximum field or NULL if none is attached.

◆ maxValue

double MLABNumberField::maxValue ( )
slot

Returns the max value if any is set (set via FieldValidator).

◆ maxValueExpression

QString MLABNumberField::maxValueExpression ( )
slot

Returns the source expression of the max value (either a number, a field name or an expression)

◆ minField

MLABNumberField * MLABNumberField::minField ( )
slot

Returns the minimum field or NULL if none is attached.

◆ minValue

double MLABNumberField::minValue ( )
slot

Returns the min value if any is set (set via FieldValidator).

◆ minValueExpression

QString MLABNumberField::minValueExpression ( )
slot

Returns the source expression of the min value (either a number, a field name or an expression)

◆ removeMaxValue

void MLABNumberField::removeMaxValue ( )
slot

Removes the maximum value/field.

◆ removeMinMaxValue

void MLABNumberField::removeMinMaxValue ( )
slot

Removes the min/max values/fields.

◆ removeMinValue

void MLABNumberField::removeMinValue ( )
slot

Removes the minimum value/field.

◆ setDoubleValue

virtual void MLABNumberField::setDoubleValue ( double value)
pure virtualslot

Sets the double value.

Implemented in MLABDoubleField, MLABFloatField, and MLABIntegerField.

◆ setFloatValue

virtual void MLABNumberField::setFloatValue ( double value)
pure virtualslot

Sets the float value (as double).

Implemented in MLABDoubleField, MLABFloatField, and MLABIntegerField.

◆ setIntValue

virtual void MLABNumberField::setIntValue ( qint64 value)
pure virtualslot

Sets the int value.

Implemented in MLABDoubleField, MLABFloatField, and MLABIntegerField.

◆ setMaxField

void MLABNumberField::setMaxField ( MLABNumberField * max)
slot

Sets the maximum value via a field.

◆ setMaxValue

void MLABNumberField::setMaxValue ( double max)
slot

Sets the maximum value.

◆ setMinField

void MLABNumberField::setMinField ( MLABNumberField * min)
slot

Sets the maximum value via a field.

◆ setMinMaxValue

void MLABNumberField::setMinMaxValue ( double min,
double max )
slot

Sets the minimum and the maximum value.

◆ setMinValue

void MLABNumberField::setMinValue ( double min)
slot

Sets the minimum value.