8 #ifndef __SceneGraphDlg_H__
9 #define __SceneGraphDlg_H__
11 #include "wx/imaglist.h"
24 SceneGraphDlg( wxWindow *parent, wxWindowID
id,
const wxString &title,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize,
27 long style = wxDEFAULT_DIALOG_STYLE );
30 void RefreshTreeContents();
34 wxButton* GetZoomto() {
return (wxButton*) FindWindow( ID_ZOOMTO ); }
35 wxCheckBox* GetEnabled() {
return (wxCheckBox*) FindWindow( ID_ENABLED ); }
36 wxTreeCtrl* GetScenetree() {
return (wxTreeCtrl*) FindWindow( ID_SCENETREE ); }
38 void CreateImageList(
int size = 16);
39 void AddNodeItemsRecursively(wxTreeItemId hParentItem, osg::Node *pNode,
int depth);
40 void AddEnginesRecursively(wxTreeItemId hParentItem,
vtEngine *pEng,
int depth);
43 wxImageList *m_imageListNormal;
45 wxCheckBox *m_pEnabled;
48 osg::Node *m_pSelectedNode;
52 void OnInitDialog(wxInitDialogEvent&
event);
53 void OnRefresh( wxCommandEvent &event );
54 void OnLog( wxCommandEvent &event );
55 void OnZoomTo( wxCommandEvent &event );
56 void OnEnabled( wxCommandEvent &event );
57 void OnTreeSelChanged( wxTreeEvent &event );
58 void OnChar(wxKeyEvent& event);
66 #endif // __SceneGraphDlg_H__