1 /*=========================================================================
4 Module: $RCSfile: wxMaracasSurfaceRendering.h,v $
6 Date: $Date: 2009/11/13 11:47:41 $
7 Version: $Revision: 1.3 $
9 Copyright: (c) 2002, 2003
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
16 =========================================================================*/
18 #ifndef __wxMaracasSurfaceRenderingPanelH__
19 #define __wxMaracasSurfaceRenderingPanelH__
23 #include "wx/aui/aui.h"
26 #include "vtkProp3D.h"
28 #include "wxMaracasSurfaceRenderingManager.h"
29 #include "wxMaracasSurfaceRenderingPanel.h"
33 class creaMaracasVisu_EXPORT wxMaracasSurfaceRendering : public wxPanel
37 wxMaracasSurfaceRendering( wxWindow* parent, std::string path);
38 ~wxMaracasSurfaceRendering( );
40 static wxMaracasSurfaceRendering* getInstance(wxWindow* parent,std::string path="");
42 static wxMaracasSurfaceRendering* getInstance();
44 void setRenderer(vtkRenderer* renderer);
46 void setInteractor(vtkRenderWindowInteractor* interactor);
48 void changeOpacity(int propid, int value);
50 void changeIsoValue(int propid, double value);
52 void addRemoveActor(int propid, bool addremove);
54 void addRemoveSurfaceBox(int propid, bool addremove);
56 void changeColor(int propid, double red, double green, double blue);
58 void addProp3D(vtkProp3D* prop3D, std::string dataname="");
60 void addPropMHD(vtkImageData* imgdata, std::string dataname="");
62 void loadProp3D(wxString filename, wxString dataname);
64 void loadPropMHD(wxString filename, wxString dataname);
66 void onLoadImageFile();
68 void addSurfaceRenderingPanel(wxMaracasSurfaceRenderingPanel* surrend, std::string dataname="");
70 std::string getPath();
72 void deleteActor(int propid);
74 static wxMaracasSurfaceRendering* instance;
76 wxMaracasSurfaceRenderingManager* surrendmanager;
77 wxAuiManager* wxauimanager;
82 void createFileChooser();
87 class ToolBarEventHandler : public wxEvtHandler{
90 ToolBarEventHandler();
91 ~ToolBarEventHandler();
93 void onLoadImageFile(wxCommandEvent& event);
100 class ToolBar : public wxToolBar{
104 ToolBar(wxWindow * parent,std::string iconsdir);
110 ToolBarEventHandler* _evthand;