Mercator
Public Member Functions | Protected Attributes
Mercator::ShapeTerrainMod< Shape > Class Template Reference

Terrain modifier which is defined by a shape variable. More...

#include <TerrainMod.h>

Inheritance diagram for Mercator::ShapeTerrainMod< Shape >:
Mercator::TerrainMod Mercator::Effector Mercator::AdjustTerrainMod< Shape > Mercator::CraterTerrainMod< Shape > Mercator::LevelTerrainMod< Shape > Mercator::SlopeTerrainMod< Shape >

List of all members.

Public Member Functions

 ShapeTerrainMod (const Shape< 2 > &s)
 Constructor.
virtual bool checkIntersects (const Segment &s) const
void setShape (const Shape< 2 > &s)

Protected Attributes

Shape< 2 > m_shape
 Shape of the modifier.

Detailed Description

template<template< int > class Shape>
class Mercator::ShapeTerrainMod< Shape >

Terrain modifier which is defined by a shape variable.

This template extends TerrainMod by adding the ability to query the bounding box of the shape that defines this modification to the terrain.


Constructor & Destructor Documentation

template<template< int > class Shape>
Mercator::ShapeTerrainMod< Shape >::ShapeTerrainMod ( const Shape< 2 > &  s)

Constructor.

Parameters:
sshape of the modifier.

References Mercator::Effector::m_box, and Mercator::ShapeTerrainMod< Shape >::m_shape.


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