AI_SDB_VisibleFrustumGenArray Class Reference
[Spatial Database]

#include <AI_SDB_GenArrayVisitors.h>

Inheritance diagram for AI_SDB_VisibleFrustumGenArray:

AI_SDB_VisibleFrustumVisitor AI_SDB_VisibilityVisitor

List of all members.


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

VisibleElementsm_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]

Test and possibly process an element.

Reimplemented from AI_SDB_VisibleFrustumVisitor.

void AI_SDB_VisibleFrustumGenArray::ClearArray (  )  [inline, protected]


Member Data Documentation


The documentation for this class was generated from the following file: