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

dox/Filtering/vtkUndirectedGraph.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkUndirectedGraph.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 -------------------------------------------------------------------------*/
00044 #ifndef __vtkUndirectedGraph_h
00045 #define __vtkUndirectedGraph_h
00046 
00047 #include "vtkGraph.h"
00048 
00049 class VTK_FILTERING_EXPORT vtkUndirectedGraph : public vtkGraph
00050 {
00051 public:
00052   static vtkUndirectedGraph *New();
00053   vtkTypeRevisionMacro(vtkUndirectedGraph, vtkGraph);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00057   virtual int GetDataObjectType() {return VTK_UNDIRECTED_GRAPH;}
00058 
00060   virtual vtkIdType GetInDegree(vtkIdType v);
00061 
00062   //BTX
00064 
00066   virtual vtkInEdgeType GetInEdge(vtkIdType v, vtkIdType i);
00067   //ETX
00069 
00071 
00075   virtual void GetInEdge(vtkIdType v, vtkIdType i, vtkGraphEdge* e)
00076     { this->Superclass::GetInEdge(v, i, e); }
00078 
00079   //BTX
00081 
00082   static vtkUndirectedGraph *GetData(vtkInformation *info);
00083   static vtkUndirectedGraph *GetData(vtkInformationVector *v, int i=0);
00084   //ETX
00086 
00088 
00090   virtual void GetInEdges(vtkIdType v, vtkInEdgeIterator *it)
00091     { Superclass::GetInEdges(v, it); }
00093 
00094 protected:
00095   vtkUndirectedGraph();
00096   ~vtkUndirectedGraph();
00097 
00099   virtual bool IsStructureValid(vtkGraph *g);
00100 
00101   //BTX
00103 
00104   virtual void GetInEdges(vtkIdType v, const vtkInEdgeType *& edges, vtkIdType & nedges);
00105   //ETX
00107 
00108 private:
00109   vtkUndirectedGraph(const vtkUndirectedGraph&);  // Not implemented.
00110   void operator=(const vtkUndirectedGraph&);  // Not implemented.
00111 };
00112 
00113 #endif

Generated by  doxygen 1.7.1