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 =========================================================================*/
34 #ifndef vtkGraphLayoutFilter_h
35 #define vtkGraphLayoutFilter_h
36 
37 #include "vtkFiltersGeneralModule.h" // For export macro
38 #include "vtkPolyDataAlgorithm.h"
39 
40 class VTKFILTERSGENERAL_EXPORT vtkGraphLayoutFilter : public vtkPolyDataAlgorithm
41 {
42 public:
43  static vtkGraphLayoutFilter *New();
44 
46  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47 
49 
54  vtkSetVector6Macro(GraphBounds,double);
55  vtkGetVectorMacro(GraphBounds,double,6);
57 
59 
64  vtkSetMacro(AutomaticBoundsComputation, int);
65  vtkGetMacro(AutomaticBoundsComputation, int);
66  vtkBooleanMacro(AutomaticBoundsComputation, int);
68 
70 
75  vtkSetClampMacro(MaxNumberOfIterations, int, 0, VTK_INT_MAX);
76  vtkGetMacro(MaxNumberOfIterations, int);
78 
80 
85  vtkSetClampMacro(CoolDownRate, double, 0.01, VTK_DOUBLE_MAX);
86  vtkGetMacro(CoolDownRate, double);
88 
89  // Turn on/off layout of graph in three dimensions. If off, graph
90  // layout occurs in two dimensions. By default, three dimensional
91  // layout is on.
92  vtkSetMacro(ThreeDimensionalLayout, int);
93  vtkGetMacro(ThreeDimensionalLayout, int);
94  vtkBooleanMacro(ThreeDimensionalLayout, int);
95 
96 protected:
98  ~vtkGraphLayoutFilter() VTK_OVERRIDE {}
99 
101 
102  double GraphBounds[6];
103  int AutomaticBoundsComputation; //Boolean controls automatic bounds calc.
104  int MaxNumberOfIterations; //Maximum number of iterations.
105  double CoolDownRate; //Cool-down rate. Note: Higher # = Slower rate.
106  int ThreeDimensionalLayout; //Boolean for a third dimension.
107 private:
108  vtkGraphLayoutFilter(const vtkGraphLayoutFilter&) VTK_DELETE_FUNCTION;
109  void operator=(const vtkGraphLayoutFilter&) VTK_DELETE_FUNCTION;
110 };
111 
112 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:167
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:157
nice layout of undirected graphs in 3D
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.