#include <Intersector.h>
Public Member Functions | |
Intersector () | |
virtual | ~Intersector () |
virtual void | init (int mask, float maxDist=MAXFLOAT) |
PointEnv * | adoptIntersection (void) |
const PointEnv * | inspectIntersection (void) const |
float | getActDistance (void) const |
int | getMask (void) const |
virtual int | processCandidate (SceneGraphObject *pObject, const Vector3 &origin, const Vector3 &direction) |
Protected Attributes | |
PointEnv * | _pEnv |
PointEnv * | _pNewEnv |
float | _distance |
ESGbitmask | _wantedMask |
Definition at line 16 of file Intersector.h.
|
Constructor Definition at line 28 of file Intersector.h. |
|
Desctructor Definition at line 33 of file Intersector.h. |
|
Returns the closest point of intersection, the point is removed from this Intersctor object
Definition at line 16 of file Intersector.cc. References Intersector::_pEnv. Referenced by Surface::rayIntersection(), and RayIntExplorer::result(). |
|
Definition at line 63 of file Intersector.h. Referenced by RayIntExplorer::_explore(), and Surface::rayIntersection(). |
|
Definition at line 68 of file Intersector.h. |
|
Initializes the search of the closest point of intersection
Definition at line 6 of file Intersector.cc. References Intersector::_distance, Intersector::_pEnv, Intersector::_wantedMask, and ENV_WANT_DISTANCE. Referenced by Surface::rayIntersection(), and OSGAdapter::rayIntersection(). |
|
Returns reference to the closest point of intersection, the point remains under the control of this Intersctor object!
Definition at line 58 of file Intersector.h. |
|
Finds point of ray intersection with given primitive object and checks whether the point is not closer than already found closest point.
Definition at line 24 of file Intersector.cc. References Intersector::_distance, Intersector::_pEnv, Intersector::_pNewEnv, Intersector::_wantedMask, PointEnv::distance, ENV_HAVE_ASOC_PRIMITIVE, ENV_HAVE_DISTANCE, ENV_WANT_ASOC_PRIMITIVE, SceneGraphObject::geometry(), PointEnv::mask, PointEnv::pVisitableObj, and Geometry::rayIntersection(). Referenced by Surface::rayIntersection(). |
|
Definition at line 20 of file Intersector.h. Referenced by Intersector::init(), and Intersector::processCandidate(). |
|
Definition at line 18 of file Intersector.h. Referenced by Intersector::adoptIntersection(), Intersector::init(), and Intersector::processCandidate(). |
|
Definition at line 19 of file Intersector.h. Referenced by Intersector::processCandidate(). |
|
Definition at line 21 of file Intersector.h. Referenced by Intersector::init(), and Intersector::processCandidate(). |