vtDynTerrainGeom Class Reference
[Dynamic Terrain (CLOD)]

Inheritance diagram for vtDynTerrainGeom:

Inheritance graph
[legend]

List of all members.

Public Member Functions

DTErr BasicInit (const vtElevationGrid *pGrid)
void SetOptions (bool bUseTriStrips, int iBlockArrayDim, int iTextureSize)
virtual void SetPolygonTarget (int iPolygonCount)
int GetPolygonTarget ()
int GetNumDrawnTriangles ()


Detailed Description

This class provides a framework for implementing any kind of dynamic geometry for a heightfield terrain grid. It is the parent class which contains common fuctionality used by each of the terrain CLOD implementations.

Member Function Documentation

DTErr vtDynTerrainGeom::BasicInit ( const vtElevationGrid pGrid  ) 

Sets up the vtDynTerrainGeom object. The units, extents, height range, grid dimensions and other properties are copied from the supplied elevation grid.

This is generally called from the Init() method of a subclass.

int vtDynTerrainGeom::GetNumDrawnTriangles (  ) 

Return the number of triangles that were rendered by this dynamic terrain last frame.

int vtDynTerrainGeom::GetPolygonTarget (  ) 

Get the polygon target, which is the number of polygons (generally triangles) which the CLOD algorithm will try to maintain.

void vtDynTerrainGeom::SetOptions ( bool  bUseTriStrips,
int  iTPatchDim,
int  iTPatchSize 
)

Set the options for this vtDynTerrainGeom:

Parameters:
bUseTriStrips True to enable triangle strips; this is only observed by SMTerrain.
iTPatchDim The number of texture patches, e.g. 4 indicated a 4x4 grid of patches.
iTPatchSize The size of each texture, e.g. 1024.

void vtDynTerrainGeom::SetPolygonTarget ( int  iCount  )  [virtual]

Set the polygon target, which is the number of polygons (generally triangles) which the CLOD algorithm will try to maintain.

Reimplemented in SRTerrain.


Generated on Wed Dec 24 13:08:43 2008 for vtlib library by  doxygen 1.5.7.1