-#ifndef _MANUAL_PAINT_MODEL_H_
-#define _MANUAL_PAINT_MODEL_H_
+#ifndef _FILL_FILTER_H_
+#define _FILL_FILTER_H_
-#include <vtkImageData.h>
+#include "baseFilterManualPaint.h"
-
-class FillFilter {
+class FillFilter : public baseFilterManualPaint {
public:
FillFilter();
virtual ~FillFilter();
- void SetImage(vtkImageData *image);
- void Set2D3D( int dim2D3D );
- void SetGrayLevel( double graylevel );
-
- void FillTool(int px,int py, int pz);
+ void Run();
void FillToolRecursive(int px,int py, int pz);
- void BrushTool(int px,int py, int pz);
void SetToleranceFill(double tolerancefill);
void SetDistanceFill(int distancefill);
- void SetDirection(int direction);
+ void SetRangeMin( int min );//DFCH
+ void SetRangeMax( int max );//DFCH
+ int GetRangeMin( ); //DFCH
+ int GetRangeMax( ); //DFCH
+ virtual void SetImage(vtkImageData *image);
private:
- vtkImageData *_image;
- int _minX;
- int _maxX;
- int _minY;
- int _maxY;
- int _minZ;
- int _maxZ;
- int _brushsize;
- int _brushform;
- int _brushtool;
- bool _2D3D;
- double _graylevel;
double _tolerancefill;
int _distancefill;
double _graylevelbasefill;
- int _direction;
int _pxfill;
int _pyfill;
bool _auxGrayLevelValidationFill;
long int _countProgressingFill;
long int _limitRecursionFill;
-
-
+ int _RangeMin;
+ int _RangeMax;
void SetAuxImageFill(int px,int py, int pz);
protected:
};
-#endif // _MANUAL_PAINT_MODEL_H_
+#endif // _FILL_FILTER_H_