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