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