00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00061 #ifndef __vtkImageMask_h
00062 #define __vtkImageMask_h
00063
00064
00065 #include "vtkImageTwoInputFilter.h"
00066
00067 class VTK_IMAGING_EXPORT vtkImageMask : public vtkImageTwoInputFilter
00068 {
00069 public:
00070 static vtkImageMask *New();
00071 vtkTypeMacro(vtkImageMask,vtkImageTwoInputFilter);
00072 void PrintSelf(ostream& os, vtkIndent indent);
00073
00075
00076 void SetMaskedOutputValue(int num, float *v);
00077 void SetMaskedOutputValue(float v) {this->SetMaskedOutputValue(1, &v);}
00078 void SetMaskedOutputValue(float v1, float v2)
00079 {float v[2]; v[0]=v1; v[1]=v2; this->SetMaskedOutputValue(2, v);}
00080 void SetMaskedOutputValue(float v1, float v2, float v3)
00081 {float v[3]; v[0]=v1; v[1]=v2; v[2]=v3; this->SetMaskedOutputValue(3, v);}
00082 float *GetMaskedOutputValue() {return this->MaskedOutputValue;}
00083 int GetMaskedOutputValueLength() {return this->MaskedOutputValueLength;}
00085
00087 void SetImageInput(vtkImageData *in) {this->SetInput1(in);}
00088
00090 void SetMaskInput(vtkImageData *in) {this->SetInput2(in);}
00091
00093
00097 vtkSetMacro(NotMask,int);
00098 vtkGetMacro(NotMask,int);
00099 vtkBooleanMacro(NotMask, int);
00101
00102 protected:
00103 vtkImageMask();
00104 ~vtkImageMask();
00105
00106 float *MaskedOutputValue;
00107 int MaskedOutputValueLength;
00108 int NotMask;
00109
00110 void ExecuteInformation(vtkImageData **inDatas, vtkImageData *outData);
00111 void ExecuteInformation(){this->vtkImageTwoInputFilter::ExecuteInformation();};
00112
00113 void ThreadedExecute(vtkImageData **inDatas, vtkImageData *outData,
00114 int extent[6], int id);
00115 private:
00116 vtkImageMask(const vtkImageMask&);
00117 void operator=(const vtkImageMask&);
00118 };
00119
00120 #endif
00121
00122
00123