VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Private Attributes
DtVrfObjectIntersectionRecord Class Reference

Instances of DtVrfObjectIntersectionRecord are used to record the results of DtVrfObject/DtChord intersection attempts. More...

List of all members.

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)
DtVrfObjectintersectedVrfObject ()
 Get a pointer to the intersecting vrfObject.
const DtVrfObjectintersectedVrfObject () 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
DtVrfObjectmyIntersectedVrfObject
unsigned int myNumberOfIntersectionTests
 This represents the total number of intersection tests that were performed to fill in this intersection record.

Detailed Description

Instances of DtVrfObjectIntersectionRecord are used to record the results of DtVrfObject/DtChord intersection attempts.

This class is copyable and assignable.


Constructor & Destructor Documentation

DtVrfObjectIntersectionRecord::DtVrfObjectIntersectionRecord ( DtPoint intersectionPoint,
double  intersectionTime,
const DtSurface surface,
DtVrfObject intersectedObject 
)

Member Function Documentation

Copy constructor and Assignment operator left to compiler generate implementations.

DtVrfObjectIntersectionRecord(const DtVrfObjectIntersectionRecord& original); const DtVrfObjectIntersectionRecord& operator=(const DtVrfObjectIntersectionRecord& original);

References myIntersectionFound, and testInvariant().

const double DtVrfObjectIntersectionRecord::intersectionTime ( ) const [inline]

References mySurface, and testInvariant().

References mySurface, and testInvariant().

Get a pointer to the intersecting vrfObject.

References myIntersectedVrfObject, and testInvariant().

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.

Returns:
The number of intersection tests associated with this record.

References myNumberOfIntersectionTests, and testInvariant().

Increments the current number of intersection tests by one.

References myNumberOfIntersectionTests, and testInvariant().

void DtVrfObjectIntersectionRecord::setNumberOfIntersectionTests ( unsigned int  newNumberOfTests) [inline]

Set outright the number of intersection tests.

References myNumberOfIntersectionTests, and testInvariant().


Member Data Documentation

Referenced by setSurface(), and surface().

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().


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)