![]() |
VR-Forces 4.0.4 Class Documentation
|
Class that will be used to translate positions into a quick lookup key for cached intersections. More...
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 |
Class that will be used to translate positions into a quick lookup key for cached intersections.
| 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.
| makVrv::DtIntersectorCacheKey::DtIntersectorCacheKey | ( | const DtIntersectorCacheKey & | k | ) | [inline] |
Copy CTOR.
References myHashValue, and myVals.
| 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.
double makVrv::DtIntersectorCacheKey::myVals[7] [protected] |
Referenced by DtIntersectorCacheKey().
std::size_t makVrv::DtIntersectorCacheKey::myHashValue [protected] |
Referenced by DtIntersectorCacheKey(), hashValue(), operator std::size_t(), and operator==().