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

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

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

revision 987 by jongui, Fri Feb 16 07:02:18 2007 UTC revision 988 by jongui, Tue Feb 20 07:21:12 2007 UTC
# Line 109  class Velocity(DataSetMapper, Actor3D, A Line 109  class Velocity(DataSetMapper, Actor3D, A
109                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
110    
111          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.
             print "vector .."  
112              Glyph3D._setColorModeByVector(self)              Glyph3D._setColorModeByVector(self)
113              Glyph3D._setRange(self, data_collector._getVectorRange())              Glyph3D._setRange(self, data_collector._getVectorRange())
114              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
115                      data_collector._getVectorRange())                      data_collector._getVectorRange())
             print data_collector._getVectorRange()  
116          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.
             print "scalar.."  
117              Glyph3D._setColorModeByScalar(self)              Glyph3D._setColorModeByScalar(self)
118              Glyph3D._setRange(self, data_collector._getVectorRange())              Glyph3D._setRange(self, data_collector._getVectorRange())
119              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
120                      data_collector._getScalarRange())                      data_collector._getScalarRange())
             print data_collector._getScalarRange()  
121    
122          Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self))          Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self))
123          scene._addActor3D(viewport, Actor3D._getActor3D(self))          scene._addActor3D(viewport, Actor3D._getActor3D(self))
# Line 237  class VelocityOnPlaneCut(DataSetMapper, Line 233  class VelocityOnPlaneCut(DataSetMapper,
233    
234          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.
235              Glyph3D._setColorModeByVector(self)              Glyph3D._setColorModeByVector(self)
236                Glyph3D._setRange(self, data_collector._getVectorRange())
237              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
238                      data_collector._getVectorRange())                      data_collector._getVectorRange())
239          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.
240              Glyph3D._setColorModeByScalar(self)              Glyph3D._setColorModeByScalar(self)
241                Glyph3D._setRange(self, data_collector._getVectorRange())
242              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
243                      data_collector._getScalarRange())                      data_collector._getScalarRange())
244    
# Line 362  class VelocityOnPlaneClip(DataSetMapper, Line 360  class VelocityOnPlaneClip(DataSetMapper,
360    
361          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.
362              Glyph3D._setColorModeByVector(self)              Glyph3D._setColorModeByVector(self)
363                Glyph3D._setRange(self, data_collector._getVectorRange())
364              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
365                      data_collector._getVectorRange())                      data_collector._getVectorRange())
366          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.
367              Glyph3D._setColorModeByScalar(self)              Glyph3D._setColorModeByScalar(self)
368                Glyph3D._setRange(self, data_collector._getVectorRange())
369              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
370                      data_collector._getScalarRange())                      data_collector._getScalarRange())
371    

Legend:
Removed from v.987  
changed lines
  Added in v.988

  ViewVC Help
Powered by ViewVC 1.1.26