Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
RenderOptionsDlg.h
1 //
2 // Name: RenderOptionsDlg.h
3 //
4 // Copyright (c) 2006-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __RenderOptionsDlg_H__
9 #define __RenderOptionsDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 
13 #include "ElevDrawOptions.h"
14 
15 // WDR: class declarations
16 
17 //----------------------------------------------------------------------------
18 // RenderOptionsDlg
19 //----------------------------------------------------------------------------
20 
22 {
23 public:
24  // constructors and destructors
25  RenderOptionsDlg( wxWindow *parent, wxWindowID id, const wxString &title,
26  const wxPoint& pos = wxDefaultPosition,
27  const wxSize& size = wxDefaultSize,
28  long style = wxDEFAULT_DIALOG_STYLE );
29 
30  // WDR: method declarations for RenderOptionsDlg
31  wxSpinCtrl* GetSpinCastDirection() { return (wxSpinCtrl*) FindWindow( ID_SPIN_CAST_DIRECTION ); }
32  wxSpinCtrl* GetSpinCastAngle() { return (wxSpinCtrl*) FindWindow( ID_SPIN_CAST_ANGLE ); }
33  wxCheckBox* GetCastShadows() { return (wxCheckBox*) FindWindow( ID_CHECK_SHADOWS ); }
34  wxRadioButton* GetRadioShadingDot() { return (wxRadioButton*) FindWindow( ID_RADIO_SHADING_DOT ); }
35  wxRadioButton* GetRadioShadingQuick() { return (wxRadioButton*) FindWindow( ID_RADIO_SHADING_QUICK ); }
36  wxRadioButton* GetRadioShadingNone() { return (wxRadioButton*) FindWindow( ID_RADIO_SHADING_NONE ); }
37  wxButton* GetEditColors() { return (wxButton*) FindWindow( ID_EDIT_COLORS ); }
38  wxChoice* GetChoiceColors() { return (wxChoice*) FindWindow( ID_CHOICE_COLORS ); }
39 
40  void SetOptions(ElevDrawOptions &opt);
41  void UpdateColorMapChoice();
42  void UpdateEnables();
43 
44  ElevDrawOptions m_opt;
45  wxString m_strColorMap;
46  bool m_bNoShading;
47 
48 private:
49  // WDR: member variable declarations for RenderOptionsDlg
50 
51 private:
52  // WDR: handler declarations for RenderOptionsDlg
53  void OnChoiceColors( wxCommandEvent &event );
54  void OnRadio( wxCommandEvent &event );
55  void OnEditColors( wxCommandEvent &event );
56  void OnInitDialog(wxInitDialogEvent& event);
57 
58 private:
59  DECLARE_EVENT_TABLE()
60 };
61 
62 #endif // __RenderOptionsDlg_H__
63