VTK  9.3.20240424
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
23VTK_ABI_NAMESPACE_BEGIN
24class VTKCOMMONDATAMODEL_EXPORT vtkGraphEdge : public vtkObject
25{
26public:
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
55protected:
57 ~vtkGraphEdge() override;
58
62
63private:
64 vtkGraphEdge(const vtkGraphEdge&) = delete;
65 void operator=(const vtkGraphEdge&) = delete;
66};
67
68VTK_ABI_NAMESPACE_END
69#endif
Representation of a single graph edge.
vtkIdType Source
vtkIdType Target
~vtkGraphEdge() override
vtkIdType Id
static vtkGraphEdge * New()
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:162
int vtkIdType
Definition vtkType.h:315