VTK
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 -------------------------------------------------------------------------*/
30 #ifndef vtkTreeMapView_h
31 #define vtkTreeMapView_h
32 
33 #include "vtkViewsInfovisModule.h" // For export macro
34 #include "vtkTreeAreaView.h"
35 
39 
40 class VTKVIEWSINFOVIS_EXPORT vtkTreeMapView : public vtkTreeAreaView
41 {
42 public:
43  static vtkTreeMapView *New();
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
48 
51  void SetLayoutStrategy(vtkAreaLayoutStrategy* s) VTK_OVERRIDE;
52  virtual void SetLayoutStrategy(const char* name);
53  virtual void SetLayoutStrategyToBox();
54  virtual void SetLayoutStrategyToSliceAndDice();
55  virtual void SetLayoutStrategyToSquarify();
57 
59 
62  virtual void SetFontSizeRange(
63  const int maxSize, const int minSize, const int delta=4);
64  virtual void GetFontSizeRange(int range[3]);
66 
67 protected:
69  ~vtkTreeMapView() VTK_OVERRIDE;
70 
74 
75 private:
76  vtkTreeMapView(const vtkTreeMapView&) VTK_DELETE_FUNCTION;
77  void operator=(const vtkTreeMapView&) VTK_DELETE_FUNCTION;
78 };
79 
80 #endif
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
Hold a reference to a vtkObjectBase instance.
a simple class to control print indentation
Definition: vtkIndent.h:33
uses the squarify tree map layout algorithm
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