Field containing a 3x3 matrix. More...
#include <Inventor/fields/SoSFMatrix3.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
const SoSFMatrix3 & | operator= (const SoSFMatrix3 &f) |
SoSFMatrix3 () | |
virtual | ~SoSFMatrix3 () |
const SbMatrix3 & | getValue () const |
void | setValue (const SbMatrix3 &newValue) |
const SbMatrix3 & | operator= (const SbMatrix3 &newValue) |
int | operator== (const SoSFMatrix3 &f) const |
int | operator!= (const SoSFMatrix3 &f) const |
virtual size_t | getValueSize () const |
void | setValue (float a11, float a12, float a13, float a21, float a22, float a23, float a31, float a32, float a33) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Field containing a 3x3 matrix.
A field containing a 3x3 transformation matrix (an SbMatrix3).
SoSFMatrix3 is written to a file as 9 floating point numbers separated by whitespace. For example, an identity matrix is written as:
1 0 0 0 1 0 0 0 1
SoField, SoSField, SoSFMatrix, SoMFMatrix, SbMatrix SbMatrix3
SoSFMatrix3::SoSFMatrix3 | ( | ) |
Default constructor.
virtual SoSFMatrix3::~SoSFMatrix3 | ( | ) | [virtual] |
Destructor.
static SoType SoSFMatrix3::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSField.
virtual SoType SoSFMatrix3::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
const SbMatrix3& SoSFMatrix3::getValue | ( | ) | const [inline] |
Returns this field's value.
virtual size_t SoSFMatrix3::getValueSize | ( | ) | const [inline, virtual] |
Get size of the value.
Reimplemented from SoField.
int SoSFMatrix3::operator!= | ( | const SoSFMatrix3 & | 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 SoSFMatrix3& SoSFMatrix3::operator= | ( | const SoSFMatrix3 & | f | ) |
Copy from another field of same type.
int SoSFMatrix3::operator== | ( | const SoSFMatrix3 & | f | ) | const |
Returns TRUE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
void SoSFMatrix3::setValue | ( | float | a11, | |
float | a12, | |||
float | a13, | |||
float | a21, | |||
float | a22, | |||
float | a23, | |||
float | a31, | |||
float | a32, | |||
float | a33 | |||
) |
Sets this field to contain the matrix given by the 9 values.
void SoSFMatrix3::setValue | ( | const SbMatrix3 & | newValue | ) |
Sets this field to newValue.