• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Filtering/vtkEdgeListIterator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkEdgeListIterator.h,v $
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 -------------------------------------------------------------------------*/
00040 #ifndef __vtkEdgeListIterator_h
00041 #define __vtkEdgeListIterator_h
00042 
00043 #include "vtkObject.h"
00044 
00045 class vtkGraph;
00046 class vtkGraphEdge;
00047 //BTX
00048 struct vtkEdgeType;
00049 struct vtkOutEdgeType;
00050 //ETX
00051 class VTK_FILTERING_EXPORT vtkEdgeListIterator : public vtkObject
00052 {
00053 public:
00054   static vtkEdgeListIterator *New();
00055   vtkTypeRevisionMacro(vtkEdgeListIterator, vtkObject);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00058   vtkGetObjectMacro(Graph, vtkGraph);
00059   virtual void SetGraph(vtkGraph *graph);
00060 
00061   //BTX
00063 
00064   vtkEdgeType Next();
00065   //ETX
00067 
00072   vtkGraphEdge *NextGraphEdge();
00073 
00075   bool HasNext();
00076 
00077 protected:
00078   vtkEdgeListIterator();
00079   ~vtkEdgeListIterator();
00080 
00081   void Increment();
00082 
00083   vtkGraph *Graph;
00084   const vtkOutEdgeType *Current;
00085   const vtkOutEdgeType *End;
00086   vtkIdType             Vertex;
00087   bool                  Directed;
00088   vtkGraphEdge        *GraphEdge;
00089 
00090 private:
00091   vtkEdgeListIterator(const vtkEdgeListIterator&);  // Not implemented.
00092   void operator=(const vtkEdgeListIterator&);  // Not implemented.
00093 };
00094 
00095 #endif

Generated by  doxygen 1.7.1