31 #ifndef vtkImageShiftScale_h 32 #define vtkImageShiftScale_h 35 #include "vtkImagingCoreModule.h" 49 vtkSetMacro(Shift,
double);
50 vtkGetMacro(Shift,
double);
57 vtkSetMacro(Scale,
double);
58 vtkGetMacro(Scale,
double);
66 vtkSetMacro(OutputScalarType,
int);
67 vtkGetMacro(OutputScalarType,
int);
73 {this->SetOutputScalarType(
VTK_LONG);}
77 {this->SetOutputScalarType(
VTK_INT);}
85 {this->SetOutputScalarType(
VTK_CHAR);}
123 int threadId)
override;
#define VTK_UNSIGNED_SHORT
vtkTypeBool ClampOverflow
void SetOutputScalarTypeToChar()
Set the desired output scalar type.
void SetOutputScalarTypeToUnsignedShort()
Set the desired output scalar type.
Generic filter that has one input.
shift and scale an input image
void SetOutputScalarTypeToDouble()
Set the desired output scalar type.
void SetOutputScalarTypeToUnsignedChar()
Set the desired output scalar type.
a simple class to control print indentation
topologically and geometrically regular array of data
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetOutputScalarTypeToInt()
Set the desired output scalar type.
void SetOutputScalarTypeToFloat()
Set the desired output scalar type.
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method.
#define VTK_UNSIGNED_CHAR
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_UNSIGNED_LONG
void SetOutputScalarTypeToShort()
Set the desired output scalar type.
void SetOutputScalarTypeToLong()
Set the desired output scalar type.
void SetOutputScalarTypeToUnsignedInt()
Set the desired output scalar type.
void SetOutputScalarTypeToUnsignedLong()
Set the desired output scalar type.