NodesByNameExpl Class Reference

#include <NodesByNameExpl.h>

Inheritance diagram for NodesByNameExpl:

Explorer List of all members.

Public Member Functions

 NodesByNameExpl ()
 NodesByNameExpl (const char *name, bool falsePositives=false)
virtual ~NodesByNameExpl ()
void setName (const char *name)
void setFalsePositives (bool fp)
bool getFalsePositives () const
SceneGraphObjectresult ()
virtual void explore (SceneGraphObject &)

Protected Member Functions

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

Protected Attributes

char * _name
bool _falsePositives
List< SceneGraphObject_foundObjects
std::stack< Matrix4 * > _trStack

Detailed Description

Searches scene graph nodes by their names. Search is CASE-SENSITIVE!

Definition at line 15 of file NodesByNameExpl.h.


Constructor & Destructor Documentation

NodesByNameExpl  )  [inline]
 

Contructor.

Definition at line 30 of file NodesByNameExpl.h.

NodesByNameExpl const char *  name,
bool  falsePositives = false
 

Contructor.

Parameters:
name name of the node
falsePositives if true then unnamed nodes are also returned.

Definition at line 33 of file NodesByNameExpl.cc.

References NodesByNameExpl::setName().

~NodesByNameExpl  )  [virtual]
 

Destructor.

Definition at line 39 of file NodesByNameExpl.cc.

References NodesByNameExpl::_name.


Member Function Documentation

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

Implements Explorer.

Definition at line 24 of file NodesByNameExpl.h.

bool _explore SceneGraphObject  )  [protected, virtual]
 

Reimplemented from Explorer.

Definition at line 5 of file NodesByNameExpl.cc.

References NodesByNameExpl::_falsePositives, NodesByNameExpl::_foundObjects, Explorer::_iterate(), NodesByNameExpl::_name, List::append(), SceneGraphObject::getName(), and SceneGraphObject::hasSubnodes().

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

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

Implements Explorer.

Definition at line 23 of file NodesByNameExpl.h.

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

bool getFalsePositives  )  const [inline]
 

Returns:
true if false positives are returned

Definition at line 59 of file NodesByNameExpl.h.

References NodesByNameExpl::_falsePositives.

SceneGraphObject * result  ) 
 

Returns found nodes sequentially

Returns:
relevant node or NULL

Definition at line 52 of file NodesByNameExpl.cc.

References NodesByNameExpl::_foundObjects, List::firstItem(), and List::remove().

void setFalsePositives bool  fp  )  [inline]
 

Parameters:
fp if true then unnamed nodes are also returned.

Definition at line 54 of file NodesByNameExpl.h.

References NodesByNameExpl::_falsePositives.

void setName const char *  name  ) 
 

Parameters:
name new searching name

Definition at line 44 of file NodesByNameExpl.cc.

References NodesByNameExpl::_name.

Referenced by NodesByNameExpl::NodesByNameExpl().


Member Data Documentation

bool _falsePositives [protected]
 

Definition at line 18 of file NodesByNameExpl.h.

Referenced by NodesByNameExpl::_explore(), NodesByNameExpl::getFalsePositives(), and NodesByNameExpl::setFalsePositives().

List<SceneGraphObject> _foundObjects [protected]
 

Definition at line 19 of file NodesByNameExpl.h.

Referenced by NodesByNameExpl::_explore(), and NodesByNameExpl::result().

char* _name [protected]
 

Definition at line 17 of file NodesByNameExpl.h.

Referenced by NodesByNameExpl::_explore(), NodesByNameExpl::setName(), and NodesByNameExpl::~NodesByNameExpl().

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