/[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 943 by jongui, Mon Jan 29 07:22:43 2007 UTC revision 992 by jongui, Fri Feb 23 03:35:33 2007 UTC
# Line 15  from point import StructuredPoints Line 15  from point import StructuredPoints
15    
16  # NOTE: DataSetMapper, Actor3D, Arrow2D, Arrow3D, Glyph3D, StructuredPoints and  # NOTE: DataSetMapper, Actor3D, Arrow2D, Arrow3D, Glyph3D, StructuredPoints and
17  # Probe were inherited to allow access to their public methods from the driver.  # Probe were inherited to allow access to their public methods from the driver.
18  class Velocity(DataSetMapper, Actor3D, Arrow2D, Arrow3D,  Glyph3D, StructuredPoints, Probe):  class Velocity(DataSetMapper, Actor3D, Arrow2D, Arrow3D,  Glyph3D,
19            StructuredPoints, Probe):
20      """      """
21      Class that show a vector field using arrows.          Class that show a vector field using arrows.    
22      """      """
# Line 23  class Velocity(DataSetMapper, Actor3D, A Line 24  class Velocity(DataSetMapper, Actor3D, A
24      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
25      # This saves the user from specifying the viewport when there is only one.      # This saves the user from specifying the viewport when there is only one.
26      # If no vector field is specified, the first encountered in the file will      # If no vector field is specified, the first encountered in the file will
27      # be loaded automatically.      # be loaded automatically. If no lut is specified, the color scheme will
28      def __init__(self, scene, data_collector, vector = None,      # be used.
29              viewport = Viewport.SOUTH_WEST, outline = True,      def __init__(self, scene, data_collector, vector = None, scalar = None,
30              arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR,              arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR,
31              lut = Lut.COLOR):              viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):
32    
33          """          """
34          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
# Line 37  class Velocity(DataSetMapper, Actor3D, A Line 38  class Velocity(DataSetMapper, Actor3D, A
38          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
39          @type vector: String          @type vector: String
40          @param vector: Vector field to load from the source file          @param vector: Vector field to load from the source file
41          @type viewport: L{Viewport <constant.Viewport>} constant          @type scalar: String
42          @param viewport: Viewport in which the object is to be rendered on          @param scalar: Scalar field to load from the source file
         @type outline: Boolean  
         @param outline: Places an outline around the domain surface  
43          @type arrow: L{Arrow <constant.Arrow>} constant          @type arrow: L{Arrow <constant.Arrow>} constant
44          @param arrow: Type of arrow (two dimensional or three dimensional)          @param arrow: Type of arrow (two dimensional or three dimensional)
45          @type color_mode: L{ColorMode <constant.ColorMode>} constant          @type color_mode: L{ColorMode <constant.ColorMode>} constant
46          @param color_mode: Type of color mode          @param color_mode: Type of color mode
47            @type viewport: L{Viewport <constant.Viewport>} constant
48            @param viewport: Viewport in which objects are to be rendered on
49          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
50          @param lut: Lookup table color scheme          @param lut: Lookup table color scheme
51            @type outline: Boolean
52            @param outline: Places an outline around the domain surface
53          """          """
54    
55          # NOTE: Actor3D is inherited and there are two instances declared here.          # NOTE: Actor3D is inherited and there are two instances declared here.
# Line 61  class Velocity(DataSetMapper, Actor3D, A Line 64  class Velocity(DataSetMapper, Actor3D, A
64          # ----- Outline -----          # ----- Outline -----
65    
66          if(outline == True):          if(outline == True):
             #outline = Outline(Glyph3D._getOutput(self))  
67              outline = Outline(data_collector._getOutput())              outline = Outline(data_collector._getOutput())
68              DataSetMapper.__init__(self, outline._getOutput())              DataSetMapper.__init__(self, outline._getOutput())
69    
70              Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self))              Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self))
71              # Default outline color is black.              # Default outline color is black.
72              Actor3D.setColor(self, Color.BLACK)              Actor3D.setColor(self, Color.BLACK)
73    
74              # Default line width is 1.              # Default line width is 1.
75              Actor3D._setLineWidth(self, 1)              Actor3D._setLineWidth(self, 1)
76              scene._addActor3D(viewport, Actor3D._getActor3D(self))              scene._addActor3D(viewport, Actor3D._getActor3D(self))
77    
   
