ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPVDataSetAlgorithmSelectorFilter Class Reference

is a generic vtkAlgorithm that allow the user to register several vtkAlgorithm to it and be able to switch the active one on the fly. More...

#include <vtkPVDataSetAlgorithmSelectorFilter.h>

Inheritance diagram for vtkPVDataSetAlgorithmSelectorFilter:
Inheritance graph
[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)
 
int RegisterFilter (vtkAlgorithm *filter)
 Register a new filter that can be used underneath in the requestData call. More...
 
void UnRegisterFilter (int index)
 UnRegister an existing filter that was previously registered. More...
 
void ClearFilters ()
 Remove all the registered filters. More...
 
int GetNumberOfFilters ()
 Return the current number of registered filters. More...
 
vtkAlgorithm * GetFilter (int index)
 Return the filter that lies at the given index of the filters registration queue. More...
 
vtkAlgorithm * GetActiveFilter ()
 Return the current active filter if any otherwise return NULL. More...
 
virtual vtkAlgorithm * SetActiveFilter (int index)
 Set the active filter based on the given index of the filters registration queue. More...
 
vtkMTimeType GetMTime ()
 Override GetMTime because we delegate to other filters to do the real work. More...
 
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
 Forward those methods to the underneath filters. More...
 
virtual int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 Forward those methods to the underneath filters. More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkPVDataSetAlgorithmSelectorFilterSafeDownCast (vtkObject *o)
 
static vtkPVDataSetAlgorithmSelectorFilterNew ()
 

Protected Member Functions

 vtkPVDataSetAlgorithmSelectorFilter ()
 
 ~vtkPVDataSetAlgorithmSelectorFilter ()
 
virtual int RequestDataObject (vtkInformation *, vtkInformationVector **, vtkInformationVector *outputVector)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual int GetOutputType ()
 
virtual void SetOutputType (int)
 

Protected Attributes

int OutputType
 

Detailed Description

is a generic vtkAlgorithm that allow the user to register several vtkAlgorithm to it and be able to switch the active one on the fly.

The idea behind that filter is to merge the usage of any number of existing vtk filter and allow to easily switch from one implementation to another without changing anything in your pipeline.

Definition at line 32 of file vtkPVDataSetAlgorithmSelectorFilter.h.

Member Typedef Documentation

◆ Superclass

Definition at line 35 of file vtkPVDataSetAlgorithmSelectorFilter.h.

Constructor & Destructor Documentation

◆ vtkPVDataSetAlgorithmSelectorFilter()

vtkPVDataSetAlgorithmSelectorFilter::vtkPVDataSetAlgorithmSelectorFilter ( )
protected

◆ ~vtkPVDataSetAlgorithmSelectorFilter()

vtkPVDataSetAlgorithmSelectorFilter::~vtkPVDataSetAlgorithmSelectorFilter ( )
protected

Member Function Documentation

◆ GetClassName()

virtual const char* vtkPVDataSetAlgorithmSelectorFilter::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkPVDataSetAlgorithmSelectorFilter::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkPVDataSetAlgorithmSelectorFilter::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkPVDataSetAlgorithmSelectorFilter* vtkPVDataSetAlgorithmSelectorFilter::SafeDownCast ( vtkObject *  o)
static

◆ PrintSelf()

void vtkPVDataSetAlgorithmSelectorFilter::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ New()

static vtkPVDataSetAlgorithmSelectorFilter* vtkPVDataSetAlgorithmSelectorFilter::New ( )
static

◆ RegisterFilter()

int vtkPVDataSetAlgorithmSelectorFilter::RegisterFilter ( vtkAlgorithm *  filter)

Register a new filter that can be used underneath in the requestData call.

The return value is the index of that registered filter that should be use to activate it later on. (This number can became wrong in case you remove some previous registered filter)

◆ UnRegisterFilter()

void vtkPVDataSetAlgorithmSelectorFilter::UnRegisterFilter ( int  index)

UnRegister an existing filter that was previously registered.

◆ ClearFilters()

void vtkPVDataSetAlgorithmSelectorFilter::ClearFilters ( )

Remove all the registered filters.

◆ GetNumberOfFilters()

int vtkPVDataSetAlgorithmSelectorFilter::GetNumberOfFilters ( )

Return the current number of registered filters.

◆ GetFilter()

vtkAlgorithm* vtkPVDataSetAlgorithmSelectorFilter::GetFilter ( int  index)

Return the filter that lies at the given index of the filters registration queue.

◆ GetActiveFilter()

vtkAlgorithm* vtkPVDataSetAlgorithmSelectorFilter::GetActiveFilter ( )

Return the current active filter if any otherwise return NULL.

◆ SetActiveFilter()

virtual vtkAlgorithm* vtkPVDataSetAlgorithmSelectorFilter::SetActiveFilter ( int  index)
virtual

Set the active filter based on the given index of the filters registration queue.

And return the corresponding active filter.

Reimplemented in vtkPVMetaSliceDataSet.

◆ GetMTime()

vtkMTimeType vtkPVDataSetAlgorithmSelectorFilter::GetMTime ( )

Override GetMTime because we delegate to other filters to do the real work.

◆ ProcessRequest() [1/2]

virtual int vtkPVDataSetAlgorithmSelectorFilter::ProcessRequest ( vtkInformation *  request,
vtkInformationVector **  inInfo,
vtkInformationVector *  outInfo 
)
virtual

Forward those methods to the underneath filters.

Reimplemented in vtkPVMetaClipDataSet.

◆ ProcessRequest() [2/2]

virtual int vtkPVDataSetAlgorithmSelectorFilter::ProcessRequest ( vtkInformation *  request,
vtkCollection *  inInfo,
vtkInformationVector *  outInfo 
)
virtual

Forward those methods to the underneath filters.

Reimplemented in vtkPVMetaClipDataSet.

◆ RequestDataObject()

virtual int vtkPVDataSetAlgorithmSelectorFilter::RequestDataObject ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *  outputVector 
)
protectedvirtual

◆ FillInputPortInformation()

virtual int vtkPVDataSetAlgorithmSelectorFilter::FillInputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual

◆ FillOutputPortInformation()

virtual int vtkPVDataSetAlgorithmSelectorFilter::FillOutputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual

◆ GetOutputType()

virtual int vtkPVDataSetAlgorithmSelectorFilter::GetOutputType ( )
protectedvirtual

◆ SetOutputType()

virtual void vtkPVDataSetAlgorithmSelectorFilter::SetOutputType ( int  )
protectedvirtual

Member Data Documentation

◆ OutputType

int vtkPVDataSetAlgorithmSelectorFilter::OutputType
protected

Definition at line 106 of file vtkPVDataSetAlgorithmSelectorFilter.h.


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