Cafu Engine
DialogTerrainGeneration.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_DIALOG_TERRAIN_GENERATION_HPP_INCLUDED
8 #define CAFU_DIALOG_TERRAIN_GENERATION_HPP_INCLUDED
9 
10 #include "Templates/Array.hpp"
11 #include "wxFB/TerrainEditorDialogs.h"
12 
13 
15 {
16  public:
17 
18  TerrainGenerationDialogT(wxWindow* Parent);
19 
20  int ShowModal(unsigned long TerrainResolution);
21 
22 
23  protected:
24 
25  // TerrainGenerationDialogFB implementation.
26  void OnSpinCtrlFrequency (wxSpinEvent& event);
27  void OnSliderFrequency (wxScrollEvent& event);
28  void OnSpinCtrlOctaves (wxSpinEvent& event);
29  void OnSliderOctaves (wxScrollEvent& event);
30  void OnSpinCtrlPersistence(wxSpinEvent& event);
31  void OnSliderPersistence (wxScrollEvent& event);
32  void OnSpinCtrlLacunarity (wxSpinEvent& event);
33  void OnSliderLacunarity (wxScrollEvent& event);
34  void OnSpinCtrlSeed (wxSpinEvent& event);
35 
36 
37  private:
38 
39  const unsigned long m_PreviewResolution; ///< Resolution of the preview window.
40  unsigned long m_TerrainResolution; ///< Resolution of the terrain that is generated.
41 
42  void UpdatePreview();
43 };
44 
45 #endif
Definition: DialogTerrainGeneration.hpp:14
Class TerrainGenerationDialogFB.
Definition: TerrainEditorDialogs.h:107