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

Diff of /trunk/pyvisi/py_src/streamline.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 1189 by jongui, Thu Jun 7 05:31:25 2007 UTC
# Line 158  class StreamLine(DataSetMapper, Actor3D, Line 158  class StreamLine(DataSetMapper, Actor3D,
158              if(self.__color_mode == ColorMode.VECTOR):                            if(self.__color_mode == ColorMode.VECTOR):              
159                  self._setScalarVisibilityOn()                  self._setScalarVisibilityOn()
160                  self._setSpeedScalarsOn()                  self._setSpeedScalarsOn()
161                  self._setScalarRange(self.__data_collector._getVectorRange())  
162                    # self._isScalarRangeSet checks whether the scalar range has
163                    # beenspecified by the user. If it has, then the scalar range
164                    # read from the source will be ignored.
165                    if(not(self._isScalarRangeSet())):
166                        self._setScalarRange(\
167                                self.__data_collector._getVectorRange())
168              # Color streamline by scalar.              # Color streamline by scalar.
169              elif(self.__color_mode == ColorMode.SCALAR):                              elif(self.__color_mode == ColorMode.SCALAR):                
170                  self._setScalarVisibilityOn()                  self._setScalarVisibilityOn()
171                  self._setSpeedScalarsOff()                  self._setSpeedScalarsOff()
172                  self._setScalarRange(self.__data_collector._getScalarRange())  
173                    # self._isScalarRangeSet checks whether the scalar range has
174                    # beenspecified by the user. If it has, then the scalar range
175                    # read from the source will be ignored.
176                    if(not(self._isScalarRangeSet())):
177                        self._setScalarRange(\
178                                self.__data_collector._getScalarRange())
179    
180              self.__modified = False              self.__modified = False
181    

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

  ViewVC Help
Powered by ViewVC 1.1.26