VTK
vtkGraphEdge.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphEdge.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 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
33 #ifndef vtkGraphEdge_h
34 #define vtkGraphEdge_h
35 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 #include "vtkObject.h"
38 
39 class VTKCOMMONDATAMODEL_EXPORT vtkGraphEdge : public vtkObject
40 {
41 public:
42  static vtkGraphEdge *New();
43  vtkTypeMacro(vtkGraphEdge, vtkObject);
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
47 
50  vtkSetMacro(Source, vtkIdType);
51  vtkGetMacro(Source, vtkIdType);
53 
55 
58  vtkSetMacro(Target, vtkIdType);
59  vtkGetMacro(Target, vtkIdType);
61 
63 
67  vtkGetMacro(Id, vtkIdType);
69 
70 protected:
71  vtkGraphEdge();
72  ~vtkGraphEdge() VTK_OVERRIDE;
73 
74  vtkIdType Source;
75  vtkIdType Target;
77 
78 private:
79  vtkGraphEdge(const vtkGraphEdge&) VTK_DELETE_FUNCTION;
80  void operator=(const vtkGraphEdge&) VTK_DELETE_FUNCTION;
81 };
82 
83 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Representation of a single graph edge.
Definition: vtkGraphEdge.h:39
int vtkIdType
Definition: vtkType.h:287
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...