#include <vtkSource.h>
vtkSource is an abstract object that specifies behavior and interface of source objects. Source objects are objects that begin visualization pipeline. Sources include readers (read data from file or communications port) and procedural sources (generate data programmatically). vtkSource objects are also objects that generate output data. In this sense vtkSource is used as a superclass to vtkFilter.
Concrete subclasses of vtkSource must define Update() and Execute() methods. The public method Update() invokes network execution and will bring the network up-to-date. The protected Execute() method actually does the work of data creation/generation. The difference between the two methods is that Update() implements input consistency checks and modified time comparisons and then invokes the Execute() which is an implementation of a particular algorithm.
An important feature of subclasses of vtkSource is that it is possible to control the memory-management model (i.e., retain output versus delete output data). If enabled the ReleaseDataFlag enables the deletion of the output data once the downstream process object finishes processing the data (please see text).
Definition at line 55 of file vtkSource.h.
Reimplemented from vtkProcessObject.
Reimplemented in vtkDataObjectSource, vtkDataSetSource, vtkDataSetToDataSetFilter, vtkDataSetToImageFilter, vtkDataSetToPolyDataFilter, vtkDataSetToStructuredGridFilter, vtkDataSetToStructuredPointsFilter, vtkDataSetToUnstructuredGridFilter, vtkImageMultipleInputFilter, vtkImageMultipleInputOutputFilter, vtkImageSource, vtkImageToImageFilter, vtkImageTwoInputFilter, vtkPointSetSource, vtkPointSetToPointSetFilter, vtkPolyDataSource, vtkPolyDataToPolyDataFilter, vtkRectilinearGridSource, vtkRectilinearGridToPolyDataFilter, vtkStructuredGridSource, vtkStructuredGridToPolyDataFilter, vtkStructuredGridToStructuredGridFilter, vtkStructuredPointsSource, vtkStructuredPointsToPolyDataFilter, vtkStructuredPointsToStructuredPointsFilter, vtkStructuredPointsToUnstructuredGridFilter, vtkUnstructuredGridSource, vtkUnstructuredGridToPolyDataFilter, vtkUnstructuredGridToUnstructuredGridFilter, vtkSpatialRepresentationFilter, vtkImageSpatialFilter, vtkPLOT3DReader, and vtkSESAMEReader.
Definition at line 58 of file vtkSource.h.
vtkSource::vtkSource | ( | ) | [protected] |
vtkSource::~vtkSource | ( | ) | [protected] |
virtual const char* vtkSource::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkProcessObject.
Reimplemented in vtkDataObjectSource, vtkDataSetSource, vtkDataSetToDataSetFilter, vtkDataSetToImageFilter, vtkDataSetToPolyDataFilter, vtkDataSetToStructuredGridFilter, vtkDataSetToStructuredPointsFilter, vtkDataSetToUnstructuredGridFilter, vtkImageMultipleInputFilter, vtkImageMultipleInputOutputFilter, vtkImageSource, vtkImageToImageFilter, vtkImageTwoInputFilter, vtkPointSetSource, vtkPointSetToPointSetFilter, vtkPolyDataSource, vtkPolyDataToPolyDataFilter, vtkRectilinearGridSource, vtkRectilinearGridToPolyDataFilter, vtkStructuredGridSource, vtkStructuredGridToPolyDataFilter, vtkStructuredGridToStructuredGridFilter, vtkStructuredPointsSource, vtkStructuredPointsToPolyDataFilter, vtkStructuredPointsToStructuredPointsFilter, vtkStructuredPointsToUnstructuredGridFilter, vtkUnstructuredGridSource, vtkUnstructuredGridToPolyDataFilter, vtkUnstructuredGridToUnstructuredGridFilter, vtkSpatialRepresentationFilter, vtkImageSpatialFilter, vtkPLOT3DReader, and vtkSESAMEReader.
static int vtkSource::IsTypeOf | ( | const char * | name | ) | [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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkProcessObject.
Reimplemented in vtkDataObjectSource, vtkDataSetSource, vtkDataSetToDataSetFilter, vtkDataSetToImageFilter, vtkDataSetToPolyDataFilter, vtkDataSetToStructuredGridFilter, vtkDataSetToStructuredPointsFilter, vtkDataSetToUnstructuredGridFilter, vtkImageMultipleInputFilter, vtkImageMultipleInputOutputFilter, vtkImageSource, vtkImageToImageFilter, vtkImageTwoInputFilter, vtkPointSetSource, vtkPointSetToPointSetFilter, vtkPolyDataSource, vtkPolyDataToPolyDataFilter, vtkRectilinearGridSource, vtkRectilinearGridToPolyDataFilter, vtkStructuredGridSource, vtkStructuredGridToPolyDataFilter, vtkStructuredGridToStructuredGridFilter, vtkStructuredPointsSource, vtkStructuredPointsToPolyDataFilter, vtkStructuredPointsToStructuredPointsFilter, vtkStructuredPointsToUnstructuredGridFilter, vtkUnstructuredGridSource, vtkUnstructuredGridToPolyDataFilter, vtkUnstructuredGridToUnstructuredGridFilter, vtkSpatialRepresentationFilter, vtkImageSpatialFilter, vtkPLOT3DReader, and vtkSESAMEReader.
virtual int vtkSource::IsA | ( | const char * | name | ) | [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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkProcessObject.
Reimplemented in vtkDataObjectSource, vtkDataSetSource, vtkDataSetToDataSetFilter, vtkDataSetToImageFilter, vtkDataSetToPolyDataFilter, vtkDataSetToStructuredGridFilter, vtkDataSetToStructuredPointsFilter, vtkDataSetToUnstructuredGridFilter, vtkImageMultipleInputFilter, vtkImageMultipleInputOutputFilter, vtkImageSource, vtkImageToImageFilter, vtkImageTwoInputFilter, vtkPointSetSource, vtkPointSetToPointSetFilter, vtkPolyDataSource, vtkPolyDataToPolyDataFilter, vtkRectilinearGridSource, vtkRectilinearGridToPolyDataFilter, vtkStructuredGridSource, vtkStructuredGridToPolyDataFilter, vtkStructuredGridToStructuredGridFilter, vtkStructuredPointsSource, vtkStructuredPointsToPolyDataFilter, vtkStructuredPointsToStructuredPointsFilter, vtkStructuredPointsToUnstructuredGridFilter, vtkUnstructuredGridSource, vtkUnstructuredGridToPolyDataFilter, vtkUnstructuredGridToUnstructuredGridFilter, vtkSpatialRepresentationFilter, vtkImageSpatialFilter, vtkPLOT3DReader, and vtkSESAMEReader.
Reimplemented from vtkProcessObject.
Reimplemented in vtkDataObjectSource, vtkDataSetSource, vtkDataSetToDataSetFilter, vtkDataSetToImageFilter, vtkDataSetToPolyDataFilter, vtkDataSetToStructuredGridFilter, vtkDataSetToStructuredPointsFilter, vtkDataSetToUnstructuredGridFilter, vtkImageMultipleInputFilter, vtkImageMultipleInputOutputFilter, vtkImageSource, vtkImageToImageFilter, vtkImageTwoInputFilter, vtkPointSetSource, vtkPointSetToPointSetFilter, vtkPolyDataSource, vtkPolyDataToPolyDataFilter, vtkRectilinearGridSource, vtkRectilinearGridToPolyDataFilter, vtkStructuredGridSource, vtkStructuredGridToPolyDataFilter, vtkStructuredGridToStructuredGridFilter, vtkStructuredPointsSource, vtkStructuredPointsToPolyDataFilter, vtkStructuredPointsToStructuredPointsFilter, vtkStructuredPointsToUnstructuredGridFilter, vtkUnstructuredGridSource, vtkUnstructuredGridToPolyDataFilter, vtkUnstructuredGridToUnstructuredGridFilter, vtkSpatialRepresentationFilter, vtkImageSpatialFilter, vtkPLOT3DReader, and vtkSESAMEReader.
void vtkSource::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [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 vtkProcessObject.
Reimplemented in vtkDataObjectSource, vtkDataSetSource, vtkDataSetToDataSetFilter, vtkDataSetToImageFilter, vtkDataSetToPolyDataFilter, vtkDataSetToStructuredGridFilter, vtkDataSetToStructuredPointsFilter, vtkDataSetToUnstructuredGridFilter, vtkImageMultipleInputFilter, vtkImageMultipleInputOutputFilter, vtkImageSource, vtkImageToImageFilter, vtkImageTwoInputFilter, vtkPointSetSource, vtkPointSetToPointSetFilter, vtkPolyDataSource, vtkPolyDataToPolyDataFilter, vtkRectilinearGridSource, vtkRectilinearGridToPolyDataFilter, vtkStructuredGridSource, vtkStructuredGridToPolyDataFilter, vtkStructuredGridToStructuredGridFilter, vtkStructuredPointsSource, vtkStructuredPointsToPolyDataFilter, vtkStructuredPointsToStructuredPointsFilter, vtkStructuredPointsToUnstructuredGridFilter, vtkUnstructuredGridSource, vtkUnstructuredGridToPolyDataFilter, vtkUnstructuredGridToUnstructuredGridFilter, vtkSpatialRepresentationFilter, vtkImageSpatialFilter, vtkPLOT3DReader, and vtkSESAMEReader.
virtual void vtkSource::Update | ( | ) | [virtual] |
Bring object up-to-date before execution. Update() checks modified time against last execution time, and re-executes object if necessary.
Reimplemented from vtkAlgorithm.
virtual void vtkSource::UpdateWholeExtent | ( | ) | [virtual] |
Like update, but make sure the update extent is the whole extent in the output.
Reimplemented from vtkAlgorithm.
virtual void vtkSource::UpdateInformation | ( | ) | [virtual] |
Updates any global information about the data (like spacing for images)
Reimplemented from vtkAlgorithm.
virtual void vtkSource::PropagateUpdateExtent | ( | vtkDataObject * | output | ) | [virtual] |
WARNING: INTERNAL METHOD - NOT FOR GENERAL USE. THIS METHOD IS PART OF THE PIPELINE UPDATE FUNCTIONALITY. The update extent for this object is propagated up the pipeline. This propagation may early terminate based on the PipelineMTime.
virtual void vtkSource::TriggerAsynchronousUpdate | ( | ) | [virtual] |
WARNING: INTERNAL METHOD - NOT FOR GENERAL USE. THIS METHOD IS PART OF THE PIPELINE UPDATE FUNCTIONALITY. Propagate back up the pipeline for ports and trigger the update on the other side of the port to allow for asynchronous parallel processing in the pipeline. This propagation may early terminate based on the PipelineMTime.
virtual void vtkSource::UpdateData | ( | vtkDataObject * | output | ) | [virtual] |
WARNING: INTERNAL METHOD - NOT FOR GENERAL USE. THIS METHOD IS PART OF THE PIPELINE UPDATE FUNCTIONALITY. Propagate the update back up the pipeline, and perform the actual work of updating on the way down. When the propagate arrives at a port, block and wait for the asynchronous update to finish on the other side. This propagation may early terminate based on the PipelineMTime.
virtual void vtkSource::ComputeInputUpdateExtents | ( | vtkDataObject * | output | ) | [virtual] |
What is the input update extent that is required to produce the desired output? By default, the whole input is always required but this is overridden in many subclasses.
Reimplemented in vtkDataSetToDataSetFilter, vtkDataSetToImageFilter, vtkDataSetToPolyDataFilter, vtkDataSetToStructuredPointsFilter, vtkImageMultipleInputFilter, vtkImageMultipleInputOutputFilter, vtkImageToImageFilter, vtkPointSetToPointSetFilter, vtkPolyDataSource, vtkStructuredPointsToPolyDataFilter, vtkStructuredPointsToStructuredPointsFilter, vtkStructuredPointsToUnstructuredGridFilter, vtkUnstructuredGridSource, and vtkUnstructuredGridToPolyDataFilter.
virtual void vtkSource::SetReleaseDataFlag | ( | int | ) | [virtual] |
Turn on/off flag to control whether this object's data is released after being used by a source.
Reimplemented from vtkAlgorithm.
virtual int vtkSource::GetReleaseDataFlag | ( | ) | [virtual] |
Turn on/off flag to control whether this object's data is released after being used by a source.
Reimplemented from vtkAlgorithm.
virtual void vtkSource::ReleaseDataFlagOn | ( | ) | [virtual] |
Turn on/off flag to control whether this object's data is released after being used by a source.
Reimplemented from vtkAlgorithm.
virtual void vtkSource::ReleaseDataFlagOff | ( | ) | [virtual] |
Turn on/off flag to control whether this object's data is released after being used by a source.
Reimplemented from vtkAlgorithm.
vtkDataObject** vtkSource::GetOutputs | ( | ) |
Return an array with all the inputs of this process object. This is useful for tracing back in the pipeline to construct graphs etc.
virtual int vtkSource::GetNumberOfOutputs | ( | ) | [virtual] |
Return an array with all the inputs of this process object. This is useful for tracing back in the pipeline to construct graphs etc.
Reimplemented in vtkPLOT3DReader.
void vtkSource::UnRegisterAllOutputs | ( | void | ) |
Release/disconnect all outputs of this source. This is intended to be called prior to Delete() if the user is concerned about outputs holding on to the filter/source.
int vtkSource::GetOutputIndex | ( | vtkDataObject * | out | ) |
Return what index output the passed in output is, return -1 if it does not match any of the outputs
virtual void vtkSource::SetExecutive | ( | vtkExecutive * | executive | ) | [virtual] |
Set this algorithm's executive. This algorithm is removed from any executive to which it has previously been assigned and then assigned to the given executive.
Reimplemented from vtkAlgorithm.
virtual int vtkSource::ProcessRequest | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [virtual] |
Transform pipeline requests from executives into old-style pipeline calls. This works with the vtkStreamingDemandDrivenPipeline executive to maintain backward compatibility for filters written as subclasses of vtkSource.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkDataSetToDataSetFilter.
virtual void vtkSource::ExecuteData | ( | vtkDataObject * | output | ) | [protected, virtual] |
This method is the one that should be used by subclasses, right now the default implementation is to call the backwards compatibility method
Reimplemented in vtkImageMultipleInputFilter, vtkImageMultipleInputOutputFilter, and vtkImageToImageFilter.
virtual void vtkSource::Execute | ( | ) | [protected, virtual] |
This method is the old style execute method
Reimplemented in vtkImageSource, vtkSpatialRepresentationFilter, vtkPLOT3DReader, and vtkSESAMEReader.
virtual void vtkSource::ExecuteInformation | ( | ) | [protected, virtual] |
virtual void vtkSource::MarkGeneratedOutputs | ( | vtkDataObject * | ) | [protected, virtual] |
void vtkSource::SetNumberOfOutputs | ( | int | num | ) | [protected] |
vtkDataObject* vtkSource::GetOutput | ( | int | idx | ) | [protected] |
Reimplemented in vtkDataObjectSource, vtkDataSetSource, vtkDataSetToDataSetFilter, vtkImageMultipleInputOutputFilter, vtkImageSource, vtkPointSetSource, vtkPointSetToPointSetFilter, vtkPolyDataSource, vtkRectilinearGridSource, vtkStructuredGridSource, vtkStructuredPointsSource, vtkUnstructuredGridSource, and vtkSpatialRepresentationFilter.
virtual void vtkSource::SetNthOutput | ( | int | num, | |
vtkDataObject * | output | |||
) | [protected, virtual] |
virtual void vtkSource::AddOutput | ( | vtkDataObject * | output | ) | [protected, virtual] |
virtual void vtkSource::RemoveOutput | ( | vtkDataObject * | output | ) | [protected, virtual] |
virtual void vtkSource::ReportReferences | ( | vtkGarbageCollector * | ) | [protected, virtual] |
int vtkSource::FillOutputPortInformation | ( | int | port, | |
vtkInformation * | info | |||
) | [protected, virtual] |
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 vtkProcessObject.
Reimplemented in vtkDataObjectSource, vtkDataSetSource, vtkImageSource, vtkPointSetSource, vtkPolyDataSource, vtkRectilinearGridSource, vtkStructuredGridSource, vtkStructuredPointsSource, and vtkUnstructuredGridSource.
virtual void vtkSource::SetNumberOfOutputPorts | ( | int | n | ) | [protected, virtual] |
Set the number of output ports provided by the algorithm.
Reimplemented from vtkAlgorithm.
friend class vtkDataObjectToSourceFriendship [friend] |
Definition at line 189 of file vtkSource.h.
vtkDataObject** vtkSource::Outputs [protected] |
Definition at line 173 of file vtkSource.h.
int vtkSource::NumberOfOutputs [protected] |
Definition at line 174 of file vtkSource.h.
int vtkSource::Updating [protected] |
Definition at line 175 of file vtkSource.h.
vtkTimeStamp vtkSource::InformationTime [protected] |
Definition at line 177 of file vtkSource.h.