VTK  9.3.20240228
vtkGraphEdge.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
17 #ifndef vtkGraphEdge_h
18 #define vtkGraphEdge_h
19 
20 #include "vtkCommonDataModelModule.h" // For export macro
21 #include "vtkObject.h"
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKCOMMONDATAMODEL_EXPORT vtkGraphEdge : public vtkObject
25 {
26 public:
27  static vtkGraphEdge* New();
28  vtkTypeMacro(vtkGraphEdge, vtkObject);
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
35  vtkSetMacro(Source, vtkIdType);
36  vtkGetMacro(Source, vtkIdType);
38 
40 
43  vtkSetMacro(Target, vtkIdType);
44  vtkGetMacro(Target, vtkIdType);
46 
48 
51  vtkSetMacro(Id, vtkIdType);
52  vtkGetMacro(Id, vtkIdType);
54 
55 protected:
57  ~vtkGraphEdge() override;
58 
62 
63 private:
64  vtkGraphEdge(const vtkGraphEdge&) = delete;
65  void operator=(const vtkGraphEdge&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
Representation of a single graph edge.
Definition: vtkGraphEdge.h:25
vtkIdType Source
Definition: vtkGraphEdge.h:59
vtkIdType Target
Definition: vtkGraphEdge.h:60
static vtkGraphEdge * New()
~vtkGraphEdge() override
vtkIdType Id
Definition: vtkGraphEdge.h:61
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:161
int vtkIdType
Definition: vtkType.h:315