InspectorBVH Class Reference

#include <InspectorBVH.h>

Inheritance diagram for InspectorBVH:

InspectorSDS List of all members.

Public Member Functions

 InspectorBVH (SDS *s, unsigned d)
virtual const GeometryfirstElement ()
virtual const GeometrynextElement ()

Protected Attributes

unsigned _depth
 maximal depth of traversal in the BVH
BVH::Node_pActNode
 actual node during the traversal
unsigned _actDepth
 actual depth during the traversal
SDS_pAggregate
 inspected spatial data structure

Detailed Description

Class allowing to inspect internal structure of Bouding Volume Hierarchy (BVH)

Definition at line 16 of file InspectorBVH.h.


Constructor & Destructor Documentation

InspectorBVH SDS s,
unsigned  d
[inline]
 

Constructor

Parameters:
s spatial data structure for inspection
d maximal depth of traversal in BVH

Definition at line 29 of file InspectorBVH.h.


Member Function Documentation

const Geometry * firstElement  )  [virtual]
 

This method starts new inspection

Returns:
first relevant element from SDS or NULL

Implements InspectorSDS.

Definition at line 5 of file InspectorBVH.cc.

References InspectorBVH::_actDepth, InspectorBVH::_pActNode, InspectorSDS::_pAggregate, BVH::Node::bv, and BVH::Node::leftChild.

const Geometry * nextElement  )  [virtual]
 

This method continues in inspection

Returns:
next relevant element from SDS or NULL

Implements InspectorSDS.

Definition at line 20 of file InspectorBVH.cc.

References InspectorBVH::_actDepth, InspectorBVH::_pActNode, BVH::Node::bv, BVH::Node::leftChild, and BVH::Node::parent.


Member Data Documentation

unsigned _actDepth [protected]
 

actual depth during the traversal

Definition at line 20 of file InspectorBVH.h.

Referenced by InspectorBVH::firstElement(), and InspectorBVH::nextElement().

unsigned _depth [protected]
 

maximal depth of traversal in the BVH

Definition at line 18 of file InspectorBVH.h.

BVH::Node* _pActNode [protected]
 

actual node during the traversal

Definition at line 19 of file InspectorBVH.h.

Referenced by InspectorBVH::firstElement(), and InspectorBVH::nextElement().

SDS* _pAggregate [protected, inherited]
 

inspected spatial data structure

Definition at line 19 of file InspectorSDS.h.

Referenced by InspectorBVH::firstElement().


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