]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMaracasIRMViewManagerData.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMaracasIRMViewManagerData.h
1 #ifndef WXMARACASIRMVIEWMANAGERDATA_H_
2 #define WXMARACASIRMVIEWMANAGERDATA_H_
3
4 #include "vtkProp3D.h"
5 #include "vtkRenderer.h"
6 #include "vtkSTLReader.h"
7 #include "vtkPolyDataMapper.h"
8 #include "vtkActor.h"
9 #include "vtkProperty.h"
10
11
12
13 class wxMaracasIRMViewManagerData  {
14
15 public:
16         wxMaracasIRMViewManagerData(vtkProp3D* _prop3Dvect, std::string dataname="");   
17         ~wxMaracasIRMViewManagerData(); 
18         
19         /**
20         **      Adds a prop3D to the world of the application
21         **/
22         void setProp3D(vtkProp3D* prop3D);
23         /**
24         **      Changes the opacity in a prop3D
25         **/
26         void changeOpacity(int value);          
27         /**
28         **      Check if the variables are setted correctly
29         **/
30         void checkInvariant();
31         /**
32         **      get the prop3D 
33         **/
34         vtkProp3D* getProp3D();
35         /**
36         **      return the id from the daat
37         **/
38         int getId();
39         /**
40         **      set data id
41         **/
42         void setId(int propid);
43         /**
44         **      Get the filanme
45         **/
46     std::string getDataname();
47         /**
48         ** Set the filanme
49         **/
50     void setDataname(std::string dataname);
51         
52         /**
53         **      creates the image 
54         **/
55         void contourExtractor(int isovalue);
56
57         /**
58         **      Changes the color of the actor
59         **/
60         void changeColor(double red, double green, double blue);        
61         
62 protected:
63         /**
64          * Prop 3D (data actor)
65          */
66         vtkProp3D* _prop3D;     
67         /**
68          *  Dataname given by the user (ex. filename) 
69          **/
70         std::string _dataname;  
71         
72         
73 private:
74         
75         /*
76          * id of the data
77          */
78         int _id;                
79
80         
81 };
82
83 #endif /*WXMARACASIRMVIEWMANAGERDATA_H_*/