VTK  9.1.0
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 -------------------------------------------------------------------------*/
49 #ifndef vtkTreeMapView_h
50 #define vtkTreeMapView_h
51 
52 #include "vtkTreeAreaView.h"
53 #include "vtkViewsInfovisModule.h" // For export macro
54 
58 
59 class VTKVIEWSINFOVIS_EXPORT vtkTreeMapView : public vtkTreeAreaView
60 {
61 public:
62  static vtkTreeMapView* New();
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
67 
71  virtual void SetLayoutStrategy(const char* name);
72  virtual void SetLayoutStrategyToBox();
76 
78 
81  virtual void SetFontSizeRange(const int maxSize, const int minSize, const int delta = 4);
82  virtual void GetFontSizeRange(int range[3]);
84 
85 protected:
87  ~vtkTreeMapView() override;
88 
92 
93 private:
94  vtkTreeMapView(const vtkTreeMapView&) = delete;
95  void operator=(const vtkTreeMapView&) = delete;
96 };
97 
98 #endif
vtkSquarifyLayoutStrategy
uses the squarify tree map layout algorithm
Definition: vtkSquarifyLayoutStrategy.h:46
vtkTreeMapView::~vtkTreeMapView
~vtkTreeMapView() override
vtkTreeMapView::SetFontSizeRange
virtual void SetFontSizeRange(const int maxSize, const int minSize, const int delta=4)
The sizes of the fonts used for labeling.
vtkSliceAndDiceLayoutStrategy
a horizontal and vertical slicing tree map layout
Definition: vtkSliceAndDiceLayoutStrategy.h:41
vtkTreeMapView
Displays a tree as a tree map.
Definition: vtkTreeMapView.h:60
vtkX3D::range
@ range
Definition: vtkX3D.h:244
vtkSmartPointer< vtkBoxLayoutStrategy >
vtkTreeMapView::vtkTreeMapView
vtkTreeMapView()
vtkBoxLayoutStrategy
a tree map layout that puts vertices in square-ish boxes
Definition: vtkBoxLayoutStrategy.h:39
vtkTreeMapView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTreeMapView::GetFontSizeRange
virtual void GetFontSizeRange(int range[3])
The sizes of the fonts used for labeling.
vtkTreeMapView::SetLayoutStrategyToSquarify
virtual void SetLayoutStrategyToSquarify()
Sets the treemap layout strategy.
vtkTreeMapView::SliceAndDiceLayout
vtkSmartPointer< vtkSliceAndDiceLayoutStrategy > SliceAndDiceLayout
Definition: vtkTreeMapView.h:90
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkTreeMapView::SetLayoutStrategy
void SetLayoutStrategy(vtkAreaLayoutStrategy *s) override
Sets the treemap layout strategy.
vtkTreeMapView::SetLayoutStrategyToSliceAndDice
virtual void SetLayoutStrategyToSliceAndDice()
Sets the treemap layout strategy.
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkTreeAreaView.h
vtkTreeMapView::SetLayoutStrategy
virtual void SetLayoutStrategy(const char *name)
Sets the treemap layout strategy.
vtkTreeMapView::BoxLayout
vtkSmartPointer< vtkBoxLayoutStrategy > BoxLayout
Definition: vtkTreeMapView.h:89
vtkTreeMapView::New
static vtkTreeMapView * New()
vtkTreeMapView::SetLayoutStrategyToBox
virtual void SetLayoutStrategyToBox()
Sets the treemap layout strategy.
vtkAreaLayoutStrategy
abstract superclass for all area layout strategies
Definition: vtkAreaLayoutStrategy.h:48
vtkTreeMapView::SquarifyLayout
vtkSmartPointer< vtkSquarifyLayoutStrategy > SquarifyLayout
Definition: vtkTreeMapView.h:91
vtkTreeAreaView
Accepts a graph and a hierarchy - currently a tree - and provides a hierarchy-aware display.
Definition: vtkTreeAreaView.h:54