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