VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
makVrv::DtIntersectorCacheKey Class Reference

Class that will be used to translate positions into a quick lookup key for cached intersections. More...

List of all members.

Public Member Functions

 DtIntersectorCacheKey (DtIntersector::IntersectProperties p, double x, double y, double z)
 CTOR for single point intersection.
 DtIntersectorCacheKey (DtIntersector::IntersectProperties p, double x, double y, double z, double end_x, double end_y, double end_z)
 CTOR for start and end point (line)
 DtIntersectorCacheKey (const DtIntersectorCacheKey &k)
 Copy CTOR.
bool operator== (const DtIntersectorCacheKey &rhs) const
 Equality operator.
bool operator!= (const DtIntersectorCacheKey &rhs) const
std::size_t hash (const unsigned char *p, int n)
 Turn key into single hash value.
std::size_t hashValue () const
 Return calculated hash value.
 operator std::size_t () const

Protected Attributes

double myVals [7]
std::size_t myHashValue

Detailed Description

Class that will be used to translate positions into a quick lookup key for cached intersections.


Constructor & Destructor Documentation

makVrv::DtIntersectorCacheKey::DtIntersectorCacheKey ( DtIntersector::IntersectProperties  p,
double  x,
double  y,
double  z 
) [inline]

CTOR for single point intersection.

References hash(), myHashValue, and myVals.

makVrv::DtIntersectorCacheKey::DtIntersectorCacheKey ( DtIntersector::IntersectProperties  p,
double  x,
double  y,
double  z,
double  end_x,
double  end_y,
double  end_z 
) [inline]

CTOR for start and end point (line)

References hash(), myHashValue, and myVals.

Copy CTOR.

References myHashValue, and myVals.


Member Function Documentation

bool makVrv::DtIntersectorCacheKey::operator== ( const DtIntersectorCacheKey rhs) const [inline]

Equality operator.

References myHashValue.

bool makVrv::DtIntersectorCacheKey::operator!= ( const DtIntersectorCacheKey rhs) const [inline]
std::size_t makVrv::DtIntersectorCacheKey::hash ( const unsigned char *  p,
int  n 
) [inline]

Turn key into single hash value.

Referenced by DtIntersectorCacheKey().

std::size_t makVrv::DtIntersectorCacheKey::hashValue ( ) const [inline]

Return calculated hash value.

References myHashValue.

makVrv::DtIntersectorCacheKey::operator std::size_t ( ) const [inline]

References myHashValue.


Member Data Documentation

Referenced by DtIntersectorCacheKey().


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)