]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasIRMViewManager.h
BUG macOs
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMaracasIRMViewManager.h
index b9656d5e26de7e7bb5243c291daf7d57671fd213..bd3e8923b6e328a1926bce0cb95456d81b0d435e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   wxMaracas
   Module:    $RCSfile: wxMaracasIRMViewManager.h,v $
   Language:  C++
-  Date:      $Date: 2009/04/09 13:58:38 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2009/05/04 07:35:42 $
+  Version:   $Revision: 1.4 $
 
   Copyright: (c) 2002, 2003
   License:
@@ -61,7 +61,7 @@ public:
        /**
        **      changes the isovalue in a prop3D
        **/
-       void changeIsoValue(int value); 
+       void changeIsoValue(double value);      
        /**
        **      Check if the variables are setted correctly
        **/
@@ -100,7 +100,7 @@ public:
        /**
        **      Changes the color of the actor
        **/
-       void changeColor(double red, double green, double blue);
+       void changeColor(double red, double green, double blue);        
        
 private:       
        vtkProp3D* _prop3D;
@@ -110,10 +110,12 @@ private:
        int _maxgreylevel;
 
        /**
-       **
+       ** to the image render
        **/
+       vtkMarchingCubes* _cubesFilter;
+       vtkCleanPolyData* _cleanFilter; 
        vtkPolyDataMapper* _dataMapper;
-       vtkPolyData* _polydata;
+       
        /**
        ** Get's the max grey level of the image
        **/
@@ -136,20 +138,20 @@ public:
        /**
        **      Adds a prop3D to the manager and returns the identifier
        **/
-       int addProp3D(vtkProp3D* prop3D, std::string dataname);
+       int addProp3D(vtkProp3D* prop3D, std::string dataname) throw (char*);
        /**
        **      Adds a prop3D to the manager and returns the identifier
        **/
-       int addPropMHD(vtkImageData* imagedata, std::string dataname);
+       int addPropMHD(vtkImageData* imagedata, std::string dataname) throw(char*);
        /**
        **      Changes the opacity in a prop3D
        **/
-       void changeOpacity(int propid, int value);
+       void changeOpacity(int propid, int value)throw(char*);
 
        /**
        **      changes the isovalue in a prop3D
        **/
-       void changeIsoValue(int propid, int value);
+       void changeIsoValue(int propid, double value)throw(char*);
 
        /**
        **      loads a prop3D from a nSTL file
@@ -164,27 +166,29 @@ public:
        /**
        **      adds or removes an actor depending of the bool value
        **/
-       void addRemoveActor(int propid, bool addremove);
+       void addRemoveActor(int propid, bool addremove)throw(char*);
        /**
        **      Check if the variables are setted correctly
        **/
-       void checkInvariant();
+       void checkInvariant()throw(char*);
 
        /**
        **      Given an id search the data in the vector
        **/
-       wxMaracasIRMViewManagerData* getViewData(int id);
+       wxMaracasIRMViewManagerData* getViewData(int id)throw(char*);
 
        /**
        **      Given the id, return the max iso value from the imagedata
        **/
-       int getMaxIsoValue(int propid);
+       int getMaxIsoValue(int propid)throw(char*);
 
 
        /**
        **      Changes the color of the actor
        **/
-       void changeColor(int propid, double red, double green, double blue);
+       void changeColor(int propid, double red, double green, double blue) throw(char*);
+
+       void deleteActor(int propid)throw (char *);
        
 private:       
        std::vector<wxMaracasIRMViewManagerData*> prop3Dvect;