]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/ContourView.h
d7f740542cdf1136944b41e70e67331196598a84
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ContourView.h
1
2 #ifndef CONTOUR_VIEW_H
3 #define CONTOUR_VIEW_H
4
5 #include "vtkProperty.h"
6 #include "vtkActor.h"
7 #include "vtkPolyDataMapper.h"
8 #include "vtkPolyData.h"
9 #include "wxVtkBaseView.h"
10 #include <vector>
11
12 class ContourView  
13 {
14 public:
15         ContourView();
16         ~ContourView();
17
18
19
20         void    DeleteContours();
21         void    SetWxVtkBaseView(wxVtkBaseView *wxvtkbaseview);
22         void    Refresh();
23         void    CreateNewContour(vtkPolyData *contour, int type);
24
25 private:
26
27         enum ContourTypes
28         {
29                 BLUE = 0,         /*!< Lumen Type. */  
30                 MAGENTA,              /*!< Wall Type. */ 
31                 GREEN,     /*!< Calcification Type. */  
32                 YELLOW          /*!< Hypodense Type. */
33         };
34
35         wxVtkBaseView                                   *_wxvtkbaseview;
36         
37         std::vector<vtkPolyDataMapper*> contour_mapped;
38         std::vector<vtkActor*>                  contour_actor;
39         //vtkActor                                              *_contourVtkActor;
40         //vtkPolyDataMapper                             *_bboxMapper;
41
42         void                    DeleteVtkObjects();
43
44         
45 };
46
47 #endif // ContourView
48
49