Back to index

salome-paravis  6.5.0
Public Member Functions | Public Attributes
paravisSM.ProxyIterator Class Reference

List of all members.

Public Member Functions

def __init__
def __iter__
def next
def GetProxy
def GetKey
def GetGroup
def __getattr__

Public Attributes

 SMIterator
 AProxy
 Group
 Key

Detailed Description

Wrapper for a vtkSMProxyIterator class to satisfy the
 python iterator protocol.
 See the doxygen documentation of vtkSMProxyIterator C++ class for
 more information.

Definition at line 1734 of file paravisSM.py.


Constructor & Destructor Documentation

Definition at line 1740 of file paravisSM.py.

01740 
01741     def __init__(self):
01742         self.SMIterator = vtkSMProxyIterator()
01743         self.SMIterator.SetSession(ActiveConnection.Session)
01744         self.SMIterator.Begin()
01745         self.AProxy = None
01746         self.Group = None
01747         self.Key = None


Member Function Documentation

def paravisSM.ProxyIterator.__getattr__ (   self,
  name 
)
returns attributes from the vtkSMProxyIterator.

Definition at line 1778 of file paravisSM.py.

01778 
01779     def __getattr__(self, name):
01780         """returns attributes from the vtkSMProxyIterator."""
01781         return getattr(self.SMIterator, name)
01782 
01783 # Caution: Observers must be global methods otherwise we run into memory
#          leak when the interpreter get reset from the C++ layer.

Definition at line 1748 of file paravisSM.py.

01748 
01749     def __iter__(self):
01750         return self

Returns the group for the proxy last returned by the call to
'next()' 

Definition at line 1773 of file paravisSM.py.

01773 
01774     def GetGroup(self):
01775         """Returns the group for the proxy last returned by the call to
01776         'next()' """
01777         return self.Group

Returns the key for the proxy last returned by the call to
'next()' 

Definition at line 1768 of file paravisSM.py.

01768 
01769     def GetKey(self):
01770         """Returns the key for the proxy last returned by the call to
01771         'next()' """
01772         return self.Key

Returns the proxy last returned by the call to 'next()'

Definition at line 1764 of file paravisSM.py.

01764 
01765     def GetProxy(self):
01766         """Returns the proxy last returned by the call to 'next()'"""
01767         return self.AProxy

Definition at line 1751 of file paravisSM.py.

01751 
01752     def next(self):
01753         if self.SMIterator.IsAtEnd():
01754             self.AProxy = None
01755             self.Group = None
01756             self.Key = None
01757             raise StopIteration
01758             return None
01759         self.AProxy = _getPyProxy(self.SMIterator.GetProxy())
01760         self.Group = self.SMIterator.GetGroup()
01761         self.Key = self.SMIterator.GetKey()
01762         self.SMIterator.Next()
01763         return self.AProxy

Here is the call graph for this function:


Member Data Documentation

Definition at line 1744 of file paravisSM.py.

Definition at line 1745 of file paravisSM.py.

Definition at line 1746 of file paravisSM.py.

Definition at line 1741 of file paravisSM.py.


The documentation for this class was generated from the following file: