32 #ifndef __vtkImageMask_h
33 #define __vtkImageMask_h
36 #include "vtkImagingCoreModule.h"
37 #include "vtkThreadedImageAlgorithm.h"
39 class VTKIMAGINGCORE_EXPORT
vtkImageMask :
public vtkThreadedImageAlgorithm
44 void PrintSelf(ostream& os, vtkIndent indent);
48 void SetMaskedOutputValue(
int num,
double *v);
51 {
double v[2]; v[0]=v1; v[1]=v2; this->SetMaskedOutputValue(2, v);}
53 {
double v[3]; v[0]=v1; v[1]=v2; v[2]=v3; this->SetMaskedOutputValue(3, v);}
62 vtkSetClampMacro ( MaskAlpha,
double, 0.0, 1.0 );
63 vtkGetMacro ( MaskAlpha,
double );
67 void SetImageInputData(vtkImageData *in);
70 void SetMaskInputData(vtkImageData *in);
77 vtkSetMacro(NotMask,
int);
78 vtkGetMacro(NotMask,
int);
79 vtkBooleanMacro(NotMask,
int);
84 virtual void SetInput1Data(vtkDataObject *in) { this->SetInputData(0,in); }
85 virtual void SetInput2Data(vtkDataObject *in) { this->SetInputData(1,in); }
97 virtual int RequestInformation (vtkInformation *,
98 vtkInformationVector **,
99 vtkInformationVector *);
102 virtual void ThreadedRequestData(vtkInformation *request,
103 vtkInformationVector **inputVector,
104 vtkInformationVector *outputVector,
105 vtkImageData ***inData,
106 vtkImageData **outData,
107 int extent[6],
int threadId);
double * GetMaskedOutputValue()
void SetMaskedOutputValue(double v1, double v2, double v3)
double * MaskedOutputValue
void SetMaskedOutputValue(double v1, double v2)
virtual void SetInput1Data(vtkDataObject *in)
Combines a mask and an image.
int MaskedOutputValueLength
int GetMaskedOutputValueLength()
void SetMaskedOutputValue(double v)
virtual void SetInput2Data(vtkDataObject *in)