vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GeneratedTerrainProperties.h
Go to the documentation of this file.
1 
10 #ifndef VRECKO_NATURE_TERRAIN_GENERATEDTERRAINPROPERTIES_H
11 #define VRECKO_NATURE_TERRAIN_GENERATEDTERRAINPROPERTIES_H
12 
13 #include <vrecko/ReaderWriter.h>
14 #include <osg/Vec2>
15 
16 #include "TerrainProperties.h"
17 
18 namespace APNature
19 {
20  static class GeneratedTerrainProperties : public TerrainProperties
21  {
22  protected:
23 
24  // Algorithm-type specific attributes
25  // ==================================
26  static AlgorithmType _algorithmType;
27 
28  static int _randomSeed;
29 
30  public:
31 
32  // Algorithm-type specific methods
33  // ###############################
34 
38  static inline AlgorithmType Algorithm() { return _algorithmType; }
39  static inline void Algorithm(AlgorithmType algorithmType) { _algorithmType = algorithmType; }
40 
44  static inline int RandomSeed() { return _randomSeed; }
45  static inline void RandomSeed(int randomSeed) { _randomSeed = randomSeed; }
46 
51  static void LoadDataSourceNodeParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *parameters);
52 
53  protected:
54 
59  static void ParseRandomSeedString(const std::string& input);
60 
61  } GeneratedTerrainProperties;
62 
63 }
64 
65 #endif