Bounding box node. More...
#include <Inventor/nodes/SoBBox.h>
Public Types | |
enum | Mode { DISABLE, NO_BOUNDING_BOX, USER_DEFINED } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoBBox () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFEnum | mode |
SoSFBox3f | boundingBox |
This class specifies a bounding box during scene graph traversal. This allows the application to use an application defined bounding box or to stop a getBoundingBox action for the current scene graph branch. Note: if a projection is defined in the scene graph, the SoBBox is ignored.
This can be useful, for example:
mode | DISABLE |
boundingBox | 0 0 0 0 0 0 |
SoGetBoundingBoxAction
If enabled, stops traversal of this portion of the scene graph and, if mode = USER_DEFINED, adds the specified bbox to the accumulated bbox.
AnimatedShape, BufferedShapePicking, GPUGeometry, InterleavedVertexAttribFeedback, SimpleVertexAttribFeedback, SoBufferedShape, VertexAttribFeedback
enum SoBBox::Mode |
This enum specifies how the node interacts with OpenInventor during a traversal.
DISABLE |
The node doesn't do anything. |
NO_BOUNDING_BOX |
SoGetBoundingBoxAction will ignore subsequent nodes in this portion of the scene graph (as if the nodes don't exist). |
USER_DEFINED |
SoGetBoundingBoxAction will ignore subsequent nodes in this portion of the scene graph and use the box specified in the boundingBox field as the bounding box of those nodes. When the complexity type is BOUNDING_BOX (see SoComplexity), SoGLRenderAction will ignore subsequent nodes in this portion of the scene graph and render the box specified in the boundingBox field. |
SoBBox::SoBBox | ( | ) |
Constructor.
static SoType SoBBox::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
virtual SoType SoBBox::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
Application-defined bounding box.