Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
LightDlg.h
1 //
2 // Name: LightDlg.h
3 //
4 // Copyright (c) 2004-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __LightDlg_H__
9 #define __LightDlg_H__
10 
11 #include "CManager_UI.h"
12 #include "wx/colourdata.h"
13 
14 // WDR: class declarations
15 
16 //----------------------------------------------------------------------------
17 // LightDlg
18 //----------------------------------------------------------------------------
19 
20 class LightDlg: public LightDlgBase
21 {
22 public:
23  // constructors and destructors
24  LightDlg( wxWindow *parent, wxWindowID id, const wxString &title,
25  const wxPoint& pos = wxDefaultPosition,
26  const wxSize& size = wxDefaultSize,
27  long style = wxDEFAULT_DIALOG_STYLE );
28 
29  void UseLight(vtTransform *pLight);
30  void UpdateColorBitmaps();
31 
32  // WDR: method declarations for LightDlg
33  wxTextCtrl* GetDirz() { return (wxTextCtrl*) FindWindow( ID_DIRZ ); }
34  wxTextCtrl* GetDiry() { return (wxTextCtrl*) FindWindow( ID_DIRY ); }
35  wxTextCtrl* GetDirx() { return (wxTextCtrl*) FindWindow( ID_DIRX ); }
36  wxBitmapButton* GetDiffuse() { return (wxBitmapButton*) FindWindow( ID_DIFFUSE ); }
37  wxBitmapButton* GetAmbient() { return (wxBitmapButton*) FindWindow( ID_AMBIENT ); }
38  wxChoice* GetLight() { return (wxChoice*) FindWindow( ID_LIGHT ); }
39 
40 private:
41  // WDR: member variable declarations for LightDlg
42  vtTransform *m_pMovLight;
43  vtLightSource *m_pLight;
44  FPoint3 m_dir;
45 
46  wxColour m_ambient, m_diffuse;
47  wxColourData m_data;
48 
49 private:
50  // WDR: handler declarations for LightDlg
51  void OnText( wxCommandEvent &event );
52  void OnDiffuse( wxCommandEvent &event );
53  void OnAmbient( wxCommandEvent &event );
54  void OnLight( wxCommandEvent &event );
55 
56 private:
57  DECLARE_EVENT_TABLE()
58 };
59 
60 
61 
62 
63 #endif