]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/FillFilter.h
3d9084f3ebf001af50c1eef9b11d96c805cfdeca
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualPaint / FillFilter.h
1 #ifndef _MANUAL_PAINT_MODEL_H_
2 #define _MANUAL_PAINT_MODEL_H_
3
4 #include <vtkImageData.h>
5
6
7 class FillFilter  {
8 public:
9         FillFilter();
10         virtual ~FillFilter();
11
12     void SetImage(vtkImageData *image);
13     void Set2D3D( int dim2D3D );
14     void SetGrayLevel( double graylevel );
15
16     void FillTool(int px,int py, int pz);
17     void FillToolRecursive(int px,int py, int pz);
18
19     void BrushTool(int px,int py, int pz);
20     void SetToleranceFill(double tolerancefill);
21     void SetDistanceFill(int distancefill);
22     void SetDirection(int direction);
23
24 private:
25     vtkImageData    *_image;
26     int             _minX;
27     int             _maxX;
28     int             _minY;
29     int             _maxY;
30     int             _minZ;
31     int             _maxZ;
32     int             _brushsize;
33     int             _brushform;
34     int             _brushtool;
35     bool            _2D3D;
36     double          _graylevel;
37     double          _tolerancefill;
38     int             _distancefill;
39     double          _graylevelbasefill;
40     int             _direction;
41
42     int             _pxfill;
43     int             _pyfill;
44     int             _pzfill;
45     double          _distbasefill;
46     double          _tmpDistfill;
47     double          _tmpiglfill;
48     long int        _countRecursiveFill;
49     long int        _countRecursiveFillProblem;
50     vtkImageData    *_auxImageFill;
51     bool             _usingAuxImageFill;
52     bool             _auxGrayLevelValidationFill;
53     long int        _countProgressingFill;
54     long int        _limitRecursionFill;
55
56
57     void    SetAuxImageFill(int px,int py, int pz);
58
59 protected:
60
61 };
62
63
64 #endif // _MANUAL_PAINT_MODEL_H_