AI_SDB_VisibleFrustumGenArray Class Reference
[Spatial Database]
#include <AI_SDB_GenArrayVisitors.h>
Inheritance diagram for AI_SDB_VisibleFrustumGenArray:

Detailed Description
Visits all elements visible in a view frustum and populates an AI_Array with the visible elements.This is a simple example of how to override visibilityvisitor. We just override Visit() to append the given element to the array.
- Version:
- 2.0 nVisibleFrustumGenArray was ripped from The Nebula Device and renamed to AI_SDB_VisibleFrustumGenArray. Now it is possible to use the class inside and outside Nebula projects.
| Public Member Functions | |
| AI_SDB_VisibleFrustumGenArray (const AI_SDB_Camera &cam, const AI_Matrix44 &camxform, VisibleElements &foundarray) | |
| ~AI_SDB_VisibleFrustumGenArray () | |
| void | Reset () | 
| reset any accumulated state. The view frustum is unchanged | |
| void | Visit (AI_SDB_SpatialElement *visitee) | 
| Test and possibly process an element. | |
| Protected Member Functions | |
| void | ClearArray () | 
| Protected Attributes | |
| VisibleElements & | m_visarray | 
Constructor & Destructor Documentation
| AI_SDB_VisibleFrustumGenArray::AI_SDB_VisibleFrustumGenArray | ( | const AI_SDB_Camera & | cam, | |
| const AI_Matrix44 & | camxform, | |||
| VisibleElements & | foundarray | |||
| ) |  [inline] | 
| AI_SDB_VisibleFrustumGenArray::~AI_SDB_VisibleFrustumGenArray | ( | ) |  [inline] | 
Member Function Documentation
| void AI_SDB_VisibleFrustumGenArray::Reset | ( | ) |  [inline, virtual] | 
reset any accumulated state. The view frustum is unchanged
Reimplemented from AI_SDB_VisibleFrustumVisitor.
| void AI_SDB_VisibleFrustumGenArray::Visit | ( | AI_SDB_SpatialElement * | visitee | ) |  [inline, virtual] | 
| void AI_SDB_VisibleFrustumGenArray::ClearArray | ( | ) |  [inline, protected] | 
Member Data Documentation
| VisibleElements& AI_SDB_VisibleFrustumGenArray::m_visarray  [protected] | 
The documentation for this class was generated from the following file:
