#include <vtkSimpleImageToImageFilter.h>
Inheritance diagram for vtkSimpleImageToImageFilter:
vtkSimpleImageToImageFilter is a filter which aims to avoid much of the complexity associated with vtkImageToImageFilter (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 vtkSimpleFilterExample.
Definition at line 57 of file vtkSimpleImageToImageFilter.h.
Public Types | |
typedef vtkImageSource | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetInput (vtkImageData *input) |
vtkImageData * | GetInput () |
Static Public Member Functions | |
int | IsTypeOf (const char *type) |
vtkSimpleImageToImageFilter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkSimpleImageToImageFilter () | |
~vtkSimpleImageToImageFilter () | |
virtual void | ExecuteInformation () |
virtual void | ComputeInputUpdateExtent (int inExt[6], int outExt[6]) |
virtual void | ExecuteData (vtkDataObject *output) |
virtual void | SimpleExecute (vtkImageData *input, vtkImageData *output)=0 |
|
Reimplemented from vtkImageSource. Reimplemented in vtkSimpleImageFilterExample. Definition at line 60 of file vtkSimpleImageToImageFilter.h. |
|
|
|
|
|
Reimplemented from vtkImageSource. Reimplemented in vtkSimpleImageFilterExample. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkImageSource. Reimplemented in vtkSimpleImageFilterExample. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkImageSource. Reimplemented in vtkSimpleImageFilterExample. |
|
Reimplemented from vtkImageSource. Reimplemented in vtkSimpleImageFilterExample. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkImageSource. |
|
Set the Input of a filter. |
|
Set the Input of a filter. |
|
Reimplemented from vtkSource. |
|
|
|
This method is the one that should be used by subclasses, right now the default implementation is to call the backwards compatibility method Reimplemented from vtkSource. |
|
Implemented in vtkSimpleImageFilterExample. |