VTK
|
Superclass for algorithms that produce only graph as output. More...
#include <vtkGraphAlgorithm.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) |
virtual int | ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
vtkGraph * | GetOutput () |
vtkGraph * | GetOutput (int index) |
void | SetInput (vtkDataObject *obj) |
void | SetInput (int index, vtkDataObject *obj) |
![]() | |
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 only graph as output.
vtkGraphAlgorithm 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 class constructor for the default. This class also provides a FillInputPortInfo method that by default says that all inputs will be Graph. 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 ExecuteData and ExecuteInformation. For new algorithms you should implement RequestData( request, inputVec, outputVec) but for older filters there is a default implementation that calls the old ExecuteData(output) signature. For even older filters that don't implement ExecuteData the default implementation calls the even older Execute() signature.
Definition at line 56 of file vtkGraphAlgorithm.h.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkTableToGraph, vtkPBGLRMATGraphSource, vtkSQLGraphReader, vtkPBGLCollectGraph, vtkMergeGraphs, vtkGraphHierarchicalBundleEdges, vtkStreamGraph, vtkGeoRandomGraphSource, vtkExtractSelectedGraph, vtkPBGLBreadthFirstSearch, vtkBoostBreadthFirstSearch, vtkDIMACSGraphReader, vtkGraphLayout, vtkPBGLGraphSQLReader, vtkPBGLRandomGraphSource, vtkBoostBrandesCentrality, vtkCollapseGraph, vtkPBGLShortestPaths, vtkPBGLMinimumSpanningTree, vtkRandomGraphSource, vtkBoostConnectedComponents, vtkVertexDegree, vtkPBGLConnectedComponents, vtkSplineGraphEdges, vtkPBGLVertexColoring, vtkSQLDatabaseGraphSource, vtkBoostBetweennessClustering, vtkCollapseVerticesByArray, vtkEdgeLayout, vtkPerturbCoincidentVertices, vtkRemoveIsolatedVertices, vtkPBGLCollapseGraph, vtkPBGLCollapseParallelEdges, vtkBoostExtractLargestComponent, vtkCollectGraph, and vtkThresholdGraph.
Definition at line 60 of file vtkGraphAlgorithm.h.
|
protected |
|
protected |
|
static |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkTableToGraph, vtkPBGLRMATGraphSource, vtkSQLGraphReader, vtkPBGLCollectGraph, vtkMergeGraphs, vtkGraphHierarchicalBundleEdges, vtkStreamGraph, vtkGeoRandomGraphSource, vtkExtractSelectedGraph, vtkPBGLBreadthFirstSearch, vtkBoostBreadthFirstSearch, vtkDIMACSGraphReader, vtkGraphLayout, vtkPBGLGraphSQLReader, vtkPBGLRandomGraphSource, vtkBoostBrandesCentrality, vtkCollapseGraph, vtkPBGLShortestPaths, vtkPBGLMinimumSpanningTree, vtkRandomGraphSource, vtkBoostConnectedComponents, vtkPBGLConnectedComponents, vtkSplineGraphEdges, vtkVertexDegree, vtkPBGLVertexColoring, vtkBoostExtractLargestComponent, vtkSQLDatabaseGraphSource, vtkBoostBetweennessClustering, vtkCollapseVerticesByArray, vtkEdgeLayout, vtkPerturbCoincidentVertices, vtkRemoveIsolatedVertices, vtkPBGLCollapseGraph, vtkPBGLCollapseParallelEdges, vtkCollectGraph, and vtkThresholdGraph.
|
virtual |
Reimplemented from vtkAlgorithm.
Reimplemented in vtkTableToGraph, vtkPBGLRMATGraphSource, vtkSQLGraphReader, vtkPBGLCollectGraph, vtkMergeGraphs, vtkGraphHierarchicalBundleEdges, vtkStreamGraph, vtkGeoRandomGraphSource, vtkExtractSelectedGraph, vtkPBGLBreadthFirstSearch, vtkBoostBreadthFirstSearch, vtkDIMACSGraphReader, vtkGraphLayout, vtkPBGLGraphSQLReader, vtkPBGLRandomGraphSource, vtkBoostBrandesCentrality, vtkCollapseGraph, vtkPBGLShortestPaths, vtkPBGLMinimumSpanningTree, vtkRandomGraphSource, vtkBoostConnectedComponents, vtkVertexDegree, vtkPBGLConnectedComponents, vtkSplineGraphEdges, vtkPBGLVertexColoring, vtkSQLDatabaseGraphSource, vtkBoostBetweennessClustering, vtkCollapseVerticesByArray, vtkEdgeLayout, vtkPerturbCoincidentVertices, vtkRemoveIsolatedVertices, vtkPBGLCollapseGraph, vtkPBGLCollapseParallelEdges, vtkBoostExtractLargestComponent, vtkCollectGraph, and vtkThresholdGraph.
|
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 vtkTableToGraph, vtkPBGLRMATGraphSource, vtkSQLGraphReader, vtkPBGLCollectGraph, vtkMergeGraphs, vtkGraphHierarchicalBundleEdges, vtkStreamGraph, vtkGeoRandomGraphSource, vtkExtractSelectedGraph, vtkPBGLBreadthFirstSearch, vtkBoostBreadthFirstSearch, vtkDIMACSGraphReader, vtkGraphLayout, vtkPBGLGraphSQLReader, vtkPBGLRandomGraphSource, vtkBoostBrandesCentrality, vtkCollapseGraph, vtkPBGLShortestPaths, vtkPBGLMinimumSpanningTree, vtkRandomGraphSource, vtkBoostConnectedComponents, vtkVertexDegree, vtkPBGLConnectedComponents, vtkSplineGraphEdges, vtkPBGLVertexColoring, vtkSQLDatabaseGraphSource, vtkBoostBetweennessClustering, vtkCollapseVerticesByArray, vtkEdgeLayout, vtkPerturbCoincidentVertices, vtkRemoveIsolatedVertices, vtkPBGLCollapseGraph, vtkPBGLCollapseParallelEdges, vtkBoostExtractLargestComponent, vtkCollectGraph, and vtkThresholdGraph.
|
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 vtkTableToGraph, vtkPBGLRMATGraphSource, vtkSQLGraphReader, vtkPBGLCollectGraph, vtkMergeGraphs, vtkGraphHierarchicalBundleEdges, vtkStreamGraph, vtkGeoRandomGraphSource, vtkExtractSelectedGraph, vtkPBGLBreadthFirstSearch, vtkBoostBreadthFirstSearch, vtkDIMACSGraphReader, vtkGraphLayout, vtkPBGLGraphSQLReader, vtkPBGLRandomGraphSource, vtkBoostBrandesCentrality, vtkCollapseGraph, vtkPBGLShortestPaths, vtkPBGLMinimumSpanningTree, vtkRandomGraphSource, vtkBoostConnectedComponents, vtkVertexDegree, vtkPBGLConnectedComponents, vtkSplineGraphEdges, vtkPBGLVertexColoring, vtkSQLDatabaseGraphSource, vtkBoostBetweennessClustering, vtkCollapseVerticesByArray, vtkEdgeLayout, vtkPerturbCoincidentVertices, vtkRemoveIsolatedVertices, vtkPBGLCollapseGraph, vtkPBGLCollapseParallelEdges, vtkBoostExtractLargestComponent, vtkCollectGraph, and vtkThresholdGraph.
|
static |
Reimplemented from vtkAlgorithm.
Reimplemented in vtkTableToGraph, vtkPBGLRMATGraphSource, vtkSQLGraphReader, vtkPBGLCollectGraph, vtkMergeGraphs, vtkGraphHierarchicalBundleEdges, vtkStreamGraph, vtkGeoRandomGraphSource, vtkExtractSelectedGraph, vtkPBGLBreadthFirstSearch, vtkBoostBreadthFirstSearch, vtkDIMACSGraphReader, vtkGraphLayout, vtkPBGLGraphSQLReader, vtkPBGLRandomGraphSource, vtkBoostBrandesCentrality, vtkCollapseGraph, vtkPBGLShortestPaths, vtkPBGLMinimumSpanningTree, vtkRandomGraphSource, vtkBoostConnectedComponents, vtkVertexDegree, vtkPBGLConnectedComponents, vtkSplineGraphEdges, vtkPBGLVertexColoring, vtkSQLDatabaseGraphSource, vtkBoostBetweennessClustering, vtkCollapseVerticesByArray, vtkEdgeLayout, vtkPerturbCoincidentVertices, vtkRemoveIsolatedVertices, vtkPBGLCollapseGraph, vtkPBGLCollapseParallelEdges, vtkBoostExtractLargestComponent, vtkCollectGraph, and vtkThresholdGraph.
|
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 vtkTableToGraph, vtkPBGLRMATGraphSource, vtkSQLGraphReader, vtkPBGLCollectGraph, vtkMergeGraphs, vtkGraphHierarchicalBundleEdges, vtkStreamGraph, vtkGeoRandomGraphSource, vtkExtractSelectedGraph, vtkPBGLBreadthFirstSearch, vtkBoostBreadthFirstSearch, vtkDIMACSGraphReader, vtkGraphLayout, vtkPBGLGraphSQLReader, vtkPBGLRandomGraphSource, vtkBoostBrandesCentrality, vtkCollapseGraph, vtkPBGLShortestPaths, vtkPBGLMinimumSpanningTree, vtkRandomGraphSource, vtkBoostConnectedComponents, vtkVertexDegree, vtkPBGLConnectedComponents, vtkSplineGraphEdges, vtkPBGLVertexColoring, vtkCollapseVerticesByArray, vtkSQLDatabaseGraphSource, vtkBoostBetweennessClustering, vtkEdgeLayout, vtkPerturbCoincidentVertices, vtkRemoveIsolatedVertices, vtkPBGLCollapseGraph, vtkPBGLCollapseParallelEdges, vtkBoostExtractLargestComponent, vtkCollectGraph, and vtkThresholdGraph.
|
virtual |
see vtkAlgorithm for details
Reimplemented from vtkAlgorithm.
|
inline |
Get the output data object for a port on this algorithm.
Definition at line 72 of file vtkGraphAlgorithm.h.
vtkGraph* vtkGraphAlgorithm::GetOutput | ( | int | index | ) |
Get the output data object for a port on this algorithm.
|
inline |
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.
Definition at line 84 of file vtkGraphAlgorithm.h.
void vtkGraphAlgorithm::SetInput | ( | int | index, |
vtkDataObject * | obj | ||
) |
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.
|
protectedvirtual |
Reimplemented in vtkCollectGraph.
|
protectedvirtual |
This is called by the superclass. This is the method you should override.
Reimplemented in vtkPBGLRandomGraphSource, vtkPBGLRMATGraphSource, vtkRandomGraphSource, vtkPBGLShortestPaths, vtkSQLGraphReader, vtkTableToGraph, vtkPBGLGraphSQLReader, vtkPBGLCollectGraph, vtkPBGLBreadthFirstSearch, vtkBoostBreadthFirstSearch, vtkCollapseVerticesByArray, vtkMergeGraphs, vtkGraphLayout, vtkSQLDatabaseGraphSource, vtkGraphHierarchicalBundleEdges, vtkCollectGraph, vtkStreamGraph, vtkExtractSelectedGraph, vtkSplineGraphEdges, vtkBoostBetweennessClustering, vtkDIMACSGraphReader, vtkBoostBrandesCentrality, vtkPBGLMinimumSpanningTree, vtkPBGLVertexColoring, vtkEdgeLayout, vtkCollapseGraph, vtkPBGLConnectedComponents, vtkGeoRandomGraphSource, vtkVertexDegree, vtkPerturbCoincidentVertices, vtkThresholdGraph, vtkBoostConnectedComponents, vtkBoostExtractLargestComponent, vtkRemoveIsolatedVertices, vtkPBGLCollapseGraph, and vtkPBGLCollapseParallelEdges.
|
protectedvirtual |
This is called by the superclass. This is the method you should override.
Reimplemented in vtkCollectGraph.
|
protectedvirtual |
By default, creates the same output type as the input type.
Reimplemented in vtkPBGLRandomGraphSource, vtkPBGLRMATGraphSource, vtkRandomGraphSource, vtkSQLGraphReader, vtkTableToGraph, vtkPBGLGraphSQLReader, vtkCollectGraph, vtkDIMACSGraphReader, vtkSQLDatabaseGraphSource, and vtkExtractSelectedGraph.
|
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 vtkPBGLShortestPaths, vtkPBGLCollectGraph, vtkPBGLBreadthFirstSearch, vtkBoostBreadthFirstSearch, vtkCollapseVerticesByArray, vtkBoostBetweennessClustering, vtkPBGLMinimumSpanningTree, vtkPBGLVertexColoring, and vtkPBGLConnectedComponents.
|
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 vtkPBGLShortestPaths, vtkTableToGraph, vtkPBGLCollectGraph, vtkPBGLBreadthFirstSearch, vtkBoostBreadthFirstSearch, vtkMergeGraphs, vtkGraphHierarchicalBundleEdges, vtkPBGLMinimumSpanningTree, vtkPBGLVertexColoring, vtkExtractSelectedGraph, vtkPBGLConnectedComponents, and vtkCollapseGraph.