Esempio n. 1
0
 def _getLimit(self, key):
     """
     Return the limit associated with the key
     
     .. Note::
        
        `MayaviClient` does not need the generality of multiple keys 
        because it is always 3D
     
     :Parameters:
       key
         a key string that identifies the limit of interest
         
     :Returns:
       the value of the limit or `None`
     """
     lim = _Viewer._getLimit(self, key)
     if lim is not None:
         return ["--%s" % key, str(lim)]
     else:
         return []
Esempio n. 2
0
 def _getLimit(self, keys):
     limit = _Viewer._getLimit(self, keys=keys)
     if limit is None:
         limit = 'e'
         
     return limit
Esempio n. 3
0
 def _getLimit(self, keys, default='e'):
     return _Viewer._getLimit(self, keys=keys, default=default)
Esempio n. 4
0
 def _getLimit(self, key):
     limit = _Viewer._getLimit(self, key)
     if limit is None:
         return ''
     else:
         return str(limit)
Esempio n. 5
0
 def _getLimit(self, key, default=''):
     return str(_Viewer._getLimit(self, key, default=default))