table of contents
other sections
SoGetMatrixAction(3IV)() | SoGetMatrixAction(3IV)() |
NAME¶
SoGetMatrixAction — computes transformation matrix for subgraphINHERITS FROM¶
SoAction > SoGetMatrixActionSYNOPSIS¶
#include <Inventor/actions/SoGetMatrixAction.h>Methods from class SoGetMatrixAction:
SoGetMatrixAction(const SbViewportRegion &newRegion)
void setViewportRegion(const SbViewportRegion &newRegion)
const SbViewportRegion & getViewportRegion() const
SbMatrix & getMatrix()
SbMatrix & getInverse()
SbMatrix & getTextureMatrix()
SbMatrix & getTextureInverse()
Methods from class SoAction:
virtual void apply(SoNode *node)
virtual void apply(SoPath *path)
virtual void apply(const SoPathList &pathList, SbBool obeysRules = FALSE)
static SoType getClassTypeId()
virtual SoType getTypeId()
virtual SbBool isOfType(SoType type)
virtual void invalidateState()
DESCRIPTION¶
This action computes transformation matrices for a given subgraph. It computes the cumulative transformation matrix and its inverse, along with a cumulative texture transformation matrix and its inverse.METHODS¶
SoGetMatrixAction(const SbViewportRegion &newRegion)
Constructor takes viewport region to use for picking. Even though the matrix computation may not involve a window per se, some nodes need this information to determine their placement.
void setViewportRegion(const SbViewportRegion &newRegion)
const SbViewportRegion & getViewportRegion() const
Sets/returns current viewport region to use for action.
SbMatrix & getMatrix()
SbMatrix & getInverse()
Returns cumulative transformation matrix and its inverse. Warning: the matrices returned by these routines should not be changed (unless you are implementing your own transformation nodes).
SbMatrix & getTextureMatrix()
SbMatrix & getTextureInverse()
Returns cumulative texture transformation matrix and its inverse. Warning: the matrices returned by these routines should not be changed (unless you are implementing your own transformation nodes).