VTK
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 ----------------------------------------------------------------------------*/
22 #ifndef __vtkTreeOrbitLayoutStrategy_h
23 #define __vtkTreeOrbitLayoutStrategy_h
24 
25 #include "vtkGraphLayoutStrategy.h"
26 
27 class vtkPoints;
28 class vtkTree;
29 
30 
32 {
33 public:
35 
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40  void Layout();
41 
43 
47  vtkSetMacro(LogSpacingValue, double);
48  vtkGetMacro(LogSpacingValue, double);
50 
52 
55  vtkSetClampMacro(LeafSpacing, double, 0.0, 1.0);
56  vtkGetMacro(LeafSpacing, double);
58 
60 
63  vtkSetMacro(ChildRadiusFactor, double);
64  vtkGetMacro(ChildRadiusFactor, double);
66 
67 protected:
70 
71  void OrbitChildren(vtkTree *t, vtkPoints *p, vtkIdType parent, double radius);
72 
74  double LeafSpacing;
76 
77 private:
78 
79  vtkTreeOrbitLayoutStrategy(const vtkTreeOrbitLayoutStrategy&); // Not implemented.
80  void operator=(const vtkTreeOrbitLayoutStrategy&); // Not implemented.
81 };
82 
83 #endif
84 
hierarchical orbital layout
int vtkIdType
Definition: vtkType.h:255
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_INFOVIS_EXPORT
static vtkObject * New()
A rooted tree data structure.
Definition: vtkTree.h:58
represent and manipulate 3D points
Definition: vtkPoints.h:38
virtual void Layout()=0
void PrintSelf(ostream &os, vtkIndent indent)