VTK
dox/Infovis/Layout/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 "vtkInfovisLayoutModule.h" // For export macro
00041 #include "vtkTreeAlgorithm.h"
00042 
00043 class vtkAreaLayoutStrategy;
00044 
00045 class VTKINFOVISLAYOUT_EXPORT vtkAreaLayout : public vtkTreeAlgorithm
00046 {
00047 public:
00048   static vtkAreaLayout *New();
00049   vtkTypeMacro(vtkAreaLayout,vtkTreeAlgorithm);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053 
00056   virtual void SetSizeArrayName(const char* name)
00057     { this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name); }
00059 
00061 
00065   vtkGetStringMacro(AreaArrayName);
00066   vtkSetStringMacro(AreaArrayName);
00068 
00070 
00072   vtkGetMacro(EdgeRoutingPoints, bool);
00073   vtkSetMacro(EdgeRoutingPoints, bool);
00074   vtkBooleanMacro(EdgeRoutingPoints, bool);
00076 
00078 
00079   vtkGetObjectMacro(LayoutStrategy, vtkAreaLayoutStrategy);
00080   void SetLayoutStrategy(vtkAreaLayoutStrategy * strategy);
00082 
00084   virtual unsigned long GetMTime();
00085 
00088   vtkIdType FindVertex(float pnt[2]);
00089 
00091   void GetBoundingArea(vtkIdType id, float *sinfo);
00092 
00093 protected:
00094   vtkAreaLayout();
00095   ~vtkAreaLayout();
00096 
00097   char* AreaArrayName;
00098   bool  EdgeRoutingPoints;
00099   char* EdgeRoutingPointsArrayName;
00100   vtkAreaLayoutStrategy* LayoutStrategy;
00101 
00102   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00103 
00104 private:
00105 
00106   vtkAreaLayout(const vtkAreaLayout&);  // Not implemented.
00107   void operator=(const vtkAreaLayout&);  // Not implemented.
00108 };
00109 
00110 #endif