1 /**************************************************************************/
2 /* Copyright 2009 Tim Day */
3 /* */
4 /* This file is part of Fracplanet */
5 /* */
6 /* Fracplanet is free software: you can redistribute it and/or modify */
7 /* it under the terms of the GNU General Public License as published by */
8 /* the Free Software Foundation, either version 3 of the License, or */
9 /* (at your option) any later version. */
10 /* */
11 /* Fracplanet is distributed in the hope that it will be useful, */
12 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14 /* GNU General Public License for more details. */
15 /* */
16 /* You should have received a copy of the GNU General Public License */
17 /* along with Fracplanet. If not, see <http://www.gnu.org/licenses/>. */
18 /**************************************************************************/
19
20 #include "parameters_terrain.h"
21
22 /*! \todo: Might be better (more portable) to use QTime::currentTime () for random seeds.
23 */
ParametersTerrain()24 ParametersTerrain::ParametersTerrain()
25 :ParametersObject()
26 ,subdivisions_unperturbed(1)
27 ,variation(0.0,0.0,0.125)
28 ,noise(0)
29 ,base_height(0)
30 ,power_law(1.5)
31 ,snowline_equator(0.8)
32 ,snowline_pole(-0.1)
33 ,snowline_power_law(1.0)
34 ,snowline_slope_effect(1.0)
35 ,snowline_glacier_effect(0.1)
36 ,rivers(0)
37 ,rivers_seed(time(0))
38 ,lake_becomes_sea(0.05)
39 ,oceans_and_rivers_emissive(0.0)
40 ,colour_ocean (0.0,0.0,1.0,1.0)
41 ,colour_river (0.0,0.0,1.0,1.0)
42 ,colour_shoreline(1.0,1.0,0.0,1.0)
43 ,colour_low (0.0,1.0,0.0,1.0)
44 ,colour_high (1.0,0.5,0.0,1.0)
45 ,colour_snow (1.0,1.0,1.0,1.0)
46 {}
47
~ParametersTerrain()48 ParametersTerrain::~ParametersTerrain()
49 {}
50