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) override;
47 
49 
54  vtkSetVector6Macro(GraphBounds,double);
55  vtkGetVectorMacro(GraphBounds,double,6);
57 
59 
64  vtkSetMacro(AutomaticBoundsComputation, vtkTypeBool);
65  vtkGetMacro(AutomaticBoundsComputation, vtkTypeBool);
66  vtkBooleanMacro(AutomaticBoundsComputation, vtkTypeBool);
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, vtkTypeBool);
93  vtkGetMacro(ThreeDimensionalLayout, vtkTypeBool);
94  vtkBooleanMacro(ThreeDimensionalLayout, vtkTypeBool);
95 
96 protected:
98  ~vtkGraphLayoutFilter() override {}
99 
101 
102  double GraphBounds[6];
103  vtkTypeBool AutomaticBoundsComputation; //Boolean controls automatic bounds calc.
104  int MaxNumberOfIterations; //Maximum number of iterations.
105  double CoolDownRate; //Cool-down rate. Note: Higher # = Slower rate.
106  vtkTypeBool ThreeDimensionalLayout; //Boolean for a third dimension.
107 private:
109  void operator=(const vtkGraphLayoutFilter&) = delete;
110 };
111 
112 #endif
vtkTypeBool AutomaticBoundsComputation
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
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:159
nice layout of undirected graphs in 3D
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.