VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
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
48
#ifndef __vtkConeLayoutStrategy_h
49
#define __vtkConeLayoutStrategy_h
50
51
#include "
vtkGraphLayoutStrategy.h
"
52
53
class
vtkPoints
;
54
55
class
VTK_INFOVIS_EXPORT
vtkConeLayoutStrategy
:
public
vtkGraphLayoutStrategy
56
{
57
public
:
58
static
vtkConeLayoutStrategy
*
New
();
59
60
vtkTypeMacro(
vtkConeLayoutStrategy
,
vtkGraphLayoutStrategy
);
61
void
PrintSelf
(ostream& os,
vtkIndent
indent);
62
64
68
vtkSetMacro(Compactness,
float
);
69
vtkGetMacro(Compactness,
float
);
71
73
77
vtkSetMacro(Compression,
int
);
78
vtkGetMacro(Compression,
int
);
79
vtkBooleanMacro(Compression,
int
);
81
83
87
vtkSetMacro(Spacing,
float
);
88
vtkGetMacro(Spacing,
float
);
90
91
93
void
Layout
();
94
95
protected
:
96
vtkConeLayoutStrategy
();
97
~
vtkConeLayoutStrategy
();
98
105
double
LocalPlacement(
vtkIdType
root,
vtkPoints
*
points
);
106
107
void
GlobalPlacement(
108
vtkIdType
root,
109
vtkPoints
*
points
,
110
double
refX,
// absolute x-y coordinate of
111
double
refY,
// parent node; z coordinate
112
double
level
);
// derived from level.
113
114
float
Compactness
;
// factor used in mapping layer to Z
115
int
Compression
;
// force a compact layout?
116
float
Spacing
;
// Scale vertical spacing of cones.
117
118
// Values accumulated for possible statistical use
119
double
MinRadius
;
120
double
MaxRadius
;
121
int
NrCones
;
122
double
SumOfRadii
;
123
124
private
:
125
vtkConeLayoutStrategy
(
const
vtkConeLayoutStrategy
&);
// Not implemented.
126
void
operator=(
const
vtkConeLayoutStrategy
&);
// Not implemented.
127
};
128
129
#endif
130
vtkConeLayoutStrategy::MinRadius
double MinRadius
Definition:
vtkConeLayoutStrategy.h:119
vtkX3D::level
Definition:
vtkX3D.h:395
vtkIdType
int vtkIdType
Definition:
vtkType.h:255
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition:
vtkGraphLayoutStrategy.h:43
vtkConeLayoutStrategy::Compactness
float Compactness
Definition:
vtkConeLayoutStrategy.h:114
vtkConeLayoutStrategy::Compression
int Compression
Definition:
vtkConeLayoutStrategy.h:115
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkConeLayoutStrategy::MaxRadius
double MaxRadius
Definition:
vtkConeLayoutStrategy.h:120
vtkConeLayoutStrategy::NrCones
int NrCones
Definition:
vtkConeLayoutStrategy.h:121
vtkConeLayoutStrategy
produce a cone-tree layout for a forest
Definition:
vtkConeLayoutStrategy.h:55
vtkX3D::points
Definition:
vtkX3D.h:446
vtkConeLayoutStrategy::Spacing
float Spacing
Definition:
vtkConeLayoutStrategy.h:116
VTK_INFOVIS_EXPORT
#define VTK_INFOVIS_EXPORT
Definition:
vtkWin32Header.h:276
vtkGraphLayoutStrategy.h
vtkObject::New
static vtkObject * New()
vtkPoints
represent and manipulate 3D points
Definition:
vtkPoints.h:38
vtkGraphLayoutStrategy::Layout
virtual void Layout()=0
vtkGraphLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkConeLayoutStrategy::SumOfRadii
double SumOfRadii
Definition:
vtkConeLayoutStrategy.h:122
Generated on Sun Oct 19 2014 13:07:19 for VTK by
1.8.8