]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/include/manualContourContainer.h
Support #1768 CREATIS Licence insertion
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / include / manualContourContainer.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 /*=========================================================================
27
28   Program:   wxMaracas
29   Module:    $RCSfile: manualContourContainer.h,v $
30   Language:  C++
31   Date:      $Date: 2012/11/15 14:14:56 $
32   Version:   $Revision: 1.4 $
33
34   Copyright: (c) 2002, 2003
35   License:
36   
37      This software is distributed WITHOUT ANY WARRANTY; without even 
38      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
39      PURPOSE.  See the above copyright notice for more information.
40
41 =========================================================================*/
42
43 #ifndef MANUAL_CONTOUR_CONTAINER_H
44 #define MANUAL_CONTOUR_CONTAINER_H
45
46
47 #include <vector>
48 #include "manualContourControler.h"
49 #include "manualContourModel.h"
50 #include "manualViewContour.h"
51
52 class manualContourContainer  
53 {
54 public:
55         
56         manualContourContainer();
57         virtual ~manualContourContainer();
58
59         manualContourControler* getWallController();
60         manualContourControler* getLumenController();
61         manualContourControler* getCalcController(int i);
62         manualContourControler* getHypoController(int i);
63         void createWallContour(wxVtk2DBaseView  *_imageviewer2D_1);
64         void createLumenContour(wxVtk2DBaseView *_imageviewer2D_1);
65
66         int     addCalcificationContour(wxVtk2DBaseView *_imageviewer2D_1);
67         int     addHypodenseContour(wxVtk2DBaseView     *_imageviewer2D_1);
68
69         void setWallVisibility(bool visible);
70         
71         void setLumenVisibility(bool visible);
72         void setCalcVisibility(bool visible);
73         void setHypoVisibility(bool visible);
74         void setWallActive();
75         void setLumenActive();
76         void setCalcActive();
77         void setHypoActive();
78         void setCalcContourActive(int i);
79         void setHypoContourActive(int i);
80         int  getNumberOfCalcContours();
81         int  getNumberOfHypoContours();
82         void inactivate();
83
84         int getNumberOfWallContourPoints();
85         int getNumberOfLumenContourPoints();
86         int getNumberOfCalcContourPoints(int i);
87         int getNumberOfHypoContourPoints(int i);
88
89         double* getXVectorWallPoints();
90         double* getXVectorLumenPoints();
91         double* getXVectorCalcPoints(int i);
92         double* getXVectorHypoPoints(int i);
93
94         double* getYVectorWallPoints();
95         double* getYVectorLumenPoints();
96         double* getYVectorCalcPoints(int i);
97         double* getYVectorHypoPoints(int i);
98         void clear();
99         void clearWall();
100         void clearLumen();
101         void clearCalc();
102         void clearHypo();
103         void refreshWall(wxVtk2DBaseView        *_imageviewer2D_1);
104         void refreshLumen(wxVtk2DBaseView       *_imageviewer2D_1);
105         void refreshCalc(int i, wxVtk2DBaseView *_imageviewer2D_1);
106         void refreshHypo(int i, wxVtk2DBaseView *_imageviewer2D_1);
107         
108         void restartWallContour(wxVtk2DBaseView *_imageviewer2D_1);
109         void restartLumenContour(wxVtk2DBaseView        *_imageviewer2D_1);
110         void restartCalcContours();
111         void restartHypoContours();
112
113 private:
114         //Manual Contour Wall
115         
116         manualContourControler *_manContourControlWall;
117         manualContourModel              *_mContourModelWall;
118         manualViewContour               *_mViewContourWall;
119
120
121         //Manual Contour Lumen
122         manualContourControler  *_manContourControlLumen;
123         manualContourModel              *_mContourModelLumen;
124         manualViewContour                       *_mViewContourLumen;
125
126         //Manual Contour Calc
127         std::vector <manualContourControler *> _manContourControlCalc;
128         std::vector <manualContourModel *> _mContourModelCalc;
129         std::vector <manualViewContour *> _mViewContourCalc;
130
131         //Manual Contour Hypo
132         std::vector <manualContourControler *> _manContourControlHypo;
133         std::vector <manualContourModel *> _mContourModelHypo;
134         std::vector <manualViewContour *> _mViewContourHypo;    
135
136
137
138 };
139
140 #endif //