VTK
dox/Infovis/vtkAreaLayout.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkAreaLayout.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 -------------------------------------------------------------------------*/
00037 #ifndef __vtkAreaLayout_h
00038 #define __vtkAreaLayout_h
00039 
00040 #include "vtkTreeAlgorithm.h"
00041 
00042 class vtkAreaLayoutStrategy;
00043 
00044 class VTK_INFOVIS_EXPORT vtkAreaLayout : public vtkTreeAlgorithm
00045 {
00046 public:
00047   static vtkAreaLayout *New();
00048   vtkTypeMacro(vtkAreaLayout,vtkTreeAlgorithm);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00055   virtual void SetSizeArrayName(const char* name)
00056     { this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name); }
00058 
00060 
00064   vtkGetStringMacro(AreaArrayName);
00065   vtkSetStringMacro(AreaArrayName);
00067 
00069 
00071   vtkGetMacro(EdgeRoutingPoints, bool);
00072   vtkSetMacro(EdgeRoutingPoints, bool);
00073   vtkBooleanMacro(EdgeRoutingPoints, bool);
00075 
00077 
00078   vtkGetObjectMacro(LayoutStrategy, vtkAreaLayoutStrategy);
00079   void SetLayoutStrategy(vtkAreaLayoutStrategy * strategy);
00081 
00083   virtual unsigned long GetMTime();
00084 
00087   vtkIdType FindVertex(float pnt[2]);
00088 
00090   void GetBoundingArea(vtkIdType id, float *sinfo);
00091 
00092 protected:
00093   vtkAreaLayout();
00094   ~vtkAreaLayout();
00095 
00096   char* AreaArrayName;
00097   bool  EdgeRoutingPoints;
00098   char* EdgeRoutingPointsArrayName;
00099   vtkAreaLayoutStrategy* LayoutStrategy;
00100 
00101   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00102 
00103 private:
00104 
00105   vtkAreaLayout(const vtkAreaLayout&);  // Not implemented.
00106   void operator=(const vtkAreaLayout&);  // Not implemented.
00107 };
00108 
00109 #endif