#include <OcclusionTester.h>
Public Types | |
VS_OUT = 0 | |
completely outside of view area (don't draw) | |
VS_IN = 1 | |
completey inside view area (draw, including all sub volumes) | |
VS_PARTIAL = 2 | |
partially inside view area (draw, but you could test sub volumes individually.) | |
enum | ViewState { VS_OUT = 0, VS_IN = 1, VS_PARTIAL = 2 } |
Value returned by an. More... | |
Public Member Functions | |
OcclusionTester () | |
virtual | ~OcclusionTester () |
ViewState | operator() (const AxisAlignedBoundingBox &aabb) const |
Test if an axis aligned bounding box is in view. | |
Public Attributes | |
btVector3 | plane_vectors [5] |
Plane normal vectors. | |
btScalar | plane_distances [5] |
Plane distances from the origin. | |
Protected Member Functions | |
bool | in_half_space (const btVector3 &point, const unsigned plane_index) const |
test if a point is in a half space defined by a plane equation. |
It knows the camera angle it is being tested against. The camera's view frustum is passed to this class as 5 planes: we ignore the back plane. Objects may use OcclusionTester to test if a bounding volume is in view.
Definition at line 27 of file OcclusionTester.h.
Value returned by an.
Definition at line 31 of file OcclusionTester.h.
Track::OcclusionTester::OcclusionTester | ( | ) |
Definition at line 17 of file OcclusionTester.cpp.
Track::OcclusionTester::~OcclusionTester | ( | ) | [virtual] |
Definition at line 21 of file OcclusionTester.cpp.
bool Track::OcclusionTester::in_half_space | ( | const btVector3 & | point, | |
const unsigned | plane_index | |||
) | const [inline, protected] |
test if a point is in a half space defined by a plane equation.
Definition at line 73 of file OcclusionTester.cpp.
OcclusionTester::ViewState Track::OcclusionTester::operator() | ( | const AxisAlignedBoundingBox & | aabb | ) | const |
Test if an axis aligned bounding box is in view.
Definition at line 25 of file OcclusionTester.cpp.
btScalar Track::OcclusionTester::plane_distances[5] |
btVector3 Track::OcclusionTester::plane_vectors[5] |
Plane normal vectors.
A point p is in view if p dot plane_vector[i] < plane_distance[i] for all planes i.
Definition at line 42 of file OcclusionTester.h.
Generated at Mon Sep 6 00:41:18 2010 by Doxygen version 1.4.7 for Racer version svn335.