Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ACG::SceneGraph::BoundingBoxAction Class Reference

#include <ACG/Scenegraph/SceneGraph.hh>

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.

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

Definition at line 368 of file SceneGraph.hh.


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