VTK
|
Generic image filter with one input. More...
#include <vtkSimpleImageToImageFilter.h>
Public Types | |
typedef vtkImageAlgorithm | Superclass |
![]() | |
typedef vtkAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkDataObject * | GetInput (int port) |
vtkDataObject * | GetInput () |
vtkImageData * | GetImageDataInput (int port) |
vtkImageData * | GetOutput () |
vtkImageData * | GetOutput (int) |
virtual void | SetOutput (vtkDataObject *d) |
virtual int | ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
void | SetInput (vtkDataObject *) |
void | SetInput (int, vtkDataObject *) |
virtual void | AddInput (vtkDataObject *) |
virtual void | AddInput (int, vtkDataObject *) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkSimpleImageToImageFilter * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkImageAlgorithm * | SafeDownCast (vtkObject *o) |
Generic image filter with one input.
vtkSimpleImageToImageFilter is a filter which aims to avoid much of the complexity associated with vtkImageAlgorithm (i.e. support for pieces, multi-threaded operation). If you need to write a simple image-image filter which operates on the whole input, use this as the superclass. The subclass has to provide only an execute method which takes input and output as arguments. Memory allocation is handled in vtkSimpleImageToImageFilter. Also, you are guaranteed to have a valid input in the Execute(input, output) method. By default, this filter requests it's input's whole extent and copies the input's information (spacing, whole extent etc...) to the output. If the output's setup is different (for example, if it performs some sort of sub-sampling), ExecuteInformation has to be overwritten. As an example of how this can be done, you can look at vtkImageShrink3D::ExecuteInformation. For a complete example which uses templates to support generic data types, see vtkSimpleImageToImageFilter.
Definition at line 44 of file vtkSimpleImageToImageFilter.h.
Definition at line 47 of file vtkSimpleImageToImageFilter.h.
|
protected |
|
protected |
|
virtual |
Reimplemented from vtkImageAlgorithm.
|
static |
|
virtual |
Reimplemented from vtkImageAlgorithm.
|
static |
void vtkSimpleImageToImageFilter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
protectedvirtual |
Reimplemented from vtkImageAlgorithm.
|
protectedvirtual |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkImageAlgorithm.
|
protectedpure virtual |