VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTreeLayoutStrategy.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 __vtkTreeLayoutStrategy_h 00046 #define __vtkTreeLayoutStrategy_h 00047 00048 #include "vtkGraphLayoutStrategy.h" 00049 00050 class VTK_INFOVIS_EXPORT vtkTreeLayoutStrategy : public vtkGraphLayoutStrategy 00051 { 00052 public: 00053 static vtkTreeLayoutStrategy *New(); 00054 00055 vtkTypeMacro(vtkTreeLayoutStrategy, vtkGraphLayoutStrategy); 00056 void PrintSelf(ostream& os, vtkIndent indent); 00057 00059 void Layout(); 00060 00062 00065 vtkSetClampMacro(Angle, double, 0, 360); 00066 vtkGetMacro(Angle, double); 00068 00070 00073 vtkSetMacro(Radial, bool); 00074 vtkGetMacro(Radial, bool); 00075 vtkBooleanMacro(Radial, bool); 00077 00079 00083 vtkSetMacro(LogSpacingValue, double); 00084 vtkGetMacro(LogSpacingValue, double); 00086 00088 00091 vtkSetClampMacro(LeafSpacing, double, 0.0, 1.0); 00092 vtkGetMacro(LeafSpacing, double); 00094 00096 00097 vtkSetStringMacro(DistanceArrayName); 00098 vtkGetStringMacro(DistanceArrayName); 00100 00101 protected: 00102 vtkTreeLayoutStrategy(); 00103 ~vtkTreeLayoutStrategy(); 00104 00105 double Angle; 00106 bool Radial; 00107 double LogSpacingValue; 00108 double LeafSpacing; 00109 char *DistanceArrayName; 00110 00111 private: 00112 00113 vtkTreeLayoutStrategy(const vtkTreeLayoutStrategy&); // Not implemented. 00114 void operator=(const vtkTreeLayoutStrategy&); // Not implemented. 00115 }; 00116 00117 #endif 00118