VTK
vtkGraphLayoutFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphLayoutFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
36 #ifndef __vtkGraphLayoutFilter_h
37 #define __vtkGraphLayoutFilter_h
38 
39 #include "vtkPolyDataAlgorithm.h"
40 
42 {
43 public:
44  static vtkGraphLayoutFilter *New();
45 
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
53  vtkSetVector6Macro(GraphBounds,double);
54  vtkGetVectorMacro(GraphBounds,double,6);
56 
58 
61  vtkSetMacro(AutomaticBoundsComputation, int);
62  vtkGetMacro(AutomaticBoundsComputation, int);
63  vtkBooleanMacro(AutomaticBoundsComputation, int);
65 
67 
70  vtkSetClampMacro(MaxNumberOfIterations, int, 0, VTK_LARGE_INTEGER);
71  vtkGetMacro(MaxNumberOfIterations, int);
73 
75 
78  vtkSetClampMacro(CoolDownRate, double, 0.01, VTK_DOUBLE_MAX);
79  vtkGetMacro(CoolDownRate, double);
81 
82  // Turn on/off layout of graph in three dimensions. If off, graph
83  // layout occurs in two dimensions. By default, three dimensional
84  // layout is on.
85  vtkSetMacro(ThreeDimensionalLayout, int);
86  vtkGetMacro(ThreeDimensionalLayout, int);
87  vtkBooleanMacro(ThreeDimensionalLayout, int);
88 
89 protected:
92 
94 
95  double GraphBounds[6];
96  int AutomaticBoundsComputation; //Boolean controls automatic bounds calc.
97  int MaxNumberOfIterations; //Maximum number of iterations.
98  double CoolDownRate; //Cool-down rate. Note: Higher # = Slower rate.
99  int ThreeDimensionalLayout; //Boolean for a third dimension.
100 private:
101  vtkGraphLayoutFilter(const vtkGraphLayoutFilter&); // Not implemented.
102  void operator=(const vtkGraphLayoutFilter&); // Not implemented.
103 };
104 
105 #endif