VTK
dox/Filtering/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 "vtkObject.h"
00036 
00037 class VTK_FILTERING_EXPORT vtkGraphEdge : public vtkObject
00038 {
00039 public:
00040   static vtkGraphEdge *New();
00041   vtkTypeMacro(vtkGraphEdge, vtkObject);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045 
00046   vtkSetMacro(Source, vtkIdType);
00047   vtkGetMacro(Source, vtkIdType);
00049 
00051 
00052   vtkSetMacro(Target, vtkIdType);
00053   vtkGetMacro(Target, vtkIdType);
00055 
00057 
00058   vtkSetMacro(Id, vtkIdType);
00059   vtkGetMacro(Id, vtkIdType);
00061 
00062 protected:
00063   vtkGraphEdge();
00064   ~vtkGraphEdge();
00065 
00066   vtkIdType Source;
00067   vtkIdType Target;
00068   vtkIdType Id;
00069 
00070 private:
00071   vtkGraphEdge(const vtkGraphEdge&);  // Not implemented.
00072   void operator=(const vtkGraphEdge&);  // Not implemented.
00073 };
00074 
00075 #endif