VTK
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
-------------------------------------------------------------------------*/
37
#ifndef vtkSquarifyLayoutStrategy_h
38
#define vtkSquarifyLayoutStrategy_h
39
40
#include "vtkInfovisLayoutModule.h"
// For export macro
41
#include "
vtkTreeMapLayoutStrategy.h
"
42
43
class
vtkIdList
;
44
45
class
VTKINFOVISLAYOUT_EXPORT
vtkSquarifyLayoutStrategy
:
public
vtkTreeMapLayoutStrategy
46
{
47
public
:
48
static
vtkSquarifyLayoutStrategy
*
New
();
49
vtkTypeMacro(
vtkSquarifyLayoutStrategy
,
vtkTreeMapLayoutStrategy
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
51
56
void
Layout
(
57
vtkTree
* inputTree,
58
vtkDataArray
* coordsArray,
59
vtkDataArray
* sizeArray)
override
;
60
61
protected
:
62
vtkSquarifyLayoutStrategy
();
63
~
vtkSquarifyLayoutStrategy
()
override
;
64
65
private
:
66
67
void
LayoutChildren(
68
vtkTree
*tree,
69
vtkDataArray
*coordsArray,
70
vtkDataArray
*sizeArray,
71
vtkIdType
nchildren,
72
vtkIdType
parent,
73
vtkIdType
begin,
74
float
minX,
float
maxX,
75
float
minY,
float
maxY);
76
77
vtkSquarifyLayoutStrategy
(
const
vtkSquarifyLayoutStrategy
&) =
delete
;
78
void
operator=(
const
vtkSquarifyLayoutStrategy
&) =
delete
;
79
};
80
81
#endif
82
vtkSquarifyLayoutStrategy
uses the squarify tree map layout algorithm
Definition:
vtkSquarifyLayoutStrategy.h:45
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkDataArray
abstract superclass for arrays of numeric data
Definition:
vtkDataArray.h:48
vtkTree
A rooted tree data structure.
Definition:
vtkTree.h:54
vtkAreaLayoutStrategy::Layout
virtual void Layout(vtkTree *inputTree, vtkDataArray *areaArray, vtkDataArray *sizeArray)=0
Perform the layout of the input tree, and store the sector bounds of each vertex as a tuple in a data...
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkIdList
list of point or cell ids
Definition:
vtkIdList.h:30
vtkTreeMapLayoutStrategy.h
vtkTreeMapLayoutStrategy
abstract superclass for all tree map layout strategies
Definition:
vtkTreeMapLayoutStrategy.h:48
vtkTreeMapLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Generated by
1.8.16