Eris::InnerTerrainModSlope_impl< Shape > Class Template Reference

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

#include <TerrainMod_impl.h>

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

List of all members.

Public Member Functions

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

Protected Attributes

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

Detailed Description

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

Handles instances of Mercator::SlopeTerrainMod with arbitrary shapes.

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

Member Function Documentation

template<typename Shape >
bool Eris::InnerTerrainModSlope_impl< Shape >::createInstance ( const Atlas::Message::Element &  shapeElement,
const WFMath::Point< 3 > &  pos,
const WFMath::Quaternion &  orientation,
float  level,
float  dx,
float  dy 
) [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.
level The level where the slope should be created.
dx 
dy 
Returns:
True if the atlas data could be successfully parsed an a mod created.

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

Referenced by Eris::InnerTerrainModSlope::parseAtlasData().

template<typename Shape >
Mercator::TerrainMod * Eris::InnerTerrainModSlope_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::InnerTerrainModSlope_impl< Shape >::mTerrainMod.


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

Generated on Tue Nov 24 17:45:18 2009 for Eris by  doxygen 1.6.1