VTK
dox/Infovis/Layout/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 "vtkInfovisLayoutModule.h" // For export macro
00031 #include "vtkObject.h"
00032 
00033 class vtkGraph;
00034 
00035 class VTKINFOVISLAYOUT_EXPORT vtkEdgeLayoutStrategy : public vtkObject
00036 {
00037 public:
00038   vtkTypeMacro(vtkEdgeLayoutStrategy,vtkObject);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040 
00042   virtual void SetGraph(vtkGraph *graph);
00043 
00046   virtual void Initialize() {}
00047 
00050   virtual void Layout()=0;
00051 
00053 
00054   vtkSetStringMacro(EdgeWeightArrayName);
00055   vtkGetStringMacro(EdgeWeightArrayName);
00057 
00058 protected:
00059   vtkEdgeLayoutStrategy();
00060   ~vtkEdgeLayoutStrategy();
00061 
00062   vtkGraph *Graph;
00063   char     *EdgeWeightArrayName;
00064 
00065 private:
00066 
00067   vtkEdgeLayoutStrategy(const vtkEdgeLayoutStrategy&);  // Not implemented.
00068   void operator=(const vtkEdgeLayoutStrategy&);  // Not implemented.
00069 };
00070 
00071 #endif
00072