LightsExplorer Class Reference

#include <LightsExplorer.h>

Inheritance diagram for LightsExplorer:

Explorer List of all members.

Public Member Functions

 LightsExplorer (unsigned caches=0)
virtual ~LightsExplorer ()
LightArrayresult (void)
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

ESGint _freePosition
LightArray_pLights
unsigned _caches
std::stack< Matrix4 * > _trStack

Detailed Description

Definition at line 16 of file LightsExplorer.h.


Constructor & Destructor Documentation

LightsExplorer unsigned  caches = 0  )  [inline]
 

Definition at line 27 of file LightsExplorer.h.

virtual ~LightsExplorer  )  [inline, virtual]
 

Definition at line 30 of file LightsExplorer.h.


Member Function Documentation

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

Implements Explorer.

Definition at line 24 of file LightsExplorer.h.

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 5 of file LightsExplorer.cc.

References LightsExplorer::_caches, LightsExplorer::_freePosition, LightArray::_on, LightsExplorer::_pLights, LightArray::_set, Explorer::_trStack, SceneGraphObject::emittance(), SceneGraphObject::geometry(), SceneGraphObject::getOID(), LightArray::MAX_LIGHTS, LightArray::setEmittance(), LightArray::setGeometry(), LightArray::setOID(), and LightArray::setTransformation().

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

LightArray* result void   )  [inline]
 

Definition at line 32 of file LightsExplorer.h.


Member Data Documentation

unsigned _caches [protected]
 

Definition at line 20 of file LightsExplorer.h.

Referenced by LightsExplorer::_process_leaf().

ESGint _freePosition [protected]
 

Definition at line 18 of file LightsExplorer.h.

Referenced by LightsExplorer::_process_leaf().

LightArray* _pLights [protected]
 

Definition at line 19 of file LightsExplorer.h.

Referenced by LightsExplorer::_process_leaf().

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