MeVisLab Scripting Reference
MLABStringField Class Reference
Inheritance diagram for MLABStringField:
MLABField

Public Slots

Scripting access.


void setValue (const QString &value)
 
void updateValue (const QString &value)
 
- Public Slots inherited from MLABField
bool isInventorField ()
 
bool isMLField ()
 
QString getType () const
 
QString getName () const
 
virtual QString stringValue ()
 
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

QString persistentStringValue () override
 
void setPersistentStringValue (const QString &value) override
 
void setStringValue (const QString &value) override
 

Detailed Description

A field containing a string value.

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

# getting value:
value = ctx.field("somefield").value
# setting value:
ctx.field("somefield").value = "Some string"

Member Function Documentation

◆ persistentStringValue()

QString MLABStringField::persistentStringValue ( )
overridevirtual

Returns the value of the field as a string value for persistence in network files (default implementation returns stringValue())

Reimplemented from MLABField.

◆ setPersistentStringValue()

void MLABStringField::setPersistentStringValue ( const QString &  value)
overridevirtual

Sets the value of the field from the persistent string value in a network file (default implementation uses setStringValue())

Reimplemented from MLABField.

◆ setStringValue()

void MLABStringField::setStringValue ( const QString &  )
overridevirtual

Sets the value of the field as a string value.

Reimplemented from MLABField.

◆ setValue

void MLABStringField::setValue ( const QString &  value)
slot

Sets the string value.

◆ updateValue

void MLABStringField::updateValue ( const QString &  value)
slot

Sets the string value if different from the current value.

◆ valueChanged

void MLABStringField::valueChanged ( )
signal

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