VTK  9.3.1
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:
48  ~vtkTreeMapLayoutStrategy() override;
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
virtual vtkIdType FindVertex(vtkTree *tree, vtkDataArray *array, float pnt[2])=0
Returns the vertex id that contains pnt (or -1 if no one contains it)
int vtkIdType
Definition: vtkType.h:315
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
abstract superclass for all tree map layout strategies
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:45