Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
RawDlg.h
1 //
2 // Name: RawDlg.h
3 //
4 // Copyright (c) 2001-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __RawDlg_H__
9 #define __RawDlg_H__
10 
11 #include "vtdata/MathTypes.h"
12 #include "vtdata/Projections.h"
13 
14 #include "VTBuilder_UI.h"
15 
16 // WDR: class declarations
17 
18 //----------------------------------------------------------------------------
19 // RawDlg
20 //----------------------------------------------------------------------------
21 
22 class RawDlg: public RawDlgBase
23 {
24 public:
25  // constructors and destructors
26  RawDlg( wxWindow *parent, wxWindowID id, const wxString &title,
27  const wxPoint& pos = wxDefaultPosition,
28  const wxSize& size = wxDefaultSize,
29  long style = wxDEFAULT_DIALOG_STYLE );
30 
31  // WDR: method declarations for RawDlg
32  wxButton* GetCrs() { return (wxButton*) FindWindow( ID_CRS ); }
33  wxButton* GetExtents() { return (wxButton*) FindWindow( ID_EXTENTS ); }
34  wxTextCtrl* GetSpacing() { return (wxTextCtrl*) FindWindow( ID_SPACING ); }
35  void OnInitDialog(wxInitDialogEvent& event);
36 
37  int m_iBytes;
38  int m_iWidth;
39  int m_iHeight;
40  float m_fVUnits;
41  float m_fSpacing;
42  bool m_bBigEndian;
43 
44  bool m_bExtSpacing;
45  bool m_bExtExact;
46  bool m_bCrsSimple;
47  bool m_bCrsCurrent;
48  bool m_bCrsExact;
49 
50  DRECT m_extents;
51  vtProjection m_proj;
52  vtProjection m_original;
53 
54 private:
55  // WDR: member variable declarations for RawDlg
56  void UpdateEnabling();
57  void UpdateExtents();
58  void UpdateProjection();
59 
60 private:
61  // WDR: handler declarations for RawDlg
62  void OnCRS( wxCommandEvent &event );
63  void OnExtents( wxCommandEvent &event );
64  void OnRadio( wxCommandEvent &event );
65 
66 private:
67  DECLARE_EVENT_TABLE()
68 };
69 
70 #endif