]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/kernel/marExperimentCT.h
creaMaracasVisu Library
[creaMaracasVisu.git] / lib / maracasVisuLib / src / kernel / marExperimentCT.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: marExperimentCT.h,v $
5   Language:  C++
6   Date:      $Date: 2008/10/31 16:32:55 $
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 #ifndef __MAR__KERNEL__EXPERIMENTCT__HXX__
18 #define __MAR__KERNEL__EXPERIMENTCT__HXX__
19
20 #include <vector>
21 #include "volume.hxx"
22 #include "marExperiment.h"
23 #include "marDynData.h"
24 #include "GestionBifurcations.h"
25 #include "marAxisCT.h"
26 #include "marPoint.h"
27
28 class MAR_KERNEL_EXPORT marExperimentCT : public marExperiment
29 {
30
31 public:
32   
33   marExperimentCT( marParameters* p = NULL );
34   
35   marContour*           getContour( int point, int contour );
36   vtkPoints*            get3Dcontour( int point, int contour );
37   vtkPolyData*          get2Dcontour( int point, int contour );
38   vtkPoints*            get2DDiameterMin( int point, int contour );
39   vtkPoints*            get2DDiameterMax( int point, int contour );
40   int                           getNumberOfContours(int point);
41   void                          prepareQuantification( );
42   void                          RegenerateAxis();
43   void                          RecalculateAxis();
44   void                          updateLumenPercentage(int percentage);
45   void                          updateCalcPercentage(int percentage);
46   void                          updateDiscontinuityThreshold(int percentage);
47   int                           getContourType(int point, int index);
48   void                          histogram(int point);
49   void                          setCalibration(bool calib);
50   bool                          getCalibration();
51   void                          ClearContoursPartial(int start);
52   void                          setStartIndex(int start);
53   int                           getPointSize();
54   marPoint*                     getPoint(int i);
55   void                          markUpLumen(int point);
56   void                          generateFile();
57   void                          replaceContour2D(int size,double *vx,double *vy, int type);
58   void                          cleanContours(int type);
59   marIsocontour*        loadMarIsocontour(int size, double *vx, double *vy);
60   double                        performXOR(int type, std::vector<marIsocontour*> manual);
61   double                        performAND(int type, std::vector<marIsocontour*> manual);
62   double                        performUnion(int type, std::vector<marIsocontour*> manual);
63
64 };
65
66 #endif // __MAR__KERNEL__EXPERIMENTCT__HXX__