Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
RenderDlg.h
1 //
2 // Name: RenderDlg.h
3 //
4 // Copyright (c) 2004-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __RenderDlg_H__
9 #define __RenderDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 #include "vtdata/vtString.h"
13 #include "vtdata/MathTypes.h"
14 #include "RenderOptions.h"
15 
16 // WDR: class declarations
17 
18 //----------------------------------------------------------------------------
19 // RenderDlg
20 //----------------------------------------------------------------------------
21 
22 class RenderDlg: public RenderDlgBase, public RenderOptions
23 {
24 public:
25  // constructors and destructors
26  RenderDlg( wxWindow *parent, wxWindowID id,
27  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 RenderDlg
33  wxRadioButton* GetJpeg() { return (wxRadioButton*) FindWindow( ID_JPEG ); }
34  wxRadioButton* GetGeotiff() { return (wxRadioButton*) FindWindow( ID_GEOTIFF ); }
35  wxButton* GetDotdotdot() { return (wxButton*) FindWindow( ID_DOTDOTDOT ); }
36  wxTextCtrl* GetTextToFile() { return (wxTextCtrl*) FindWindow( ID_TEXT_TO_FILE ); }
37  wxButton* GetBigger() { return (wxButton*) FindWindow( ID_BIGGER ); }
38  wxButton* GetSmaller() { return (wxButton*) FindWindow( ID_SMALLER ); }
39  wxTextCtrl* GetSizeY() { return (wxTextCtrl*) FindWindow( ID_SIZEY ); }
40  wxTextCtrl* GetSizeX() { return (wxTextCtrl*) FindWindow( ID_SIZEX ); }
41  wxChoice* GetColorMap() { return (wxChoice*) FindWindow( ID_CHOICE_COLORS ); }
42  wxBitmapButton* GetColorNodata() { return (wxBitmapButton*) FindWindow( ID_COLOR_NODATA ); }
43 
44  void RecomputeSize();
45  void UpdateEnabling();
46  void UpdateColorMapChoice();
47 
48  bool m_bConstraint;
49  int m_power;
50  bool m_bSetting;
51 
52 private:
53  // WDR: member variable declarations for RenderDlg
54 
55 private:
56  // WDR: handler declarations for RenderDlg
57  void OnColorNODATA( wxCommandEvent &event );
58  void OnEditColors( wxCommandEvent &event );
59  void OnBigger( wxCommandEvent &event );
60  void OnSmaller( wxCommandEvent &event );
61  void OnConstrain( wxCommandEvent &event );
62  void OnDotdotdot( wxCommandEvent &event );
63  void OnRadio( wxCommandEvent &event );
64  void OnInitDialog(wxInitDialogEvent& event);
65 
66 private:
67  DECLARE_EVENT_TABLE()
68 };
69 
70 #endif