67#ifndef vtkImageBlend_h 
   68#define vtkImageBlend_h 
   70#include "vtkImagingCoreModule.h"  
   73VTK_ABI_NAMESPACE_BEGIN
 
   76#define VTK_IMAGE_BLEND_MODE_NORMAL 0 
   77#define VTK_IMAGE_BLEND_MODE_COMPOUND 1 
  149  vtkGetMacro(BlendMode, 
int);
 
  152  const char* GetBlendModeAsString();
 
  160  vtkSetMacro(CompoundThreshold, 
double);
 
  161  vtkGetMacro(CompoundThreshold, 
double);
 
  218      return "Unknown Blend Mode";
 
Proxy object to connect input/output ports.
 
int GetNumberOfInputConnections(int port)
Get the number of inputs currently connected to a port.
 
general representation of visualization data
 
blend images together using alpha or opacity
 
vtkDataObject * GetInput()
Get one input to this filter.
 
void SetStencilData(vtkImageStencilData *stencil)
Set a stencil to apply when blending the data.
 
void SetBlendModeToNormal()
Set the blend mode.
 
vtkTypeBool CompoundAlpha
 
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 SetBlendModeToCompound()
Set the blend mode.
 
void SetInputData(int num, vtkDataObject *input)
Assign a data object as input.
 
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
 
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
 
void InternalComputeInputUpdateExtent(int inExt[6], int outExt[6], int inWExtent[6])
 
void SetInputData(vtkDataObject *input)
Assign a data object as input.
 
int FillInputPortInformation(int, vtkInformation *) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
 
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,...
 
vtkDataObject * GetInput(int num)
Get one input to this filter.
 
~vtkImageBlend() override
 
vtkImageStencilData * GetStencil()
Set a stencil to apply when blending the data.
 
int GetNumberOfInputs()
Get the number of inputs to this filter.
 
const char * GetBlendModeAsString()
Get the blending mode as a descriptive string.
 
double GetOpacity(int idx)
Set the opacity of an input image: the alpha values of the image are multiplied by the opacity.
 
void SetStencilConnection(vtkAlgorithmOutput *algOutput)
Set a stencil to apply when blending the data.
 
static vtkImageBlend * New()
 
topologically and geometrically regular array of data
 
efficient description of an image stencil
 
a simple class to control print indentation
 
Generic filter that has one input.
 
#define VTK_IMAGE_BLEND_MODE_NORMAL
 
#define VTK_IMAGE_BLEND_MODE_COMPOUND