Contents Functions Classes Topics User Forum CVS

G3D::AABSPTree< T >::RayIntersectionIterator Class Reference

#include <AABSPTree.h>

List of all members.

Public Member Functions

 RayIntersectionIterator ()
bool operator!= (const RayIntersectionIterator &other) const
bool operator== (const RayIntersectionIterator &other) const
void markBreakNode ()
void clearBreakNode ()
RayIntersectionIteratoroperator++ ()
const T & operator * () const
T const * operator-> () const
 operator T * () const

Public Attributes

double minDistance
double maxDistance
int debugCounter

Friends

class AABSPTree< T >

Classes

struct  StackFrame


Detailed Description

template<class T>
class G3D::AABSPTree< T >::RayIntersectionIterator

See AABSPTree::beginRayIntersection


Constructor & Destructor Documentation

template<class T>
G3D::AABSPTree< T >::RayIntersectionIterator::RayIntersectionIterator  )  [inline]
 


Member Function Documentation

template<class T>
void G3D::AABSPTree< T >::RayIntersectionIterator::clearBreakNode  )  [inline]
 

Clears the break node. Can be used before or after the iterator stops from a break. Beta API-- subject to change

template<class T>
void G3D::AABSPTree< T >::RayIntersectionIterator::markBreakNode  )  [inline]
 

Marks the node where the most recent intersection occurred. If the iterator exhausts this node it will stop and set itself to the end iterator.

Use this after you find a true intersection to stop the iterator from searching more than necessary. Beta API-- subject to change

template<class T>
const T& G3D::AABSPTree< T >::RayIntersectionIterator::operator *  )  const [inline]
 

Overloaded dereference operator so the iterator can masquerade as a pointer to a member

template<class T>
G3D::AABSPTree< T >::RayIntersectionIterator::operator T *  )  const [inline]
 

Overloaded cast operator so the iterator can masquerade as a pointer to a member

template<class T>
bool G3D::AABSPTree< T >::RayIntersectionIterator::operator!= const RayIntersectionIterator other  )  const [inline]
 

template<class T>
RayIntersectionIterator& G3D::AABSPTree< T >::RayIntersectionIterator::operator++  )  [inline]
 

template<class T>
T const* G3D::AABSPTree< T >::RayIntersectionIterator::operator->  )  const [inline]
 

Overloaded dereference operator so the iterator can masquerade as a pointer to a member

template<class T>
bool G3D::AABSPTree< T >::RayIntersectionIterator::operator== const RayIntersectionIterator other  )  const [inline]
 

Compares two iterators, but will only return true if both are at the end.


Friends And Related Function Documentation

template<class T>
friend class AABSPTree< T > [friend]
 


Member Data Documentation

template<class T>
int G3D::AABSPTree< T >::RayIntersectionIterator::debugCounter
 

Counts how many bounding box intersection tests have been made so far.

template<class T>
double G3D::AABSPTree< T >::RayIntersectionIterator::maxDistance
 

A maximum bound on the distance to the intersection.

template<class T>
double G3D::AABSPTree< T >::RayIntersectionIterator::minDistance
 

A minimum bound on the distance to the intersection.


The documentation for this class was generated from the following file:
Generated on Mon Jul 17 11:50:45 2006 for G3D by doxygen 1.4.5
Hosted by SourceForge.net Logo