SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
svkGenericAlgorithmWithPortMapper Class Referenceabstract

#include <svkGenericAlgorithmWithPortMapper.h>

Inheritance diagram for svkGenericAlgorithmWithPortMapper:
svkImageStatistics

Public Member Functions

 vtkTypeMacro (svkGenericAlgorithmWithPortMapper, vtkAlgorithm)
 
void SetInputPortsFromXML (vtkXMLDataElement *element)
 Uses port mapper to parse an XML element and convert it into input port data objects. More...
 
svkAlgorithmPortMapperGetPortMapper ()
 Get the internal XML interpreter. More...
 
void PrintSelf (ostream &os, vtkIndent indent)
 Prints all input parameters set. More...
 

Protected Member Functions

 svkGenericAlgorithmWithPortMapper ()
 
 ~svkGenericAlgorithmWithPortMapper ()
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 All ports must be initialized using the svkAlgorithmPortMapper BEFORE this method is called. More...
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 All ports must be initialized using the svkAlgorithmPortMapper BEFORE this method is called. More...
 
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 Calls RequestData when the correct request comes through. More...
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)=0
 Must be implemented in sub-class. More...
 

Protected Attributes

svkAlgorithmPortMapperportMapper
 The port mapper used to set the input port parameters. More...
 

Detailed Description

This baseclass is used to support the use of the svkAlgorithmPortMapper class. All parameters that control the execution of this algorithm are stored in input ports that can be set using the XML input to the svkAlgorithmPortMapper class.

Constructor & Destructor Documentation

Member Function Documentation

int FillInputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual

All ports must be initialized using the svkAlgorithmPortMapper BEFORE this method is called.

Pass through method to the internal svkAlgorithmPortMapper

References svkAlgorithmPortMapper::FillInputPortInformation(), and svkGenericAlgorithmWithPortMapper::GetPortMapper().

int FillOutputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual

All ports must be initialized using the svkAlgorithmPortMapper BEFORE this method is called.

Pass through method to the internal svkAlgorithmPortMapper

References svkAlgorithmPortMapper::FillOutputPortInformation(), and svkGenericAlgorithmWithPortMapper::GetPortMapper().

svkAlgorithmPortMapper * GetPortMapper ( )
void PrintSelf ( ostream &  os,
vtkIndent  indent 
)

Prints all input parameters set.

PrintSelf method calls parent class PrintSelf, then prints all parameters using the port mapper.

References svkGenericAlgorithmWithPortMapper::GetPortMapper(), and svkAlgorithmPortMapper::PrintSelf().

int ProcessRequest ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

Calls RequestData when the correct request comes through.

This method forwards data request to the RequestData method.

References svkGenericAlgorithmWithPortMapper::RequestData().

virtual int RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedpure virtual

Must be implemented in sub-class.

Implemented in svkImageStatistics.

Referenced by svkGenericAlgorithmWithPortMapper::ProcessRequest().

void SetInputPortsFromXML ( vtkXMLDataElement *  element)

Uses port mapper to parse an XML element and convert it into input port data objects.

Pass through method to the internal svkAlgorithmPortMapper

References svkGenericAlgorithmWithPortMapper::GetPortMapper(), and svkAlgorithmPortMapper::SetInputPortsFromXML().

vtkTypeMacro ( svkGenericAlgorithmWithPortMapper  ,
vtkAlgorithm   
)

Member Data Documentation

svkAlgorithmPortMapper* portMapper
protected

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