VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkImageAlgorithm Class Reference

Generic algorithm superclass for image algs. More...

#include <vtkImageAlgorithm.h>

Inheritance diagram for vtkImageAlgorithm:
[legend]

Public Types

typedef vtkAlgorithm Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
vtkDataObjectGetInput (int port)
 
vtkDataObjectGetInput ()
 
vtkImageDataGetImageDataInput (int port)
 
vtkImageDataGetOutput ()
 
vtkImageDataGetOutput (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 vtkImageAlgorithmSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkImageAlgorithm ()
 
 ~vtkImageAlgorithm ()
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual void CopyInputArrayAttributesToOutput (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual void AllocateOutputData (vtkImageData *out, int *uExtent)
 
virtual vtkImageDataAllocateOutputData (vtkDataObject *out)
 
virtual void CopyAttributeData (vtkImageData *in, vtkImageData *out, vtkInformationVector **inputVector)
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual void ExecuteData (vtkDataObject *output)
 
virtual void Execute ()
 

Detailed Description

Generic algorithm superclass for image algs.

vtkImageAlgorithm is a filter superclass that hides much of the pipeline complexity. It handles breaking the pipeline execution into smaller extents so that the vtkImageData limits are observed. It also provides support for multithreading. If you don't need any of this functionality, consider using vtkSimpleImageToImageFilter instead.

See Also
vtkSimpleImageToImageFilter

Definition at line 35 of file vtkImageAlgorithm.h.

Member Typedef Documentation

typedef vtkAlgorithm vtkImageAlgorithm::Superclass

Definition at line 38 of file vtkImageAlgorithm.h.

Constructor & Destructor Documentation

vtkImageAlgorithm::vtkImageAlgorithm ( )
protected
vtkImageAlgorithm::~vtkImageAlgorithm ( )
protected

Member Function Documentation

virtual const char* vtkImageAlgorithm::GetClassName ( )
virtual
static int vtkImageAlgorithm::IsTypeOf ( const char *  type)
static
virtual int vtkImageAlgorithm::IsA ( const char *  type)
virtual
static vtkImageAlgorithm* vtkImageAlgorithm::SafeDownCast ( vtkObject o)
static
void vtkImageAlgorithm::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
vtkImageData* vtkImageAlgorithm::GetOutput ( )

Get the output data object for a port on this algorithm.

vtkImageData* vtkImageAlgorithm::GetOutput ( int  )

Get the output data object for a port on this algorithm.

virtual void vtkImageAlgorithm::SetOutput ( vtkDataObject d)
virtual

Get the output data object for a port on this algorithm.

virtual int vtkImageAlgorithm::ProcessRequest ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
virtual

see vtkAlgorithm for details

void vtkImageAlgorithm::SetInput ( vtkDataObject )

Set an input of this algorithm. You should not override these methods because they are not the only way to connect a pipeline. Note that these methods support old-style pipeline connections. When writing new code you should use the more general vtkAlgorithm::SetInputConnection(). These methods transform the input index to the input port index, not an index of a connection within a single port.

void vtkImageAlgorithm::SetInput ( int  ,
vtkDataObject  
)

Set an input of this algorithm. You should not override these methods because they are not the only way to connect a pipeline. Note that these methods support old-style pipeline connections. When writing new code you should use the more general vtkAlgorithm::SetInputConnection(). These methods transform the input index to the input port index, not an index of a connection within a single port.

vtkDataObject* vtkImageAlgorithm::GetInput ( int  port)
vtkDataObject* vtkImageAlgorithm::GetInput ( )
inline

Definition at line 70 of file vtkImageAlgorithm.h.

vtkImageData* vtkImageAlgorithm::GetImageDataInput ( int  port)
virtual void vtkImageAlgorithm::AddInput ( vtkDataObject )
virtual

Add an input of this algorithm. Note that these methods support old-style pipeline connections. When writing new code you should use the more general vtkAlgorithm::AddInputConnection(). See SetInput() for details.

virtual void vtkImageAlgorithm::AddInput ( int  ,
vtkDataObject  
)
virtual

Add an input of this algorithm. Note that these methods support old-style pipeline connections. When writing new code you should use the more general vtkAlgorithm::AddInputConnection(). See SetInput() for details.

virtual int vtkImageAlgorithm::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
)
protectedvirtual

Reimplemented in vtkImageToStructuredPoints.

virtual int vtkImageAlgorithm::RequestUpdateExtent ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
protectedvirtual
virtual void vtkImageAlgorithm::CopyInputArrayAttributesToOutput ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
)
protectedvirtual
virtual int vtkImageAlgorithm::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
)
protectedvirtual

This is called by the superclass. This is the method you should override.

Reimplemented in vtkThreadedImageAlgorithm, vtkImageToStructuredPoints, vtkSimpleImageToImageFilter, and vtkImageInPlaceFilter.

virtual void vtkImageAlgorithm::ExecuteData ( vtkDataObject output)
protectedvirtual

This method is the old style execute method

virtual void vtkImageAlgorithm::Execute ( )
protectedvirtual

This method is the old style execute method

virtual void vtkImageAlgorithm::AllocateOutputData ( vtkImageData out,
int *  uExtent 
)
protectedvirtual
virtual vtkImageData* vtkImageAlgorithm::AllocateOutputData ( vtkDataObject out)
protectedvirtual
virtual void vtkImageAlgorithm::CopyAttributeData ( vtkImageData in,
vtkImageData out,
vtkInformationVector **  inputVector 
)
protectedvirtual
virtual int vtkImageAlgorithm::FillOutputPortInformation ( int  port,
vtkInformation info 
)
protectedvirtual

Reimplemented in vtkImageToStructuredPoints.

virtual int vtkImageAlgorithm::FillInputPortInformation ( int  port,
vtkInformation info 
)
protectedvirtual

Reimplemented in vtkImageToStructuredPoints.


The documentation for this class was generated from the following file: