Field containing a 4x4 matrix. More...
#include <Inventor/fields/SoSFMatrix.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
const SoSFMatrix & | operator= (const SoSFMatrix &f) |
SoSFMatrix () | |
virtual | ~SoSFMatrix () |
const SbMatrix & | getValue () const |
void | setValue (const SbMatrix &newValue) |
const SbMatrix & | operator= (const SbMatrix &newValue) |
int | operator== (const SoSFMatrix &f) const |
int | operator!= (const SoSFMatrix &f) const |
virtual size_t | getValueSize () const |
void | setValue (float a11, float a12, float a13, float a14, float a21, float a22, float a23, float a24, float a31, float a32, float a33, float a34, float a41, float a42, float a43, float a44) |
void | setValue (const SbMatrixd &md) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Field containing a 4x4 matrix.
A field containing a transformation matrix (an SbMatrix).
SoSFMatrixs are written to file as 16 floating point numbers separated by whitespace. For example, an identity matrix is written as:
1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
SoField, SoSField, SoMFMatrix, SbMatrix
SoSFMatrix::SoSFMatrix | ( | ) |
Default constructor.
virtual SoSFMatrix::~SoSFMatrix | ( | ) | [virtual] |
Destructor.
static SoType SoSFMatrix::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSField.
virtual SoType SoSFMatrix::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
const SbMatrix& SoSFMatrix::getValue | ( | ) | const [inline] |
Returns this field's value.
virtual size_t SoSFMatrix::getValueSize | ( | ) | const [inline, virtual] |
Get size of the value.
Reimplemented from SoField.
int SoSFMatrix::operator!= | ( | const SoSFMatrix & | f | ) | const [inline] |
Returns FALSE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
Sets this field to newValue.
const SoSFMatrix& SoSFMatrix::operator= | ( | const SoSFMatrix & | f | ) |
Copy from another field of same type.
int SoSFMatrix::operator== | ( | const SoSFMatrix & | f | ) | const |
Returns TRUE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
void SoSFMatrix::setValue | ( | const SbMatrixd & | md | ) |
Convenience method that allows you to specify a field value using a double precision variable.
Note that Open Inventor fields still store only single precision values, not double precision values. The specified value is converted to single precision, then stored.
void SoSFMatrix::setValue | ( | float | a11, | |
float | a12, | |||
float | a13, | |||
float | a14, | |||
float | a21, | |||
float | a22, | |||
float | a23, | |||
float | a24, | |||
float | a31, | |||
float | a32, | |||
float | a33, | |||
float | a34, | |||
float | a41, | |||
float | a42, | |||
float | a43, | |||
float | a44 | |||
) |
Sets this field to contain the matrix given by the 16 values.
For a translation matrix, the x, y and z translations should be in the a41, a42, and a43 arguments.
void SoSFMatrix::setValue | ( | const SbMatrix & | newValue | ) |
Sets this field to newValue.