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

dox/Infovis/vtkGraphLayoutStrategy.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkGraphLayoutStrategy.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 -------------------------------------------------------------------------*/
00036 #ifndef __vtkGraphLayoutStrategy_h
00037 #define __vtkGraphLayoutStrategy_h
00038 
00039 #include "vtkObject.h"
00040 
00041 class vtkGraph;
00042 
00043 class VTK_INFOVIS_EXPORT vtkGraphLayoutStrategy : public vtkObject 
00044 {
00045 public:
00046   vtkTypeRevisionMacro(vtkGraphLayoutStrategy,vtkObject);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050   virtual void SetGraph(vtkGraph *graph);
00051   
00054   virtual void Initialize() {};
00055   
00060   virtual void Layout()=0;
00061   
00064   virtual int IsLayoutComplete() {return 1;}
00065   
00066   
00068 
00069   vtkSetStringMacro(EdgeWeightField);
00070   vtkGetStringMacro(EdgeWeightField);
00072 
00073 protected:
00074   vtkGraphLayoutStrategy();
00075   ~vtkGraphLayoutStrategy();
00076   
00077   vtkGraph *Graph;
00078   char     *EdgeWeightField;
00079 
00080 private:
00081 
00082   vtkGraphLayoutStrategy(const vtkGraphLayoutStrategy&);  // Not implemented.
00083   void operator=(const vtkGraphLayoutStrategy&);  // Not implemented.
00084 };
00085 
00086 #endif
00087 

Generated by  doxygen 1.7.1