Inherits MLABField.
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 |
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.
| 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] |
| 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
QVariantList MLABMatrixField::value [read, write] |
Value of matrix as a list of 4 vectors with 4 doubles.
1.5.8