VTK  9.4.20250209
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
17VTK_ABI_NAMESPACE_BEGIN
18class vtkCollection;
19
20class VTKINFOVISCORE_EXPORT vtkPipelineGraphSource : public vtkDirectedGraphAlgorithm
21{
22public:
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
43protected:
46
48
50
51private:
53 void operator=(const vtkPipelineGraphSource&) = delete;
54};
55
56VTK_ABI_NAMESPACE_END
57#endif
Superclass for all sources, filters, and sinks in VTK.
create and manipulate ordered lists of objects
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 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.
static vtkPipelineGraphSource * New()
~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.