MeVisLab Scripting Reference
MLABVector3Field Class Reference

#include <mlabVector3Field.h>

Inherits MLABDoubleVectorField.

Inherited by MLABColorField.

Public Slots

Scripting access.
void setValue (double x, double y, double z)
void updateValue (double x, double y, double z)
SbVec3d inventorValue ()
void setValue (const SbVec3d &value)
void setValue (const SbVec3f &value)
void updateValue (const SbVec3d &value)
void updateValue (const SbVec3f &value)
Public Slots inherited from MLABBaseDoubleVectorField
virtual double value (int i)
virtual QString formattedStringValue (const QString &cformat, int i)
Public Slots inherited from MLABVectorField
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 ()
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)

Public Member Functions

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

Additional Inherited Members

Signals inherited from MLABDoubleVectorField
void valueChanged ()

Detailed Description

A field containing a vector of three doubles.

The 'value' property of this field is an array with three double values.

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

Member Function Documentation

◆ inventorValue

SbVec3d MLABVector3Field::inventorValue ( )
slot

Returns value as Inventor value.

◆ numPyValue()

QVariant MLABVector3Field::numPyValue ( ) const
overridevirtual

Returns the value as a 1D NumPy array.

Implements MLABVectorField.

◆ setStringValue()

void MLABVector3Field::setStringValue ( const QString & )
overridevirtual

Sets the value of the field as a string value.

Reimplemented from MLABField.

References setValue().

◆ setValue [1/3]

void MLABVector3Field::setValue ( const SbVec3d & value)
slot

Sets value from Inventor value.

◆ setValue [2/3]

void MLABVector3Field::setValue ( const SbVec3f & value)
slot

Sets value from Inventor value.

◆ setValue [3/3]

void MLABVector3Field::setValue ( double x,
double y,
double z )
slot

Sets the three double values of the vector.

Referenced by setStringValue().

◆ setVectorValue()

void MLABVector3Field::setVectorValue ( const QVariantList & value)
overridevirtual

Sets an array of double values.

Implements MLABVectorField.

◆ size()

int MLABVector3Field::size ( )
overridevirtual

Returns the size of the vector.

Implements MLABVectorField.

◆ updateValue [1/3]

void MLABVector3Field::updateValue ( const SbVec3d & value)
slot

Updates value from Inventor value.

◆ updateValue [2/3]

void MLABVector3Field::updateValue ( const SbVec3f & value)
slot

Updates value from Inventor value.

◆ updateValue [3/3]

void MLABVector3Field::updateValue ( double x,
double y,
double z )
slot

Sets the values if different from the current values.