ExtentExplorer Class Reference

#include <ExtentExplorer.h>

Inheritance diagram for ExtentExplorer:

NExtentsExplorer Explorer List of all members.

Public Member Functions

 ExtentExplorer (const Vector3 &v)
 ExtentExplorer (ESGfloat x, ESGfloat y, ESGfloat z)
virtual Interval result (unsigned i=0) const
virtual void explore (SceneGraphObject &)

Protected Member Functions

virtual bool _process_leaf (SceneGraphObject &)
virtual void _accept_new_transformation (const Matrix4 &)
virtual bool _explore (SceneGraphObject &)
virtual bool _iterate (SceneGraphObject &)

Protected Attributes

Interval_results
Vector3_dirs
Vector3_trDirs
float * _scale
const unsigned _nDirs
float * _translate
std::stack< Matrix4 * > _trStack

Detailed Description

Definition at line 11 of file ExtentExplorer.h.


Constructor & Destructor Documentation

ExtentExplorer const Vector3 v  )  [inline]
 

Definition at line 13 of file ExtentExplorer.h.

References MAXFLOAT.

ExtentExplorer ESGfloat  x,
ESGfloat  y,
ESGfloat  z
[inline]
 

Definition at line 28 of file ExtentExplorer.h.

References MAXFLOAT.


Member Function Documentation

void _accept_new_transformation const Matrix4  )  [protected, virtual, inherited]
 

Implements Explorer.

Definition at line 27 of file NExtentsExplorer.cc.

References NExtentsExplorer::_dirs, NExtentsExplorer::_nDirs, NExtentsExplorer::_scale, NExtentsExplorer::_translate, and NExtentsExplorer::_trDirs.

bool _explore SceneGraphObject  )  [protected, virtual, inherited]
 

Reimplemented in NodesByNameExpl, ObjsAheadExplorer, RayIntExplorer, and ShadowExplorer.

Definition at line 6 of file Explorer.cc.

References Explorer::_accept_new_transformation(), Explorer::_iterate(), Explorer::_process_leaf(), Explorer::_trStack, Transform::get(), SceneGraphObject::hasSubnodes(), and SceneGraphObject::transformation().

Referenced by ObjsInAreaExplorer::_iterate(), ObjsExplorer::_iterate(), Explorer::_iterate(), and Exporter::explore().

bool _iterate SceneGraphObject  )  [protected, virtual, inherited]
 

Reimplemented in BVExplorer, ObjsExplorer, ObjsInAreaExplorer, RayIntExplorer, and ShadowExplorer.

Definition at line 33 of file Explorer.cc.

References Explorer::_explore(), IteratorSDS::firstChild(), IteratorSDS::initChildrenSearch(), IteratorSDS::nextChild(), and SceneGraphObject::traverseSubnodes().

Referenced by NodesByNameExpl::_explore(), Explorer::_explore(), and BVExplorer::_iterate().

bool _process_leaf SceneGraphObject  )  [protected, virtual, inherited]
 

Implements Explorer.

Definition at line 6 of file NExtentsExplorer.cc.

References NExtentsExplorer::_nDirs, NExtentsExplorer::_results, NExtentsExplorer::_scale, NExtentsExplorer::_translate, NExtentsExplorer::_trDirs, Geometry::extent(), SceneGraphObject::geometry(), Interval::max, and Interval::min.

void explore SceneGraphObject  )  [virtual, inherited]
 

Reimplemented in Exporter, RayIntExplorer, and ShadowExplorer.

Definition at line 55 of file Explorer.cc.

References Explorer::_trStack.

Referenced by BVList::_comp_extents(), BVList::_comp_handle(), FDH6Tree::_create_bv(), FDH14Tree::_create_bv(), OSGAdapter::extent(), FDH::FDH(), OSGAdapter::nExtents(), and Sphere::Sphere().

virtual Interval result unsigned  i = 0  )  const [inline, virtual]
 

Reimplemented from NExtentsExplorer.

Definition at line 43 of file ExtentExplorer.h.

Referenced by OSGAdapter::extent().


Member Data Documentation

Vector3* _dirs [protected, inherited]
 

Definition at line 14 of file NExtentsExplorer.h.

Referenced by NExtentsExplorer::_accept_new_transformation(), NExtentsExplorer::NExtentsExplorer(), and NExtentsExplorer::~NExtentsExplorer().

const unsigned _nDirs [protected, inherited]
 

Definition at line 17 of file NExtentsExplorer.h.

Referenced by NExtentsExplorer::_accept_new_transformation(), NExtentsExplorer::_process_leaf(), NExtentsExplorer::NExtentsExplorer(), and NExtentsExplorer::result().

Interval* _results [protected, inherited]
 

Definition at line 13 of file NExtentsExplorer.h.

Referenced by NExtentsExplorer::_process_leaf(), NExtentsExplorer::NExtentsExplorer(), NExtentsExplorer::result(), and NExtentsExplorer::~NExtentsExplorer().

float* _scale [protected, inherited]
 

Definition at line 16 of file NExtentsExplorer.h.

Referenced by NExtentsExplorer::_accept_new_transformation(), NExtentsExplorer::_process_leaf(), NExtentsExplorer::NExtentsExplorer(), and NExtentsExplorer::~NExtentsExplorer().

float* _translate [protected, inherited]
 

Definition at line 18 of file NExtentsExplorer.h.

Referenced by NExtentsExplorer::_accept_new_transformation(), NExtentsExplorer::_process_leaf(), NExtentsExplorer::NExtentsExplorer(), and NExtentsExplorer::~NExtentsExplorer().

Vector3* _trDirs [protected, inherited]
 

Definition at line 15 of file NExtentsExplorer.h.

Referenced by NExtentsExplorer::_accept_new_transformation(), NExtentsExplorer::_process_leaf(), NExtentsExplorer::NExtentsExplorer(), and NExtentsExplorer::~NExtentsExplorer().

std::stack<Matrix4*> _trStack [protected, inherited]
 

Definition at line 16 of file Explorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), ObjsAheadExplorer::_explore(), Explorer::_explore(), BVExplorer::_iterate(), POGExplorer::_process_leaf(), ObjsInAreaExplorer::_process_leaf(), LightsExplorer::_process_leaf(), ShadowExplorer::explore(), Explorer::explore(), and Exporter::explore().


The documentation for this class was generated from the following file:
Generated on Wed Jun 28 12:24:33 2006 for esg by  doxygen 1.4.6