SoSFMatrix Class Reference
[Fields]

Field containing a 4x4 matrix. More...

#include <Inventor/fields/SoSFMatrix.h>

Inheritance diagram for SoSFMatrix:
SoSField SoField SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
const SoSFMatrixoperator= (const SoSFMatrix &f)
 SoSFMatrix ()
virtual ~SoSFMatrix ()
const SbMatrixgetValue () const
void setValue (const SbMatrix &newValue)
const SbMatrixoperator= (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 ()

Detailed Description

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
     

SEE ALSO

SoField, SoSField, SoMFMatrix, SbMatrix


Constructor & Destructor Documentation

SoSFMatrix::SoSFMatrix (  ) 

Default constructor.

virtual SoSFMatrix::~SoSFMatrix (  )  [virtual]

Destructor.


Member Function Documentation

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.

const SbMatrix& SoSFMatrix::operator= ( const SbMatrix newValue  )  [inline]

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/