00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00024 #ifndef __vtkSMProxyIterator_h
00025 #define __vtkSMProxyIterator_h
00026
00027 #include "vtkSMObject.h"
00028
00029
00030 struct vtkSMProxyIteratorInternals;
00031
00032
00033 class vtkSMProxyManager;
00034 class vtkSMProxy;
00035
00036 class VTK_EXPORT vtkSMProxyIterator : public vtkSMObject
00037 {
00038 public:
00039 static vtkSMProxyIterator* New();
00040 vtkTypeRevisionMacro(vtkSMProxyIterator, vtkSMObject);
00041 void PrintSelf(ostream& os, vtkIndent indent);
00042
00044 void Begin();
00045
00047 void Begin(const char* groupName);
00048
00050 int IsAtEnd();
00051
00053 void Next();
00054
00056 const char* GetGroup();
00057
00059 const char* GetKey();
00060
00062 vtkSMProxy* GetProxy();
00063
00065
00069 vtkSetMacro(Mode, int);
00070 vtkGetMacro(Mode, int);
00072
00073
00074 enum TraversalMode
00075 {
00076 GROUPS_ONLY=0,
00077 ONE_GROUP=1,
00078 ALL=2
00079 };
00080
00081
00082 protected:
00083 vtkSMProxyIterator();
00084 ~vtkSMProxyIterator();
00085
00086 int Mode;
00087
00088 virtual void SaveState(const char*, ostream*, vtkIndent) {}
00089
00090 private:
00091 vtkSMProxyIteratorInternals* Internals;
00092
00093 vtkSMProxyIterator(const vtkSMProxyIterator&);
00094 void operator=(const vtkSMProxyIterator&);
00095 };
00096
00097 #endif