/[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 972 by jongui, Fri Feb 2 05:33:05 2007 UTC revision 973 by jongui, Thu Feb 15 04:06:23 2007 UTC
# Line 95  class Velocity(DataSetMapper, Actor3D, A Line 95  class Velocity(DataSetMapper, Actor3D, A
95          if(arrow == Arrow.TWO_D): # Use 2D arrows.          if(arrow == Arrow.TWO_D): # Use 2D arrows.
96              Arrow2D.__init__(self)              Arrow2D.__init__(self)
97              Glyph3D.__init__(self, Probe._getOutput(self),              Glyph3D.__init__(self, Probe._getOutput(self),
98                      Arrow2D._getOutput(self), data_collector._getScalarRange())                      Arrow2D._getOutput(self))
99          elif(arrow == Arrow.THREE_D): # Use 3D arrows.          elif(arrow == Arrow.THREE_D): # Use 3D arrows.
100              Arrow3D.__init__(self)              Arrow3D.__init__(self)
101              Glyph3D.__init__(self, Probe._getOutput(self),              Glyph3D.__init__(self, Probe._getOutput(self),
102                      Arrow3D._getOutput(self), data_collector._getScalarRange())                      Arrow3D._getOutput(self))
103    
104          DataSetMapper.__init__(self, Glyph3D._getOutput(self),          DataSetMapper.__init__(self, Glyph3D._getOutput(self),
105                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
106    
107          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.
108                print "vector .."
109              Glyph3D._setColorModeByVector(self)              Glyph3D._setColorModeByVector(self)
110                Glyph3D._setRange(self, data_collector._getVectorRange())
111              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
112                      data_collector._getVectorRange())                      data_collector._getVectorRange())
113                print data_collector._getVectorRange()
114          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.
115                print "scalar.."
116              Glyph3D._setColorModeByScalar(self)              Glyph3D._setColorModeByScalar(self)
117                Glyph3D._setRange(self, data_collector._getScalarRange())
118              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
119                      data_collector._getScalarRange())                      data_collector._getScalarRange())
120                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))

Legend:
Removed from v.972  
changed lines
  Added in v.973

  ViewVC Help
Powered by ViewVC 1.1.26