VTK: Infovis/Layout/vtkBoxLayoutStrategy.h Source File

| VTK 9.3.1

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
23 #include "vtkTreeMapLayoutStrategy.h"
24
25 VTK_ABI_NAMESPACE_BEGIN
26 class VTKINFOVISLAYOUT_EXPORT vtkBoxLayoutStrategy : public vtkTreeMapLayoutStrategy
27 {
28 public:
29 static vtkBoxLayoutStrategy* New();
30
31 vtkTypeMacro(vtkBoxLayoutStrategy, vtkTreeMapLayoutStrategy);
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
38 void Layout(vtkTree* inputTree, vtkDataArray* coordsArray, vtkDataArray* sizeArray) override;
39
40 protected:
41 vtkBoxLayoutStrategy();
42 ~vtkBoxLayoutStrategy() override;
43
44 private:
45 void LayoutChildren(vtkTree* inputTree, vtkDataArray* coordsArray, vtkIdType parentId,
46 float parentMinX, float parentMaxX, float parentMinY, float parentMaxY);
47
48 vtkBoxLayoutStrategy(const vtkBoxLayoutStrategy&) = delete;
49 void operator=(const vtkBoxLayoutStrategy&) = delete;
50 };
51
52 VTK_ABI_NAMESPACE_END
53 #endif
vtkBoxLayoutStrategy
a tree map layout that puts vertices in square-ish boxes
Definition: vtkBoxLayoutStrategy.h:27
vtkBoxLayoutStrategy::New
static vtkBoxLayoutStrategy * New()
vtkBoxLayoutStrategy::~vtkBoxLayoutStrategy
~vtkBoxLayoutStrategy() override
vtkBoxLayoutStrategy::Layout
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,...
vtkBoxLayoutStrategy::vtkBoxLayoutStrategy
vtkBoxLayoutStrategy()
vtkBoxLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkTreeMapLayoutStrategy
abstract superclass for all tree map layout strategies
Definition: vtkTreeMapLayoutStrategy.h:36
vtkTree
A rooted tree data structure.
Definition: vtkTree.h:55
vtkTreeMapLayoutStrategy.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315