VTK  9.3.0
vtkTreeOrbitLayoutStrategy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkTreeOrbitLayoutStrategy_h
17 #define vtkTreeOrbitLayoutStrategy_h
18 
19 #include "vtkGraphLayoutStrategy.h"
20 #include "vtkInfovisLayoutModule.h" // For export macro
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkPoints;
24 class vtkTree;
25 
26 class VTKINFOVISLAYOUT_EXPORT vtkTreeOrbitLayoutStrategy : public vtkGraphLayoutStrategy
27 {
28 public:
30 
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
37  void Layout() override;
38 
40 
46  vtkSetMacro(LogSpacingValue, double);
47  vtkGetMacro(LogSpacingValue, double);
49 
51 
56  vtkSetClampMacro(LeafSpacing, double, 0.0, 1.0);
57  vtkGetMacro(LeafSpacing, double);
59 
61 
66  vtkSetMacro(ChildRadiusFactor, double);
67  vtkGetMacro(ChildRadiusFactor, double);
69 
70 protected:
73 
74  void OrbitChildren(vtkTree* t, vtkPoints* p, vtkIdType parent, double radius);
75 
77  double LeafSpacing;
79 
80 private:
82  void operator=(const vtkTreeOrbitLayoutStrategy&) = delete;
83 };
84 
85 VTK_ABI_NAMESPACE_END
86 #endif
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition: vtkIndent.h:29
represent and manipulate 3D points
Definition: vtkPoints.h:29
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:46
@ radius
Definition: vtkX3D.h:252
int vtkIdType
Definition: vtkType.h:315