1 /*=========================================================================
4 Module: $RCSfile: wxMaracasRendererView.h,v $
7 =========================================================================*/
9 #ifndef __wxMaracasRendererViewPanelH__
10 #define __wxMaracasRendererViewPanelH__
14 #include "wx/aui/aui.h"
17 #include "vtkProp3D.h"
18 #include "wxVtkBaseView.h"
20 #include "wxMaracasRendererView.h"
21 #include "wxMaracasRenderTabbedPanel.h"
22 #include "wxMaracasMultipleVolumeRendererManager.h"
23 #include "wxMaracasSurfaceRenderingManager.h"
25 class creaMaracasVisu_EXPORT wxMaracasRendererView : public wxPanel
29 wxMaracasRendererView( wxWindow* parent, std::string path);
30 ~wxMaracasRendererView( );
32 static wxMaracasRendererView* getInstance(wxWindow* parent,std::string path="");
33 static wxMaracasRendererView* getInstance();
35 std::string getPath();
36 wxMaracasRenderTabbedPanel* getTabbedPanel(int id) throw(char*);
38 void setRenderer(vtkRenderer* renderer); /* throw(char*), */ // JPR
39 void setVtkBaseView(wxVtk3DBaseView* base);
40 void onLoadImageFile();
41 void addVolumes(vtkImageData* img, std::string pathfile, std::string filename);
42 void addPanels(wxMaracasRenderTabbedPanel* wxtabs, vtkImageData* img, std::string pathfile, std::string filename);
44 void deleteVolume(int volid);
45 std::vector<std::string> getFiles();
48 static wxMaracasRendererView* instance;
50 std::vector<wxMaracasRenderTabbedPanel*> tabsVector;
51 std::vector<std::string> files;
53 wxAuiManager* wxauimanager;
56 vtkRenderer* _renderer;
57 wxVtk3DBaseView* baseView;
63 class ToolBarEventHandlerRenderer : public wxEvtHandler
66 ToolBarEventHandlerRenderer();
67 ~ToolBarEventHandlerRenderer();
69 void onLoadImageFile(wxCommandEvent& event);
76 class ToolBarRenderer : public wxToolBar{
79 ToolBarRenderer(wxWindow * parent,std::string iconsdir);
80 ~ToolBarRenderer(void);
84 ToolBarEventHandlerRenderer* _evthand;