VTK  9.0.3
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"
28 
29 class vtkCollection;
30 
31 class VTKINFOVISCORE_EXPORT vtkPipelineGraphSource : public vtkDirectedGraphAlgorithm
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  void AddSink(vtkObject* object);
39  void RemoveSink(vtkObject* object);
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 
54 protected:
57 
59 
61 
62 private:
64  void operator=(const vtkPipelineGraphSource&) = delete;
65 };
66 
67 #endif
68 
69 // VTK-HeaderTest-Exclude: vtkPipelineGraphSource.h
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:63
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:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition: vtkObject.h:63
a graph constructed from a VTK pipeline
void AddSink(vtkObject *object)
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.
void RemoveSink(vtkObject *object)
~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.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:35