00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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&);
00114 void operator=(const vtkTreeLayoutStrategy&);
00115 };
00116
00117 #endif
00118