Go to the documentation of this file.
77 #ifndef vtkImageBlend_h
78 #define vtkImageBlend_h
81 #include "vtkImagingCoreModule.h"
86 #define VTK_IMAGE_BLEND_MODE_NORMAL 0
87 #define VTK_IMAGE_BLEND_MODE_COMPOUND 1
158 vtkSetClampMacro(BlendMode,
int,
161 vtkGetMacro(BlendMode,
int);
166 const char *GetBlendModeAsString(
void);
174 vtkSetMacro(CompoundThreshold,
double);
175 vtkGetMacro(CompoundThreshold,
double);
193 int ext[6],
int id)
override;
227 return "Unknown Blend Mode";
void SetOpacity(int idx, double opacity)
Set the opacity of an input image: the alpha values of the image are multiplied by the opacity.
virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput *input)
Replace one of the input connections with a new input.
void SetInputData(vtkDataObject *input)
void SetBlendModeToCompound()
const char * GetBlendModeAsString(void)
Get the blending mode as a descriptive string.
#define VTK_IMAGE_BLEND_MODE_NORMAL
~vtkImageBlend() override
#define VTK_IMAGE_BLEND_MODE_COMPOUND
Generic filter that has one input.
void SetStencilData(vtkImageStencilData *stencil)
Set a stencil to apply when blending the data.
blend images together using alpha or opacity
void SetStencilConnection(vtkAlgorithmOutput *algOutput)
Set a stencil to apply when blending the data.
void SetBlendModeToNormal()
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkDataObject * GetInput(int num)
Get one input to this filter.
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int ext[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...
static vtkImageBlend * New()
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
topologically and geometrically regular array of data
a simple class to control print indentation
void SetInputData(int num, vtkDataObject *input)
Assign a data object as input.
vtkImageStencilData * GetStencil()
vtkDataObject * GetInput()
double GetOpacity(int idx)
Proxy object to connect input/output ports.
efficient description of an image stencil
int GetNumberOfInputs()
Get the number of inputs to this filter.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetNumberOfInputConnections(int port)
Get the number of inputs currently connected to a port.
general representation of visualization data
void InternalComputeInputUpdateExtent(int inExt[6], int outExt[6], int inWExtent[6])