VTK  9.3.20240329
vtkPipelineGraphSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkPipelineGraphSource_h
11 #define vtkPipelineGraphSource_h
12 
14 #include "vtkInfovisCoreModule.h" // For export macro
15 #include "vtkStdString.h" // for vtkStdString
16 
17 VTK_ABI_NAMESPACE_BEGIN
18 class vtkCollection;
19 
20 class VTKINFOVISCORE_EXPORT vtkPipelineGraphSource : public vtkDirectedGraphAlgorithm
21 {
22 public:
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
27  void AddSink(vtkObject* sink);
28  void RemoveSink(vtkObject* sink);
29 
34  static void PipelineToDot(
35  vtkAlgorithm* sink, ostream& output, const vtkStdString& graph_name = "");
40  static void PipelineToDot(
41  vtkCollection* sinks, ostream& output, const vtkStdString& graph_name = "");
42 
43 protected:
46 
48 
50 
51 private:
53  void operator=(const vtkPipelineGraphSource&) = delete;
54 };
55 
56 VTK_ABI_NAMESPACE_END
57 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:162
create and manipulate ordered lists of objects
Definition: vtkCollection.h:46
Superclass for algorithms that produce only directed graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition: vtkObject.h:162
a graph constructed from a VTK pipeline
void AddSink(vtkObject *sink)
static vtkPipelineGraphSource * New()
static void PipelineToDot(vtkCollection *sinks, ostream &output, const vtkStdString &graph_name="")
Generates a GraphViz DOT file that describes the VTK pipeline terminating at the given sinks.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPipelineGraphSource() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static void PipelineToDot(vtkAlgorithm *sink, ostream &output, const vtkStdString &graph_name="")
Generates a GraphViz DOT file that describes the VTK pipeline terminating at the given sink.
void RemoveSink(vtkObject *sink)
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:78