VTK
9.2.6
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
-------------------------------------------------------------------------*/
31
32
#ifndef vtkBoxLayoutStrategy_h
33
#define vtkBoxLayoutStrategy_h
34
35
#include "vtkInfovisLayoutModule.h"
// For export macro
36
#include "
vtkTreeMapLayoutStrategy.h
"
37
38
class
VTKINFOVISLAYOUT_EXPORT
vtkBoxLayoutStrategy
:
public
vtkTreeMapLayoutStrategy
39
{
40
public
:
41
static
vtkBoxLayoutStrategy
*
New
();
42
43
vtkTypeMacro(
vtkBoxLayoutStrategy
,
vtkTreeMapLayoutStrategy
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
45
50
void
Layout
(
vtkTree
* inputTree,
vtkDataArray
* coordsArray,
vtkDataArray
* sizeArray)
override
;
51
52
protected
:
53
vtkBoxLayoutStrategy
();
54
~vtkBoxLayoutStrategy
()
override
;
55
56
private
:
57
void
LayoutChildren(
vtkTree
* inputTree,
vtkDataArray
* coordsArray,
vtkIdType
parentId,
58
float
parentMinX,
float
parentMaxX,
float
parentMinY,
float
parentMaxY);
59
60
vtkBoxLayoutStrategy
(
const
vtkBoxLayoutStrategy
&) =
delete
;
61
void
operator=(
const
vtkBoxLayoutStrategy
&) =
delete
;
62
};
63
64
#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:34
vtkTreeMapLayoutStrategy::vtkTreeMapLayoutStrategy
vtkTreeMapLayoutStrategy()
vtkTree
A rooted tree data structure.
Definition
vtkTree.h:55
vtkDataArray
#define vtkDataArray
Definition
vtkCharArray.h:46
vtkTreeMapLayoutStrategy.h
vtkIdType
int vtkIdType
Definition
vtkType.h:332
Generated on Sun Mar 2 2025 00:00:00 for VTK by
1.13.2