VTK  9.2.6
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
40
41class VTKINFOVISLAYOUT_EXPORT vtkBoxLayoutStrategy : public vtkTreeMapLayoutStrategy
42{
43public:
45
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
53 void Layout(vtkTree* inputTree, vtkDataArray* coordsArray, vtkDataArray* sizeArray) override;
54
55protected:
58
59private:
60 void LayoutChildren(vtkTree* inputTree, vtkDataArray* coordsArray, vtkIdType parentId,
61 float parentMinX, float parentMaxX, float parentMinY, float parentMaxY);
62
64 void operator=(const vtkBoxLayoutStrategy&) = delete;
65};
66
67#endif
a tree map layout that puts vertices in square-ish boxes
~vtkBoxLayoutStrategy() override
static vtkBoxLayoutStrategy * New()
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,...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for arrays of numeric data
a simple class to control print indentation
Definition vtkIndent.h:40
abstract superclass for all tree map layout strategies
A rooted tree data structure.
Definition vtkTree.h:61
int vtkIdType
Definition vtkType.h:332