1 /*=========================================================================
4 Module: $RCSfile: wxMaracasIRMView.h,v $
6 Date: $Date: 2009/06/16 13:25:58 $
7 Version: $Revision: 1.6 $
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 __wxMaracasIRMViewPanelH__
19 #define __wxMaracasIRMViewPanelH__
23 #include "wx/aui/aui.h"
26 #include "vtkProp3D.h"
28 #include "wxMaracasIRMViewManager.h"
29 #include "wxMaracasIRMViewPanel.h"
33 class creaMaracasVisu_EXPORT wxMaracasIRMView : public wxPanel
37 wxMaracasIRMView( wxWindow* parent, std::string path);
40 static wxMaracasIRMView* getInstance(wxWindow* parent,std::string path="");
42 static wxMaracasIRMView* 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 addIRMViewPanel(wxMaracasIRMViewPanel* irmview, std::string dataname="");
66 std::string getPath();
68 void deleteActor(int propid);
70 static wxMaracasIRMView* instance;
72 wxMaracasIRMViewManager* irmmanager;
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;