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
29class vtkCollection;
30
31class VTKINFOVISCORE_EXPORT vtkPipelineGraphSource : public vtkDirectedGraphAlgorithm
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent);
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
52protected:
55
60
62
63private:
64 vtkPipelineGraphSource(const vtkPipelineGraphSource&) VTK_DELETE_FUNCTION;
65 void operator=(const vtkPipelineGraphSource&) VTK_DELETE_FUNCTION;
66
67};
68
69#endif
70
71// VTK-HeaderTest-Exclude: vtkPipelineGraphSource.h
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
Superclass for algorithms that produce only directed graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition: vtkObject.h:60
a graph constructed from a VTK pipeline
void AddSink(vtkObject *object)
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.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void RemoveSink(vtkObject *object)
static vtkPipelineGraphSource * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
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:49