1 /*=========================================================================
4 Module: $RCSfile: wxMaracasSurfaceRenderingManager.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 =========================================================================*/
21 #ifndef __wxMaracasSurfaceRenderingManagerH__
22 #define __wxMaracasSurfaceRenderingManagerH__
27 #include "wxMaracasSurfaceRenderingManagerData.h"
30 class wxMaracasSurfaceRenderingManager {
33 wxMaracasSurfaceRenderingManager();
34 ~wxMaracasSurfaceRenderingManager();
37 ** Sets the renderer to manage the prop3D from the surface render
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 wxMaracasSurfaceRenderingManagerData* 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<wxMaracasSurfaceRenderingManagerData*> prop3Dvect;
98 vtkRenderer* _renderer;