Back to index

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

List of all members.

Public Member Functions

def __init__
def __iter__
def next
def GetProxy
def GetKey
def GetProperty
def __getattr__

Public Attributes

 SMIterator
 Key
 PropertyLabel
 Proxy

Detailed Description

Wrapper for a vtkSMPropertyIterator class to satisfy
   the python iterator protocol. Note that the list of
   properties can also be obtained from the class object's
   dictionary.
   See the doxygen documentation for vtkSMPropertyIterator C++
   class for details.

Definition at line 1642 of file paravisSM.py.


Constructor & Destructor Documentation

def paravisSM.PropertyIterator.__init__ (   self,
  aProxy 
)

Definition at line 1651 of file paravisSM.py.

01651 
01652     def __init__(self, aProxy):
01653         self.SMIterator = aProxy.NewPropertyIterator()
01654         if self.SMIterator:
01655             self.SMIterator.UnRegister(None)
01656             self.SMIterator.Begin()
01657         self.Key = None
01658         self.PropertyLabel = None
01659         self.Proxy = aProxy


Member Function Documentation

def paravisSM.PropertyIterator.__getattr__ (   self,
  name 
)
returns attributes from the vtkSMPropertyIterator.

Definition at line 1689 of file paravisSM.py.

01689 
01690     def __getattr__(self, name):
01691         """returns attributes from the vtkSMPropertyIterator."""
01692         return getattr(self.SMIterator, name)

Definition at line 1660 of file paravisSM.py.

01660 
01661     def __iter__(self):
01662         return self

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

Definition at line 1680 of file paravisSM.py.

01680 
01681     def GetKey(self):
01682         """Returns the key for the property last returned by the call to
01683         'next()' """
01684         return self.Key

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

Definition at line 1685 of file paravisSM.py.

01685 
01686     def GetProperty(self):
01687         """Returns the property last returned by the call to 'next()' """
01688         return self.Proxy.GetProperty(self.Key)

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

Definition at line 1675 of file paravisSM.py.

01675 
01676     def GetProxy(self):
01677         """Returns the proxy for the property last returned by the call to
01678         'next()'"""
01679         return self.Proxy

Definition at line 1663 of file paravisSM.py.

01663 
01664     def next(self):
01665         if not self.SMIterator:
01666             raise StopIteration
01667 
01668         if self.SMIterator.IsAtEnd():
01669             self.Key = None
01670             raise StopIteration
01671         self.Key = self.SMIterator.GetKey()
01672         self.PropertyLabel = self.SMIterator.GetPropertyLabel()
01673         self.SMIterator.Next()
01674         return self.Proxy.GetProperty(self.Key)


Member Data Documentation

Definition at line 1656 of file paravisSM.py.

Definition at line 1657 of file paravisSM.py.

Definition at line 1658 of file paravisSM.py.

Definition at line 1652 of file paravisSM.py.


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