]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasMultipleVolumeRendererManager.h
creaButtonContainer: Updates in documentation, adding try catch clauses and cleaning...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMaracasMultipleVolumeRendererManager.h
index 14ef61b3b9a97f816fab52d571d337444fb92bea..4fac4e732095e973682cbda9aa46ca854add40ac 100644 (file)
@@ -3,8 +3,8 @@
   Program:   wxMaracas
   Module:    $RCSfile: wxMaracasMultipleVolumeRendererManager.h,v $
   Language:  C++
-  Date:      $Date: 2009/10/30 20:06:07 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2009/11/20 17:09:05 $
+  Version:   $Revision: 1.7 $
 
   Copyright: (c) 2002, 2003
   License:
@@ -23,6 +23,7 @@
 
 #include <iostream>
 #include <vector>
+#include <vtkMatrix4x4.h>
 
 #include "wxMaracasMultipleVolumeRendererManagerData.h"
 
@@ -37,10 +38,16 @@ public:
        **      Sets the renderer to manage the prop3D from the view
        **/
        void setRenderer(vtkRenderer*  renderer);
+
+       /**
+       **      Gets the renderer to manage the prop3D from the view
+       **/
+       vtkRenderer* getRenderer();
+       
        /**
        **      Adds a volume
        **/
-       int addVolume(vtkImageData* img, std::string dataname) throw (char*);   
+       int addVolume(int idTP, vtkImageData* img, std::string dataname) throw (char*); 
        
        /**
        **      loads a prop3D from a nSTL file
@@ -52,10 +59,16 @@ public:
        **/
        vtkImageData* getImageData(std::string filename);
 
+       /**
+       ** Gets image data asotiated with the rendering manager
+       **/
+       vtkImageData* getImageData();
+
        /**
        **      adds or removes an actor depending of the bool value
        **/
        void addRemoveActor(int propid, bool addremove) throw(char*);
+       
        /**
        **      Check if the variables are setted correctly
        **/
@@ -71,16 +84,24 @@ public:
        void setVolumeColor(int volid, std::vector<double> greylevel,
                                                                        std::vector<double> red,
                                                                        std::vector<double> green,
-                                                                       std::vector<double> blue);      
+                                                                       std::vector<double> blue)throw(char*);  
 
        /**
        ** Given an id search the data in the vector
        **/
        wxMaracasMultipleVolumeRendererManagerData* getViewData(int id)throw(char*);
+
+       void changeCompositeMIPFunction(int id, int function) throw (char *);
+       
        /**
-       **
+       ** Deletes given actor
        **/
        void deleteActor(int volumeid)throw (char *);
+
+       /**
+       ** Updates given volume
+       **/
+       void Update(int propid);
        
        vtkPiecewiseFunction* GetTransferFunction(int volumeid);
        vtkColorTransferFunction* GetColorFunction(int volumeid);
@@ -88,6 +109,7 @@ private:
        std::vector<wxMaracasMultipleVolumeRendererManagerData*> prop3Dvect;
 
        vtkRenderer*  _renderer;
+       vtkImageData* image;
 
        int _idCount;