00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkTreeMapLayout.h,v $ 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 -------------------------------------------------------------------------*/ 00045 #ifndef __vtkTreeMapLayout_h 00046 #define __vtkTreeMapLayout_h 00047 00048 00049 #include "vtkTreeAlgorithm.h" 00050 00051 class vtkTreeMapLayoutStrategy; 00052 00053 class VTK_INFOVIS_EXPORT vtkTreeMapLayout : public vtkTreeAlgorithm 00054 { 00055 public: 00056 static vtkTreeMapLayout *New(); 00057 00058 vtkTypeRevisionMacro(vtkTreeMapLayout,vtkTreeAlgorithm); 00059 void PrintSelf(ostream& os, vtkIndent indent); 00060 00062 00065 vtkGetStringMacro(RectanglesFieldName); 00066 vtkSetStringMacro(RectanglesFieldName); 00068 00070 00071 vtkGetObjectMacro(LayoutStrategy, vtkTreeMapLayoutStrategy); 00072 void SetLayoutStrategy(vtkTreeMapLayoutStrategy * strategy); 00074 00076 vtkIdType FindVertex(float pnt[2], float *binfo=0); 00077 00079 void GetBoundingBox(vtkIdType id, float *binfo); 00080 00082 virtual unsigned long GetMTime(); 00083 00084 protected: 00085 vtkTreeMapLayout(); 00086 ~vtkTreeMapLayout(); 00087 00088 char * RectanglesFieldName; 00089 vtkTreeMapLayoutStrategy* LayoutStrategy; 00090 00091 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00092 00093 private: 00094 00095 vtkTreeMapLayout(const vtkTreeMapLayout&); // Not implemented. 00096 void operator=(const vtkTreeMapLayout&); // Not implemented. 00097 }; 00098 00099 #endif