My Project
Classes | Public Member Functions | Protected Attributes | List of all members
ParaEngine::MetaHeightmap Class Reference

a meta height map is associated with a region in the global height map based terrain. More...

#include <MetaHeightmap.h>

Inheritance diagram for ParaEngine::MetaHeightmap:
ParaEngine::MetaObject ParaEngine::CRefCountedOne ParaEngine::CRefCounted

Classes

class  TerrainRegion
 a region in global height map based terrain. More...
 

Public Member Functions

 MetaHeightmap (MetaWorldFragment *wf, const TerrainRegion &t, float groundThreshold)
 
virtual void updateDataGrid (DataGrid *dataGrid)
 Adds this meta height map to the data grid. More...
 
float getFallofRange () const
 Returns the fallof range of the MetaHeightmap.
 
void setFallofRange (float fallof)
 Sets the fallof range. More...
 
virtual CShapeAABB getAABB () const
 Checks for overlap with an AABB.
 
- Public Member Functions inherited from ParaEngine::MetaObject
 MetaObject (MetaWorldFragment *wf, const Vector3 &position)
 
 MetaObject (MetaWorldFragment *wf)
 
const Vector3getPosition () const
 Returns the position of the meta object.
 
void setPosition (const Vector3 &position)
 Sets the position of the meta object.
 
MetaWorldFragmentgetMetaWorldFragment () const
 Returns the MetaWorldFragment* of the meta object.
 
- Public Member Functions inherited from ParaEngine::CRefCounted
void addref () const
 add reference count of the object. More...
 
bool delref () const
 decrease reference count of the object. More...
 
int GetRefCount () const
 get the reference count
 
virtual int Release ()
 
CRefCountedAddToAutoReleasePool ()
 addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
 

Protected Attributes

TerrainRegion mTerrainTile
 
float mFallofRange
 
float mGroundThreshold
 
float mGradient
 
- Protected Attributes inherited from ParaEngine::MetaObject
Vector3 mPosition
 
MetaWorldFragmentmMetaWorldFragment
 
- Protected Attributes inherited from ParaEngine::CRefCounted
int m_refcount
 

Detailed Description

a meta height map is associated with a region in the global height map based terrain.

Constructor & Destructor Documentation

§ MetaHeightmap()

MetaHeightmap::MetaHeightmap ( MetaWorldFragment wf,
const TerrainRegion t,
float  groundThreshold 
)
Parameters
wfworld fragment to which this meta object belongs.

Member Function Documentation

§ setFallofRange()

void ParaEngine::MetaHeightmap::setFallofRange ( float  fallof)
inline

Sets the fallof range.

A fallof range less than the dataGrids grid size will make the algorithm fail.

§ updateDataGrid()

void MetaHeightmap::updateDataGrid ( DataGrid dataGrid)
virtual

Adds this meta height map to the data grid.

Not sure about this...

Implements ParaEngine::MetaObject.


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