]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasIRMViewManager.h
module IRM view
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMaracasIRMViewManager.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: wxMaracasIRMViewManager.h,v $
5   Language:  C++
6   Date:      $Date: 2009/04/01 16:16:59 $
7   Version:   $Revision: 1.1 $
8
9   Copyright: (c) 2002, 2003
10   License:
11   
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.
15
16 =========================================================================*/
17
18
19
20
21 #ifndef __wxMaracasIRMViewManagerH__
22 #define __wxMaracasIRMViewManagerH__
23
24 #include <iostream>
25 #include <vector>
26
27 #include "vtkProp3D.h"
28 #include "vtkRenderer.h"
29 #include "vtkSTLReader.h"
30 #include "vtkPolyDataMapper.h"
31 #include "vtkActor.h"
32 #include "vtkProperty.h"
33
34 class wxMaracasIRMViewManager  {
35
36 public:
37         wxMaracasIRMViewManager();
38         ~wxMaracasIRMViewManager();
39
40         /**
41         **      Sets the renderer to manage the prop3D from the view
42         **/
43         void setRenderer(vtkRenderer*  renderer);
44         /**
45         **      Adds a prop3D to the manager and returns the identifier
46         **/
47         int addProp3D(vtkProp3D* prop3D);
48         /**
49         **      Changes the opacity in a prop3D
50         **/
51         void changeOpacity(int propid, int value);
52
53         /**
54         **      changes the isovalue in a prop3D
55         **/
56         void changeIsoValue(int propid, int value);
57
58         /**
59         **      loads a prop3D from a nSTL file
60         **/
61         vtkProp3D* getProp3D(std::string filename);
62         
63 private:        
64         std::vector<vtkProp3D*> prop3Dvect;
65
66         vtkRenderer*  _renderer;
67
68         
69 };
70 #endif