VTK
|
Superclass for algorithms that produce output of the same type as input. More...
#include <vtkDataSetAlgorithm.h>
Inherits vtkAlgorithm.
Inherited by vtkArrayCalculator, vtkAttributeDataToFieldDataFilter, vtkBrownianPoints, vtkCastToConcrete, vtkCellDataToPointData, vtkCellDerivatives, vtkCellQuality, vtkDataObjectToDataSetFilter, vtkDataSetGradient, vtkDataSetGradientPrecompute, vtkDicer, vtkElevationFilter, vtkExtractTensorComponents, vtkExtractVectorComponents, vtkFieldDataToAttributeDataFilter, vtkGenericProbeFilter, vtkGradientFilter, vtkHyperOctreeDepth, vtkHyperOctreeLimiter, vtkIdFilter, vtkImplicitTextureCoords, vtkInterpolateDataSetAttributes, vtkMaskFields, vtkMatrixMathFilter, vtkMergeDataObjectFilter, vtkMergeFields, vtkMergeFilter, vtkMeshQuality, vtkPassThroughFilter, vtkPDataSetReader, vtkPieceScalars, vtkPointDataToCellData, vtkProbeFilter, vtkProbePolyhedron, vtkProcessIdScalars, vtkProgrammableAttributeDataFilter, vtkProgrammableSource, vtkProjectedTexture, vtkQuadraturePointInterpolator, vtkQuadratureSchemeDictionaryGenerator, vtkRearrangeFields, vtkSelectEnclosedPoints, vtkSimpleElevationFilter, vtkSplitField, vtkTextureMapToCylinder, vtkTextureMapToPlane, vtkTextureMapToSphere, vtkThresholdTextureCoords, vtkTransformTextureCoords, vtkTransmitStructuredDataPiece, vtkVectorDot, and vtkVectorNorm.
Public Types | |
typedef vtkAlgorithm | Superclass |
Public Types inherited from vtkAlgorithm | |
typedef vtkObject | Superclass |
enum | DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION } |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Additional Inherited Members | |
Public Attributes inherited from vtkAlgorithm | |
int | AbortExecute |
Static Protected Member Functions inherited from vtkAlgorithm | |
static vtkInformationIntegerKey * | PORT_REQUIREMENTS_FILLED () |
Protected Attributes inherited from vtkAlgorithm | |
vtkInformation * | Information |
double | Progress |
char * | ProgressText |
vtkProgressObserver * | ProgressObserver |
unsigned long | ErrorCode |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Static Protected Attributes inherited from vtkAlgorithm | |
static vtkExecutive * | DefaultExecutivePrototype |
Superclass for algorithms that produce output of the same type as input.
vtkDataSetAlgorithm is a convenience class to make writing algorithms easier. It is also designed to help transition old algorithms to the new pipeline architecture. There 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 DataSet. If that isn't the case then please override this method in your subclass. This class breaks out the downstream requests into separate 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 50 of file vtkDataSetAlgorithm.h.
Definition at line 54 of file vtkDataSetAlgorithm.h.
|
protected |
|
inlineprotected |
Definition at line 114 of file vtkDataSetAlgorithm.h.
|
static |
|
static |
|
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 vtkMeshQuality, vtkProgrammableAttributeDataFilter, vtkDataObjectToDataSetFilter, vtkCellQuality, vtkArrayCalculator, vtkFieldDataToAttributeDataFilter, vtkRearrangeFields, vtkProbePolyhedron, vtkSplitField, vtkCellDerivatives, vtkSelectEnclosedPoints, vtkImplicitTextureCoords, vtkTextureMapToCylinder, vtkMergeFields, vtkProgrammableSource, vtkProbeFilter, vtkExtractTensorComponents, vtkTextureMapToSphere, vtkCastToConcrete, vtkGenericProbeFilter, vtkDicer, vtkMatrixMathFilter, vtkTextureMapToPlane, vtkThresholdTextureCoords, vtkCellDataToPointData, vtkAttributeDataToFieldDataFilter, vtkMergeDataObjectFilter, vtkPointDataToCellData, vtkTransformTextureCoords, vtkCompositeDataProbeFilter, vtkMaskFields, vtkExtractVectorComponents, vtkGradientFilter, vtkInterpolateDataSetAttributes, vtkOBBDicer, vtkQuadraturePointInterpolator, vtkQuadratureSchemeDictionaryGenerator, vtkVectorNorm, vtkIdFilter, vtkProjectedTexture, vtkPieceScalars, vtkTransmitRectilinearGridPiece, vtkMergeFilter, vtkProcessIdScalars, vtkElevationFilter, vtkBrownianPoints, vtkDataSetGradient, vtkHyperOctreeLimiter, vtkTransmitStructuredGridPiece, vtkTransmitImageDataPiece, vtkDataSetGradientPrecompute, vtkHyperOctreeDepth, vtkSimpleElevationFilter, vtkVectorDot, vtkTransmitStructuredDataPiece, vtkPDataSetReader, vtkPassThroughFilter, vtkPCellDataToPointData, and vtkPProbeFilter.
|
static |
|
protectedvirtual |
Reimplemented from vtkAlgorithm.
Reimplemented in vtkMeshQuality, vtkProgrammableAttributeDataFilter, vtkDataObjectToDataSetFilter, vtkCellQuality, vtkArrayCalculator, vtkFieldDataToAttributeDataFilter, vtkRearrangeFields, vtkProbePolyhedron, vtkSplitField, vtkCellDerivatives, vtkSelectEnclosedPoints, vtkImplicitTextureCoords, vtkTextureMapToCylinder, vtkMergeFields, vtkProgrammableSource, vtkProbeFilter, vtkExtractTensorComponents, vtkTextureMapToSphere, vtkCastToConcrete, vtkGenericProbeFilter, vtkDicer, vtkMatrixMathFilter, vtkTextureMapToPlane, vtkThresholdTextureCoords, vtkCellDataToPointData, vtkAttributeDataToFieldDataFilter, vtkMergeDataObjectFilter, vtkPointDataToCellData, vtkTransformTextureCoords, vtkCompositeDataProbeFilter, vtkMaskFields, vtkExtractVectorComponents, vtkGradientFilter, vtkInterpolateDataSetAttributes, vtkOBBDicer, vtkQuadraturePointInterpolator, vtkQuadratureSchemeDictionaryGenerator, vtkVectorNorm, vtkIdFilter, vtkProjectedTexture, vtkPieceScalars, vtkTransmitRectilinearGridPiece, vtkMergeFilter, vtkProcessIdScalars, vtkElevationFilter, vtkBrownianPoints, vtkDataSetGradient, vtkHyperOctreeLimiter, vtkTransmitStructuredGridPiece, vtkTransmitImageDataPiece, vtkDataSetGradientPrecompute, vtkHyperOctreeDepth, vtkSimpleElevationFilter, vtkVectorDot, vtkTransmitStructuredDataPiece, vtkPDataSetReader, vtkPassThroughFilter, vtkPCellDataToPointData, and vtkPProbeFilter.
vtkDataSetAlgorithm* vtkDataSetAlgorithm::NewInstance | ( | ) | const |
|
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 vtkMeshQuality, vtkProgrammableAttributeDataFilter, vtkDataObjectToDataSetFilter, vtkArrayCalculator, vtkCellQuality, vtkFieldDataToAttributeDataFilter, vtkRearrangeFields, vtkProbePolyhedron, vtkSplitField, vtkCellDerivatives, vtkSelectEnclosedPoints, vtkImplicitTextureCoords, vtkTextureMapToCylinder, vtkMergeFields, vtkProbeFilter, vtkExtractTensorComponents, vtkTextureMapToSphere, vtkGenericProbeFilter, vtkDicer, vtkTextureMapToPlane, vtkMatrixMathFilter, vtkThresholdTextureCoords, vtkCellDataToPointData, vtkMergeDataObjectFilter, vtkPointDataToCellData, vtkAttributeDataToFieldDataFilter, vtkTransformTextureCoords, vtkCompositeDataProbeFilter, vtkMaskFields, vtkExtractVectorComponents, vtkGradientFilter, vtkInterpolateDataSetAttributes, vtkOBBDicer, vtkQuadraturePointInterpolator, vtkQuadratureSchemeDictionaryGenerator, vtkVectorNorm, vtkIdFilter, vtkProjectedTexture, vtkPieceScalars, vtkTransmitRectilinearGridPiece, vtkMergeFilter, vtkProcessIdScalars, vtkElevationFilter, vtkBrownianPoints, vtkDataSetGradient, vtkTransmitStructuredGridPiece, vtkTransmitImageDataPiece, vtkDataSetGradientPrecompute, vtkSimpleElevationFilter, vtkVectorDot, vtkTransmitStructuredDataPiece, vtkPDataSetReader, vtkPassThroughFilter, vtkPCellDataToPointData, and vtkPProbeFilter.
vtkDataSet* vtkDataSetAlgorithm::GetOutput | ( | ) |
Get the output data object for a port on this algorithm.
vtkDataSet* vtkDataSetAlgorithm::GetOutput | ( | int | ) |
Get the output data object for a port on this algorithm.
vtkDataObject* vtkDataSetAlgorithm::GetInput | ( | ) |
Get the input data object. This method is not recommended for use, but lots of old style filters use it.
vtkPolyData* vtkDataSetAlgorithm::GetPolyDataOutput | ( | ) |
Get the output as vtkPolyData.
vtkStructuredPoints* vtkDataSetAlgorithm::GetStructuredPointsOutput | ( | ) |
Get the output as vtkStructuredPoints.
vtkImageData* vtkDataSetAlgorithm::GetImageDataOutput | ( | ) |
Get the output as vtkStructuredPoints.
vtkStructuredGrid* vtkDataSetAlgorithm::GetStructuredGridOutput | ( | ) |
Get the output as vtkStructuredGrid.
vtkUnstructuredGrid* vtkDataSetAlgorithm::GetUnstructuredGridOutput | ( | ) |
Get the output as vtkUnstructuredGrid.
vtkRectilinearGrid* vtkDataSetAlgorithm::GetRectilinearGridOutput | ( | ) |
Get the output as vtkRectilinearGrid.
void vtkDataSetAlgorithm::SetInputData | ( | vtkDataObject * | ) |
Assign a data object as input. Note that this method does not establish a pipeline connection. Use SetInputConnection() to setup a pipeline connection.
void vtkDataSetAlgorithm::SetInputData | ( | int | , |
vtkDataObject * | |||
) |
Assign a data object as input. Note that this method does not establish a pipeline connection. Use SetInputConnection() to setup a pipeline connection.
void vtkDataSetAlgorithm::SetInputData | ( | vtkDataSet * | ) |
Assign a data object as input. Note that this method does not establish a pipeline connection. Use SetInputConnection() to setup a pipeline connection.
void vtkDataSetAlgorithm::SetInputData | ( | int | , |
vtkDataSet * | |||
) |
Assign a data object as input. Note that this method does not establish a pipeline connection. Use SetInputConnection() to setup a pipeline connection.
void vtkDataSetAlgorithm::AddInputData | ( | vtkDataObject * | ) |
Assign a data object as input. Note that this method does not establish a pipeline connection. Use AddInputConnection() to setup a pipeline connection.
void vtkDataSetAlgorithm::AddInputData | ( | vtkDataSet * | ) |
Assign a data object as input. Note that this method does not establish a pipeline connection. Use AddInputConnection() to setup a pipeline connection.
void vtkDataSetAlgorithm::AddInputData | ( | int | , |
vtkDataSet * | |||
) |
Assign a data object as input. Note that this method does not establish a pipeline connection. Use AddInputConnection() to setup a pipeline connection.
void vtkDataSetAlgorithm::AddInputData | ( | int | , |
vtkDataObject * | |||
) |
Assign a data object as input. Note that this method does not establish a pipeline connection. Use AddInputConnection() to setup a pipeline connection.
|
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 vtkDataObjectToDataSetFilter, vtkProbeFilter, vtkProbePolyhedron, vtkProgrammableSource, vtkGenericProbeFilter, vtkPDataSetReader, vtkCastToConcrete, and vtkTransmitStructuredDataPiece.
Definition at line 122 of file vtkDataSetAlgorithm.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 vtkDataObjectToDataSetFilter, vtkFieldDataToAttributeDataFilter, vtkMergeFilter, vtkProbeFilter, vtkGradientFilter, vtkProbePolyhedron, vtkTransmitStructuredDataPiece, vtkPProbeFilter, and vtkPCellDataToPointData.
Definition at line 132 of file vtkDataSetAlgorithm.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 vtkDataObjectToDataSetFilter, vtkProgrammableSource, and vtkPDataSetReader.
|
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 vtkMeshQuality, vtkCellQuality, vtkDataObjectToDataSetFilter, vtkArrayCalculator, vtkFieldDataToAttributeDataFilter, vtkRearrangeFields, vtkExtractTensorComponents, vtkMergeFilter, vtkProbeFilter, vtkSelectEnclosedPoints, vtkMaskFields, vtkSplitField, vtkMergeFields, vtkGradientFilter, vtkProgrammableAttributeDataFilter, vtkTransformTextureCoords, vtkProjectedTexture, vtkProbePolyhedron, vtkTextureMapToPlane, vtkCellDerivatives, vtkProgrammableSource, vtkTextureMapToCylinder, vtkImplicitTextureCoords, vtkThresholdTextureCoords, vtkTextureMapToSphere, vtkCompositeDataProbeFilter, vtkIdFilter, vtkExtractVectorComponents, vtkMatrixMathFilter, vtkVectorNorm, vtkGenericProbeFilter, vtkMergeDataObjectFilter, vtkPDataSetReader, vtkProcessIdScalars, vtkAttributeDataToFieldDataFilter, vtkCellDataToPointData, vtkElevationFilter, vtkPieceScalars, vtkPointDataToCellData, vtkInterpolateDataSetAttributes, vtkCastToConcrete, vtkBrownianPoints, vtkTransmitStructuredDataPiece, vtkOBBDicer, vtkVectorDot, vtkPProbeFilter, vtkSimpleElevationFilter, vtkDataSetGradient, vtkQuadraturePointInterpolator, vtkQuadratureSchemeDictionaryGenerator, vtkHyperOctreeLimiter, vtkPCellDataToPointData, vtkDataSetGradientPrecompute, vtkPassThroughFilter, and vtkHyperOctreeDepth.
Definition at line 159 of file vtkDataSetAlgorithm.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 vtkHyperOctreeLimiter, vtkQuadraturePointInterpolator, vtkQuadratureSchemeDictionaryGenerator, and vtkHyperOctreeDepth.
|
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 vtkDataObjectToDataSetFilter, vtkMergeFilter, vtkSelectEnclosedPoints, vtkGenericProbeFilter, vtkMergeDataObjectFilter, vtkCompositeDataProbeFilter, vtkInterpolateDataSetAttributes, vtkPProbeFilter, vtkHyperOctreeLimiter, vtkQuadraturePointInterpolator, vtkQuadratureSchemeDictionaryGenerator, and vtkHyperOctreeDepth.
|
protected |