VTK  9.3.1
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:
56  vtkGraphEdge();
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
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType Source
Definition: vtkGraphEdge.h:59
Representation of a single graph edge.
Definition: vtkGraphEdge.h:24
vtkIdType Id
Definition: vtkGraphEdge.h:61
int vtkIdType
Definition: vtkType.h:315
vtkIdType Target
Definition: vtkGraphEdge.h:60
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...