ObjsAheadExplorer Class Reference

#include <ObjsAheadExplorer.h>

Inheritance diagram for ObjsAheadExplorer:

RayIntExplorer Explorer List of all members.

Public Member Functions

 ObjsAheadExplorer (const Vector3 &, const Vector3 &, Group *)
virtual void explore (SceneGraphObject &)
virtual void reinit (const Vector3 &o, const Vector3 &d, Intersector *pI, float m=MAXFLOAT)
PointEnvresult ()

Protected Member Functions

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

Protected Attributes

Group_pResult
float _originDist
Vector3 _origin
Vector3 _direction
Intersector_pIntersector
float _maxDist
Vector3 _trOrigin
Vector3 _trDirection
Matrix4 _accumMat
bool _transformed
SceneGraphObject_pCandidate
bool _retVal
float _actDist
Matrix3 _rMat
const Vector3_tVec
const Vector3_sVec
std::stack< Matrix4 * > _trStack

Detailed Description

Definition at line 20 of file ObjsAheadExplorer.h.


Constructor & Destructor Documentation

ObjsAheadExplorer const Vector3 ,
const Vector3 ,
Group
 

Definition at line 64 of file ObjsAheadExplorer.cc.

References RayIntExplorer::_direction, RayIntExplorer::_origin, ObjsAheadExplorer::_originDist, and ObjsAheadExplorer::_pResult.


Member Function Documentation

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

Implements Explorer.

Reimplemented in ShadowExplorer.

Definition at line 49 of file RayIntExplorer.h.

bool _explore SceneGraphObject  )  [protected, virtual]
 

Reimplemented from RayIntExplorer.

Definition at line 6 of file ObjsAheadExplorer.cc.

References RayIntExplorer::_direction, RayIntExplorer::_origin, RayIntExplorer::_pCandidate, RayIntExplorer::_retVal, RayIntExplorer::_rMat, RayIntExplorer::_sVec, RayIntExplorer::_trDirection, RayIntExplorer::_trOrigin, Explorer::_trStack, RayIntExplorer::_tVec, ESG_INVERSE_TR_RAY, IteratorSDS::firstChild(), Transform::get(), Transform::getRotation(), Transform::getScale(), Transform::getTranslation(), SceneGraphObject::hasSubnodes(), IteratorSDS::initHalfSpaceSearch(), IteratorSDS::nextChild(), SceneGraphObject::transformation(), and SceneGraphObject::traverseSubnodes().

virtual bool _iterate SceneGraphObject  )  [inline, protected, virtual, inherited]
 

Reimplemented from Explorer.

Reimplemented in ShadowExplorer.

Definition at line 47 of file RayIntExplorer.h.

virtual bool _process_leaf SceneGraphObject  )  [inline, protected, virtual, inherited]
 

Implements Explorer.

Reimplemented in ShadowExplorer.

Definition at line 48 of file RayIntExplorer.h.

void explore SceneGraphObject  )  [virtual, inherited]
 

Reimplemented from Explorer.

Reimplemented in ShadowExplorer.

Definition at line 102 of file RayIntExplorer.cc.

References RayIntExplorer::_explore(), and RayIntExplorer::_pIntersector.

Referenced by OSGAdapter::rayIntersection().

void reinit const Vector3 o,
const Vector3 d,
Intersector pI,
float  m = MAXFLOAT
[virtual, inherited]
 

Definition at line 109 of file RayIntExplorer.cc.

References RayIntExplorer::_direction, RayIntExplorer::_maxDist, RayIntExplorer::_origin, RayIntExplorer::_pIntersector, RayIntExplorer::_transformed, RayIntExplorer::_trDirection, RayIntExplorer::_trOrigin, and RIE_UPDATE_STAT.

PointEnv * result  )  [inherited]
 

Reimplemented in ShadowExplorer.

Definition at line 124 of file RayIntExplorer.cc.

References RayIntExplorer::_accumMat, RayIntExplorer::_pIntersector, RayIntExplorer::_transformed, Intersector::adoptIntersection(), ENV_HAVE_TRANSFORMATION, PointEnv::mask, RIE_UPDATE_STAT, and PointEnv::trMat.

Referenced by OSGAdapter::rayIntersection().


Member Data Documentation

Matrix4 _accumMat [protected, inherited]
 

Definition at line 29 of file RayIntExplorer.h.

Referenced by RayIntExplorer::result().

float _actDist [protected, inherited]
 

Definition at line 36 of file RayIntExplorer.h.

Referenced by RayIntExplorer::_explore().

Vector3 _direction [protected, inherited]
 

Definition at line 23 of file RayIntExplorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), ObjsAheadExplorer::_explore(), ObjsAheadExplorer::ObjsAheadExplorer(), and RayIntExplorer::reinit().

float _maxDist [protected, inherited]
 

Definition at line 25 of file RayIntExplorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), and RayIntExplorer::reinit().

Vector3 _origin [protected, inherited]
 

Definition at line 22 of file RayIntExplorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), ObjsAheadExplorer::_explore(), ObjsAheadExplorer::ObjsAheadExplorer(), and RayIntExplorer::reinit().

float _originDist [protected]
 

Definition at line 23 of file ObjsAheadExplorer.h.

Referenced by ObjsAheadExplorer::ObjsAheadExplorer().

SceneGraphObject* _pCandidate [protected, inherited]
 

Definition at line 34 of file RayIntExplorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), and ObjsAheadExplorer::_explore().

Intersector* _pIntersector [protected, inherited]
 

Definition at line 24 of file RayIntExplorer.h.

Referenced by RayIntExplorer::_explore(), RayIntExplorer::explore(), RayIntExplorer::reinit(), and RayIntExplorer::result().

Group* _pResult [protected]
 

Definition at line 22 of file ObjsAheadExplorer.h.

Referenced by ObjsAheadExplorer::ObjsAheadExplorer().

bool _retVal [protected, inherited]
 

Definition at line 35 of file RayIntExplorer.h.

Referenced by RayIntExplorer::_explore(), and ObjsAheadExplorer::_explore().

Matrix3 _rMat [protected, inherited]
 

Definition at line 37 of file RayIntExplorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), and ObjsAheadExplorer::_explore().

const Vector3* _sVec [protected, inherited]
 

Definition at line 39 of file RayIntExplorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), and ObjsAheadExplorer::_explore().

bool _transformed [protected, inherited]
 

Definition at line 30 of file RayIntExplorer.h.

Referenced by RayIntExplorer::reinit(), and RayIntExplorer::result().

Vector3 _trDirection [protected, inherited]
 

Definition at line 28 of file RayIntExplorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), ObjsAheadExplorer::_explore(), and RayIntExplorer::reinit().

Vector3 _trOrigin [protected, inherited]
 

Definition at line 27 of file RayIntExplorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), ObjsAheadExplorer::_explore(), and RayIntExplorer::reinit().

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

const Vector3* _tVec [protected, inherited]
 

Definition at line 38 of file RayIntExplorer.h.

Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), and ObjsAheadExplorer::_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