VTK
vtkDirectedGraphAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDirectedGraphAlgorithm.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
43 #ifndef vtkDirectedGraphAlgorithm_h
44 #define vtkDirectedGraphAlgorithm_h
45 
46 #include "vtkCommonExecutionModelModule.h" // For export macro
47 #include "vtkAlgorithm.h"
48 #include "vtkDirectedGraph.h" // makes things a bit easier
49 
50 class vtkDataSet;
51 
52 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkDirectedGraphAlgorithm : public vtkAlgorithm
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
64  vtkInformationVector*) override;
65 
69  vtkDirectedGraph* GetOutput() { return this->GetOutput(0); }
71 
77  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
78  void SetInputData(int index, vtkDataObject* obj);
79 
80 protected:
83 
84  // convenience method
85  virtual int RequestInformation(vtkInformation* request,
86  vtkInformationVector** inputVector,
87  vtkInformationVector* outputVector);
88 
93  virtual int RequestData(vtkInformation* request,
94  vtkInformationVector** inputVector,
95  vtkInformationVector* outputVector);
96 
104 
105  // see algorithm for more info
108 
109 private:
111  void operator=(const vtkDirectedGraphAlgorithm&) = delete;
112 };
113 
114 #endif
vtkDirectedGraphAlgorithm
Superclass for algorithms that produce only directed graph as output.
Definition: vtkDirectedGraphAlgorithm.h:53
vtkDirectedGraphAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDirectedGraphAlgorithm::New
static vtkDirectedGraphAlgorithm * New()
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkDirectedGraphAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkDirectedGraphAlgorithm::~vtkDirectedGraphAlgorithm
~vtkDirectedGraphAlgorithm() override
vtkDirectedGraphAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDirectedGraphAlgorithm::SetInputData
void SetInputData(int index, vtkDataObject *obj)
vtkDirectedGraph
A directed graph.
Definition: vtkDirectedGraph.h:48
vtkDirectedGraphAlgorithm::GetOutput
vtkDirectedGraph * GetOutput(int index)
vtkDirectedGraph.h
vtkAlgorithm.h
vtkDirectedGraphAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkDirectedGraphAlgorithm::vtkDirectedGraphAlgorithm
vtkDirectedGraphAlgorithm()
vtkDirectedGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkDirectedGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkDirectedGraphAlgorithm::GetOutput
vtkDirectedGraph * GetOutput()
Get the output data object for a port on this algorithm.
Definition: vtkDirectedGraphAlgorithm.h:69
vtkDirectedGraphAlgorithm::ProcessRequest
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkDirectedGraphAlgorithm::SetInputData
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
Definition: vtkDirectedGraphAlgorithm.h:77