Developer Documentation
ACG::SceneGraph::BoundingBoxAction Class Reference

#include <OpenFlipper/libs_required/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. More...
 
const Vec3dbbMax () const
 Returns maximum point of the bounding box. More...
 

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 362 of file SceneGraph.hh.

Constructor & Destructor Documentation

◆ BoundingBoxAction()

ACG::SceneGraph::BoundingBoxAction::BoundingBoxAction ( )
inline

Definition at line 366 of file SceneGraph.hh.

Member Function Documentation

◆ bbMax()

const Vec3d & ACG::SceneGraph::BoundingBoxAction::bbMax ( ) const
inline

Returns maximum point of the bounding box.

Definition at line 403 of file SceneGraph.hh.

◆ bbMin()

const Vec3d & ACG::SceneGraph::BoundingBoxAction::bbMin ( ) const
inline

Returns minimum point of the bounding box.

Definition at line 401 of file SceneGraph.hh.

◆ enter()

void ACG::SceneGraph::BoundingBoxAction::enter ( BaseNode _node)
inline

Definition at line 390 of file SceneGraph.hh.

◆ leave()

void ACG::SceneGraph::BoundingBoxAction::leave ( BaseNode _node)
inline

Definition at line 395 of file SceneGraph.hh.

◆ operator()()

bool ACG::SceneGraph::BoundingBoxAction::operator() ( BaseNode _node)
inline

Definition at line 372 of file SceneGraph.hh.

Member Data Documentation

◆ bbMax_

Vec3d ACG::SceneGraph::BoundingBoxAction::bbMax_
private

Definition at line 407 of file SceneGraph.hh.

◆ bbMin_

Vec3d ACG::SceneGraph::BoundingBoxAction::bbMin_
private

Definition at line 407 of file SceneGraph.hh.

◆ state_

GLState ACG::SceneGraph::BoundingBoxAction::state_
private

Definition at line 408 of file SceneGraph.hh.


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