Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

demeter::TerrainLattice Class Reference

Collaboration diagram for demeter::TerrainLattice:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TerrainLattice (int widthTerrains, int heightTerrains, float terrainWidth, float terrainHeight)
 ~TerrainLattice ()
void Load (char *szBaseName, int maxNumTriangles, int maxBlockSize, float commonRepeats, bool bUseBorders=false)
void AddTerrainLoadListener (TerrainLoadListener &listener)
void RemoveTerrainLoadListener (TerrainLoadListener &listener)
void AddTerrain (Terrain *pTerrain, int positionX, int positionY)
TerrainGetTerrain (int positionX, int positionY)
TerrainGetTerrainAtPoint (float x, float y)
void SetCameraPosition (float x, float y, float z)
void SetDetailThreshold (float threshold)
void Tessellate ()
void Render ()
float GetElevation (float x, float y)
float GetWidth ()
float GetHeight ()

Constructor & Destructor Documentation

TerrainLattice::TerrainLattice int  widthTerrains,
int  heightTerrains,
float  terrainWidth,
float  terrainHeight
 

Definition at line 2390 of file CLODTerrainRenderer.cpp.

TerrainLattice::~TerrainLattice  ) 
 

Definition at line 2402 of file CLODTerrainRenderer.cpp.


Member Function Documentation

void TerrainLattice::AddTerrain Terrain pTerrain,
int  positionX,
int  positionY
 

Definition at line 2407 of file CLODTerrainRenderer.cpp.

References demeter::Terrain::SetLatticePosition().

void TerrainLattice::AddTerrainLoadListener TerrainLoadListener listener  ) 
 

Definition at line 2725 of file CLODTerrainRenderer.cpp.

float TerrainLattice::GetElevation float  x,
float  y
[inline]
 

Definition at line 2566 of file CLODTerrainRenderer.cpp.

References demeter::Terrain::GetElevation(), and GetTerrainAtPoint().

float TerrainLattice::GetHeight  )  [inline]
 

Definition at line 2752 of file CLODTerrainRenderer.cpp.

Terrain * TerrainLattice::GetTerrain int  positionX,
int  positionY
 

Definition at line 2413 of file CLODTerrainRenderer.cpp.

Referenced by GetTerrainAtPoint().

Terrain * TerrainLattice::GetTerrainAtPoint float  x,
float  y
 

Definition at line 2484 of file CLODTerrainRenderer.cpp.

References GetTerrain().

Referenced by GetElevation().

float TerrainLattice::GetWidth  )  [inline]
 

Definition at line 2747 of file CLODTerrainRenderer.cpp.

void TerrainLattice::Load char *  szBaseName,
int  maxNumTriangles,
int  maxBlockSize,
float  commonRepeats,
bool  bUseBorders = false
 

Definition at line 2658 of file CLODTerrainRenderer.cpp.

References Exception, demeter::Terrain::GetHeight(), demeter::Settings::GetInstance(), demeter::Settings::GetMediaPath(), demeter::Terrain::GetWidth(), and demeter::Settings::PrependMediaPath().

void TerrainLattice::RemoveTerrainLoadListener TerrainLoadListener listener  ) 
 

Definition at line 2730 of file CLODTerrainRenderer.cpp.

void TerrainLattice::Render  ) 
 

Definition at line 2649 of file CLODTerrainRenderer.cpp.

References demeter::Terrain::Render().

void TerrainLattice::SetCameraPosition float  x,
float  y,
float  z
 

Definition at line 2494 of file CLODTerrainRenderer.cpp.

References demeter::TerrainLoadListener::TerrainLoaded(), and demeter::TerrainLoadListener::TerrainUnloading().

void TerrainLattice::SetDetailThreshold float  threshold  ) 
 

Definition at line 2557 of file CLODTerrainRenderer.cpp.

References demeter::Terrain::SetDetailThreshold().

void TerrainLattice::Tessellate  ) 
 

Definition at line 2613 of file CLODTerrainRenderer.cpp.

References demeter::Terrain::m_pRootBlock, demeter::TerrainBlock::RepairCracks(), demeter::Terrain::Tessellate(), and demeter::Terrain::UpdateNeighbor().


The documentation for this class was generated from the following files:
Generated on Thu Jul 29 16:39:47 2004 for OpenSim by doxygen 1.3.6