Main Page Modules Class Hierarchy Compound List File List Compound Members
SoGetBoundingBoxAction Class Reference
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.
More...
#include <Inventor/actions/SoGetBoundingBoxAction.h>
Inheritance diagram for SoGetBoundingBoxAction::
List of all members.
Detailed Description
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.
The use of bounding boxes is ubiquitous within the Coin library. It is needed for the correct execution of and for performance enhancements during rendering, picking, caching, culling, etc.
Apply this action to a path or scene graph root to calculate the bounding box and the center point of the geometry contained within the scene.
Member Enumeration Documentation
enum SoGetBoundingBoxAction::ResetType
|
|
Constructor & Destructor Documentation
|
Constructor.
Some node types need to know the viewport region to calculate their bounding box. |
SoGetBoundingBoxAction::~SoGetBoundingBoxAction |
( |
|
) |
[virtual] |
|
Member Function Documentation
void SoGetBoundingBoxAction::initClass |
( |
void |
|
) |
[static] |
|
|
Initializes the run-time type system for this class, and sets up the enabled elements and action method list.
Reimplemented from SoAction. |
void SoGetBoundingBoxAction::setViewportRegion |
( |
const SbViewportRegion & |
newregion |
) |
|
|
|
Set a new viewport region with this method, if it has changed from the oned passed in with the constructor. |
const SbViewportRegion & SoGetBoundingBoxAction::getViewportRegion |
( |
void |
|
) |
const |
|
|
Returns the viewport region used by the action instance. |
SbBox3f SoGetBoundingBoxAction::getBoundingBox |
( |
void |
|
) |
const |
|
|
Returns the projected bounding box after (or during) traversal. |
SbXfBox3f & SoGetBoundingBoxAction::getXfBoundingBox |
( |
void |
|
) |
|
|
|
Returns the bounding box and transformation matrix to global coordinates. Use after (or during) traversal. |
const SbVec3f & SoGetBoundingBoxAction::getCenter |
( |
void |
|
) |
const |
|
|
Returns center point of scene after the action has been applied.
This might differ from the geometric center of the bounding box, as shape nodes may "weight" the center point according to various criteria (i.e. a faceset could for instance weight the center point according to the area within its bounding box where there are more polygons). |
void SoGetBoundingBoxAction::setInCameraSpace |
( |
const SbBool |
on |
) |
|
|
|
Sets whether the returned bounding box should be calculated in the coordinate system of the camera space or not. |
SbBool SoGetBoundingBoxAction::isInCameraSpace |
( |
void |
|
) |
const |
|
|
Returns whether the bounding box returned is to be in camera space. |
void SoGetBoundingBoxAction::setResetPath |
( |
const SoPath * |
path, |
|
|
const SbBool |
resetbefore = TRUE, |
|
|
const ResetType |
what = ALL |
|
) |
|
|
|
Forces the computed bounding box to be reset and the transformation to be identity before or after the tail node of path, depending on the resetbefore argument. NULL can be specified for the path argument to disable this behavior.
-
See also:
-
getResetPath(), isResetPath(), isResetBefore(), getWhatReset()
|
const SoPath * SoGetBoundingBoxAction::getResetPath |
( |
void |
|
) |
const |
|
SbBool SoGetBoundingBoxAction::isResetPath |
( |
void |
|
) |
const |
|
SbBool SoGetBoundingBoxAction::isResetBefore |
( |
void |
|
) |
const |
|
void SoGetBoundingBoxAction::checkResetBefore |
( |
void |
|
) |
|
|
void SoGetBoundingBoxAction::checkResetAfter |
( |
void |
|
) |
|
|
void SoGetBoundingBoxAction::extendBy |
( |
const SbBox3f & |
box |
) |
|
|
|
Extend bounding box by the given box. Called from nodes during traversal. Should not be used by application programmers, unless you're extending Coin with your own node types. |
void SoGetBoundingBoxAction::extendBy |
( |
const SbXfBox3f & |
box |
) |
|
|
|
Extend bounding box by the given box. Called from nodes during traversal. Should not be used by application programmers, unless you're extending Coin with your own node types. |
void SoGetBoundingBoxAction::setCenter |
( |
const SbVec3f & |
center, |
|
|
const SbBool |
transformcenter |
|
) |
|
|
SbBool SoGetBoundingBoxAction::isCenterSet |
( |
void |
|
) |
const |
|
void SoGetBoundingBoxAction::resetCenter |
( |
void |
|
) |
|
|
void SoGetBoundingBoxAction::beginTraversal |
( |
SoNode * |
node |
) |
[protected, virtual] |
|
|
Overloaded to reset center point and bounding box before traversal starts.
Reimplemented from SoAction. |
The documentation for this class was generated from the following files:
Generated on Sat Jan 12 11:41:03 2002 for Coin by
1.2.12 written by Dimitri van Heesch,
© 1997-2001