VTK: Infovis/Core/vtkPipelineGraphSource.h Source File

| VTK 9.3.1

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
13 #include "vtkDirectedGraphAlgorithm.h"
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:
23 static vtkPipelineGraphSource* New();
24 vtkTypeMacro(vtkPipelineGraphSource, vtkDirectedGraphAlgorithm);
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:
44 vtkPipelineGraphSource();
45 ~vtkPipelineGraphSource() override;
46
47 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
48
49 vtkCollection* Sinks;
50
51 private:
52 vtkPipelineGraphSource(const vtkPipelineGraphSource&) = delete;
53 void operator=(const vtkPipelineGraphSource&) = delete;
54 };
55
56 VTK_ABI_NAMESPACE_END
57 #endif
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:45
vtkDirectedGraphAlgorithm
Superclass for algorithms that produce only directed graph as output.
Definition: vtkDirectedGraphAlgorithm.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkPipelineGraphSource
a graph constructed from a VTK pipeline
Definition: vtkPipelineGraphSource.h:21
vtkPipelineGraphSource::AddSink
void AddSink(vtkObject *sink)
vtkPipelineGraphSource::New
static vtkPipelineGraphSource * New()
vtkPipelineGraphSource::PipelineToDot
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.
vtkPipelineGraphSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPipelineGraphSource::vtkPipelineGraphSource
vtkPipelineGraphSource()
vtkPipelineGraphSource::Sinks
vtkCollection * Sinks
Definition: vtkPipelineGraphSource.h:49
vtkPipelineGraphSource::~vtkPipelineGraphSource
~vtkPipelineGraphSource() override
vtkPipelineGraphSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPipelineGraphSource::PipelineToDot
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.
vtkPipelineGraphSource::RemoveSink
void RemoveSink(vtkObject *sink)
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:38
vtkDirectedGraphAlgorithm.h
vtkStdString.h