In file /home/blah/darwin2k/src/d2k/terrain/terrain.h:creates mpolys for various types of terrain.
Inheritance:
Public Fields
-
int mode
- mode for creating terrain; see terrainMode enumerated type
-
int nx
- number cells in the x direction
-
int ny
- number cells in the y direction
-
triple origin
- map origin
-
double xs
- x cellsize
-
double ys
- y cellsize
-
double rz
- orientation (rotation about z)
Public Methods
-
mpoly* generateFlatTerrain(double h)
- generates a flat terrain with the given height
-
mpoly* generateSinusoidalTerrain(double xWavelen, double xAmp, double xPhase, double yWavelen, double yAmp, double yPhase, int funcMode)
- generates sinusoidal terrain from the given parameters
-
mpoly* generateRandomTerrain(int nsamp, double exponent, double max)
- generates (bad) random terrain
-
mpoly* generateRock(int isEllipsoidal, const triple &dim, const triple ¢er, int detailLevel = 2, int randomOrientation = 0)
- generates an mpoly representing a rock
-
ptrList* createRocksFromDistribution(double coverage, double a2, double d2, double dmin = 0.1, double dmax = 1.5, long seed = -1)
- creates rocks of varying size based on a stochastic model
-
ptrList* createRocksFromDistribution(rockDistribution dist, double dmin = 0.1, double dmax = 1.5, long seed = -1)
- creates rocks of varying size from one of several predefined distributions
-
inline triple toWorld(const triple &xmap)
- converts from map to world coordinates
Public Members
-
enum terrainMode
- List of modes for terrain generation.
-
enum rockDistribution
- List of predefined distributions based on Mars data.
Public Fields
-
d2kSimulator* sim
-
configuration* cfg
-
const char* label
-
int active
Public Methods
-
virtual int minCfgs(void) const
-
virtual int maxCfgs(void) const
-
virtual const char* getCfgName(int i)
-
virtual int readParams(paramParser* parser)
-
virtual int setVariables(const ptrList* taskParamRecs)
-
virtual int simInit(d2kSimulator* Sim)
-
virtual int init(ptrList* Cfgs)
-
virtual int forceCfgResolution(void)
-
virtual int cleanup(void)
-
virtual int update(int &violated)
-
virtual const cfgLabelRecord* getLabelRec(int i) const
Public Fields
-
static int staticClassID
-
int objectID
-
int verboseLevel
Public Methods
-
virtual const char* className(void) const
-
virtual synObject* copy(void) const
-
virtual int isOfType(int typeNum, int derivedOk)
-
static int setStaticClassID(void)
-
virtual int classID(void) const
Documentation
creates mpolys for various types of terrain. The most useful
methods are generateRock() and createRocksFromDistribution().
- enum terrainMode
- List of modes for terrain generation.
- FROM_EVALUTOR - Evaluator will make explicit calls to
terrainGenerator methods to create terrain
- FLAT - generate a flat terrain when init() is called
- SINUSOID - generate a sinusoidal terrain when init() is called
- RANDOM - generate a random terrain when init() is called
- enum rockDistribution
- List of predefined distributions based on Mars data.
- COVERAGE_10: 10% coverage of ground by discrete rocks
- COVERAGE_20: 20% coverage of ground by discrete rocks
- COVERAGE_30: 30% coverage of ground by discrete rocks
- COVERAGE_40: 40% coverage of ground by discrete rocks
- int mode
- mode for creating terrain; see terrainMode enumerated type
- int nx
- number cells in the x direction
- int ny
- number cells in the y direction
- triple origin
- map origin
- double xs
- x cellsize
- double ys
- y cellsize
- double rz
- orientation (rotation about z)
- mpoly* generateFlatTerrain(double h)
- generates a flat terrain with the given height
- mpoly* generateSinusoidalTerrain(double xWavelen, double xAmp, double xPhase, double yWavelen, double yAmp, double yPhase, int funcMode)
- generates sinusoidal terrain from the given parameters
- mpoly* generateRandomTerrain(int nsamp, double exponent, double max)
- generates (bad) random terrain
- mpoly* generateRock(int isEllipsoidal, const triple &dim, const triple ¢er, int detailLevel = 2, int randomOrientation = 0)
- generates an mpoly representing a rock
- ptrList* createRocksFromDistribution(double coverage, double a2, double d2, double dmin = 0.1, double dmax = 1.5, long seed = -1)
- creates rocks of varying size based on a stochastic model
- ptrList* createRocksFromDistribution(rockDistribution dist, double dmin = 0.1, double dmax = 1.5, long seed = -1)
- creates rocks of varying size from one of several predefined
distributions
- inline triple toWorld(const triple &xmap)
- converts from map to world coordinates
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.