random_racer::TerrainGenerator Class Reference

The TerrainGenerator combines the ControlPointContainer and the Nurbs to supply a useable interface to the TerrainLoader implementations for generating terrain data. More...

#include <TerrainGenerator.h>

Inheritance diagram for random_racer::TerrainGenerator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 TerrainGenerator (VRS::SO< ControlPointContainer > container, double size, double spacing, unsigned int levelOfDetail)
 Ctor.
virtual ~TerrainGenerator ()
 Dtor.
void generate (double x, double y, std::vector< VRS::Vector > *target)
 Tells the generator to generate points for a center of x and y into target, which is usually a cache in a TerrainLoader.

Private Attributes

VRS::SO< ControlPointContainerm_container
 Our pointer to the ControlPointContainer.
double m_size
 This is often called viewSize in the TerrainLoaders.
double m_spacing
VRS::SO< Nurbsm_nurbs
unsigned int m_lod

Detailed Description

The TerrainGenerator combines the ControlPointContainer and the Nurbs to supply a useable interface to the TerrainLoader implementations for generating terrain data.

Definition at line 21 of file TerrainGenerator.h.


Constructor & Destructor Documentation

random_racer::TerrainGenerator::TerrainGenerator ( VRS::SO< ControlPointContainer container,
double  size,
double  spacing,
unsigned int  levelOfDetail 
)

Ctor.

random_racer::TerrainGenerator::~TerrainGenerator (  )  [virtual]

Dtor.

Definition at line 29 of file TerrainGenerator.cpp.


Member Function Documentation

void random_racer::TerrainGenerator::generate ( double  x,
double  y,
std::vector< VRS::Vector > *  target 
)

Tells the generator to generate points for a center of x and y into target, which is usually a cache in a TerrainLoader.

Definition at line 34 of file TerrainGenerator.cpp.

References m_container, m_lod, m_nurbs, and m_size.


Member Data Documentation

VRS::SO<ControlPointContainer> random_racer::TerrainGenerator::m_container [private]

Our pointer to the ControlPointContainer.

Definition at line 26 of file TerrainGenerator.h.

Referenced by generate().

double random_racer::TerrainGenerator::m_size [private]

This is often called viewSize in the TerrainLoaders.

Definition at line 31 of file TerrainGenerator.h.

Referenced by generate().

double random_racer::TerrainGenerator::m_spacing [private]

Definition at line 36 of file TerrainGenerator.h.

VRS::SO<Nurbs> random_racer::TerrainGenerator::m_nurbs [private]

Definition at line 41 of file TerrainGenerator.h.

Referenced by generate().

unsigned int random_racer::TerrainGenerator::m_lod [private]

Definition at line 46 of file TerrainGenerator.h.

Referenced by generate().


The documentation for this class was generated from the following files:
Generated on Fri May 11 21:02:13 2007 for Random Racer by  doxygen 1.5.1