VTK  9.2.20230330
vtkTreeMapLayoutStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeMapLayoutStrategy.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 -------------------------------------------------------------------------*/
41 #ifndef vtkTreeMapLayoutStrategy_h
42 #define vtkTreeMapLayoutStrategy_h
43 
44 #include "vtkAreaLayoutStrategy.h"
45 #include "vtkInfovisLayoutModule.h" // For export macro
46 
47 VTK_ABI_NAMESPACE_BEGIN
48 class vtkTree;
49 class vtkDataArray;
50 
51 class VTKINFOVISLAYOUT_EXPORT vtkTreeMapLayoutStrategy : public vtkAreaLayoutStrategy
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
60  vtkIdType FindVertex(vtkTree* tree, vtkDataArray* areaArray, float pnt[2]) override;
61 
62 protected:
65  void AddBorder(float* boxInfo);
66 
67 private:
69  void operator=(const vtkTreeMapLayoutStrategy&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
abstract superclass for all area layout strategies
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:166
a simple class to control print indentation
Definition: vtkIndent.h:120
abstract superclass for all tree map layout strategies
vtkIdType FindVertex(vtkTree *tree, vtkDataArray *areaArray, float pnt[2]) override
Find the vertex at a certain location, or -1 if none found.
void AddBorder(float *boxInfo)
~vtkTreeMapLayoutStrategy() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A rooted tree data structure.
Definition: vtkTree.h:171
int vtkIdType
Definition: vtkType.h:327