Node that resets the current transformation to identity. More...
#include <Inventor/nodes/SoResetTransform.h>
Public Types | |
enum | ResetType { TRANSFORM = 0x01, BBOX = 0x02 } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoResetTransform () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFBitMask | whatToReset |
Node that resets the current transformation to identity.
This node resets the current transformation to identity. It can be used to apply an absolute world space transformation afterwards, such as translating to a specific point from within a hierarchy. An SoResetTransform node should probably be used under an SoSeparator or SoTransformSeparator so it won't change transformations for the rest of the scene graph. An SoResetTransform node can also be used to reset the current bounding box to empty during traversal of an SoGetBoundingBoxAction, if the whatToReset field has the BBOX bit set.
CAUTION: Picking on a shape below an SoResetTransform may fail if bounding box caching is enabled (default). Bounding box caching is set using SoSeparator.
Clipping and culling anomalies may also occur.
whatToReset | TRANSFORM |
SoGetBoundingBoxAction
If specified, resets current transformation matrix to identity and current computed bounding box to be empty. Sets: SoBBoxModelMatrixElement
SoGetMatrixAction
Returns identity matrix.
SoResetTransform::SoResetTransform | ( | ) |
Creates a reset transformation node with default settings.
static SoType SoResetTransform::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoTransformation.
virtual SoType SoResetTransform::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoTransformation.
Specifies which items to reset when the node is traversed.
Use enum ResetType. Default is TRANSFORM.