VTK  9.1.0
vtkPipelineGraphSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPipelineGraphSource.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=========================================================================*/
22#ifndef vtkPipelineGraphSource_h
23#define vtkPipelineGraphSource_h
24
26#include "vtkInfovisCoreModule.h" // For export macro
27#include "vtkStdString.h" // for vtkStdString
28
29class vtkCollection;
30
31class VTKINFOVISCORE_EXPORT vtkPipelineGraphSource : public vtkDirectedGraphAlgorithm
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
38 void AddSink(vtkObject* sink);
39 void RemoveSink(vtkObject* sink);
40
45 static void PipelineToDot(
46 vtkAlgorithm* sink, ostream& output, const vtkStdString& graph_name = "");
51 static void PipelineToDot(
52 vtkCollection* sinks, ostream& output, const vtkStdString& graph_name = "");
53
54protected:
57
59
61
62private:
64 void operator=(const vtkPipelineGraphSource&) = delete;
65};
66
67#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:114
create and manipulate ordered lists of objects
Definition: vtkCollection.h:53
Superclass for algorithms that produce only directed graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition: vtkObject.h:73
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.
Definition: vtkStdString.h:105