VTK  9.3.20240416
vtkBoxLayoutStrategy.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
19 #ifndef vtkBoxLayoutStrategy_h
20 #define vtkBoxLayoutStrategy_h
21 
22 #include "vtkInfovisLayoutModule.h" // For export macro
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class VTKINFOVISLAYOUT_EXPORT vtkBoxLayoutStrategy : public vtkTreeMapLayoutStrategy
27 {
28 public:
30 
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
38  void Layout(vtkTree* inputTree, vtkDataArray* coordsArray, vtkDataArray* sizeArray) override;
39 
40 protected:
43 
44 private:
45  void LayoutChildren(vtkTree* inputTree, vtkDataArray* coordsArray, vtkIdType parentId,
46  float parentMinX, float parentMaxX, float parentMinY, float parentMaxY);
47 
49  void operator=(const vtkBoxLayoutStrategy&) = delete;
50 };
51 
52 VTK_ABI_NAMESPACE_END
53 #endif
a tree map layout that puts vertices in square-ish boxes
static vtkBoxLayoutStrategy * New()
~vtkBoxLayoutStrategy() override
void Layout(vtkTree *inputTree, vtkDataArray *coordsArray, vtkDataArray *sizeArray) override
Perform the layout of a tree and place the results as 4-tuples in coordsArray (Xmin,...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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
A rooted tree data structure.
Definition: vtkTree.h:145
int vtkIdType
Definition: vtkType.h:315