Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
GenGridDlg.h
1 //
2 // Name: GenGridDlg.h
3 //
4 // Copyright (c) 2007-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __GenGridDlg_H__
9 #define __GenGridDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 
13 // WDR: class declarations
14 
15 //----------------------------------------------------------------------------
16 // GenGridDlg
17 //----------------------------------------------------------------------------
18 
20 {
21 public:
22  // constructors and destructors
23  GenGridDlg( wxWindow *parent, wxWindowID id, const wxString &title,
24  bool bIsGeo, const wxPoint& pos = wxDefaultPosition,
25  const wxSize& size = wxDefaultSize,
26  long style = wxDEFAULT_DIALOG_STYLE );
27 
28  // WDR: method declarations for GenGridDlg
29  wxTextCtrl* GetSizeY() { return (wxTextCtrl*) FindWindow( ID_SIZEY ); }
30  wxTextCtrl* GetSizeX() { return (wxTextCtrl*) FindWindow( ID_SIZEX ); }
31  wxTextCtrl* GetSpacingY() { return (wxTextCtrl*) FindWindow( ID_SPACINGY ); }
32  wxTextCtrl* GetSpacingX() { return (wxTextCtrl*) FindWindow( ID_SPACINGX ); }
33 
34  void RecomputeSize();
35 
36  double m_fSpacingX;
37  double m_fSpacingY;
38  int m_iSizeX;
39  int m_iSizeY;
40  double m_fAreaX;
41  double m_fAreaY;
42  float m_fDistanceCutoff;
43 
44 private:
45  // WDR: member variable declarations for GenGridDlg
46  bool m_bSetting;
47 
48 private:
49  // WDR: handler declarations for GenGridDlg
50  void OnSizeXY( wxCommandEvent &event );
51  void OnSpacingXY( wxCommandEvent &event );
52 
53 private:
54  DECLARE_EVENT_TABLE()
55 };
56 
57 
58 
59 
60 #endif