VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Infovis/Layout/vtkSpanTreeLayoutStrategy.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkSpanTreeLayoutStrategy.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 //-------------------------------------------------------------------------
00020 
00064 #ifndef vtkSpanTreeLayoutStrategy_h
00065 #define vtkSpanTreeLayoutStrategy_h
00066 
00067 #include "vtkInfovisLayoutModule.h" // For export macro
00068 #include "vtkGraphLayoutStrategy.h"
00069 
00070 class VTKINFOVISLAYOUT_EXPORT vtkSpanTreeLayoutStrategy : public vtkGraphLayoutStrategy
00071 {
00072 public:
00073   static vtkSpanTreeLayoutStrategy *New();
00074 
00075   vtkTypeMacro(vtkSpanTreeLayoutStrategy, vtkGraphLayoutStrategy);
00076   void PrintSelf(ostream& os, vtkIndent indent);
00077 
00079 
00083   vtkSetMacro(DepthFirstSpanningTree, bool);
00084   vtkGetMacro(DepthFirstSpanningTree, bool);
00085   vtkBooleanMacro(DepthFirstSpanningTree, bool);
00087 
00089   void Layout();
00090 
00091 protected:
00092   vtkSpanTreeLayoutStrategy();
00093   ~vtkSpanTreeLayoutStrategy();
00094 
00095   vtkGraphLayoutStrategy *TreeLayout;
00096   bool DepthFirstSpanningTree;
00097 
00098 private:
00099   vtkSpanTreeLayoutStrategy(const vtkSpanTreeLayoutStrategy&);  // Not implemented.
00100   void operator=(const vtkSpanTreeLayoutStrategy&);  // Not implemented.
00101 };
00102 
00103 #endif
00104