VTK
vtkMutableGraphHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMutableGraphHelper.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 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
34 #ifndef vtkMutableGraphHelper_h
35 #define vtkMutableGraphHelper_h
36 
37 #include "vtkInfovisCoreModule.h" // For export macro
38 #include "vtkObject.h"
39 #include "vtkGraph.h" // For vtkEdgeType
40 
42 class vtkGraph;
43 class vtkGraphEdge;
46 
47 class VTKINFOVISCORE_EXPORT vtkMutableGraphHelper : public vtkObject
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
60  void SetGraph(vtkGraph* g);
63 
68 
70 
75 
80 
85 
90 
95 
96 protected:
99 
100  vtkGetObjectMacro(InternalGraph, vtkGraph);
103 
105 
108 
109 private:
111  void operator=(const vtkMutableGraphHelper&) = delete;
112 };
113 
114 #endif
vtkMutableGraphHelper::RemoveEdges
void RemoveEdges(vtkIdTypeArray *edges)
Remove a collection of edges from the underlying mutable graph.
vtkMutableGraphHelper::SetGraph
void SetGraph(vtkGraph *g)
Set the underlying graph that you want to modify with this helper.
vtkMutableGraphHelper::RemoveVertex
void RemoveVertex(vtkIdType v)
Remove a vertex from the underlying mutable graph.
vtkMutableDirectedGraph
An editable directed graph.
Definition: vtkMutableDirectedGraph.h:52
edges
std::pair< boost::graph_traits< vtkGraph * >::edge_iterator, boost::graph_traits< vtkGraph * >::edge_iterator > edges(vtkGraph *g)
Definition: vtkBoostGraphAdapter.h:859
vtkMutableUndirectedGraph
An editable undirected graph.
Definition: vtkMutableUndirectedGraph.h:47
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:60
vtkMutableGraphHelper::DirectedGraph
vtkMutableDirectedGraph * DirectedGraph
Definition: vtkMutableGraphHelper.h:106
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkMutableGraphHelper::~vtkMutableGraphHelper
~vtkMutableGraphHelper() override
vtkMutableGraphHelper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMutableGraphHelper::UndirectedGraph
vtkMutableUndirectedGraph * UndirectedGraph
Definition: vtkMutableGraphHelper.h:107
vtkMutableGraphHelper
Helper class for building a directed or directed graph.
Definition: vtkMutableGraphHelper.h:48
vtkMutableGraphHelper::New
static vtkMutableGraphHelper * New()
vtkEdgeType
Definition: vtkGraph.h:277
vtkMutableGraphHelper::AddGraphEdge
vtkGraphEdge * AddGraphEdge(vtkIdType u, vtkIdType v)
vtkMutableGraphHelper::RemoveVertices
void RemoveVertices(vtkIdTypeArray *verts)
Remove a collection of vertices from the underlying mutable graph.
vtkGraphEdge
Representation of a single graph edge.
Definition: vtkGraphEdge.h:40
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkMutableGraphHelper::InternalGraph
vtkGraph * InternalGraph
Definition: vtkMutableGraphHelper.h:102
vtkMutableGraphHelper::AddEdge
vtkEdgeType AddEdge(vtkIdType u, vtkIdType v)
Add an edge to the underlying mutable graph.
vtkGraph.h
vtkMutableGraphHelper::SetInternalGraph
void SetInternalGraph(vtkGraph *g)
vtkObject.h
vtkMutableGraphHelper::AddVertex
vtkIdType AddVertex()
Add a vertex to the underlying mutable graph.
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:42
vtkMutableGraphHelper::GetGraph
vtkGraph * GetGraph()
vtkMutableGraphHelper::GraphEdge
vtkGraphEdge * GraphEdge
Definition: vtkMutableGraphHelper.h:104
vtkMutableGraphHelper::vtkMutableGraphHelper
vtkMutableGraphHelper()
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:288
vtkMutableGraphHelper::RemoveEdge
void RemoveEdge(vtkIdType e)
Remove an edge from the underlying mutable graph.