![]() |
VR-Forces 4.1 Class Documentation
|
Instances of DtVrfObjectIntersectionRecord are used to record the results of DtVrfObject/DtChord intersection attempts. More...
Public Member Functions | |
| DtVrfObjectIntersectionRecord () | |
| DtVrfObjectIntersectionRecord (DtPoint &intersectionPoint, double intersectionTime, const DtSurface &surface, DtVrfObject *intersectedObject) | |
| virtual | ~DtVrfObjectIntersectionRecord () |
| bool | intersectionFound () const |
| Copy constructor and Assignment operator left to compiler generate implementations. | |
| void | setIntersectionFound (bool arg) |
| const DtPoint | intersectionPoint () const |
| void | setIntersectionPoint (const DtPoint &pt) |
| const double | intersectionTime () const |
| void | setIntersectionTime (double t) |
| const DtSurface | surface () const |
| void | setSurface (const DtSurface &s) |
| DtVrfObject * | intersectedVrfObject () |
| Get a pointer to the intersecting vrfObject. | |
| const DtVrfObject * | intersectedVrfObject () const |
| void | setIntersectedVrfObject (DtVrfObject *vrfObj) |
| unsigned int | numberOfIntersectionTests () const |
| The number of intersection tests that were performed in order to fill in this class can be kept, for instrumentation purposes. | |
| void | incrementNumberOfIntersectionTests () |
| Increments the current number of intersection tests by one. | |
| void | setNumberOfIntersectionTests (unsigned int newNumberOfTests) |
| Set outright the number of intersection tests. | |
Protected Member Functions | |
| bool | testInvariant () const |
Private Attributes | |
| bool | myIntersectionFound |
| DtPoint | myIntersectionPoint |
| double | myIntersectionTime |
| DtSurface | mySurface |
| DtVrfObject * | myIntersectedVrfObject |
| unsigned int | myNumberOfIntersectionTests |
| This represents the total number of intersection tests that were performed to fill in this intersection record. | |
Instances of DtVrfObjectIntersectionRecord are used to record the results of DtVrfObject/DtChord intersection attempts.
This class is copyable and assignable.
| DtVrfObjectIntersectionRecord::DtVrfObjectIntersectionRecord | ( | ) |
| DtVrfObjectIntersectionRecord::DtVrfObjectIntersectionRecord | ( | DtPoint & | intersectionPoint, |
| double | intersectionTime, | ||
| const DtSurface & | surface, | ||
| DtVrfObject * | intersectedObject | ||
| ) |
|
virtual |
|
inline |
Copy constructor and Assignment operator left to compiler generate implementations.
DtVrfObjectIntersectionRecord(const DtVrfObjectIntersectionRecord& original); const DtVrfObjectIntersectionRecord& operator=(const DtVrfObjectIntersectionRecord& original);
References myIntersectionFound, and testInvariant().
|
inline |
References myIntersectionFound, and testInvariant().
|
inline |
References myIntersectionPoint, and testInvariant().
|
inline |
References myIntersectionPoint, and testInvariant().
|
inline |
References myIntersectionTime, and testInvariant().
|
inline |
References myIntersectionTime, and testInvariant().
|
inline |
References mySurface, and testInvariant().
|
inline |
References mySurface, and testInvariant().
|
inline |
Get a pointer to the intersecting vrfObject.
References myIntersectedVrfObject, and testInvariant().
|
inline |
References myIntersectedVrfObject, and testInvariant().
|
inline |
References myIntersectedVrfObject, and testInvariant().
|
inline |
The number of intersection tests that were performed in order to fill in this class can be kept, for instrumentation purposes.
These are the accessor functions.
References myNumberOfIntersectionTests, and testInvariant().
|
inline |
Increments the current number of intersection tests by one.
References myNumberOfIntersectionTests, and testInvariant().
|
inline |
Set outright the number of intersection tests.
References myNumberOfIntersectionTests, and testInvariant().
|
protected |
Referenced by incrementNumberOfIntersectionTests(), intersectedVrfObject(), intersectionFound(), intersectionPoint(), intersectionTime(), numberOfIntersectionTests(), setIntersectedVrfObject(), setIntersectionFound(), setIntersectionPoint(), setIntersectionTime(), setNumberOfIntersectionTests(), setSurface(), and surface().
|
private |
Referenced by intersectionFound(), and setIntersectionFound().
|
private |
Referenced by intersectionPoint(), and setIntersectionPoint().
|
private |
Referenced by intersectionTime(), and setIntersectionTime().
|
private |
Referenced by setSurface(), and surface().
|
private |
Referenced by intersectedVrfObject(), and setIntersectedVrfObject().
|
private |
This represents the total number of intersection tests that were performed to fill in this intersection record.
This is intended to be used for instrumentation purposes, and is included because of the very low overhead.
Referenced by incrementNumberOfIntersectionTests(), numberOfIntersectionTests(), and setNumberOfIntersectionTests().