76 #ifndef __vtkImageBlend_h
77 #define __vtkImageBlend_h
80 #include "vtkImagingCoreModule.h"
81 #include "vtkThreadedImageAlgorithm.h"
85 #define VTK_IMAGE_BLEND_MODE_NORMAL 0
86 #define VTK_IMAGE_BLEND_MODE_COMPOUND 1
88 class VTKIMAGINGCORE_EXPORT
vtkImageBlend :
public vtkThreadedImageAlgorithm
93 void PrintSelf(ostream& os, vtkIndent indent);
99 virtual void ReplaceNthInputConnection(
int idx, vtkAlgorithmOutput* input);
105 void SetInputData(
int num, vtkDataObject *input);
113 vtkDataObject *GetInput(
int num);
125 void SetOpacity(
int idx,
double opacity);
126 double GetOpacity(
int idx);
131 void SetStencilConnection(vtkAlgorithmOutput *algOutput);
141 vtkSetClampMacro(BlendMode,
int,
144 vtkGetMacro(BlendMode,
int);
149 const char *GetBlendModeAsString(
void);
155 vtkSetMacro(CompoundThreshold,
double);
156 vtkGetMacro(CompoundThreshold,
double);
163 virtual int RequestUpdateExtent(vtkInformation *,
164 vtkInformationVector **,
165 vtkInformationVector *);
167 void InternalComputeInputUpdateExtent(
int inExt[6],
int outExt[6],
170 void ThreadedRequestData (vtkInformation* request,
171 vtkInformationVector** inputVector,
172 vtkInformationVector* outputVector,
173 vtkImageData ***inData, vtkImageData **outData,
177 virtual int FillInputPortInformation(
int, vtkInformation*);
180 virtual int RequestData(vtkInformation* request,
181 vtkInformationVector** inputVector,
182 vtkInformationVector* outputVector);
206 return "Unknown Blend Mode";
void SetInputData(vtkDataObject *input)
#define VTK_IMAGE_BLEND_MODE_COMPOUND
const char * GetBlendModeAsString(void)
void SetBlendModeToCompound()
#define VTK_IMAGE_BLEND_MODE_NORMAL
efficient description of an image stencil
vtkDataObject * GetInput()
void SetBlendModeToNormal()
blend images together using alpha or opacity