VTK  9.0.2
vtkTreeOrbitLayoutStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeOrbitLayoutStrategy.h
5 
6 =========================================================================*/
7 /*----------------------------------------------------------------------------
8  Copyright (c) Sandia Corporation
9  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
10 ----------------------------------------------------------------------------*/
23 #ifndef vtkTreeOrbitLayoutStrategy_h
24 #define vtkTreeOrbitLayoutStrategy_h
25 
26 #include "vtkGraphLayoutStrategy.h"
27 #include "vtkInfovisLayoutModule.h" // For export macro
28 
29 class vtkPoints;
30 class vtkTree;
31 
32 class VTKINFOVISLAYOUT_EXPORT vtkTreeOrbitLayoutStrategy : public vtkGraphLayoutStrategy
33 {
34 public:
36 
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  void Layout() override;
44 
46 
52  vtkSetMacro(LogSpacingValue, double);
53  vtkGetMacro(LogSpacingValue, double);
55 
57 
62  vtkSetClampMacro(LeafSpacing, double, 0.0, 1.0);
63  vtkGetMacro(LeafSpacing, double);
65 
67 
72  vtkSetMacro(ChildRadiusFactor, double);
73  vtkGetMacro(ChildRadiusFactor, double);
75 
76 protected:
79 
80  void OrbitChildren(vtkTree* t, vtkPoints* p, vtkIdType parent, double radius);
81 
83  double LeafSpacing;
85 
86 private:
88  void operator=(const vtkTreeOrbitLayoutStrategy&) = delete;
89 };
90 
91 #endif
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition: vtkIndent.h:34
represent and manipulate 3D points
Definition: vtkPoints.h:34
hierarchical orbital layout
void OrbitChildren(vtkTree *t, vtkPoints *p, vtkIdType parent, double radius)
~vtkTreeOrbitLayoutStrategy() override
void Layout() override
Perform the orbital layout.
static vtkTreeOrbitLayoutStrategy * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A rooted tree data structure.
Definition: vtkTree.h:55
@ radius
Definition: vtkX3D.h:258
int vtkIdType
Definition: vtkType.h:338