NExtentsExplorer Class Reference

#include <NExtentsExplorer.h>

Inheritance diagram for NExtentsExplorer:

Explorer ExtentExplorer List of all members.

Public Member Functions

 NExtentsExplorer (const float(*dirs)[3], unsigned nDirs)
 NExtentsExplorer (const Vector3 *dirs, unsigned nDirs)
virtual ~NExtentsExplorer ()
virtual Interval result (unsigned) const
virtual void explore (SceneGraphObject &)

Protected Member Functions

virtual bool _process_leaf (SceneGraphObject &)
virtual void _accept_new_transformation (const Matrix4 &)
 NExtentsExplorer (unsigned nDirs)
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 NExtentsExplorer.h.


Constructor & Destructor Documentation

NExtentsExplorer unsigned  nDirs  )  [inline, protected]
 

Definition at line 24 of file NExtentsExplorer.h.

NExtentsExplorer const float *  dirs[3],
unsigned  nDirs
 

Definition at line 49 of file NExtentsExplorer.cc.

References NExtentsExplorer::_dirs, NExtentsExplorer::_nDirs, NExtentsExplorer::_results, NExtentsExplorer::_scale, NExtentsExplorer::_translate, NExtentsExplorer::_trDirs, MAXFLOAT, and Interval::min.

NExtentsExplorer const Vector3 dirs,
unsigned  nDirs
 

Definition at line 67 of file NExtentsExplorer.cc.

References NExtentsExplorer::_dirs, NExtentsExplorer::_nDirs, NExtentsExplorer::_results, NExtentsExplorer::_scale, NExtentsExplorer::_translate, NExtentsExplorer::_trDirs, MAXFLOAT, and Interval::min.

~NExtentsExplorer  )  [virtual]
 

Definition at line 85 of file NExtentsExplorer.cc.

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


Member Function Documentation

void _accept_new_transformation const Matrix4  )  [protected, virtual]
 

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]
 

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().

Interval result unsigned   )  const [virtual]
 

Reimplemented in ExtentExplorer.

Definition at line 94 of file NExtentsExplorer.cc.

References NExtentsExplorer::_nDirs, and NExtentsExplorer::_results.

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


Member Data Documentation

Vector3* _dirs [protected]
 

Definition at line 14 of file NExtentsExplorer.h.

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

const unsigned _nDirs [protected]
 

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]
 

Definition at line 13 of file NExtentsExplorer.h.

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

float* _scale [protected]
 

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]
 

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]
 

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 files:
Generated on Wed Jun 28 12:24:33 2006 for esg by  doxygen 1.4.6