VTK
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 
25 #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(vtkAlgorithm* sink, ostream& output, const vtkStdString& graph_name = "");
50  static void PipelineToDot(vtkCollection* sinks, ostream& output, const vtkStdString& graph_name = "");
51 
52 protected:
55 
59  vtkInformationVector*) override;
60 
62 
63 private:
65  void operator=(const vtkPipelineGraphSource&) = delete;
66 
67 };
68 
69 #endif
70 
71 // VTK-HeaderTest-Exclude: vtkPipelineGraphSource.h
vtkStdString.h
vtkPipelineGraphSource::vtkPipelineGraphSource
vtkPipelineGraphSource()
vtkPipelineGraphSource
a graph constructed from a VTK pipeline
Definition: vtkPipelineGraphSource.h:32
vtkPipelineGraphSource::New
static vtkPipelineGraphSource * New()
vtkDirectedGraphAlgorithm
Superclass for algorithms that produce only directed graph as output.
Definition: vtkDirectedGraphAlgorithm.h:53
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
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.
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:52
vtkPipelineGraphSource::RemoveSink
void RemoveSink(vtkObject *object)
vtkPipelineGraphSource::AddSink
void AddSink(vtkObject *object)
vtkPipelineGraphSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPipelineGraphSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPipelineGraphSource::~vtkPipelineGraphSource
~vtkPipelineGraphSource() override
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkDirectedGraphAlgorithm.h
vtkPipelineGraphSource::Sinks
vtkCollection * Sinks
Definition: vtkPipelineGraphSource.h:61
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:41
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.