VTK
9.5.20251201
Infovis
Layout
vtkBoxLayoutStrategy.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3
// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
18
19
#ifndef vtkBoxLayoutStrategy_h
20
#define vtkBoxLayoutStrategy_h
21
22
#include "vtkInfovisLayoutModule.h"
// For export macro
23
#include "
vtkTreeMapLayoutStrategy.h
"
24
25
VTK_ABI_NAMESPACE_BEGIN
26
class
VTKINFOVISLAYOUT_EXPORT
vtkBoxLayoutStrategy
:
public
vtkTreeMapLayoutStrategy
27
{
28
public
:
29
static
vtkBoxLayoutStrategy
*
New
();
30
31
vtkTypeMacro(
vtkBoxLayoutStrategy
,
vtkTreeMapLayoutStrategy
);
32
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
33
38
void
Layout
(
vtkTree
* inputTree,
vtkDataArray
* coordsArray,
vtkDataArray
* sizeArray)
override
;
39
40
protected
:
41
vtkBoxLayoutStrategy
();
42
~vtkBoxLayoutStrategy
()
override
;
43
44
private
:
45
void
LayoutChildren(
vtkTree
* inputTree,
vtkDataArray
* coordsArray,
vtkIdType
parentId,
46
float
parentMinX,
float
parentMaxX,
float
parentMinY,
float
parentMaxY);
47
48
vtkBoxLayoutStrategy
(
const
vtkBoxLayoutStrategy
&) =
delete
;
49
void
operator=(
const
vtkBoxLayoutStrategy
&) =
delete
;
50
};
51
52
VTK_ABI_NAMESPACE_END
53
#endif
vtkBoxLayoutStrategy::~vtkBoxLayoutStrategy
~vtkBoxLayoutStrategy() override
vtkBoxLayoutStrategy::New
static vtkBoxLayoutStrategy * New()
vtkBoxLayoutStrategy::Layout
void Layout(vtkTree *inputTree, vtkDataArray *coordsArray, vtkDataArray *sizeArray) override
Perform the layout of a tree and place the results as 4-tuples in coordsArray (Xmin,...
vtkBoxLayoutStrategy::vtkBoxLayoutStrategy
vtkBoxLayoutStrategy()
vtkBoxLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkTreeMapLayoutStrategy::vtkTreeMapLayoutStrategy
vtkTreeMapLayoutStrategy()
vtkTree
A rooted tree data structure.
Definition
vtkTree.h:156
vtkDataArray
#define vtkDataArray
Definition
vtkCharArray.h:59
vtkTreeMapLayoutStrategy.h
vtkIdType
int vtkIdType
Definition
vtkType.h:367
Generated on Mon Dec 1 2025 11:14:06 for VTK by
1.13.2