VTK
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(
60  vtkTree* inputTree,
61  vtkDataArray* coordsArray,
62  vtkDataArray* sizeArray) override;
63 
64 protected:
66  ~vtkSquarifyLayoutStrategy() override;
67 
68 private:
69 
70  void LayoutChildren(
71  vtkTree *tree,
72  vtkDataArray *coordsArray,
73  vtkDataArray *sizeArray,
74  vtkIdType nchildren,
75  vtkIdType parent,
76  vtkIdType begin,
77  float minX, float maxX,
78  float minY, float maxY);
79 
81  void operator=(const vtkSquarifyLayoutStrategy&) = delete;
82 };
83 
84 #endif
85 
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...
int vtkIdType
Definition: vtkType.h:347
a simple class to control print indentation
Definition: vtkIndent.h:39
list of point or cell ids
Definition: vtkIdList.h:36
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
uses the squarify tree map layout algorithm
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
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
A rooted tree data structure.
Definition: vtkTree.h:60