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 "vtkFiltersGeneralModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
43 {
44 public:
45  static vtkGraphLayoutFilter *New();
46 
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
54  vtkSetVector6Macro(GraphBounds,double);
55  vtkGetVectorMacro(GraphBounds,double,6);
57 
59 
62  vtkSetMacro(AutomaticBoundsComputation, int);
63  vtkGetMacro(AutomaticBoundsComputation, int);
64  vtkBooleanMacro(AutomaticBoundsComputation, int);
66 
68 
71  vtkSetClampMacro(MaxNumberOfIterations, int, 0, VTK_INT_MAX);
72  vtkGetMacro(MaxNumberOfIterations, int);
74 
76 
79  vtkSetClampMacro(CoolDownRate, double, 0.01, VTK_DOUBLE_MAX);
80  vtkGetMacro(CoolDownRate, double);
82 
83  // Turn on/off layout of graph in three dimensions. If off, graph
84  // layout occurs in two dimensions. By default, three dimensional
85  // layout is on.
86  vtkSetMacro(ThreeDimensionalLayout, int);
87  vtkGetMacro(ThreeDimensionalLayout, int);
88  vtkBooleanMacro(ThreeDimensionalLayout, int);
89 
90 protected:
93 
95 
96  double GraphBounds[6];
97  int AutomaticBoundsComputation; //Boolean controls automatic bounds calc.
98  int MaxNumberOfIterations; //Maximum number of iterations.
99  double CoolDownRate; //Cool-down rate. Note: Higher # = Slower rate.
100  int ThreeDimensionalLayout; //Boolean for a third dimension.
101 private:
102  vtkGraphLayoutFilter(const vtkGraphLayoutFilter&); // Not implemented.
103  void operator=(const vtkGraphLayoutFilter&); // Not implemented.
104 };
105 
106 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:132
nice layout of undirected graphs in 3D
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSGENERAL_EXPORT
Store zero or more vtkInformation instances.