]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/include/manualContourContainer.h
53dca3cc02132bdeeff003335c19cb1a50d92f52
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / include / manualContourContainer.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: manualContourContainer.h,v $
5   Language:  C++
6   Date:      $Date: 2009/05/19 11:17:26 $
7   Version:   $Revision: 1.3 $
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 #ifndef MANUAL_CONTOUR_CONTAINER_H
19 #define MANUAL_CONTOUR_CONTAINER_H
20
21
22 #include <vector>
23 #include "manualContourControler.h"
24 #include "manualContourModel.h"
25 #include "manualViewContour.h"
26
27 class manualContourContainer  
28 {
29 public:
30         
31         manualContourContainer();
32         virtual ~manualContourContainer();
33
34         manualContourControler* getWallController();
35         manualContourControler* getLumenController();
36         manualContourControler* getCalcController(int i);
37         manualContourControler* getHypoController(int i);
38         void createWallContour(wxVtk2DBaseView  *_imageviewer2D_1);
39         void createLumenContour(wxVtk2DBaseView *_imageviewer2D_1);
40
41         int     addCalcificationContour(wxVtk2DBaseView *_imageviewer2D_1);
42         int     addHypodenseContour(wxVtk2DBaseView     *_imageviewer2D_1);
43
44         void setWallVisibility(bool visible);
45         
46         void setLumenVisibility(bool visible);
47         void setCalcVisibility(bool visible);
48         void setHypoVisibility(bool visible);
49         void setWallActive();
50         void setLumenActive();
51         void setCalcActive();
52         void setHypoActive();
53         void setCalcContourActive(int i);
54         void setHypoContourActive(int i);
55         int  getNumberOfCalcContours();
56         int  getNumberOfHypoContours();
57         void inactivate();
58
59         int getNumberOfWallContourPoints();
60         int getNumberOfLumenContourPoints();
61         int getNumberOfCalcContourPoints(int i);
62         int getNumberOfHypoContourPoints(int i);
63
64         double* getXVectorWallPoints();
65         double* getXVectorLumenPoints();
66         double* getXVectorCalcPoints(int i);
67         double* getXVectorHypoPoints(int i);
68
69         double* getYVectorWallPoints();
70         double* getYVectorLumenPoints();
71         double* getYVectorCalcPoints(int i);
72         double* getYVectorHypoPoints(int i);
73         void clear();
74         void clearWall();
75         void clearLumen();
76         void clearCalc();
77         void clearHypo();
78         void refreshWall(wxVtk2DBaseView        *_imageviewer2D_1);
79         void refreshLumen(wxVtk2DBaseView       *_imageviewer2D_1);
80         void refreshCalc(int i, wxVtk2DBaseView *_imageviewer2D_1);
81         void refreshHypo(int i, wxVtk2DBaseView *_imageviewer2D_1);
82         
83         void restartWallContour(wxVtk2DBaseView *_imageviewer2D_1);
84         void restartLumenContour(wxVtk2DBaseView        *_imageviewer2D_1);
85         void restartCalcContours();
86         void restartHypoContours();
87
88 private:
89         //Manual Contour Wall
90         
91         manualContourControler *_manContourControlWall;
92         manualContourModel              *_mContourModelWall;
93         manualViewContour               *_mViewContourWall;
94
95
96         //Manual Contour Lumen
97         manualContourControler  *_manContourControlLumen;
98         manualContourModel              *_mContourModelLumen;
99         manualViewContour                       *_mViewContourLumen;
100
101         //Manual Contour Calc
102         std::vector <manualContourControler *> _manContourControlCalc;
103         std::vector <manualContourModel *> _mContourModelCalc;
104         std::vector <manualViewContour *> _mViewContourCalc;
105
106         //Manual Contour Hypo
107         std::vector <manualContourControler *> _manContourControlHypo;
108         std::vector <manualContourModel *> _mContourModelHypo;
109         std::vector <manualViewContour *> _mViewContourHypo;    
110
111
112
113 };
114
115 #endif //