55#ifndef _SO_GET_BOUNDING_BOX_ACTION_
56#define _SO_GET_BOUNDING_BOX_ACTION_
157 bool resetBefore =
TRUE,
192 bool transformCenter);
215 void checkReset(
bool resetBefore);
#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_ACTION_HEADER(className)
Macros to be called within the class definition header for an action subclass:
Class for representing a viewport.
3D box with an associated transformation matrix.
Abstract base class for all actions.
Computes bounding box of a scene.
SbXfBox3f & getXfBoundingBox()
Returns computed bounding box before transformation into world space.
bool isResetPath() const
Returns TRUE if the current reset path is not NULL.
bool isInCameraSpace() const
Returns camera space flag.
void setViewportRegion(const SbViewportRegion &newRegion)
Sets/returns current viewport region to use for action.
void setResetPath(const SoPath *path, bool resetBefore=TRUE, ResetType what=ALL)
If a non-NULL path is specified, the action will reset the computed bounding box to be empty and/or t...
void setCenter(const SbVec3f ¢er, bool transformCenter)
Sets the center of the bounding box to the given point, which, if transformCenter is TRUE,...
void extendBy(const SbBox3f &box)
Extends the current bounding box by the given bounding box, after transforming it by the current valu...
void checkResetBefore()
Call these methods at beginning and end (respectively) of the getBoundingBox action for each node.
const SbVec3f & getCenter() const
Returns computed center point in world space.
virtual ~SoGetBoundingBoxAction()
Destructor.
SoGetBoundingBoxAction(const SbViewportRegion &viewportRegion)
Constructor takes viewport region to use for picking.
void extendBy(const SbXfBox3f &box)
const SbViewportRegion & getViewportRegion() const
Sets/returns current viewport region to use for action.
virtual void beginTraversal(SoNode *node)
Initiates action on graph.
const SoPath * getResetPath() const
Returns the current reset path, or NULL.
ResetType
set a path to do a resetTransform/resetBoundingBox on.
bool isResetBefore() const
Returns TRUE if the resetBefore flag was specified for the reset path.
SbBox3f getBoundingBox() const
Returns computed bounding box in world space.
SoGetBoundingBoxAction::ResetType getWhatReset() const
void setInCameraSpace(bool flag)
Set this flag to TRUE if you want the returned bounding box to be in the space of whatever camera is ...
Abstract base class for all database nodes.
Path that points to a list of hierarchical nodes.