VTK  9.3.20240419
vtkTreeMapLayoutStrategy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
25 #ifndef vtkTreeMapLayoutStrategy_h
26 #define vtkTreeMapLayoutStrategy_h
27 
28 #include "vtkAreaLayoutStrategy.h"
29 #include "vtkInfovisLayoutModule.h" // For export macro
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class vtkTree;
33 class vtkDataArray;
34 
35 class VTKINFOVISLAYOUT_EXPORT vtkTreeMapLayoutStrategy : public vtkAreaLayoutStrategy
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
44  vtkIdType FindVertex(vtkTree* tree, vtkDataArray* areaArray, float pnt[2]) override;
45 
46 protected:
49  void AddBorder(float* boxInfo);
50 
51 private:
53  void operator=(const vtkTreeMapLayoutStrategy&) = delete;
54 };
55 
56 VTK_ABI_NAMESPACE_END
57 #endif
abstract superclass for all area layout strategies
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:155
a simple class to control print indentation
Definition: vtkIndent.h:108
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:145
int vtkIdType
Definition: vtkType.h:315