| 1 |
NAME SoSFMatrix SoSMatrix "" { |
| 2 |
field containing a 4x4 matrix |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE fields/SoSFMatrix.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
A field containing a transformation matrix (an \cSbMatrix\.). |
| 9 |
\p |
| 10 |
\cSoSFMatrices\. are written to file as 16 floating point |
| 11 |
numbers separated by whitespace. For example, an identity matrix is |
| 12 |
written as: |
| 13 |
\b |
| 14 |
1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 |
| 15 |
\. |
| 16 |
} |
| 17 |
METHOD SetMx void setValue(float a11, float a12, float a13, float a14, |
| 18 |
float a21, float a22, float a23, float a24, |
| 19 |
float a31, float a32, float a33, float a34, |
| 20 |
float a41, float a42, float a43, float a44) { |
| 21 |
Sets this field to contain the matrix given by the 16 values. For a |
| 22 |
translation matrix, the x, y and z translations should be in the a41, |
| 23 |
a42, and a43 arguments. |
| 24 |
} |
| 25 |
ALSO { SoField, SoSField, SoMFMatrix, SbMatrix } |
| 26 |
METHOD "" static SoType getClassTypeId() {} |
| 27 |
METHOD "" virtual void getTypeId() const { |
| 28 |
Returns the type for this class or a particular object of this class. |
| 29 |
} |
| 30 |
METHOD Get const SbMatrix & getValue() const { |
| 31 |
Returns this field's value. |
| 32 |
} |
| 33 |
METHOD " " const SbMatrix & operator =(const SbMatrix & newValue) {} |
| 34 |
METHOD Set void setValue(const SbMatrix & newValue) { |
| 35 |
Sets this field to \anewValue\.. |
| 36 |
} |
| 37 |
METHOD IsEq int operator ==(const SoSFMatrix &f) const {} |
| 38 |
METHOD IsNEq int operator !=(const SoSFMatrix &f) const { |
| 39 |
Returns TRUE if \af\. is of the same type and has the same value as this |
| 40 |
field. |
| 41 |
} |