VTK  9.2.6
vtkTreeMapView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeMapView.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
42 #ifndef vtkTreeMapView_h
43 #define vtkTreeMapView_h
44 
45 #include "vtkTreeAreaView.h"
46 #include "vtkViewsInfovisModule.h" // For export macro
47 
51 
52 class VTKVIEWSINFOVIS_EXPORT vtkTreeMapView : public vtkTreeAreaView
53 {
54 public:
55  static vtkTreeMapView* New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
64  virtual void SetLayoutStrategy(const char* name);
65  virtual void SetLayoutStrategyToBox();
69 
71 
74  virtual void SetFontSizeRange(const int maxSize, const int minSize, const int delta = 4);
75  virtual void GetFontSizeRange(int range[3]);
77 
78 protected:
80  ~vtkTreeMapView() override;
81 
85 
86 private:
87  vtkTreeMapView(const vtkTreeMapView&) = delete;
88  void operator=(const vtkTreeMapView&) = delete;
89 };
90 
91 #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:49
a horizontal and vertical slicing tree map layout
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 SetLayoutStrategyToBox()
Sets the treemap layout strategy.
static vtkTreeMapView * New()
virtual void GetFontSizeRange(int range[3])
The sizes of the fonts used for labeling.
void SetLayoutStrategy(vtkAreaLayoutStrategy *s) override
Sets the treemap layout strategy.
virtual void SetLayoutStrategyToSquarify()
Sets the treemap layout strategy.
~vtkTreeMapView() override
vtkSmartPointer< vtkSliceAndDiceLayoutStrategy > SliceAndDiceLayout
virtual void SetFontSizeRange(const int maxSize, const int minSize, const int delta=4)
The sizes of the fonts used for labeling.
virtual void SetLayoutStrategyToSliceAndDice()
Sets the treemap layout strategy.
virtual void SetLayoutStrategy(const char *name)
Sets the treemap layout strategy.
vtkSmartPointer< vtkSquarifyLayoutStrategy > SquarifyLayout
@ range
Definition: vtkX3D.h:244
@ name
Definition: vtkX3D.h:225