00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00042 #ifndef __vtkTreeLayoutStrategy_h
00043 #define __vtkTreeLayoutStrategy_h
00044
00045 #include "vtkGraphLayoutStrategy.h"
00046
00047 class VTK_INFOVIS_EXPORT vtkTreeLayoutStrategy : public vtkGraphLayoutStrategy
00048 {
00049 public:
00050 static vtkTreeLayoutStrategy *New();
00051
00052 vtkTypeRevisionMacro(vtkTreeLayoutStrategy, vtkGraphLayoutStrategy);
00053 void PrintSelf(ostream& os, vtkIndent indent);
00054
00056 void Layout();
00057
00059
00062 vtkSetClampMacro(Angle, double, 0, 360);
00063 vtkGetMacro(Angle, double);
00065
00067
00070 vtkSetMacro(Radial, bool);
00071 vtkGetMacro(Radial, bool);
00072 vtkBooleanMacro(Radial, bool);
00074
00076
00080 vtkSetMacro(LogSpacingValue, double);
00081 vtkGetMacro(LogSpacingValue, double);
00083
00085
00088 vtkSetClampMacro(LeafSpacing, double, 0.0, 1.0);
00089 vtkGetMacro(LeafSpacing, double);
00091
00093
00094 vtkSetStringMacro(DistanceArrayName);
00095 vtkGetStringMacro(DistanceArrayName);
00097
00098 protected:
00099 vtkTreeLayoutStrategy();
00100 ~vtkTreeLayoutStrategy();
00101
00102 double Angle;
00103 bool Radial;
00104 double LogSpacingValue;
00105 double LeafSpacing;
00106 char *DistanceArrayName;
00107
00108 private:
00109
00110 vtkTreeLayoutStrategy(const vtkTreeLayoutStrategy&);
00111 void operator=(const vtkTreeLayoutStrategy&);
00112 };
00113
00114 #endif
00115