68 #ifndef vtkImageBlend_h
69 #define vtkImageBlend_h
71 #include "vtkImagingCoreModule.h"
74 VTK_ABI_NAMESPACE_BEGIN
77 #define VTK_IMAGE_BLEND_MODE_NORMAL 0
78 #define VTK_IMAGE_BLEND_MODE_COMPOUND 1
127 void SetOpacity(
int idx,
double opacity);
128 double GetOpacity(
int idx);
150 vtkGetMacro(BlendMode,
int);
153 const char* GetBlendModeAsString();
181 vtkSetMacro(CompoundThreshold,
double);
182 vtkGetMacro(CompoundThreshold,
double);
203 void InternalComputeInputUpdateExtent(
204 int inExt[6], VTK_FUTURE_CONST
int outExt[6], VTK_FUTURE_CONST
int inWExtent[6]);
208 VTK_FUTURE_CONST
int ext[6],
int id)
override;
242 return "Unknown Blend Mode";
246 VTK_ABI_NAMESPACE_END
int GetNumberOfInputConnections(int port)
Get the number of inputs currently connected to a port.
void SetInputData(vtkDataObject *input)
Assign a data object as input.
#define VTK_IMAGE_BLEND_MODE_COMPOUND
void SetBlendModeToCompound()
Set the blend mode.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkDataObject * GetInput()
Get a data object for one of the input port connections.
#define VTK_IMAGE_BLEND_MODE_NORMAL
vtkTypeBool DataWasPassed
void SetInputData(vtkDataObject *)
Assign a data object as input.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
Proxy object to connect input/output ports.
Generic filter that has one input.
a simple class to control print indentation
efficient description of an image stencil
const char * GetBlendModeAsString()
Get the blending mode as a descriptive string.
topologically and geometrically regular array of data
vtkTypeBool CompoundAlpha
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, VTK_FUTURE_CONST 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.
vtkDataObject * GetInput()
Get one input to this filter.
void SetBlendModeToNormal()
Set the blend mode.
blend images together using alpha or opacity
int GetNumberOfInputs()
Get the number of inputs to this filter.
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data