/[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 1148 by jongui, Wed May 16 22:45:33 2007 UTC revision 1158 by jongui, Tue May 22 04:24:01 2007 UTC
# Line 59  class Velocity(DataSetMapper, Actor3D, A Line 59  class Velocity(DataSetMapper, Actor3D, A
59          @param outline: Places an outline around the domain surface          @param outline: Places an outline around the domain surface
60          """          """
61    
         self.__scene = scene  
62          self.__data_collector = data_collector          self.__data_collector = data_collector
63          self.__arrow = arrow          self.__arrow = arrow
64          self.__color_mode = color_mode          self.__color_mode = color_mode
# Line 91  class Velocity(DataSetMapper, Actor3D, A Line 90  class Velocity(DataSetMapper, Actor3D, A
90    
91              # Default line width is 1.              # Default line width is 1.
92              actor3D._setLineWidth(1)              actor3D._setLineWidth(1)
93              self.__scene._addActor3D(self.__viewport, actor3D._getActor3D())              scene._addActor3D(self.__viewport, actor3D._getActor3D())
94    
95          # ----- Velocity -----          # ----- Velocity -----
96    
# Line 125  class Velocity(DataSetMapper, Actor3D, A Line 124  class Velocity(DataSetMapper, Actor3D, A
124                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
125    
126          self._setupActor3D(self._getDataSetMapper())          self._setupActor3D(self._getDataSetMapper())
127          self.__scene._addActor3D(self.__viewport, self._getActor3D())          scene._addActor3D(self.__viewport, self._getActor3D())
128    
129      def _isModified(self):        def _isModified(self):  
130          """          """
# Line 137  class Velocity(DataSetMapper, Actor3D, A Line 136  class Velocity(DataSetMapper, Actor3D, A
136    
137          return self.__modified or self.__data_collector._isModified()          return self.__modified or self.__data_collector._isModified()
138    
139      def _render(self):      def _render(self, scene):
140          """          """
141          Render the velocity.          Render the velocity.
142    
143            @type scene: L{Scene <scene.Scene>} object
144            @param scene: Scene in which objects are to be rendered on
145          """          """
146    
147          if (self._isModified() == True):          if (self._isModified() == True):
# Line 213  class VelocityOnPlaneCut(DataSetMapper, Line 215  class VelocityOnPlaneCut(DataSetMapper,
215          @param outline: Places an outline around the domain surface          @param outline: Places an outline around the domain surface
216          """          """
217    
         self.__scene = scene  
218          self.__data_collector = data_collector          self.__data_collector = data_collector
219          self.__arrow = arrow          self.__arrow = arrow
220          self.__color_mode = color_mode          self.__color_mode = color_mode
# Line 249  class VelocityOnPlaneCut(DataSetMapper, Line 250  class VelocityOnPlaneCut(DataSetMapper,
250    
251              # Default line width is 1.              # Default line width is 1.
252              actor3D._setLineWidth(1)              actor3D._setLineWidth(1)
253              self.__scene._addActor3D(self.__viewport, actor3D._getActor3D())              scene._addActor3D(self.__viewport, actor3D._getActor3D())
254    
255          # ----- Velocity on a cut plane -----          # ----- Velocity on a cut plane -----
256    
# Line 288  class VelocityOnPlaneCut(DataSetMapper, Line 289  class VelocityOnPlaneCut(DataSetMapper,
289                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
290    
291          self._setupActor3D(self._getDataSetMapper())          self._setupActor3D(self._getDataSetMapper())
292          self.__scene._addActor3D(self.__viewport, self._getActor3D())          scene._addActor3D(self.__viewport, self._getActor3D())
293            
294      def _isModified(self):        def _isModified(self):  
295          """          """
# Line 301  class VelocityOnPlaneCut(DataSetMapper, Line 302  class VelocityOnPlaneCut(DataSetMapper,
302    
303          return self.__modified or self.__data_collector._isModified()          return self.__modified or self.__data_collector._isModified()
304    
305      def _render(self):      def _render(self, scene):
306          """          """
307          Render the velocity cut using a plane..          Render the velocity cut using a plane.
308    
309            @type scene: L{Scene <scene.Scene>} object
310            @param scene: Scene in which objects are to be rendered on
311          """          """
312    
313          if (self._isModified() == True):          if (self._isModified() == True):
# Line 372  class VelocityOnPlaneClip(DataSetMapper, Line 376  class VelocityOnPlaneClip(DataSetMapper,
376          @param outline: Places an outline around the domain surface          @param outline: Places an outline around the domain surface
377          """          """
378    
         self.__scene = scene  
379          self.__data_collector = data_collector          self.__data_collector = data_collector
380          self.__arrow = arrow          self.__arrow = arrow
381          self.__color_mode = color_mode          self.__color_mode = color_mode
# Line 408  class VelocityOnPlaneClip(DataSetMapper, Line 411  class VelocityOnPlaneClip(DataSetMapper,
411    
412              # Default line width is 1.              # Default line width is 1.
413              actor3D._setLineWidth(1)              actor3D._setLineWidth(1)
414              self.__scene._addActor3D(self.__viewport, actor3D._getActor3D())              scene._addActor3D(self.__viewport, actor3D._getActor3D())
415    
416          # ----- Velocity on a clipped plane -----          # ----- Velocity on a clipped plane -----
417    
# Line 452  class VelocityOnPlaneClip(DataSetMapper, Line 455  class VelocityOnPlaneClip(DataSetMapper,
455                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
456    
457          self._setupActor3D(self._getDataSetMapper())          self._setupActor3D(self._getDataSetMapper())
458          self.__scene._addActor3D(self.__viewport, self._getActor3D())          scene._addActor3D(self.__viewport, self._getActor3D())
459            
460      def _isModified(self):        def _isModified(self):  
461          """          """
# Line 465  class VelocityOnPlaneClip(DataSetMapper, Line 468  class VelocityOnPlaneClip(DataSetMapper,
468    
469          return self.__modified or self.__data_collector._isModified()          return self.__modified or self.__data_collector._isModified()
470    
471      def _render(self):      def _render(self, scene):
472          """          """
473          Render the velocity clip using a plane..          Render the velocity clip using a plane..
474    
475            @type scene: L{Scene <scene.Scene>} object
476            @param scene: Scene in which objects are to be rendered on
477          """          """
478    
479          if (self._isModified() == True):          if (self._isModified() == True):

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

  ViewVC Help
Powered by ViewVC 1.1.26