VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
Layout
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 "vtkInfovisLayoutModule.h"
// For export macro
43
#include "
vtkTreeMapLayoutStrategy.h
"
44
45
class
vtkIdList
;
46
47
class
VTKINFOVISLAYOUT_EXPORT
vtkSquarifyLayoutStrategy
:
public
vtkTreeMapLayoutStrategy
48
{
49
public
:
50
static
vtkSquarifyLayoutStrategy
*
New
();
51
vtkTypeMacro(
vtkSquarifyLayoutStrategy
,
vtkTreeMapLayoutStrategy
);
52
void
PrintSelf
(ostream& os,
vtkIndent
indent);
53
55
57
void
Layout
(
58
vtkTree
* inputTree,
59
vtkDataArray
* coordsArray,
60
vtkDataArray
* sizeArray);
62
63
protected
:
64
vtkSquarifyLayoutStrategy
();
65
~
vtkSquarifyLayoutStrategy
();
66
67
private
:
68
69
void
LayoutChildren(
70
vtkTree
*tree,
71
vtkDataArray
*coordsArray,
72
vtkDataArray
*sizeArray,
73
vtkIdType
nchildren,
74
vtkIdType
parent,
75
vtkIdType
begin,
76
float
minX,
float
maxX,
77
float
minY,
float
maxY);
78
79
vtkSquarifyLayoutStrategy
(
const
vtkSquarifyLayoutStrategy
&);
// Not implemented.
80
void
operator=(
const
vtkSquarifyLayoutStrategy
&);
// Not implemented.
81
};
82
83
#endif
84
Generated on Thu May 24 2012 22:22:26 for VTK by
1.8.1