VTK
dox/Infovis/vtkEdgeLayoutStrategy.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkEdgeLayoutStrategy.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 (c) Sandia Corporation
00017  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00018 ----------------------------------------------------------------------------*/
00027 #ifndef __vtkEdgeLayoutStrategy_h
00028 #define __vtkEdgeLayoutStrategy_h
00029 
00030 #include "vtkObject.h"
00031 
00032 class vtkGraph;
00033 
00034 class VTK_INFOVIS_EXPORT vtkEdgeLayoutStrategy : public vtkObject 
00035 {
00036 public:
00037   vtkTypeMacro(vtkEdgeLayoutStrategy,vtkObject);
00038   void PrintSelf(ostream& os, vtkIndent indent);
00039 
00041   virtual void SetGraph(vtkGraph *graph);
00042   
00045   virtual void Initialize() {};
00046   
00049   virtual void Layout()=0;
00050   
00052 
00053   vtkSetStringMacro(EdgeWeightArrayName);
00054   vtkGetStringMacro(EdgeWeightArrayName);
00056 
00057 protected:
00058   vtkEdgeLayoutStrategy();
00059   ~vtkEdgeLayoutStrategy();
00060   
00061   vtkGraph *Graph;
00062   char     *EdgeWeightArrayName;
00063 
00064 private:
00065 
00066   vtkEdgeLayoutStrategy(const vtkEdgeLayoutStrategy&);  // Not implemented.
00067   void operator=(const vtkEdgeLayoutStrategy&);  // Not implemented.
00068 };
00069 
00070 #endif
00071