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

Graphics/vtkGraphLayoutFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkGraphLayoutFilter.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00051 #ifndef __vtkGraphLayoutFilter_h
00052 #define __vtkGraphLayoutFilter_h
00053 
00054 #include "vtkPolyDataToPolyDataFilter.h"
00055 
00056 class VTK_GRAPHICS_EXPORT vtkGraphLayoutFilter : public vtkPolyDataToPolyDataFilter 
00057 {
00058 public:
00059   static vtkGraphLayoutFilter *New();
00060 
00061   vtkTypeRevisionMacro(vtkGraphLayoutFilter,vtkPolyDataToPolyDataFilter);
00062   void PrintSelf(ostream& os, vtkIndent indent);
00063 
00065 
00068   vtkSetVector6Macro(GraphBounds,float);
00069   vtkGetVectorMacro(GraphBounds,float,6);
00071 
00073 
00076   vtkSetMacro(AutomaticBoundsComputation, int);
00077   vtkGetMacro(AutomaticBoundsComputation, int);
00078   vtkBooleanMacro(AutomaticBoundsComputation, int);
00080 
00082 
00085   vtkSetClampMacro(MaxNumberOfIterations, int, 0, VTK_LARGE_INTEGER);
00086   vtkGetMacro(MaxNumberOfIterations, int);
00088 
00090 
00093   vtkSetClampMacro(CoolDownRate, float, 0.01, VTK_LARGE_FLOAT);
00094   vtkGetMacro(CoolDownRate, float);
00096 
00097   // Turn on/off layout of graph in three dimensions. If off, graph
00098   // layout occurs in two dimensions. By default, three dimensional
00099   // layout is on.
00100   vtkSetMacro(ThreeDimensionalLayout, int);
00101   vtkGetMacro(ThreeDimensionalLayout, int);
00102   vtkBooleanMacro(ThreeDimensionalLayout, int);
00103 
00104 protected:
00105   vtkGraphLayoutFilter();
00106   ~vtkGraphLayoutFilter() {}
00107 
00108   void Execute();
00109 
00110   float GraphBounds[6];
00111   int   AutomaticBoundsComputation;  //Boolean controls automatic bounds calc.
00112   int   MaxNumberOfIterations;  //Maximum number of iterations.
00113   float CoolDownRate;  //Cool-down rate.  Note:  Higher # = Slower rate.
00114   int   ThreeDimensionalLayout;  //Boolean for a third dimension.
00115 private:
00116   vtkGraphLayoutFilter(const vtkGraphLayoutFilter&);  // Not implemented.
00117   void operator=(const vtkGraphLayoutFilter&);  // Not implemented.
00118 };
00119 
00120 #endif