78          # ----- Velocity -----          # ----- Velocity -----
79    
80            # NOTE: Two 'ifs' were used instead of an if-elif because an active
81            # scalar and an active vector attribute may be specified at the same
82            # time. One may be for the color mode and the other for the
83            # scaling mode.
84          if(vector != None):          if(vector != None):
85              data_collector._setActiveVector(vector)              data_collector._setActiveVector(vector)
86            if(scalar != None):
87                data_collector._setActiveScalar(scalar)
88    
89          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
90          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
# Line 92  class Velocity(DataSetMapper, Actor3D, A Line 100  class Velocity(DataSetMapper, Actor3D, A
100          Probe.__init__(self, data_collector._getOutput(),          Probe.__init__(self, data_collector._getOutput(),
101                  StructuredPoints._getStructuredPoints(self))                  StructuredPoints._getStructuredPoints(self))
102    
   
103          if(arrow == Arrow.TWO_D): # Use 2D arrows.          if(arrow == Arrow.TWO_D): # Use 2D arrows.
104              Arrow2D.__init__(self)              Arrow2D.__init__(self)
             #Glyph3D.__init__(self, data_collector._getOutput(),  
105              Glyph3D.__init__(self, Probe._getOutput(self),              Glyph3D.__init__(self, Probe._getOutput(self),
106              #Glyph3D.__init__(self, MaskPoints._getOutput(self),                      Arrow2D._getOutput(self))
                     Arrow2D._getOutput(self), data_collector._getScalarRange())  
107          elif(arrow == Arrow.THREE_D): # Use 3D arrows.          elif(arrow == Arrow.THREE_D): # Use 3D arrows.
108              Arrow3D.__init__(self)              Arrow3D.__init__(self)
             #Glyph3D.__init__(self, data_collector._getOutput(),  
109              Glyph3D.__init__(self, Probe._getOutput(self),              Glyph3D.__init__(self, Probe._getOutput(self),
110              #Glyph3D.__init__(self, MaskPoints._getOutput(self),                      Arrow3D._getOutput(self))
                     Arrow3D._getOutput(self), data_collector._getScalarRange())  
111    
112          DataSetMapper.__init__(self, Glyph3D._getOutput(self),          DataSetMapper.__init__(self, Glyph3D._getOutput(self),
113                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
114    
115          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.
116              Glyph3D._setColorModeByVector(self)              Glyph3D._setColorModeByVector(self)
117                Glyph3D._setRange(self, data_collector._getVectorRange())
118              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
119                      data_collector._getVectorRange())                      data_collector._getVectorRange())
120          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.
121              Glyph3D._setColorModeByScalar(self)              Glyph3D._setColorModeByScalar(self)
122                Glyph3D._setRange(self, data_collector._getVectorRange())
123              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
124                      data_collector._getScalarRange())                      data_collector._getScalarRange())
125    
# Line 122  class Velocity(DataSetMapper, Actor3D, A Line 127  class Velocity(DataSetMapper, Actor3D, A
127          scene._addActor3D(viewport, Actor3D._getActor3D(self))          scene._addActor3D(viewport, Actor3D._getActor3D(self))
128    
129    
130    ###############################################################################
131    
132    
133  from transform import Transform  from transform import Transform
134  from plane import Plane  from plane import Plane
135  from cutter import Cutter  from cutter import Cutter
# Line 138  class VelocityOnPlaneCut(DataSetMapper, Line 146  class VelocityOnPlaneCut(DataSetMapper,
146      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
147      # This saves the user from specifying the viewport when there is only one.      # This saves the user from specifying the viewport when there is only one.
148      # If no vector field is specified, the first encountered in the file will      # If no vector field is specified, the first encountered in the file will
149      # be loaded automatically.      # be loaded automatically.  If no lut is specified, the color scheme will
150      def __init__(self, scene, data_collector, vector = None,      # be used.
151              viewport = Viewport.SOUTH_WEST, outline = True,      def __init__(self, scene, data_collector, vector = None, scalar = None,
152              arrow = Arrow.THREE_D, color_mode = ColorMode.VECTOR,              arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR,
153              lut = Lut.COLOR):              viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):
   
