MeVisLab Scripting Reference
MLABVector4Field Class Reference

Inherits MLABDoubleVectorField.

Inherited by MLABPlaneField, and MLABRotationField.

Public Slots

Scripting access.
void setValue (double a, double b, double c, double d)
 
void updateValue (double a, double b, double c, double d)
 
SbVec4d inventorValue ()
 
void setValue (const SbVec4d &value)
 
void setValue (const SbVec4f &value)
 
void updateValue (const SbVec4d &value)
 
void updateValue (const SbVec4f &value)
 
- Public Slots inherited from MLABBaseDoubleVectorField
virtual double value (int i)
 
virtual QString formattedStringValue (const QString &cformat, int i)
 
- Public Slots inherited from MLABVectorField
virtual void setValue (const QVariantList &value)
 
void updateVectorValue (const QVariantList &value)
 
void updateValue (const QVariantList &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 isInterfaceField ()
 
bool isParameterField ()
 
bool isInput ()
 
bool isOutput ()
 
bool isInOut ()
 
QString infoString ()
 
bool isPersistent () const
 
bool isEditable () const
 
bool triggersLoading () const
 
void setTriggersLoading (bool flag)
 

Public Member Functions

virtual void setStringValue (const QString &value)
 
virtual void setVectorValue (const QVariantList &value)
 
virtual int size ()
 
- Public Member Functions inherited from MLABBaseDoubleVectorField
virtual QString componentStringValue (int i)
 
virtual QVariantList vectorValue ()
 

Detailed Description

A field containing a vector of 4 doubles.

The "value" property of this field is an array with four double values.

# getting value:
array = ctx.field("somefield").value
# setting value:
ctx.field("somefield").value = [1.,2.,3.,4.]

Member Function Documentation

SbVec4d MLABVector4Field::inventorValue ( )
slot

Get value as Inventor value.

virtual void MLABVector4Field::setStringValue ( const QString &  )
virtual

Sets the value of the field as a string value.

Reimplemented from MLABField.

void MLABVector4Field::setValue ( double  a,
double  b,
double  c,
double  d 
)
slot

Sets the 4 values of the vector.

void MLABVector4Field::setValue ( const SbVec4d &  value)
slot

Set value from Inventor value.

void MLABVector4Field::setValue ( const SbVec4f &  value)
slot

Set value from Inventor value.

virtual void MLABVector4Field::setVectorValue ( const QVariantList &  value)
virtual

Sets an array of double values.

Implements MLABVectorField.

virtual int MLABVector4Field::size ( )
virtual

Returns the size of the vector.

Implements MLABVectorField.

void MLABVector4Field::updateValue ( double  a,
double  b,
double  c,
double  d 
)
slot

Sets the values if different from the current values.

void MLABVector4Field::updateValue ( const SbVec4d &  value)
slot

Update value from Inventor value.

void MLABVector4Field::updateValue ( const SbVec4f &  value)
slot

Update value from Inventor value.