voxelTerrain
 All Classes Functions Variables Typedefs Enumerations Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
blub::procedural::voxel::terrain::base< simpleType > Class Template Reference

The base class gets derived by every class in the namesapce terrain. It holds various level of details, always of type procedural::voxel::simple::base. More...

#include <base.hpp>

Inheritance diagram for blub::procedural::voxel::terrain::base< simpleType >:
blub::noncopyable blub::sync::voxel::accessor::terrain::receiver< voxelType >

Public Types

typedef simpleType t_simple
 
typedef t_simple * t_lod
 
typedef vector< scopedPointer
< t_simple > > 
t_lodList
 
typedef
t_simple::t_createTileCallback 
t_createTileCallback
 

Public Member Functions

 base ()
 base contructor
 
 ~base ()
 ~base destructor
 
t_lod getLod (const uint16 &lod) const
 getLod returns a level of detail. More...
 
const t_lodListgetLodList () const
 getLodList returns all level of details. More...
 
int32 getNumLod () const
 getNumLod returns number of level of details. More...
 
void setCreateTileCallback (const t_createTileCallback &toSet)
 setCreateTileCallback sets the callback for creating tiles to the lods. More...
 

Protected Attributes

t_lodList m_lods
 m_lods container for the lods.
 

Detailed Description

template<class simpleType>
class blub::procedural::voxel::terrain::base< simpleType >

The base class gets derived by every class in the namesapce terrain. It holds various level of details, always of type procedural::voxel::simple::base.

Member Function Documentation

template<class tileType >
base< tileType >::t_lod blub::procedural::voxel::terrain::base< tileType >::getLod ( const uint16 &  lod) const

getLod returns a level of detail.

Parameters
lodLod-index starting with zero.
Returns
template<class tileType >
const base< tileType >::t_lodList & blub::procedural::voxel::terrain::base< tileType >::getLodList ( ) const

getLodList returns all level of details.

Returns
template<class tileType >
int32 blub::procedural::voxel::terrain::base< tileType >::getNumLod ( ) const

getNumLod returns number of level of details.

Returns
Never negative.
template<class tileType >
void blub::procedural::voxel::terrain::base< tileType >::setCreateTileCallback ( const t_createTileCallback &  toSet)

setCreateTileCallback sets the callback for creating tiles to the lods.

Parameters
toSet

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