00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00036 #ifndef __vtkGraphLayout_h
00037 #define __vtkGraphLayout_h
00038
00039 #include "vtkGraphAlgorithm.h"
00040
00041 class vtkAbstractTransform;
00042 class vtkEventForwarderCommand;
00043 class vtkGraphLayoutStrategy;
00044
00045 class VTK_INFOVIS_EXPORT vtkGraphLayout : public vtkGraphAlgorithm
00046 {
00047 public:
00048 static vtkGraphLayout *New();
00049 vtkTypeRevisionMacro(vtkGraphLayout, vtkGraphAlgorithm);
00050 void PrintSelf(ostream& os, vtkIndent indent);
00051
00053
00054 void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy);
00055 vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
00057
00059 virtual int IsLayoutComplete();
00060
00062 virtual unsigned long GetMTime();
00063
00065
00068 vtkGetMacro(ZRange, double);
00069 vtkSetMacro(ZRange, double);
00071
00073
00074 vtkGetObjectMacro(Transform, vtkAbstractTransform);
00075 virtual void SetTransform(vtkAbstractTransform* t);
00077
00079
00080 vtkSetMacro(UseTransform, bool);
00081 vtkGetMacro(UseTransform, bool);
00082 vtkBooleanMacro(UseTransform, bool);
00084
00085 protected:
00086 vtkGraphLayout();
00087 ~vtkGraphLayout();
00088
00089 vtkGraphLayoutStrategy* LayoutStrategy;
00090
00093 vtkEventForwarderCommand *EventForwarder;
00094
00095 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00096
00097 private:
00098
00099 vtkGraph* LastInput;
00100 vtkGraph* InternalGraph;
00101 unsigned long LastInputMTime;
00102 bool StrategyChanged;
00103 double ZRange;
00104 vtkAbstractTransform* Transform;
00105 bool UseTransform;
00106
00107 vtkGraphLayout(const vtkGraphLayout&);
00108 void operator=(const vtkGraphLayout&);
00109 };
00110
00111 #endif