VTK
dox/Views/Infovis/vtkTreeMapView.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTreeMapView.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00035 #ifndef __vtkTreeMapView_h
00036 #define __vtkTreeMapView_h
00037 
00038 #include "vtkViewsInfovisModule.h" // For export macro
00039 #include "vtkTreeAreaView.h"
00040 
00041 class vtkBoxLayoutStrategy;
00042 class vtkSliceAndDiceLayoutStrategy;
00043 class vtkSquarifyLayoutStrategy;
00044 
00045 class VTKVIEWSINFOVIS_EXPORT vtkTreeMapView : public vtkTreeAreaView
00046 {
00047 public:
00048   static vtkTreeMapView *New();
00049   vtkTypeMacro(vtkTreeMapView, vtkTreeAreaView);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053 
00054   virtual void SetLayoutStrategy(vtkAreaLayoutStrategy* s);
00055   virtual void SetLayoutStrategy(const char* name);
00056   virtual void SetLayoutStrategyToBox();
00057   virtual void SetLayoutStrategyToSliceAndDice();
00058   virtual void SetLayoutStrategyToSquarify();
00060 
00062 
00063   virtual void SetFontSizeRange(
00064     const int maxSize, const int minSize, const int delta=4);
00065   virtual void GetFontSizeRange(int range[3]);
00067 
00068 protected:
00069   vtkTreeMapView();
00070   ~vtkTreeMapView();
00071 
00072   //BTX
00073   vtkSmartPointer<vtkBoxLayoutStrategy> BoxLayout;
00074   vtkSmartPointer<vtkSliceAndDiceLayoutStrategy> SliceAndDiceLayout;
00075   vtkSmartPointer<vtkSquarifyLayoutStrategy> SquarifyLayout;
00076   //ETX
00077 
00078 private:
00079   vtkTreeMapView(const vtkTreeMapView&);  // Not implemented.
00080   void operator=(const vtkTreeMapView&);  // Not implemented.
00081 };
00082 
00083 #endif