/[escript]/trunk/pyvisi/py_src/ellipsoid.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/ellipsoid.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1158 by jongui, Tue May 22 04:24:01 2007 UTC revision 1197 by jongui, Mon Jun 18 02:08:34 2007 UTC
# Line 1  Line 1 
1  """  """
2  @author: John NGUI  @var __author__: name of author
3    @var __copyright__: copyrights
4    @var __license__: licence agreement
5    @var __url__: url entry point on documentation
6    @var __version__: version
7    @var __date__: date of the version
8  """  """
9    
10    __author__="John Ngui, john.ngui@uq.edu.au"
11    __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
12                        http://www.access.edu.au
13                    Primary Business: Queensland, Australia"""
14    __license__="""Licensed under the Open Software License version 3.0
15                 http://www.opensource.org/licenses/osl-3.0.php"""
16    __url__="http://www.iservo.edu.au/esys"
17    __version__="$Revision$"
18    __date__="$Date$"
19    
20    
21  import vtk  import vtk
22  from mapper import DataSetMapper  from mapper import DataSetMapper
23  from lookuptable import LookupTable  from lookuptable import LookupTable
# Line 141  class Ellipsoid(DataSetMapper, Actor3D, Line 157  class Ellipsoid(DataSetMapper, Actor3D,
157              if(self.__data_collector._isTensorSet() == True):              if(self.__data_collector._isTensorSet() == True):
158                  self.__data_collector._setActiveTensor()                  self.__data_collector._setActiveTensor()
159    
160              self._setScalarRange(self.__data_collector._getScalarRange())              # self._isScalarRangeSet checks whether the scalar range has been
161                # specified by the user. If it has, then the scalar range
162                # read from the source will be ignored.
163                if(not(self._isScalarRangeSet())):
164                    self._setScalarRange(self.__data_collector._getScalarRange())
165              self.__modified = False              self.__modified = False
166    
167    
# Line 286  class EllipsoidOnPlaneCut(DataSetMapper, Line 306  class EllipsoidOnPlaneCut(DataSetMapper,
306                  self.__data_collector._setActiveScalar()                  self.__data_collector._setActiveScalar()
307              if(self.__data_collector._isTensorSet() == True):              if(self.__data_collector._isTensorSet() == True):
308                  self.__data_collector._setActiveTensor()                  self.__data_collector._setActiveTensor()
309              self._setScalarRange(self.__data_collector._getScalarRange())  
310                # self._isScalarRangeSet checks whether the scalar range has been
311                # specified by the user. If it has, then the scalar range
312                # read from the source will be ignored.
313                if(not(self._isScalarRangeSet())):
314                    self._setScalarRange(self.__data_collector._getScalarRange())
315              self.__modified = False              self.__modified = False
316    
317    
# Line 435  class EllipsoidOnPlaneClip(DataSetMapper Line 460  class EllipsoidOnPlaneClip(DataSetMapper
460                  self.__data_collector._setActiveScalar()                  self.__data_collector._setActiveScalar()
461              if(self.__data_collector._isTensorSet() == True):              if(self.__data_collector._isTensorSet() == True):
462                  self.__data_collector._setActiveTensor()                  self.__data_collector._setActiveTensor()
463              self._setScalarRange(self.__data_collector._getScalarRange())  
464                # self._isScalarRangeSet checks whether the scalar range has been
465                # specified by the user. If it has, then the scalar range
466                # read from the source will be ignored.
467                if(not(self._isScalarRangeSet())):
468                    self._setScalarRange(self.__data_collector._getScalarRange())
469              self.__modified = False              self.__modified = False
470    
471    

Legend:
Removed from v.1158  
changed lines
  Added in v.1197

  ViewVC Help
Powered by ViewVC 1.1.26