VTK
dox/Common/DataModel/vtkGraphEdge.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkGraphEdge.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00032 #ifndef __vtkGraphEdge_h
00033 #define __vtkGraphEdge_h
00034 
00035 #include "vtkCommonDataModelModule.h" // For export macro
00036 #include "vtkObject.h"
00037 
00038 class VTKCOMMONDATAMODEL_EXPORT vtkGraphEdge : public vtkObject
00039 {
00040 public:
00041   static vtkGraphEdge *New();
00042   vtkTypeMacro(vtkGraphEdge, vtkObject);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   vtkSetMacro(Source, vtkIdType);
00048   vtkGetMacro(Source, vtkIdType);
00050 
00052 
00053   vtkSetMacro(Target, vtkIdType);
00054   vtkGetMacro(Target, vtkIdType);
00056 
00058 
00059   vtkSetMacro(Id, vtkIdType);
00060   vtkGetMacro(Id, vtkIdType);
00062 
00063 protected:
00064   vtkGraphEdge();
00065   ~vtkGraphEdge();
00066 
00067   vtkIdType Source;
00068   vtkIdType Target;
00069   vtkIdType Id;
00070 
00071 private:
00072   vtkGraphEdge(const vtkGraphEdge&);  // Not implemented.
00073   void operator=(const vtkGraphEdge&);  // Not implemented.
00074 };
00075 
00076 #endif