Back to index

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

List of all members.

Public Member Functions

def __init__
def __iter__
def next
def GetProxyName
def GetGroup
def __getattr__

Public Attributes

 SMIterator
 Group
 Key

Detailed Description

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

Definition at line 1693 of file paravisSM.py.


Constructor & Destructor Documentation

def paravisSM.ProxyDefinitionIterator.__init__ (   self,
  iter 
)

Definition at line 1698 of file paravisSM.py.

01698 
01699     def __init__(self, iter):
01700         self.SMIterator = iter
01701         if self.SMIterator:
01702             self.SMIterator.UnRegister(None)
01703             self.SMIterator.InitTraversal()
01704         self.Group = None
01705         self.Key = None


Member Function Documentation

returns attributes from the vtkPVProxyDefinitionIterator.

Definition at line 1729 of file paravisSM.py.

01729 
01730     def __getattr__(self, name):
01731         """returns attributes from the vtkPVProxyDefinitionIterator."""
01732         return getattr(self.SMIterator, name)
01733 

Definition at line 1706 of file paravisSM.py.

01706 
01707     def __iter__(self):
01708         return self

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

Definition at line 1724 of file paravisSM.py.

01724 
01725     def GetGroup(self):
01726         """Returns the group for the proxy definition last returned by the
01727         call to 'next()' """
01728         return self.Group

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

Definition at line 1719 of file paravisSM.py.

01719 
01720     def GetProxyName(self):
01721         """Returns the key for the proxy definition last returned by the call
01722         to 'next()' """
01723         return self.Key

Definition at line 1709 of file paravisSM.py.

01709 
01710     def next(self):
01711         if self.SMIterator.IsDoneWithTraversal():
01712             self.Group = None
01713             self.Key = None
01714             raise StopIteration
01715         self.Group = self.SMIterator.GetGroupName()
01716         self.Key = self.SMIterator.GetProxyName()
01717         self.SMIterator.GoToNextItem()
01718         return {"group": self.Group, "key":self.Key }


Member Data Documentation

Definition at line 1703 of file paravisSM.py.

Definition at line 1704 of file paravisSM.py.

Definition at line 1699 of file paravisSM.py.


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