My Project
 All Classes Files Functions Variables Enumerations Pages
Public Member Functions | Public Attributes | List of all members
ParametersTerrain Class Reference

This class aggregates the controllable parameters for all things related to terrain generation. More...

#include <parameters_terrain.h>

Inheritance diagram for ParametersTerrain:
ParametersObject

Public Member Functions

 ParametersTerrain ()
 Constructor sets up some hopefully sensible defaults. More...
 
 ~ParametersTerrain ()
 Destructor.
 
- Public Member Functions inherited from ParametersObject
 ParametersObject ()
 Constructor sets up some hopefully sensible defaults.
 
virtual ~ParametersObject ()
 Destructor.
 

Public Attributes

uint subdivisions_unperturbed
 Numer of subdivisions (at the top level) which will be unperturbed.
 
XYZ variation
 Maximum size of perturbations (z in vertical direction, x & y horizontally).
 
ParametersNoise noise
 
float base_height
 Initial height of unsubdivided, unperturbed terrain, expressed as a proportion of variation.z.
 
float power_law
 Power law applied to terrain heights. More...
 
float snowline_equator
 Normalised height of snowline at the equator.
 
float snowline_pole
 Normalised height of snowline at the pole.
 
float snowline_power_law
 Power law for snowline.
 
float snowline_slope_effect
 Supresses snow on slopes.
 
float snowline_glacier_effect
 When positive, rivers become glaciers. When negative, rivers remain blue.
 
uint rivers
 Number of rivers to generate.
 
uint rivers_seed
 Random seed for river generation.
 
float lake_becomes_sea
 Limit on lake size as a proportion of available surface. More...
 
float oceans_and_rivers_emissive
 Amount of emissive colour for oceans and rivers.
 
FloatRGBA colour_ocean
 Colour for a terrain type.
 
FloatRGBA colour_river
 
FloatRGBA colour_shoreline
 
FloatRGBA colour_low
 
FloatRGBA colour_high
 
FloatRGBA colour_snow
 
- Public Attributes inherited from ParametersObject
ObjectType object_type
 Kind of object.
 
uint seed
 Random seed for subdivision and noise.
 
uint subdivisions
 Number of subdivisions.
 

Additional Inherited Members

- Public Types inherited from ParametersObject
enum  ObjectType { ObjectTypePlanet, ObjectTypeFlatHexagon, ObjectTypeFlatTriangle, ObjectTypeFlatSquare }
 What kind of object will be generated.
 

Detailed Description

This class aggregates the controllable parameters for all things related to terrain generation.

Todo:
Add these to ParametersTerrain (and ControlTerrain): float treeline; float beachline;

Constructor & Destructor Documentation

ParametersTerrain::ParametersTerrain ( )

Constructor sets up some hopefully sensible defaults.

Todo:
: Might be better (more portable) to use QTime::currentTime () for random seeds.

Member Data Documentation

float ParametersTerrain::lake_becomes_sea

Limit on lake size as a proportion of available surface.

When lakes (produced during the river-growing step) cover this fraction of the available terrain they become seas and no-longer need to find a drain.

float ParametersTerrain::power_law

Power law applied to terrain heights.

When >1, flattens low areas. When <1, flattens highland areas and creates gorges.


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