Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Servers/ServerManager/vtkSMProxyIterator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkSMProxyIterator.h,v $
00005 
00006   Copyright (c) Kitware, Inc.
00007   All rights reserved.
00008   See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00024 #ifndef __vtkSMProxyIterator_h
00025 #define __vtkSMProxyIterator_h
00026 
00027 #include "vtkSMObject.h"
00028 
00029 //BTX
00030 struct vtkSMProxyIteratorInternals;
00031 //ETX
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 //BTX
00074   enum TraversalMode
00075   {
00076     GROUPS_ONLY=0,
00077     ONE_GROUP=1,
00078     ALL=2
00079   };
00080 //ETX
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&); // Not implemented
00094   void operator=(const vtkSMProxyIterator&); // Not implemented
00095 };
00096 
00097 #endif

Generated on Tue May 30 12:31:49 2006 for ParaView by doxygen 1.3.5