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 -------------------------------------------------------------------------*/
39 #ifndef vtkSquarifyLayoutStrategy_h
40 #define vtkSquarifyLayoutStrategy_h
41 
42 #include "vtkInfovisLayoutModule.h" // For export macro
44 
45 class vtkIdList;
46 
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
57  void Layout(
58  vtkTree* inputTree,
59  vtkDataArray* coordsArray,
60  vtkDataArray* sizeArray);
62 
63 protected:
66 
67 private:
68 
69  void LayoutChildren(
70  vtkTree *tree,
71  vtkDataArray *coordsArray,
72  vtkDataArray *sizeArray,
73  vtkIdType nchildren,
74  vtkIdType parent,
75  vtkIdType begin,
76  float minX, float maxX,
77  float minY, float maxY);
78 
79  vtkSquarifyLayoutStrategy(const vtkSquarifyLayoutStrategy&); // Not implemented.
80  void operator=(const vtkSquarifyLayoutStrategy&); // Not implemented.
81 };
82 
83 #endif
84 
#define VTKINFOVISLAYOUT_EXPORT
virtual void Layout(vtkTree *inputTree, vtkDataArray *areaArray, vtkDataArray *sizeArray)=0
int vtkIdType
Definition: vtkType.h:247
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
uses the squarify tree map layout algorithm
void PrintSelf(ostream &os, vtkIndent indent)
abstract superclass for all tree map layout strategies
static vtkObject * New()
A rooted tree data structure.
Definition: vtkTree.h:59