]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/kernel/marIsocontour.h
BUG macOs
[creaMaracasVisu.git] / lib / maracasVisuLib / src / kernel / marIsocontour.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: marIsocontour.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__ISOCONTOUR__HXX__
18 #define __MAR__KERNEL__ISOCONTOUR__HXX__
19
20 #include "marPoint.h"
21 #include <vector>
22
23 class MAR_KERNEL_EXPORT  marIsocontour
24 {
25 public:
26         marIsocontour();
27         marIsocontour(double intmax);
28         virtual ~marIsocontour();
29
30         void getCG(double *x, double *y);
31         void insertPoint(double x, double y);
32         void getPoint(int i, double *x, double *y);
33         void setPoint(int i, double x, double y);
34         int getSize();
35         double getMaxIntensity();
36         void setMaxIntensity(double intmax);
37         int getType();
38         void setType(int type);
39         int getDir(int i);
40         void setDir(int i, int direction);
41         void setInside(int i, bool ins);
42         bool getInside(int i);
43         void removeLastPoint();
44         
45
46 private:
47         std::vector<marPoint *> listContour;
48         double intmax;
49         int type;
50 };
51
52 #endif // __MAR__KERNEL__ISOCONTOUR__HXX__