SoSFMatrix — field containing a 4x4 matrix
Contents
Description
A field containing a transformation matrix (an SbMatrix).
SoSFMatrices 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
Inherits From
SoField > SoSField > SoSFMatrix
Methods
voidsetValue(floata11,floata12,floata13,floata14,floata21,floata22,floata23,floata24,floata31,floata32,floata33,floata34,floata41,floata42,floata43,floata44)
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.
staticSoTypegetClassTypeId()virtualvoidgetTypeId()const
Returns the type for this class or a particular object of this class.
constSbMatrix&getValue()const
Returns this field's value.
constSbMatrix&operator=(constSbMatrix&newValue)voidsetValue(constSbMatrix&newValue)
Sets this field to newValue.
intoperator==(constSoSFMatrix&f)constintoperator!=(constSoSFMatrix&f)const
Returns TRUE if f is of the same type and has the same value as this field.
Name
SoSFMatrix — field containing a 4x4 matrix
See Also
SoField,SoSField,SoMFMatrix,SbMatrixSoSFMatrix(3IV)()
Synopsis
#include<Inventor/fields/SoSFMatrix.h>
Methods from class SoSFMatrix:
voidsetValue(floata11,floata12,floata13,floata14,floata21,floata22,floata23,floata24,floata31,floata32,floata33,floata34,floata41,floata42,floata43,floata44)staticSoTypegetClassTypeId()virtualvoidgetTypeId()constconstSbMatrix&getValue()constconstSbMatrix&operator=(constSbMatrix&newValue)voidsetValue(constSbMatrix&newValue)intoperator==(constSoSFMatrix&f)constintoperator!=(constSoSFMatrix&f)const
Methods from class SoField:
voidsetIgnored(SbBoolignore)SbBoolisIgnored()constSbBoolisDefault()constvirtualSbBoolisOfType(SoTypetype)constSbBoolset(constchar*valueString)voidget(SbString&valueString)voidtouch()SbBoolconnectFrom(SoField*fromField)SbBoolconnectFrom(SoEngineOutput*fromEngine)voiddisconnect()SbBoolisConnected()constSbBoolisConnectedFromField()constSbBoolgetConnectedField(SoField*&writingField)constSbBoolisConnectedFromEngine()constSbBoolgetConnectedEngine(SoEngineOutput*&engineOutput)constvoidenableConnection(SbBoolflag)SbBoolisConnectionEnabled()constintgetForwardConnections(SoFieldList&list)constSoFieldContainer*getContainer()const