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
136 void SetOpacity(
int idx,
double opacity);
137 double GetOpacity(
int idx);
158 vtkSetClampMacro(BlendMode,
int,
161 vtkGetMacro(BlendMode,
int);
166 const char *GetBlendModeAsString(
void);
175 vtkGetMacro(CompoundThreshold,
double);
186 void InternalComputeInputUpdateExtent(
int inExt[6],
int outExt[6],
193 int ext[6],
int id) VTK_OVERRIDE;
196 virtual
int FillInputPortInformation(
int,
vtkInformation*) VTK_OVERRIDE;
204 int OpacityArrayLength;
206 double CompoundThreshold;
220 switch (this->BlendMode)
227 return "Unknown Blend Mode";
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.
vtkDataObject * GetInput()
Get a data object for one of the input port connections.
#define VTK_IMAGE_BLEND_MODE_NORMAL
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
topologically and geometrically regular array of data
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.
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