Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
TileDlg.h
1 //
2 // Name: TileDlg.h
3 //
4 // Copyright (c) 2005-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __TileDlg_H__
9 #define __TileDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 #include "vtdata/ElevationGrid.h"
13 #include "TilingOptions.h"
14 
15 class BuilderView;
16 
17 // WDR: class declarations
18 
19 //----------------------------------------------------------------------------
20 // TileDlg
21 //----------------------------------------------------------------------------
22 
23 class TileDlg: public TileDlgBase
24 {
25 public:
26  // constructors and destructors
27  TileDlg( wxWindow *parent, wxWindowID id, const wxString &title,
28  const wxPoint& pos = wxDefaultPosition,
29  const wxSize& size = wxDefaultSize,
30  long style = wxDEFAULT_DIALOG_STYLE );
31 
32  // WDR: method declarations for TileDlg
33  wxChoice* GetChoiceLod0Size() { return (wxChoice*) FindWindow( ID_CHOICE_LOD0_SIZE ); }
34 
35  void SetTilingOptions(TilingOptions &opt);
36  void GetTilingOptions(TilingOptions &opt) const;
37  void SetArea(const DRECT &area);
38  void UpdateInfo();
39  void SetElevation(bool bElev);
40  void SetView(BuilderView *pView) { m_pView = pView; }
41  void UpdateEnables();
42 
43 public:
44  // WDR: member variable declarations for TileDlg
45  wxString m_strToFile;
46  int m_iColumns;
47  int m_iRows;
48  int m_iLODChoice;
49  int m_iLOD0Size;
50  int m_iNumLODs;
51 
52  bool m_bElev;
53 
54  int m_iTotalX;
55  int m_iTotalY;
56  double m_fAreaX;
57  double m_fAreaY;
58  double m_fEstX;
59  double m_fEstY;
60  double m_fCurX;
61  double m_fCurY;
62 
63  bool m_bOmitFlatTiles;
64  bool m_bMaskUnknown;
65  bool m_bCompressNone;
66  bool m_bCompressOGL;
67  bool m_bCompressSquishFast;
68  bool m_bCompressSquishSlow;
69  bool m_bCompressJPEG;
70 
71  DRECT m_area;
72  bool m_bSetting;
73  BuilderView *m_pView;
74 
75 private:
76  // WDR: handler declarations for TileDlg
77  void OnFilename( wxCommandEvent &event );
78  void OnLODSize( wxCommandEvent &event );
79  void OnSize( wxCommandEvent &event );
80  void OnDotDotDot( wxCommandEvent &event );
81 
82 private:
83  DECLARE_EVENT_TABLE()
84 };
85 
86 #endif // __TileDlg_H__
87