Eris 1.3.16
Public Member Functions | Protected Attributes

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 
)

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

Parameters:
shapeElementThe atlas data containing shape information.
posThe position where the mod should be created, in world space.
levelThe level where the slope should be created.
dx
dy
Returns:
True if the atlas data could be successfully parsed an a mod created.

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.


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