MLABMatrixField Class Reference
[Fields]

A field containing a 4x4 matrix. More...

Inherits MLABField.

List of all members.

Public Slots

Scripting access
QVariantList matrixValue ()
void setMatrixValue (const QVariantList &value)
virtual void setStringValue (const QString &value)
void setValue (const QVariantList &value)
void setValue (const MLABMatrix4 &value)
double value (int i, int j)

Properties

QVariantList value


Detailed Description

A field containing a 4x4 matrix.

The "value" property of this field is an Array of 4 Arrays containing 4 double values

The value can be accessed via the value property or the matrixValue() method:

  var val = ctx.field("somematrix").value;
  for (i = 0;i<4;i++)
    for (j = 0;j<4;j++)
      MLAB.log(val[i][j]);

or as a string value (as 16 doubles separated with spaces):

  MLAB.log(ctx.field("somematrix").stringValue());

The value can be set via the value property or the matrixValue() method.


Member Function Documentation

QVariantList MLABMatrixField::matrixValue (  )  [slot]

get matrix value as list of 4 vectors

void MLABMatrixField::setMatrixValue ( const QVariantList &  value  )  [slot]

set matrix value as list of 4 vectors

virtual void MLABMatrixField::setStringValue ( const QString &   )  [virtual, slot]

set string value

Reimplemented from MLABField.

void MLABMatrixField::setValue ( const QVariantList &  value  )  [inline, slot]

set the matrix value

void MLABMatrixField::setValue ( const MLABMatrix4 &  value  )  [slot]

set the matrix value

double MLABMatrixField::value ( int  i,
int  j 
) [inline, slot]

get the matrix value at index ij


Property Documentation

QVariantList MLABMatrixField::value [read, write]

Value of matrix as a list of 4 vectors with 4 doubles.


Generated on Sat Sep 3 18:38:02 2011 for MeVisLab Scripting Reference by  doxygen 1.5.8