Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkGraphLayoutFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkGraphLayoutFilter.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 =========================================================================*/
00047 #ifndef __vtkGraphLayoutFilter_h
00048 #define __vtkGraphLayoutFilter_h
00049 
00050 #include "vtkPolyDataToPolyDataFilter.h"
00051 
00052 class VTK_GRAPHICS_EXPORT vtkGraphLayoutFilter : public vtkPolyDataToPolyDataFilter 
00053 {
00054 public:
00055   static vtkGraphLayoutFilter *New();
00056 
00057   vtkTypeRevisionMacro(vtkGraphLayoutFilter,vtkPolyDataToPolyDataFilter);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061 
00064   vtkSetVector6Macro(GraphBounds,double);
00065   vtkGetVectorMacro(GraphBounds,double,6);
00067 
00069 
00072   vtkSetMacro(AutomaticBoundsComputation, int);
00073   vtkGetMacro(AutomaticBoundsComputation, int);
00074   vtkBooleanMacro(AutomaticBoundsComputation, int);
00076 
00078 
00081   vtkSetClampMacro(MaxNumberOfIterations, int, 0, VTK_LARGE_INTEGER);
00082   vtkGetMacro(MaxNumberOfIterations, int);
00084 
00086 
00089   vtkSetClampMacro(CoolDownRate, double, 0.01, VTK_DOUBLE_MAX);
00090   vtkGetMacro(CoolDownRate, double);
00092 
00093   // Turn on/off layout of graph in three dimensions. If off, graph
00094   // layout occurs in two dimensions. By default, three dimensional
00095   // layout is on.
00096   vtkSetMacro(ThreeDimensionalLayout, int);
00097   vtkGetMacro(ThreeDimensionalLayout, int);
00098   vtkBooleanMacro(ThreeDimensionalLayout, int);
00099 
00100 protected:
00101   vtkGraphLayoutFilter();
00102   ~vtkGraphLayoutFilter() {}
00103 
00104   void Execute();
00105 
00106   double GraphBounds[6];
00107   int   AutomaticBoundsComputation;  //Boolean controls automatic bounds calc.
00108   int   MaxNumberOfIterations;  //Maximum number of iterations.
00109   double CoolDownRate;  //Cool-down rate.  Note:  Higher # = Slower rate.
00110   int   ThreeDimensionalLayout;  //Boolean for a third dimension.
00111 private:
00112   vtkGraphLayoutFilter(const vtkGraphLayoutFilter&);  // Not implemented.
00113   void operator=(const vtkGraphLayoutFilter&);  // Not implemented.
00114 };
00115 
00116 #endif