1 /*=========================================================================
4 Module: $RCSfile: wxMaracasIRMViewManager.h,v $
6 Date: $Date: 2009/05/14 13:54:35 $
7 Version: $Revision: 1.5 $
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 =========================================================================*/
21 #ifndef __wxMaracasIRMViewManagerH__
22 #define __wxMaracasIRMViewManagerH__
27 #include "wxMaracasIRMViewManagerData.h"
30 class wxMaracasIRMViewManager {
33 wxMaracasIRMViewManager();
34 ~wxMaracasIRMViewManager();
37 ** Sets the renderer to manage the prop3D from the view
39 void setRenderer(vtkRenderer* renderer);
41 ** Adds a prop3D to the manager and returns the identifier
43 int addProp3D(vtkProp3D* prop3D, std::string dataname) throw (char*);
45 ** Adds a prop3D to the manager and returns the identifier
47 int addPropMHD(vtkImageData* imagedata, std::string dataname) throw(char*);
49 ** Changes the opacity in a prop3D
51 void changeOpacity(int propid, int value)throw(char*);
54 ** changes the isovalue in a prop3D
56 void changeIsoValue(int propid, double value)throw(char*);
59 ** loads a prop3D from a nSTL file
61 vtkProp3D* getProp3D(std::string filename);
64 ** loads a MHD file to convert it into an actor
66 vtkImageData* getImageData(std::string filename);
69 ** adds or removes an actor depending of the bool value
71 void addRemoveActor(int propid, bool addremove)throw(char*);
73 ** Check if the variables are setted correctly
75 void checkInvariant()throw(char*);
78 ** Given an id search the data in the vector
80 wxMaracasIRMViewManagerData* getViewData(int id)throw(char*);
83 ** Given the id, return the max iso value from the imagedata
85 int getMaxIsoValue(int propid)throw(char*);
89 ** Changes the color of the actor
91 void changeColor(int propid, double red, double green, double blue) throw(char*);
93 void deleteActor(int propid)throw (char *);
96 std::vector<wxMaracasIRMViewManagerData*> prop3Dvect;
98 vtkRenderer* _renderer;