VTK  9.3.0
vtkTreeMapView.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
17#ifndef vtkTreeMapView_h
18#define vtkTreeMapView_h
19
20#include "vtkTreeAreaView.h"
21#include "vtkViewsInfovisModule.h" // For export macro
22
23VTK_ABI_NAMESPACE_BEGIN
27
28class VTKVIEWSINFOVIS_EXPORT vtkTreeMapView : public vtkTreeAreaView
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
40 virtual void SetLayoutStrategy(const char* name);
41 virtual void SetLayoutStrategyToBox();
45
47
50 virtual void SetFontSizeRange(int maxSize, int minSize, int delta = 4);
51 virtual void GetFontSizeRange(int range[3]);
53
54protected:
56 ~vtkTreeMapView() override;
57
61
62private:
63 vtkTreeMapView(const vtkTreeMapView&) = delete;
64 void operator=(const vtkTreeMapView&) = delete;
65};
66
67VTK_ABI_NAMESPACE_END
68#endif
abstract superclass for all area layout strategies
a tree map layout that puts vertices in square-ish boxes
a simple class to control print indentation
Definition vtkIndent.h:29
a horizontal and vertical slicing tree map layout
Hold a reference to a vtkObjectBase instance.
uses the squarify tree map layout algorithm
Accepts a graph and a hierarchy - currently a tree - and provides a hierarchy-aware display.
Displays a tree as a tree map.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkBoxLayoutStrategy > BoxLayout
virtual void SetFontSizeRange(int maxSize, int minSize, int delta=4)
The sizes of the fonts used for labeling.
virtual void SetLayoutStrategyToBox()
Sets the treemap layout strategy.
virtual void GetFontSizeRange(int range[3])
The sizes of the fonts used for labeling.
void SetLayoutStrategy(vtkAreaLayoutStrategy *s) override
Sets the treemap layout strategy.
static vtkTreeMapView * New()
virtual void SetLayoutStrategyToSquarify()
Sets the treemap layout strategy.
~vtkTreeMapView() override
vtkSmartPointer< vtkSliceAndDiceLayoutStrategy > SliceAndDiceLayout
virtual void SetLayoutStrategyToSliceAndDice()
Sets the treemap layout strategy.
virtual void SetLayoutStrategy(const char *name)
Sets the treemap layout strategy.
vtkSmartPointer< vtkSquarifyLayoutStrategy > SquarifyLayout