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