VTK
vtkGraphInternals.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphInternals.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 ----------------------------------------------------------------------------*/
27 #ifndef vtkGraphInternals_h
28 #define vtkGraphInternals_h
29 
30 #include "vtkCommonDataModelModule.h" // For export macro
31 #include "vtkGraph.h"
32 
33 #include <vtksys/stl/vector> // STL Header
34 #include <vtksys/stl/map> // STL Header
35 
36 //----------------------------------------------------------------------------
37 // class vtkVertexAdjacencyList
38 //----------------------------------------------------------------------------
39 //BTX
41 {
42 public:
43  vtksys_stl::vector<vtkInEdgeType> InEdges;
44  vtksys_stl::vector<vtkOutEdgeType> OutEdges;
45 };
46 //ETX
47 
48 //----------------------------------------------------------------------------
49 // class vtkGraphInternals
50 //----------------------------------------------------------------------------
52 {
53 public:
54  static vtkGraphInternals *New();
55  //BTX
56  vtkTypeMacro(vtkGraphInternals, vtkObject);
57  vtksys_stl::vector<vtkVertexAdjacencyList> Adjacency;
58  //ETX
60 
64 
65  // Whether we have used pedigree IDs to refer to the vertices of the
66  // graph, e.g., to add edges or vertices. In a distributed graph,
67  // the pedigree-id interface is mutually exclusive with the
68  // no-argument AddVertex() function in vtkMutableUndirectedGraph and
69  // vtkMutableDirectedGraph.
71 
72  //BTX
74  void RemoveEdgeFromOutList(vtkIdType e, vtksys_stl::vector<vtkOutEdgeType>& outEdges);
75 
77  void RemoveEdgeFromInList(vtkIdType e, vtksys_stl::vector<vtkInEdgeType>& inEdges);
78 
80  void ReplaceEdgeFromOutList(vtkIdType from, vtkIdType to, vtksys_stl::vector<vtkOutEdgeType>& outEdges);
81 
83 
84  void ReplaceEdgeFromInList(vtkIdType from, vtkIdType to, vtksys_stl::vector<vtkInEdgeType>& inEdges);
85  //ETX
87 
88 protected:
91 
92 private:
93  vtkGraphInternals(const vtkGraphInternals&); // Not implemented.
94  void operator=(const vtkGraphInternals&); // Not implemented.
95 };
96 
97 #endif // vtkGraphInternals_h
98 
99 // VTK-HeaderTest-Exclude: vtkGraphInternals.h
abstract base class for most VTK objects
Definition: vtkObject.h:61
int vtkIdType
Definition: vtkType.h:275
vtksys_stl::vector< vtkInEdgeType > InEdges
Internal representation of vtkGraph.
vtkIdType LastRemoteEdgeSource
vtkIdType LastRemoteEdgeTarget
vtksys_stl::vector< vtkOutEdgeType > OutEdges
static vtkObject * New()
vtkIdType LastRemoteEdgeId
#define VTKCOMMONDATAMODEL_EXPORT