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 -------------------------------------------------------------------------*/
32 #ifndef __vtkGraphEdge_h
33 #define __vtkGraphEdge_h
34 
35 #include "vtkObject.h"
36 
38 {
39 public:
40  static vtkGraphEdge *New();
41  vtkTypeMacro(vtkGraphEdge, vtkObject);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
46  vtkSetMacro(Source, vtkIdType);
47  vtkGetMacro(Source, vtkIdType);
49 
51 
52  vtkSetMacro(Target, vtkIdType);
53  vtkGetMacro(Target, vtkIdType);
55 
57 
58  vtkSetMacro(Id, vtkIdType);
59  vtkGetMacro(Id, vtkIdType);
61 
62 protected:
63  vtkGraphEdge();
64  ~vtkGraphEdge();
65 
69 
70 private:
71  vtkGraphEdge(const vtkGraphEdge&); // Not implemented.
72  void operator=(const vtkGraphEdge&); // Not implemented.
73 };
74 
75 #endif