Developer Documentation
ACG::SceneGraph::ACG::SceneGraph::BoundingBoxAction Class Reference

Public Member Functions

bool operator() (BaseNode *_node)
void enter (BaseNode *_node)
void leave (BaseNode *_node)
const Vec3dbbMin () const
 Returns minimum point of the bounding box.
const Vec3dbbMax () const
 Returns maximum point of the bounding box.

Private Attributes

Vec3d bbMin_
Vec3d bbMax_
GLState state_

Detailed Description

Collect bounding box information from all nodes, using the BaseNode::boundingBox() method. The result can be accessed by bbMin() and bbMax(), yielding the 2 extreme corners of the bounding box.

This class implements an action that should be used as a parameter for the traverse() functions.

Definition at line 368 of file

The documentation for this class was generated from the following file: