1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
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
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.
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
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 # ------------------------------------------------------------------------ */
26 /*=========================================================================
29 Module: $RCSfile: manualContourContainer.h,v $
31 Date: $Date: 2012/11/15 14:14:56 $
32 Version: $Revision: 1.4 $
34 Copyright: (c) 2002, 2003
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.
41 =========================================================================*/
43 #ifndef MANUAL_CONTOUR_CONTAINER_H
44 #define MANUAL_CONTOUR_CONTAINER_H
48 #include "manualContourControler.h"
49 #include "manualContourModel.h"
50 #include "manualViewContour.h"
52 class manualContourContainer
56 manualContourContainer();
57 virtual ~manualContourContainer();
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);
66 int addCalcificationContour(wxVtk2DBaseView *_imageviewer2D_1);
67 int addHypodenseContour(wxVtk2DBaseView *_imageviewer2D_1);
69 void setWallVisibility(bool visible);
71 void setLumenVisibility(bool visible);
72 void setCalcVisibility(bool visible);
73 void setHypoVisibility(bool visible);
75 void setLumenActive();
78 void setCalcContourActive(int i);
79 void setHypoContourActive(int i);
80 int getNumberOfCalcContours();
81 int getNumberOfHypoContours();
84 int getNumberOfWallContourPoints();
85 int getNumberOfLumenContourPoints();
86 int getNumberOfCalcContourPoints(int i);
87 int getNumberOfHypoContourPoints(int i);
89 double* getXVectorWallPoints();
90 double* getXVectorLumenPoints();
91 double* getXVectorCalcPoints(int i);
92 double* getXVectorHypoPoints(int i);
94 double* getYVectorWallPoints();
95 double* getYVectorLumenPoints();
96 double* getYVectorCalcPoints(int i);
97 double* getYVectorHypoPoints(int i);
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);
108 void restartWallContour(wxVtk2DBaseView *_imageviewer2D_1);
109 void restartLumenContour(wxVtk2DBaseView *_imageviewer2D_1);
110 void restartCalcContours();
111 void restartHypoContours();
114 //Manual Contour Wall
116 manualContourControler *_manContourControlWall;
117 manualContourModel *_mContourModelWall;
118 manualViewContour *_mViewContourWall;
121 //Manual Contour Lumen
122 manualContourControler *_manContourControlLumen;
123 manualContourModel *_mContourModelLumen;
124 manualViewContour *_mViewContourLumen;
126 //Manual Contour Calc
127 std::vector <manualContourControler *> _manContourControlCalc;
128 std::vector <manualContourModel *> _mContourModelCalc;
129 std::vector <manualViewContour *> _mViewContourCalc;
131 //Manual Contour Hypo
132 std::vector <manualContourControler *> _manContourControlHypo;
133 std::vector <manualContourModel *> _mContourModelHypo;
134 std::vector <manualViewContour *> _mViewContourHypo;