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 "vtkTreeAreaView.h" 00039 00040 class vtkBoxLayoutStrategy; 00041 class vtkSliceAndDiceLayoutStrategy; 00042 class vtkSquarifyLayoutStrategy; 00043 00044 class VTK_VIEWS_EXPORT vtkTreeMapView : public vtkTreeAreaView 00045 { 00046 public: 00047 static vtkTreeMapView *New(); 00048 vtkTypeMacro(vtkTreeMapView, vtkTreeAreaView); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 00053 virtual void SetLayoutStrategy(vtkAreaLayoutStrategy* s); 00054 virtual void SetLayoutStrategy(const char* name); 00055 virtual void SetLayoutStrategyToBox(); 00056 virtual void SetLayoutStrategyToSliceAndDice(); 00057 virtual void SetLayoutStrategyToSquarify(); 00059 00061 00062 virtual void SetFontSizeRange( 00063 const int maxSize, const int minSize, const int delta=4); 00064 virtual void GetFontSizeRange(int range[3]); 00066 00067 protected: 00068 vtkTreeMapView(); 00069 ~vtkTreeMapView(); 00070 00071 //BTX 00072 vtkSmartPointer<vtkBoxLayoutStrategy> BoxLayout; 00073 vtkSmartPointer<vtkSliceAndDiceLayoutStrategy> SliceAndDiceLayout; 00074 vtkSmartPointer<vtkSquarifyLayoutStrategy> SquarifyLayout; 00075 //ETX 00076 00077 private: 00078 vtkTreeMapView(const vtkTreeMapView&); // Not implemented. 00079 void operator=(const vtkTreeMapView&); // Not implemented. 00080 }; 00081 00082 #endif