31 #ifndef vtkImageSlab_h 32 #define vtkImageSlab_h 34 #include "vtkImagingGeneralModule.h" 49 vtkSetClampMacro(Orientation,
int, 0, 2);
51 this->SetOrientation(0); };
53 this->SetOrientation(1); };
55 this->SetOrientation(2); };
56 vtkGetMacro(Orientation,
int);
64 vtkSetVector2Macro(SliceRange,
int);
65 vtkGetVector2Macro(SliceRange,
int);
82 vtkGetMacro(Operation,
int);
83 const char *GetOperationAsString();
123 this->SetOutputScalarType(0); };
124 vtkGetMacro(OutputScalarType,
int);
141 vtkSetMacro(OutputScalarType,
int);
void SetOperationToMin()
Set the operation to use when combining slices.
#define VTK_IMAGE_SLAB_MAX
void SetOperationToMean()
Set the operation to use when combining slices.
#define VTK_IMAGE_SLAB_MIN
void SetOperationToMax()
Set the operation to use when combining slices.
void SetOrientationToZ()
Set the slice direction: zero for x, 1 for y, 2 for z.
#define VTK_IMAGE_SLAB_SUM
#define VTK_IMAGE_SLAB_MEAN
void SetOrientationToY()
Set the slice direction: zero for x, 1 for y, 2 for z.
void SetOperationToSum()
Set the operation to use when combining slices.
vtkTypeBool TrapezoidIntegration
void SetOrientationToX()
Set the slice direction: zero for x, 1 for y, 2 for z.
void SetOutputScalarTypeToFloat()
Set the output scalar type to float or double, to avoid potential overflow when doing a summation ope...
vtkTypeBool MultiSliceOutput
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
Generic filter that has one input.
combine image slices to form a slab image
void SetOutputScalarTypeToDouble()
Set the output scalar type to float or double, to avoid potential overflow when doing a summation ope...
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...
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.
void SetOutputScalarTypeToInputScalarType()
Set the output scalar type to float or double, to avoid potential overflow when doing a summation ope...
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.