VTK
vtkConeLayoutStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkConeLayoutStrategy.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 =========================================================================*/
15 //-------------------------------------------------------------------------
16 //Copyright 2008 Sandia Corporation.
17 //Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 //the U.S. Government retains certain rights in this software.
19 //-------------------------------------------------------------------------
20 
49 #ifndef vtkConeLayoutStrategy_h
50 #define vtkConeLayoutStrategy_h
51 
52 #include "vtkInfovisLayoutModule.h" // For export macro
53 #include "vtkGraphLayoutStrategy.h"
54 
55 class vtkPoints;
56 
57 class VTKINFOVISLAYOUT_EXPORT vtkConeLayoutStrategy : public vtkGraphLayoutStrategy
58 {
59 public:
61 
63  void PrintSelf(ostream& os, vtkIndent indent);
64 
66 
73  vtkSetMacro(Compactness, float);
74  vtkGetMacro(Compactness, float);
76 
78 
85  vtkSetMacro(Compression, int);
86  vtkGetMacro(Compression, int);
87  vtkBooleanMacro(Compression, int);
89 
91 
98  vtkSetMacro(Spacing, float);
99  vtkGetMacro(Spacing, float);
101 
102 
106  void Layout();
107 
108 protected:
111 
121 
123  vtkIdType root,
124  vtkPoints *points,
125  double refX, // absolute x-y coordinate of
126  double refY, // parent node; z coordinate
127  double level ); // derived from level.
128 
129  float Compactness; // factor used in mapping layer to Z
130  int Compression; // force a compact layout?
131  float Spacing; // Scale vertical spacing of cones.
132 
133  // Values accumulated for possible statistical use
134  double MinRadius;
135  double MaxRadius;
136  int NrCones;
137  double SumOfRadii;
138 
139 private:
140  vtkConeLayoutStrategy(const vtkConeLayoutStrategy&) VTK_DELETE_FUNCTION;
141  void operator=(const vtkConeLayoutStrategy&) VTK_DELETE_FUNCTION;
142 };
143 
144 #endif
145 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkConeLayoutStrategy::LocalPlacement
double LocalPlacement(vtkIdType root, vtkPoints *points)
Helper operations for tree layout.
vtkConeLayoutStrategy::Compression
int Compression
Definition: vtkConeLayoutStrategy.h:130
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition: vtkGraphLayoutStrategy.h:46
vtkConeLayoutStrategy::MinRadius
double MinRadius
Definition: vtkConeLayoutStrategy.h:134
vtkConeLayoutStrategy::MaxRadius
double MaxRadius
Definition: vtkConeLayoutStrategy.h:135
vtkX3D::level
@ level
Definition: vtkX3D.h:395
vtkX3D::points
@ points
Definition: vtkX3D.h:446
vtkConeLayoutStrategy::vtkConeLayoutStrategy
vtkConeLayoutStrategy()
vtkConeLayoutStrategy::Compactness
float Compactness
Definition: vtkConeLayoutStrategy.h:129
vtkConeLayoutStrategy::New
static vtkConeLayoutStrategy * New()
vtkConeLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkConeLayoutStrategy::GlobalPlacement
void GlobalPlacement(vtkIdType root, vtkPoints *points, double refX, double refY, double level)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkConeLayoutStrategy::~vtkConeLayoutStrategy
~vtkConeLayoutStrategy()
vtkConeLayoutStrategy
produce a cone-tree layout for a forest
Definition: vtkConeLayoutStrategy.h:58
vtkGraphLayoutStrategy.h
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkConeLayoutStrategy::Spacing
float Spacing
Definition: vtkConeLayoutStrategy.h:131
vtkConeLayoutStrategy::SumOfRadii
double SumOfRadii
Definition: vtkConeLayoutStrategy.h:137
vtkConeLayoutStrategy::Layout
void Layout()
Perform the layout.
vtkConeLayoutStrategy::NrCones
int NrCones
Definition: vtkConeLayoutStrategy.h:136