VTK  9.4.20250311
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
20#include "vtkInfovisLayoutModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
23class vtkPoints;
24class vtkTree;
25
26class VTKINFOVISLAYOUT_EXPORT vtkTreeOrbitLayoutStrategy : public vtkGraphLayoutStrategy
27{
28public:
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
70protected:
73
74 void OrbitChildren(vtkTree* t, vtkPoints* p, vtkIdType parent, double radius);
75
79
80private:
82 void operator=(const vtkTreeOrbitLayoutStrategy&) = delete;
83};
84
85VTK_ABI_NAMESPACE_END
86#endif
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition vtkIndent.h:108
represent and manipulate 3D points
Definition vtkPoints.h:139
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:155
int vtkIdType
Definition vtkType.h:332