154          """          """
155          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
156          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
# Line 152  class VelocityOnPlaneCut(DataSetMapper, Line 159  class VelocityOnPlaneCut(DataSetMapper,
159          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
160          @type vector: String          @type vector: String
161          @param vector: Vector field to load from the source file          @param vector: Vector field to load from the source file
162          @type viewport: L{Viewport <constant.Viewport>} constant          @type scalar: String
163          @param viewport: Viewport in which the object is to be rendered on          @param scalar: Scalar field to load from the source file
         @type outline: Boolean  
         @param outline: Places an outline around the domain surface  
164          @type arrow: L{Arrow <constant.Arrow>} constant          @type arrow: L{Arrow <constant.Arrow>} constant
165          @param arrow: Type of arrow (two dimensional or three dimensional)          @param arrow: Type of arrow (two dimensional or three dimensional)
166          @type color_mode: L{ColorMode <constant.ColorMode>} constant          @type color_mode: L{ColorMode <constant.ColorMode>} constant
167          @param color_mode: Type of color mode          @param color_mode: Type of color mode
168            @type viewport: L{Viewport <constant.Viewport>} constant
169            @param viewport: Viewport in which objects are to be rendered on
170          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
171          @param lut: Lookup table color scheme          @param lut: Lookup table color scheme
172            @type outline: Boolean
173            @param outline: Places an outline around the domain surface
174          """          """
175    
176          # NOTE: Actor3D is inherited and there are two instances declared here.          # NOTE: Actor3D is inherited and there are two instances declared here.
# Line 176  class VelocityOnPlaneCut(DataSetMapper, Line 185  class VelocityOnPlaneCut(DataSetMapper,
185          # ----- Outline -----          # ----- Outline -----
186    
187          if(outline == True):          if(outline == True):
             #outline = Outline(Glyph3D._getOutput(self))  
188              outline = Outline(data_collector._getOutput())              outline = Outline(data_collector._getOutput())
189              DataSetMapper.__init__(self, outline._getOutput())              DataSetMapper.__init__(self, outline._getOutput())
190    
191              Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self))              Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self))
192              # Default outline color is black.              # Default outline color is black.
193              Actor3D.setColor(self, Color.BLACK)              Actor3D.setColor(self, Color.BLACK)
194    
195              # Default line width is 1.              # Default line width is 1.
196              Actor3D._setLineWidth(self, 1)              Actor3D._setLineWidth(self, 1)
197              scene._addActor3D(viewport, Actor3D._getActor3D(self))              scene._addActor3D(viewport, Actor3D._getActor3D(self))
198    
   
