55#ifndef _SO_BBOX_MODEL_MATRIX_ELEMENT
56#define _SO_BBOX_MODEL_MATRIX_ELEMENT
130 static bool pushPopCallOK;
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
Class for representing a rotation.
Element that stores the current model matrix for use with the SoGetBoundingBoxAction.
virtual void makeEltIdentity()
These all override the methods on SoModelMatrixElement to also set the SoLocalBBoxMatrixElement.
virtual void rotateEltBy(const SbRotation &translation)
virtual void init(SoState *state)
Initializes element.
static void popMatrix(SoState *state, const SbMatrix &matrix, const SbMatrix &localmatrix)
virtual void translateEltBy(const SbVec3f &translation)
Each of these performs the appropriate operation on the matrix in an instance.
virtual void multElt(const SbMatrix &matrix)
Multiplies into the matrix in an instance.
virtual void popMatrixElt(const SbMatrix &m)
virtual void scaleEltBy(const SbVec3f &scaleFactor)
virtual ~SoBBoxModelMatrixElement()
virtual void setElt(const SbMatrix &matrix)
Sets the matrix in an instance to given matrix.
virtual void push(SoState *state)
Overrides push() method to copy values from next instance in the stack.
virtual SbMatrix pushMatrixElt()
These must never be called; they print debug errors if called:
static void pushMatrix(SoState *state, SbMatrix &matrix, SbMatrix &localmatrix)
Because two model matrices are kept track of during the getBoundingBoxAction (the local model matrix,...
static void reset(SoState *state, SoNode *node)
Allows the SoGetBoundingBoxAction to reset the current model matrix to identity and all currently-ope...
static void initClass()
Initializes the SoBBoxModelMatrixElement class.
Element that stores the current model matrix - the cumulative transformation applied to subsequent sh...
Abstract base class for all database nodes.
An SoState collects and holds state while traversing a scene graph.