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 =========================================================================*/
37 #ifndef vtkGraphLayoutFilter_h
38 #define vtkGraphLayoutFilter_h
39 
40 #include "vtkFiltersGeneralModule.h" // For export macro
41 #include "vtkPolyDataAlgorithm.h"
42 
43 class VTKFILTERSGENERAL_EXPORT vtkGraphLayoutFilter : public vtkPolyDataAlgorithm
44 {
45 public:
46  static vtkGraphLayoutFilter *New();
47 
49  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
50 
52 
57  vtkSetVector6Macro(GraphBounds,double);
58  vtkGetVectorMacro(GraphBounds,double,6);
60 
62 
67  vtkSetMacro(AutomaticBoundsComputation, int);
68  vtkGetMacro(AutomaticBoundsComputation, int);
69  vtkBooleanMacro(AutomaticBoundsComputation, int);
71 
73 
78  vtkSetClampMacro(MaxNumberOfIterations, int, 0, VTK_INT_MAX);
79  vtkGetMacro(MaxNumberOfIterations, int);
81 
83 
88  vtkSetClampMacro(CoolDownRate, double, 0.01, VTK_DOUBLE_MAX);
89  vtkGetMacro(CoolDownRate, double);
91 
92  // Turn on/off layout of graph in three dimensions. If off, graph
93  // layout occurs in two dimensions. By default, three dimensional
94  // layout is on.
95  vtkSetMacro(ThreeDimensionalLayout, int);
96  vtkGetMacro(ThreeDimensionalLayout, int);
97  vtkBooleanMacro(ThreeDimensionalLayout, int);
98 
99 protected:
101  ~vtkGraphLayoutFilter() VTK_OVERRIDE {}
102 
104 
105  double GraphBounds[6];
106  int AutomaticBoundsComputation; //Boolean controls automatic bounds calc.
107  int MaxNumberOfIterations; //Maximum number of iterations.
108  double CoolDownRate; //Cool-down rate. Note: Higher # = Slower rate.
109  int ThreeDimensionalLayout; //Boolean for a third dimension.
110 private:
111  vtkGraphLayoutFilter(const vtkGraphLayoutFilter&) VTK_DELETE_FUNCTION;
112  void operator=(const vtkGraphLayoutFilter&) VTK_DELETE_FUNCTION;
113 };
114 
115 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163
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:153
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:39
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.