199          # ----- Velocity on a cut plane -----          # ----- Velocity on a cut plane -----
200    
201            # NOTE: Two 'ifs' were used instead of an if-elif because an active
202            # scalar and an active vector attribute may be specified at the same
203            # time. One may be for the color mode and the other for the
204            # scaling mode.
205          if(vector != None):          if(vector != None):
206              data_collector._setActiveVector(vector)              data_collector._setActiveVector(vector)
207            if(scalar != None):
208                data_collector._setActiveScalar(scalar)
209    
210          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
211          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
# Line 211  class VelocityOnPlaneCut(DataSetMapper, Line 225  class VelocityOnPlaneCut(DataSetMapper,
225                  StructuredPoints._getStructuredPoints(self))                  StructuredPoints._getStructuredPoints(self))
226    
227          Cutter.__init__(self, Probe._getOutput(self),          Cutter.__init__(self, Probe._getOutput(self),
         #Cutter.__init__(self, data_collector._getOutput(),  
228                  Plane._getPlane(self))                    Plane._getPlane(self))  
229    
230          if(arrow == Arrow.TWO_D): # Use 2D arrows.          if(arrow == Arrow.TWO_D): # Use 2D arrows.
231              Arrow2D.__init__(self)              Arrow2D.__init__(self)
232              Glyph3D.__init__(self, Cutter._getOutput(self),              Glyph3D.__init__(self, Cutter._getOutput(self),
233                      #Arrow2D._getOutput(self), data_collector._getVectorRange())                      Arrow2D._getOutput(self))
                     Arrow2D._getOutput(self), data_collector._getScalarRange())  
234          elif(arrow == Arrow.THREE_D): # Use 3D arrows.          elif(arrow == Arrow.THREE_D): # Use 3D arrows.
235              Arrow3D.__init__(self)              Arrow3D.__init__(self)
236              Glyph3D.__init__(self, Cutter._getOutput(self),              Glyph3D.__init__(self, Cutter._getOutput(self),
237                      #Arrow3D._getOutput(self), data_collector._getVectorRange())                      Arrow3D._getOutput(self))
                     Arrow3D._getOutput(self), data_collector._getScalarRange())  
238    
239          DataSetMapper.__init__(self, Glyph3D._getOutput(self),          DataSetMapper.__init__(self, Glyph3D._getOutput(self),
240                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
241    
242          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.
243              Glyph3D._setColorModeByVector(self)              Glyph3D._setColorModeByVector(self)
244                Glyph3D._setRange(self, data_collector._getVectorRange())
245              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
246                      data_collector._getVectorRange())                      data_collector._getVectorRange())
247          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.
248              Glyph3D._setColorModeByScalar(self)              Glyph3D._setColorModeByScalar(self)
249                Glyph3D._setRange(self, data_collector._getVectorRange())
250              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
251                      data_collector._getScalarRange())                      data_collector._getScalarRange())
252    
# Line 241  class VelocityOnPlaneCut(DataSetMapper, Line 254  class VelocityOnPlaneCut(DataSetMapper,
254          scene._addActor3D(viewport, Actor3D._getActor3D(self))          scene._addActor3D(viewport, Actor3D._getActor3D(self))
255    
256    
257    ###############################################################################
258    
259    
260  from clipper import Clipper  from clipper import Clipper
261    
262  # NOTE: DataSetMapper, Actor3D, Arrow2D, Arrow3D, Glyph3D, Transform, Plane,  # NOTE: DataSetMapper, Actor3D, Arrow2D, Arrow3D, Glyph3D, Transform, Plane,
# Line 255  class VelocityOnPlaneClip(DataSetMapper, Line 271  class VelocityOnPlaneClip(DataSetMapper,
271      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
272      # This saves the user from specifying the viewport when there is only one.      # This saves the user from specifying the viewport when there is only one.
273      # If no vector field is specified, the first encountered in the file will      # If no vector field is specified, the first encountered in the file will
274      # be loaded automatically.      # be loaded automatically.  If no lut is specified, the color scheme will
275      def __init__(self, scene, data_collector, vector = None,      # be used.
276              viewport = Viewport.SOUTH_WEST, outline = True,      def __init__(self, scene, data_collector, vector = None, scalar = None,
277              arrow = Arrow.THREE_D, color_mode = ColorMode.VECTOR,              arrow = Arrow.TWO_D, color_mode = ColorMode.VECTOR,
278              lut = Lut.COLOR):              viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):
   
279          """          """
280          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
281          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
# Line 269  class VelocityOnPlaneClip(DataSetMapper, Line 284  class VelocityOnPlaneClip(DataSetMapper,
284          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
285          @type vector: String          @type vector: String
286          @param vector: Vector field to load from the source file          @param vector: Vector field to load from the source file
287          @type viewport: L{Viewport <constant.Viewport>} constant          @type scalar: String
288          @param viewport: Viewport in which the object is to be rendered on          @param scalar: Scalar field to load from the source file
         @type outline: Boolean  
         @param outline: Places an outline around the domain surface  
289          @type arrow: L{Arrow <constant.Arrow>} constant          @type arrow: L{Arrow <constant.Arrow>} constant
290          @param arrow: Type of arrow (two dimensional or three dimensional)          @param arrow: Type of arrow (two dimensional or three dimensional)
291          @type color_mode: L{ColorMode <constant.ColorMode>} constant          @type color_mode: L{ColorMode <constant.ColorMode>} constant
292          @param color_mode: Type of color mode          @param color_mode: Type of color mode
293            @type viewport: L{Viewport <constant.Viewport>} constant
294            @param viewport: Viewport in which objects are to be rendered on
295          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
296          @param lut: Lookup table color scheme          @param lut: Lookup table color scheme
297            @type outline: Boolean
298            @param outline: Places an outline around the domain surface
299          """          """
300    
301          # NOTE: Actor3D is inherited and there are two instances declared here.          # NOTE: Actor3D is inherited and there are two instances declared here.
# Line 293  class VelocityOnPlaneClip(DataSetMapper, Line 310  class VelocityOnPlaneClip(DataSetMapper,
310          # ----- Outline -----          # ----- Outline -----
311    
312          if(outline == True):          if(outline == True):
             #outline = Outline(Glyph3D._getOutput(self))  
