VTK  9.1.20220527
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 -------------------------------------------------------------------------*/
40 #ifndef vtkSquarifyLayoutStrategy_h
41 #define vtkSquarifyLayoutStrategy_h
42 
43 #include "vtkInfovisLayoutModule.h" // For export macro
45 
46 class vtkIdList;
47 
48 class VTKINFOVISLAYOUT_EXPORT vtkSquarifyLayoutStrategy : public vtkTreeMapLayoutStrategy
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
59  void Layout(vtkTree* inputTree, vtkDataArray* coordsArray, vtkDataArray* sizeArray) override;
60 
61 protected:
64 
65 private:
66  void LayoutChildren(vtkTree* tree, vtkDataArray* coordsArray, vtkDataArray* sizeArray,
67  vtkIdType nchildren, vtkIdType parent, vtkIdType begin, float minX, float maxX, float minY,
68  float maxY);
69 
71  void operator=(const vtkSquarifyLayoutStrategy&) = delete;
72 };
73 
74 #endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:165
list of point or cell ids
Definition: vtkIdList.h:143
a simple class to control print indentation
Definition: vtkIndent.h:119
uses the squarify tree map layout algorithm
static vtkSquarifyLayoutStrategy * 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,...
~vtkSquarifyLayoutStrategy() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for all tree map layout strategies
A rooted tree data structure.
Definition: vtkTree.h:170
int vtkIdType
Definition: vtkType.h:332