vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Default.h
Go to the documentation of this file.
1 
9 #ifndef VRECKO_NATURE_TERRAIN_DEFAULT_H
10 #define VRECKO_NATURE_TERRAIN_DEFAULT_H
11 
12 #include <osg/Vec2>
13 #include <osg/Vec3f>
14 #include <string>
15 
16 #include "Enumerations.h"
17 
18 namespace APNature
19 {
20  static class Default
21  {
22  public:
23 
24  // Common attributes
25  // =================
26  static const osg::Vec3f Position;
27  static const TerrainAlignment AlignmentX, AlignmentY;
28 
29  static const osg::Vec2f FieldSize;
30  static const float HeightMin, HeightMax;
31 
32  // DataSource attributes
33  // =====================
34  static const DataSourceType DataSourceType;
35  static const int SegmentSize;
36 
37  // Algorithm-type specific attributes
38  // ==================================
39  static const AlgorithmType AlgorithmType;
40  static const int ResolutionX, ResolutionY;
41 
42  static const int RandomSeed;
43 
44  // Random faults algorithm
45  static const int Iterations;
46  static const float FaultValueMin, FaultValueMax;
47 
48  // Midpoint displacement
49  static const float FractalDimension;
50  static const float CornerValueFrom, CornerValueTo;
51 
52  // Perlin noise algorithm
53  static const float Persistence;
54  static const int OctaveCount;
55  static const InterpolationType Interpolation;
56 
57  // Image-type specific attributes
58  static const std::string HeightMapPath;
59 
60  // Other attributes
61  // ================
62  static const osg::Vec3f TerrainViewScale;
63  static const std::string HeightMapSearchPath;
64  static const std::string ExportPathRoot;
65  static const std::string FileFormats[];
66 
67  } Default;
68 
69 }
70 
71 #endif