1 /*=========================================================================
4 Module: $RCSfile: wxMaracasSurfaceRendering.h,v $
6 Date: $Date: 2009/10/15 11:56:43 $
7 Version: $Revision: 1.1 $
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 changeOpacity(int propid, int value);
48 void changeIsoValue(int propid, double value);
50 void addRemoveActor(int propid, bool addremove);
52 void changeColor(int propid, double red, double green, double blue);
54 void addProp3D(vtkProp3D* prop3D, std::string dataname="");
56 void addPropMHD(vtkImageData* imgdata, std::string dataname="");
58 void loadProp3D(wxString filename, wxString dataname);
60 void loadPropMHD(wxString filename, wxString dataname);
62 void onLoadImageFile();
64 void addSurfaceRenderingPanel(wxMaracasSurfaceRenderingPanel* surrend, std::string dataname="");
66 std::string getPath();
68 void deleteActor(int propid);
70 static wxMaracasSurfaceRendering* instance;
72 wxMaracasSurfaceRenderingManager* surrendmanager;
74 wxAuiManager* wxauimanager;
76 void createFileChooser();
84 class ToolBarEventHandler : public wxEvtHandler{
87 ToolBarEventHandler();
88 ~ToolBarEventHandler();
90 void onLoadImageFile(wxCommandEvent& event);
97 class ToolBar : public wxToolBar{
101 ToolBar(wxWindow * parent,std::string iconsdir);
107 ToolBarEventHandler* _evthand;