Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __vtkKWEPaintbrushGrayscaleData_h
00023 #define __vtkKWEPaintbrushGrayscaleData_h
00024
00025 #include "vtkKWEPaintbrushData.h"
00026 #include "VTKEdgeConfigure.h"
00027
00028 class vtkImageData;
00029
00030 class VTKEdge_WIDGETS_EXPORT vtkKWEPaintbrushGrayscaleData : public vtkKWEPaintbrushData
00031 {
00032 public:
00033 static vtkKWEPaintbrushGrayscaleData *New();
00034 vtkTypeRevisionMacro(vtkKWEPaintbrushGrayscaleData, vtkKWEPaintbrushData);
00035 void PrintSelf(ostream& os, vtkIndent indent);
00036
00037 void DeepCopy(vtkDataObject *o);
00038 void ShallowCopy(vtkDataObject *f);
00039
00040
00041
00042
00043
00044
00045 virtual void SetImageData( vtkImageData * );
00046 vtkGetObjectMacro( ImageData, vtkImageData );
00047
00048
00049
00050
00051
00052 virtual int Add( vtkKWEPaintbrushData *, bool forceMutable=false );
00053 virtual int Subtract( vtkKWEPaintbrushData *, bool forceMutable=false );
00054 virtual int Replace( vtkKWEPaintbrushData *, bool forceMutable=false );
00055 virtual int Add( vtkImageData *, bool forceMutable=false );
00056 virtual int Subtract( vtkImageData *, bool forceMutable=false );
00057 virtual int Replace( vtkImageData *, bool forceMutable=false );
00058
00059
00060
00061 virtual int Clip( int extent[6] );
00062
00063
00064
00065 virtual void Allocate( double fillValue = 0.0 );
00066
00067
00068
00069
00070
00071
00072
00073 virtual void Resize( int extent[6], double fillValue = 0.0 );
00074
00075 virtual void SetSpacing(double spacing[3]);
00076 virtual void SetOrigin( double origin[3] );
00077
00078
00079
00080 virtual void SetExtent( int extent[6] );
00081 virtual void GetExtent( int extent[6] );
00082
00083
00084
00085
00086
00087 vtkSetMacro(OutsideValue, double);
00088 vtkGetMacro(OutsideValue, double);
00089 vtkSetMacro(OutsideValueTolerance, double);
00090 vtkGetMacro(OutsideValueTolerance, double);
00091
00092
00093
00094 virtual int IsInside( double p[3] );
00095
00096
00097
00098
00099 virtual void GetPaintbrushDataAsImageData( vtkImageData * );
00100
00101
00102
00103 virtual unsigned long GetMTime();
00104
00105 protected:
00106 vtkKWEPaintbrushGrayscaleData();
00107 ~vtkKWEPaintbrushGrayscaleData();
00108
00109
00110
00111 vtkImageData *ImageData;
00112
00113 double OutsideValue;
00114 double OutsideValueTolerance;
00115
00116 private:
00117 vtkKWEPaintbrushGrayscaleData(const vtkKWEPaintbrushGrayscaleData&);
00118 void operator=(const vtkKWEPaintbrushGrayscaleData&);
00119 };
00120
00121 #endif
00122