313              outline = Outline(data_collector._getOutput())              outline = Outline(data_collector._getOutput())
314              DataSetMapper.__init__(self, outline._getOutput())              DataSetMapper.__init__(self, outline._getOutput())
315    
316              Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self))              Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self))
317              # Default outline color is black.              # Default outline color is black.
318              Actor3D.setColor(self, Color.BLACK)              Actor3D.setColor(self, Color.BLACK)
319    
320              # Default line width is 1.              # Default line width is 1.
321              Actor3D._setLineWidth(self, 1)              Actor3D._setLineWidth(self, 1)
322              scene._addActor3D(viewport, Actor3D._getActor3D(self))              scene._addActor3D(viewport, Actor3D._getActor3D(self))
323    
   
324          # ----- Velocity on a clipped plane -----          # ----- Velocity on a clipped plane -----
325    
326            # NOTE: Two 'ifs' were used instead of an if-elif because an active
327            # scalar and an active vector attribute may be specified at the same
328            # time. One may be for the color mode and the other for the
329            # scaling mode.
330          if(vector != None):          if(vector != None):
331              data_collector._setActiveVector(vector)              data_collector._setActiveVector(vector)
332            if(scalar != None):
333                data_collector._setActiveScalar(scalar)
334    
335          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
336          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
# Line 327  class VelocityOnPlaneClip(DataSetMapper, Line 349  class VelocityOnPlaneClip(DataSetMapper,
349          Probe.__init__(self, data_collector._getOutput(),          Probe.__init__(self, data_collector._getOutput(),
350                  StructuredPoints._getStructuredPoints(self))                  StructuredPoints._getStructuredPoints(self))
351    
         #MaskPoints.__init__(self, data_collector._getOutput())  
   
352          # NOTE: Glyph3D must come before Clipper. Otherwise, the output will          # NOTE: Glyph3D must come before Clipper. Otherwise, the output will
353          # be incorrect.          # be incorrect.
354          if(arrow == Arrow.TWO_D): # Use 2D arrows.          if(arrow == Arrow.TWO_D): # Use 2D arrows.
355              Arrow2D.__init__(self)              Arrow2D.__init__(self)
356              #Glyph3D.__init__(self, data_collector._getOutput(),              #Glyph3D.__init__(self, data_collector._getOutput(),
357              Glyph3D.__init__(self, Probe._getOutput(self),              Glyph3D.__init__(self, Probe._getOutput(self),
358              #Glyph3D.__init__(self, MaskPoints._getOutput(self),                      Arrow2D._getOutput(self))
                     Arrow2D._getOutput(self), data_collector._getScalarRange())  
359          elif(arrow == Arrow.THREE_D): # Use 3D arrows.          elif(arrow == Arrow.THREE_D): # Use 3D arrows.
360              Arrow3D.__init__(self)              Arrow3D.__init__(self)
             #Glyph3D.__init__(self, data_collector._getOutput(),  
361              Glyph3D.__init__(self, Probe._getOutput(self),              Glyph3D.__init__(self, Probe._getOutput(self),
362              #Glyph3D.__init__(self, MaskPoints._getOutput(self),                      Arrow3D._getOutput(self))
                     Arrow3D._getOutput(self), data_collector._getScalarRange())  
   
363                    
364          # NOTE: Clipper must come after Glyph3D. Otherwise, the output will          # NOTE: Clipper must come after Glyph3D. Otherwise, the output will
365          # be incorrect.          # be incorrect.
# Line 356  class VelocityOnPlaneClip(DataSetMapper, Line 372  class VelocityOnPlaneClip(DataSetMapper,
372    
373          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.          if(color_mode == ColorMode.VECTOR): # Color velocity by vector.
374              Glyph3D._setColorModeByVector(self)              Glyph3D._setColorModeByVector(self)
375                Glyph3D._setRange(self, data_collector._getVectorRange())
376              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
377                      data_collector._getVectorRange())                      data_collector._getVectorRange())
378          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.          elif(color_mode == ColorMode.SCALAR): # Color velocity by scalar.
379              Glyph3D._setColorModeByScalar(self)              Glyph3D._setColorModeByScalar(self)
380                Glyph3D._setRange(self, data_collector._getVectorRange())
381              DataSetMapper._setScalarRange(self,              DataSetMapper._setScalarRange(self,
382                      data_collector._getScalarRange())                      data_collector._getScalarRange())
383    

Legend:
Removed from v.943  
changed lines
  Added in v.992

  ViewVC Help
Powered by ViewVC 1.1.26