00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00034 #ifndef __vtkRandomLayoutStrategy_h
00035 #define __vtkRandomLayoutStrategy_h
00036
00037 #include "vtkGraphLayoutStrategy.h"
00038
00039 class VTK_INFOVIS_EXPORT vtkRandomLayoutStrategy : public vtkGraphLayoutStrategy
00040 {
00041 public:
00042 static vtkRandomLayoutStrategy *New();
00043
00044 vtkTypeMacro(vtkRandomLayoutStrategy, vtkGraphLayoutStrategy);
00045 void PrintSelf(ostream& os, vtkIndent indent);
00046
00048
00051 vtkSetClampMacro(RandomSeed, int, 0, VTK_LARGE_INTEGER);
00052 vtkGetMacro(RandomSeed, int);
00054
00056
00059 vtkSetVector6Macro(GraphBounds,double);
00060 vtkGetVectorMacro(GraphBounds,double,6);
00062
00064
00067 vtkSetMacro(AutomaticBoundsComputation, int);
00068 vtkGetMacro(AutomaticBoundsComputation, int);
00069 vtkBooleanMacro(AutomaticBoundsComputation, int);
00071
00073
00075 vtkSetMacro(ThreeDimensionalLayout, int);
00076 vtkGetMacro(ThreeDimensionalLayout, int);
00077 vtkBooleanMacro(ThreeDimensionalLayout, int);
00079
00081 void SetGraph(vtkGraph *graph);
00082
00084 void Layout();
00085
00086 protected:
00087 vtkRandomLayoutStrategy();
00088 ~vtkRandomLayoutStrategy();
00089
00090 int RandomSeed;
00091 double GraphBounds[6];
00092 int AutomaticBoundsComputation;
00093 int ThreeDimensionalLayout;
00094 private:
00095
00096 vtkRandomLayoutStrategy(const vtkRandomLayoutStrategy&);
00097 void operator=(const vtkRandomLayoutStrategy&);
00098 };
00099
00100 #endif
00101