VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
vtkSquarifyLayoutStrategy.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSquarifyLayoutStrategy.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
-------------------------------------------------------------------------*/
39
#ifndef __vtkSquarifyLayoutStrategy_h
40
#define __vtkSquarifyLayoutStrategy_h
41
42
#include "
vtkTreeMapLayoutStrategy.h
"
43
44
class
vtkIdList
;
45
46
class
VTK_INFOVIS_EXPORT
vtkSquarifyLayoutStrategy
:
public
vtkTreeMapLayoutStrategy
47
{
48
public
:
49
static
vtkSquarifyLayoutStrategy
*
New
();
50
vtkTypeMacro(
vtkSquarifyLayoutStrategy
,
vtkTreeMapLayoutStrategy
);
51
void
PrintSelf
(ostream& os,
vtkIndent
indent);
52
54
56
void
Layout
(
57
vtkTree
* inputTree,
58
vtkDataArray
* coordsArray,
59
vtkDataArray
* sizeArray);
61
62
protected
:
63
vtkSquarifyLayoutStrategy
();
64
~
vtkSquarifyLayoutStrategy
();
65
66
private
:
67
68
void
LayoutChildren(
69
vtkTree
*tree,
70
vtkDataArray
*coordsArray,
71
vtkDataArray
*sizeArray,
72
vtkIdType
nchildren,
73
vtkIdType
parent,
74
vtkIdType
begin,
75
float
minX,
float
maxX,
76
float
minY,
float
maxY);
77
78
vtkSquarifyLayoutStrategy
(
const
vtkSquarifyLayoutStrategy
&);
// Not implemented.
79
void
operator=(
const
vtkSquarifyLayoutStrategy
&);
// Not implemented.
80
};
81
82
#endif
83
Generated on Fri Aug 2 2013 12:19:59 for VTK by
1.8.4