VTK  9.4.20241222
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
36#ifndef vtkTreeMapView_h
37#define vtkTreeMapView_h
38
39#include "vtkTreeAreaView.h"
40#include "vtkViewsInfovisModule.h" // For export macro
41
42VTK_ABI_NAMESPACE_BEGIN
46
47class VTKVIEWSINFOVIS_EXPORT vtkTreeMapView : public vtkTreeAreaView
48{
49public:
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
59 virtual void SetLayoutStrategy(const char* name);
60 virtual void SetLayoutStrategyToBox();
64
66
69 virtual void SetFontSizeRange(int maxSize, int minSize, int delta = 4);
70 virtual void GetFontSizeRange(int range[3]);
72
73protected:
75 ~vtkTreeMapView() override;
76
80
81private:
82 vtkTreeMapView(const vtkTreeMapView&) = delete;
83 void operator=(const vtkTreeMapView&) = delete;
84};
85
86VTK_ABI_NAMESPACE_END
87#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:108
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