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 "vtkCommonDataModelModule.h" // For export macro
36 #include "vtkObject.h"
37 
39 {
40 public:
41  static vtkGraphEdge *New();
42  vtkTypeMacro(vtkGraphEdge, vtkObject);
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkSetMacro(Source, vtkIdType);
48  vtkGetMacro(Source, vtkIdType);
50 
52 
53  vtkSetMacro(Target, vtkIdType);
54  vtkGetMacro(Target, vtkIdType);
56 
58 
59  vtkSetMacro(Id, vtkIdType);
60  vtkGetMacro(Id, vtkIdType);
62 
63 protected:
64  vtkGraphEdge();
65  ~vtkGraphEdge();
66 
70 
71 private:
72  vtkGraphEdge(const vtkGraphEdge&); // Not implemented.
73  void operator=(const vtkGraphEdge&); // Not implemented.
74 };
75 
76 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkIdType Source
Definition: vtkGraphEdge.h:67
Representation of a single graph edge.
Definition: vtkGraphEdge.h:38
vtkIdType Id
Definition: vtkGraphEdge.h:69
int vtkIdType
Definition: vtkType.h:275
vtkIdType Target
Definition: vtkGraphEdge.h:68
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT