VTK
|
Superclass for algorithms that produce output of the same type as input. More...
#include <vtkPassInputTypeAlgorithm.h>
Public Types | |
typedef vtkAlgorithm | Superclass |
![]() | |
![]() |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkPolyData * | GetPolyDataOutput () |
vtkStructuredPoints * | GetStructuredPointsOutput () |
vtkImageData * | GetImageDataOutput () |
vtkStructuredGrid * | GetStructuredGridOutput () |
vtkUnstructuredGrid * | GetUnstructuredGridOutput () |
vtkRectilinearGrid * | GetRectilinearGridOutput () |
vtkTable * | GetTableOutput () |
vtkGraph * | GetGraphOutput () |
vtkDataObject * | GetInput () |
vtkDataObject * | GetOutput () |
vtkDataObject * | GetOutput (int) |
void | SetInput (vtkDataObject *) |
void | SetInput (int, vtkDataObject *) |
void | AddInput (vtkDataObject *) |
void | AddInput (int, vtkDataObject *) |
virtual int | ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
![]() | |
int | HasExecutive () |
vtkExecutive * | GetExecutive () |
virtual void | SetExecutive (vtkExecutive *executive) |
virtual int | ModifyRequest (vtkInformation *request, int when) |
vtkInformation * | GetInputPortInformation (int port) |
vtkInformation * | GetOutputPortInformation (int port) |
int | GetNumberOfInputPorts () |
int | GetNumberOfOutputPorts () |
void | UpdateProgress (double amount) |
vtkInformation * | GetInputArrayInformation (int idx) |
void | RemoveAllInputs () |
vtkDataObject * | GetOutputDataObject (int port) |
virtual void | RemoveInputConnection (int port, vtkAlgorithmOutput *input) |
int | GetNumberOfInputConnections (int port) |
int | GetTotalNumberOfInputConnections () |
vtkAlgorithmOutput * | GetInputConnection (int port, int index) |
virtual void | Update () |
virtual void | UpdateInformation () |
virtual void | UpdateWholeExtent () |
void | ConvertTotalInputToPortConnection (int ind, int &port, int &conn) |
virtual double | ComputePriority () |
int | ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo) |
virtual int | ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime) |
virtual vtkInformation * | GetInformation () |
virtual void | SetInformation (vtkInformation *) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
virtual void | SetAbortExecute (int) |
virtual int | GetAbortExecute () |
virtual void | AbortExecuteOn () |
virtual void | AbortExecuteOff () |
virtual void | SetProgress (double) |
virtual double | GetProgress () |
void | SetProgressText (const char *ptext) |
virtual char * | GetProgressText () |
virtual unsigned long | GetErrorCode () |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name) |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) |
virtual void | SetInputArrayToProcess (int idx, vtkInformation *info) |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName) |
vtkDataObject * | GetInputDataObject (int port, int connection) |
virtual void | SetInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | SetInputConnection (vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (vtkAlgorithmOutput *input) |
vtkAlgorithmOutput * | GetOutputPort (int index) |
vtkAlgorithmOutput * | GetOutputPort () |
virtual void | SetReleaseDataFlag (int) |
virtual int | GetReleaseDataFlag () |
void | ReleaseDataFlagOn () |
void | ReleaseDataFlagOff () |
int | UpdateExtentIsEmpty (vtkDataObject *output) |
int | UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType) |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Additional Inherited Members | |
![]() | |
int | AbortExecute |
![]() | |
static vtkInformationIntegerKey * | PORT_REQUIREMENTS_FILLED () |
![]() | |
vtkInformation * | Information |
double | Progress |
char * | ProgressText |
unsigned long | ErrorCode |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
![]() | |
static vtkExecutive * | DefaultExecutivePrototype |
Superclass for algorithms that produce output of the same type as input.
vtkPassInputTypeAlgorithm is a convenience class to make writing algorithms easier. It is also designed to help transition old algorithms to the new pipeline architecture. Ther are some assumptions and defaults made by this class you should be aware of. This class defaults such that your filter will have one input port and one output port. If that is not the case simply change it with SetNumberOfInputPorts etc. See this classes contstructor for the default. This class also provides a FillInputPortInfo method that by default says that all inputs will be DataObject. If that isn't the case then please override this method in your subclass. This class breaks out the downstream requests into seperate functions such as RequestDataObject RequestData and RequestInformation. The default implementation of RequestDataObject will create an output data of the same type as the input.
Definition at line 48 of file vtkPassInputTypeAlgorithm.h.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkQtXMLProcessor, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkDataRepresentation, vtkAssignAttribute, vtkApplyIcons, vtkRenderedGraphRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkTemporalStatistics, vtkQtTableRepresentation, vtkRenderedTreeAreaRepresentation, vtkProgrammableFilter, vtkRenderedSurfaceRepresentation, vtkTransferAttributes, vtkConvertSelectionDomain, vtkGeoAssignCoordinates, vtkMapArrayValues, vtkRemoveHiddenData, vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkRenderedRepresentation, vtkAssignCoordinates, vtkAddMembershipArray, vtkEmptyRepresentation, vtkRenderedHierarchyRepresentation, and vtkPassThrough.
Definition at line 52 of file vtkPassInputTypeAlgorithm.h.
|
protected |
|
inlineprotected |
Definition at line 119 of file vtkPassInputTypeAlgorithm.h.
|
static |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkQtXMLProcessor, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkAssignAttribute, vtkDataRepresentation, vtkApplyIcons, vtkRenderedGraphRepresentation, vtkTemporalStatistics, vtkParallelCoordinatesHistogramRepresentation, vtkRenderedTreeAreaRepresentation, vtkProgrammableFilter, vtkRenderedSurfaceRepresentation, vtkMapArrayValues, vtkTransferAttributes, vtkConvertSelectionDomain, vtkGeoAssignCoordinates, vtkRemoveHiddenData, vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkRenderedRepresentation, vtkAssignCoordinates, vtkAddMembershipArray, vtkEmptyRepresentation, vtkRenderedHierarchyRepresentation, and vtkPassThrough.
|
virtual |
Reimplemented from vtkAlgorithm.
Reimplemented in vtkQtXMLProcessor, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkDataRepresentation, vtkAssignAttribute, vtkApplyIcons, vtkRenderedGraphRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkTemporalStatistics, vtkQtTableRepresentation, vtkRenderedTreeAreaRepresentation, vtkProgrammableFilter, vtkRenderedSurfaceRepresentation, vtkTransferAttributes, vtkConvertSelectionDomain, vtkGeoAssignCoordinates, vtkMapArrayValues, vtkRemoveHiddenData, vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkRenderedRepresentation, vtkAssignCoordinates, vtkAddMembershipArray, vtkEmptyRepresentation, vtkRenderedHierarchyRepresentation, and vtkPassThrough.
|
static |
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkQtXMLProcessor, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkDataRepresentation, vtkAssignAttribute, vtkApplyIcons, vtkRenderedGraphRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkTemporalStatistics, vtkQtTableRepresentation, vtkRenderedTreeAreaRepresentation, vtkProgrammableFilter, vtkRenderedSurfaceRepresentation, vtkTransferAttributes, vtkConvertSelectionDomain, vtkGeoAssignCoordinates, vtkMapArrayValues, vtkRemoveHiddenData, vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkRenderedRepresentation, vtkAssignCoordinates, vtkAddMembershipArray, vtkEmptyRepresentation, vtkRenderedHierarchyRepresentation, and vtkPassThrough.
|
virtual |
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkQtXMLProcessor, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkDataRepresentation, vtkAssignAttribute, vtkApplyIcons, vtkRenderedGraphRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkTemporalStatistics, vtkQtTableRepresentation, vtkRenderedTreeAreaRepresentation, vtkProgrammableFilter, vtkRenderedSurfaceRepresentation, vtkTransferAttributes, vtkConvertSelectionDomain, vtkGeoAssignCoordinates, vtkMapArrayValues, vtkRemoveHiddenData, vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkRenderedRepresentation, vtkAssignCoordinates, vtkAddMembershipArray, vtkEmptyRepresentation, vtkRenderedHierarchyRepresentation, and vtkPassThrough.
|
static |
Reimplemented from vtkAlgorithm.
Reimplemented in vtkQtXMLProcessor, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkDataRepresentation, vtkAssignAttribute, vtkApplyIcons, vtkRenderedGraphRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkTemporalStatistics, vtkQtTableRepresentation, vtkRenderedTreeAreaRepresentation, vtkProgrammableFilter, vtkRenderedSurfaceRepresentation, vtkTransferAttributes, vtkConvertSelectionDomain, vtkGeoAssignCoordinates, vtkMapArrayValues, vtkRemoveHiddenData, vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkRenderedRepresentation, vtkAssignCoordinates, vtkAddMembershipArray, vtkEmptyRepresentation, vtkRenderedHierarchyRepresentation, and vtkPassThrough.
|
virtual |
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 vtkAlgorithm.
Reimplemented in vtkQtXMLProcessor, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkDataRepresentation, vtkAssignAttribute, vtkApplyIcons, vtkRenderedGraphRepresentation, vtkParallelCoordinatesHistogramRepresentation, vtkTemporalStatistics, vtkQtTableRepresentation, vtkRenderedTreeAreaRepresentation, vtkProgrammableFilter, vtkRenderedSurfaceRepresentation, vtkTransferAttributes, vtkConvertSelectionDomain, vtkGeoAssignCoordinates, vtkMapArrayValues, vtkRemoveHiddenData, vtkGeoAlignedImageRepresentation, vtkQtChartRepresentation, vtkRenderedRepresentation, vtkAssignCoordinates, vtkAddMembershipArray, vtkEmptyRepresentation, vtkRenderedHierarchyRepresentation, and vtkPassThrough.
vtkDataObject* vtkPassInputTypeAlgorithm::GetOutput | ( | ) |
Get the output data object for a port on this algorithm.
vtkDataObject* vtkPassInputTypeAlgorithm::GetOutput | ( | int | ) |
Get the output data object for a port on this algorithm.
vtkPolyData* vtkPassInputTypeAlgorithm::GetPolyDataOutput | ( | ) |
Get the output as vtkPolyData.
vtkStructuredPoints* vtkPassInputTypeAlgorithm::GetStructuredPointsOutput | ( | ) |
Get the output as vtkStructuredPoints.
vtkImageData* vtkPassInputTypeAlgorithm::GetImageDataOutput | ( | ) |
Get the output as vtkStructuredPoints.
vtkStructuredGrid* vtkPassInputTypeAlgorithm::GetStructuredGridOutput | ( | ) |
Get the output as vtkStructuredGrid.
vtkUnstructuredGrid* vtkPassInputTypeAlgorithm::GetUnstructuredGridOutput | ( | ) |
Get the output as vtkUnstructuredGrid.
vtkRectilinearGrid* vtkPassInputTypeAlgorithm::GetRectilinearGridOutput | ( | ) |
Get the output as vtkRectilinearGrid.
vtkDataObject* vtkPassInputTypeAlgorithm::GetInput | ( | ) |
Get the input data object. This method is not recommended for use, but lots of old style filters use it.
void vtkPassInputTypeAlgorithm::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 vtkPassInputTypeAlgorithm::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.
void vtkPassInputTypeAlgorithm::AddInput | ( | vtkDataObject * | ) |
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.
void vtkPassInputTypeAlgorithm::AddInput | ( | int | , |
vtkDataObject * | |||
) |
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 |
see vtkAlgorithm for details
Reimplemented from vtkAlgorithm.
|
inlineprotectedvirtual |
This is called within ProcessRequest when a request asks for Information. Typically an algorithm provides whatever lightweight information about its output that it can here without doing any lengthy computations. This happens in the first pass of the pipeline execution.
Reimplemented in vtkTemporalStatistics, and vtkAssignAttribute.
Definition at line 127 of file vtkPassInputTypeAlgorithm.h.
|
inlineprotectedvirtual |
This is called within ProcessRequest when each filter in the pipeline decides what portion of its input is needed to create the portion of its output that the downstream filter asks for. This happens during the second pass in the pipeline execution process.
Reimplemented in vtkTemporalStatistics.
Definition at line 137 of file vtkPassInputTypeAlgorithm.h.
|
protectedvirtual |
This is called within ProcessRequest to when a request asks the algorithm to create empty output data objects. This typically happens early on in the execution of the pipeline. The default behavior is to create an output DataSet of the same type as the input for each output port. This method can be overridden to change the output data type of an algorithm. This happens in the third pass of the pipeline execution.
Reimplemented in vtkTemporalStatistics.
|
inlineprotectedvirtual |
This is called within ProcessRequest when a request asks the algorithm to do its work. This is the method you should override to do whatever the algorithm is designed to do. This happens during the fourth pass in the pipeline execution process.
Reimplemented in vtkRenderedGraphRepresentation, vtkRenderedTreeAreaRepresentation, vtkDataRepresentation, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkQtXMLProcessor, vtkApplyIcons, vtkMapArrayValues, vtkRenderedHierarchyRepresentation, vtkTemporalStatistics, vtkParallelCoordinatesHistogramRepresentation, vtkAssignAttribute, vtkQtTableRepresentation, vtkTransferAttributes, vtkProgrammableFilter, vtkGeoAssignCoordinates, vtkAddMembershipArray, vtkRenderedSurfaceRepresentation, vtkAssignCoordinates, vtkConvertSelectionDomain, vtkPassThrough, and vtkRemoveHiddenData.
Definition at line 164 of file vtkPassInputTypeAlgorithm.h.
|
protectedvirtual |
Fill the output port information objects for this algorithm. This is invoked by the first call to GetOutputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkQtXMLProcessor, and vtkConvertSelectionDomain.
|
protectedvirtual |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkRenderedTreeAreaRepresentation, vtkApplyColors, vtkParallelCoordinatesRepresentation, vtkApplyIcons, vtkMapArrayValues, vtkRenderedHierarchyRepresentation, vtkAssignAttribute, vtkTemporalStatistics, vtkProgrammableFilter, vtkTransferAttributes, vtkGeoAssignCoordinates, vtkAddMembershipArray, vtkAssignCoordinates, vtkConvertSelectionDomain, vtkRemoveHiddenData, and vtkPassThrough.
|
protected |