Eris::InnerTerrainModLevel_impl< Shape > Class Template Reference

Handles instances of Mercator::LevelTerrainMod with arbitrary shapes. More...

#include <TerrainMod_impl.h>

Inheritance diagram for Eris::InnerTerrainModLevel_impl< Shape >:
Eris::InnerTerrainMod_impl

List of all members.

Public Member Functions

 InnerTerrainModLevel_impl ()
 Ctor.
virtual ~InnerTerrainModLevel_impl ()
 Dtor.
bool createInstance (const Atlas::Message::Element &shapeElement, const WFMath::Point< 3 > &pos, const WFMath::Quaternion &orientation, float height)
 Tries to create a new instance from the passes in atlas data.
virtual Mercator::TerrainMod * getModifier ()

Protected Attributes

Mercator::LevelTerrainMod
< Shape > * 
mTerrainMod
 The actual terrain mod instance, owned by this instance.

Detailed Description

template<typename Shape>
class Eris::InnerTerrainModLevel_impl< Shape >

Handles instances of Mercator::LevelTerrainMod with arbitrary shapes.

Author:
Erik Hjortsberg <erik.hjortsberg@iteam.se>

Member Function Documentation

template<typename Shape >
bool Eris::InnerTerrainModLevel_impl< Shape >::createInstance ( const Atlas::Message::Element &  shapeElement,
const WFMath::Point< 3 > &  pos,
const WFMath::Quaternion &  orientation,
float  height 
) [inline]

Tries to create a new instance from the passes in atlas data.

Parameters:
shapeElement The atlas data containing shape information.
pos The position where the mod should be created, in world space.
height The height where the level should be created.
Returns:
True if the atlas data could be successfully parsed an a mod created.

References Eris::InnerTerrainModLevel_impl< Shape >::mTerrainMod.

template<typename Shape >
Mercator::TerrainMod * Eris::InnerTerrainModLevel_impl< Shape >::getModifier (  )  [inline, virtual]

Gets the modifier which this instance represents.

Returns:
A pointer to a terrain modifier, or null if none could be created.

Implements Eris::InnerTerrainMod_impl.

References Eris::InnerTerrainModLevel_impl< Shape >::mTerrainMod.


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

Generated by  doxygen 1.6.2