VTK
dox
Infovis
Layout
vtkBoxLayoutStrategy.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkBoxLayoutStrategy.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
-------------------------------------------------------------------------*/
35
#ifndef vtkBoxLayoutStrategy_h
36
#define vtkBoxLayoutStrategy_h
37
38
#include "vtkInfovisLayoutModule.h"
// For export macro
39
#include "
vtkTreeMapLayoutStrategy.h
"
40
41
class
VTKINFOVISLAYOUT_EXPORT
vtkBoxLayoutStrategy
:
public
vtkTreeMapLayoutStrategy
42
{
43
public
:
44
static
vtkBoxLayoutStrategy
*
New
();
45
46
vtkTypeMacro(
vtkBoxLayoutStrategy
,
vtkTreeMapLayoutStrategy
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
48
53
void
Layout
(
54
vtkTree
* inputTree,
55
vtkDataArray
* coordsArray,
56
vtkDataArray
* sizeArray)
override
;
57
58
protected
:
59
vtkBoxLayoutStrategy
();
60
~
vtkBoxLayoutStrategy
()
override
;
61
62
private
:
63
64
void
LayoutChildren(
vtkTree
*inputTree,
vtkDataArray
*coordsArray,
65
vtkIdType
parentId,
66
float
parentMinX,
float
parentMaxX,
67
float
parentMinY,
float
parentMaxY);
68
69
vtkBoxLayoutStrategy
(
const
vtkBoxLayoutStrategy
&) =
delete
;
70
void
operator=(
const
vtkBoxLayoutStrategy
&) =
delete
;
71
};
72
73
#endif
74
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.
vtkBoxLayoutStrategy
a tree map layout that puts vertices in square-ish boxes
Definition:
vtkBoxLayoutStrategy.h:41
vtkDataArray
abstract superclass for arrays of numeric data
Definition:
vtkDataArray.h:54
vtkTree
A rooted tree data structure.
Definition:
vtkTree.h:60
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:39
vtkTreeMapLayoutStrategy.h
vtkTreeMapLayoutStrategy
abstract superclass for all tree map layout strategies
Definition:
vtkTreeMapLayoutStrategy.h:51
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