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

Diff of /trunk/pyvisi/py_src/ellipsoid.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 53  class Ellipsoid(DataSetMapper, Actor3D, Line 53  class Ellipsoid(DataSetMapper, Actor3D,
53          @param outline: Places an outline around the domain surface          @param outline: Places an outline around the domain surface
54          """          """
55    
         self.__scene = scene  
56          self.__data_collector = data_collector          self.__data_collector = data_collector
57          self.__viewport = viewport          self.__viewport = viewport
58          self.__lut = lut          self.__lut = lut
# Line 86  class Ellipsoid(DataSetMapper, Actor3D, Line 85  class Ellipsoid(DataSetMapper, Actor3D,
85    
86              # Default line width is 1.              # Default line width is 1.
87              actor3D._setLineWidth(1)              actor3D._setLineWidth(1)
88              self.__scene._addActor3D(self.__viewport, actor3D._getActor3D())              scene._addActor3D(self.__viewport, actor3D._getActor3D())
89    
90          # ----- Ellipsoid -----          # ----- Ellipsoid -----
91    
# Line 116  class Ellipsoid(DataSetMapper, Actor3D, Line 115  class Ellipsoid(DataSetMapper, Actor3D,
115                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
116    
117          self._setupActor3D(self._getDataSetMapper())          self._setupActor3D(self._getDataSetMapper())
118          self.__scene._addActor3D(self.__viewport, self._getActor3D())          scene._addActor3D(self.__viewport, self._getActor3D())
119    
120      def _isModified(self):        def _isModified(self):  
121          """          """
# Line 128  class Ellipsoid(DataSetMapper, Actor3D, Line 127  class Ellipsoid(DataSetMapper, Actor3D,
127    
128          return self.__modified or self.__data_collector._isModified()          return self.__modified or self.__data_collector._isModified()
129    
130      def _render(self):      def _render(self, scene):
131          """          """
132          Render the ellipsoids.          Render the ellipsoids.
133    
134            @type scene: L{Scene <scene.Scene>} object
135            @param scene: Scene in which objects are to be rendered on
136          """          """
137    
138          if (self._isModified() == True):          if (self._isModified() == True):
# Line 189  class EllipsoidOnPlaneCut(DataSetMapper, Line 191  class EllipsoidOnPlaneCut(DataSetMapper,
191          @param outline: Places an outline around the domain surface          @param outline: Places an outline around the domain surface
192          """          """
193    
         self.__scene = scene  
194          self.__data_collector = data_collector          self.__data_collector = data_collector
195          self.__viewport = viewport          self.__viewport = viewport
196          self.__lut = lut          self.__lut = lut
# Line 225  class EllipsoidOnPlaneCut(DataSetMapper, Line 226  class EllipsoidOnPlaneCut(DataSetMapper,
226    
227              # Default line width is 1.              # Default line width is 1.
228              actor3D._setLineWidth(1)              actor3D._setLineWidth(1)
229              self.__scene._addActor3D(self.__viewport, actor3D._getActor3D())              scene._addActor3D(self.__viewport, actor3D._getActor3D())
230    
231          # ----- Ellipsoid on a cut plane -----          # ----- Ellipsoid on a cut plane -----
232    
# Line 259  class EllipsoidOnPlaneCut(DataSetMapper, Line 260  class EllipsoidOnPlaneCut(DataSetMapper,
260                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
261    
262          self._setupActor3D(self._getDataSetMapper())          self._setupActor3D(self._getDataSetMapper())
263          self.__scene._addActor3D(self.__viewport, self._getActor3D())          scene._addActor3D(self.__viewport, self._getActor3D())
264    
265      def _isModified(self):        def _isModified(self):  
266          """          """
# Line 272  class EllipsoidOnPlaneCut(DataSetMapper, Line 273  class EllipsoidOnPlaneCut(DataSetMapper,
273    
274          return self.__modified or self.__data_collector._isModified()          return self.__modified or self.__data_collector._isModified()
275    
276      def _render(self):      def _render(self, scene):
277          """          """
278          Render the ellipsoids cut using a plane.          Render the ellipsoids cut using a plane.
279    
280            @type scene: L{Scene <scene.Scene>} object
281            @param scene: Scene in which objects are to be rendered on
282          """          """
283    
284          if (self._isModified() == True):          if (self._isModified() == True):
# Line 330  class EllipsoidOnPlaneClip(DataSetMapper Line 334  class EllipsoidOnPlaneClip(DataSetMapper
334          @param outline: Places an outline around the domain surface          @param outline: Places an outline around the domain surface
335          """          """
336    
         self.__scene = scene  
337          self.__data_collector = data_collector          self.__data_collector = data_collector
338          self.__viewport = viewport          self.__viewport = viewport
339          self.__lut = lut          self.__lut = lut
# Line 366  class EllipsoidOnPlaneClip(DataSetMapper Line 369  class EllipsoidOnPlaneClip(DataSetMapper
369    
370              # Default line width is 1.              # Default line width is 1.
371              actor3D._setLineWidth(1)              actor3D._setLineWidth(1)
372              self.__scene._addActor3D(self.__viewport, actor3D._getActor3D())              scene._addActor3D(self.__viewport, actor3D._getActor3D())
373    
374          # ----- Ellipsoid on a clipped plane -----          # ----- Ellipsoid on a clipped plane -----
375    
# Line 406  class EllipsoidOnPlaneClip(DataSetMapper Line 409  class EllipsoidOnPlaneClip(DataSetMapper
409                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
410    
411          self._setupActor3D(self._getDataSetMapper())          self._setupActor3D(self._getDataSetMapper())
412          self.__scene._addActor3D(self.__viewport, self._getActor3D())          scene._addActor3D(self.__viewport, self._getActor3D())
413    
414      def _isModified(self):        def _isModified(self):  
415          """          """
# Line 419  class EllipsoidOnPlaneClip(DataSetMapper Line 422  class EllipsoidOnPlaneClip(DataSetMapper
422    
423          return self.__modified or self.__data_collector._isModified()          return self.__modified or self.__data_collector._isModified()
424    
425      def _render(self):      def _render(self, scene):
426          """          """
427          Render the ellipsoids clip using a plane.          Render the ellipsoids clip using a plane.
428    
429            @type scene: L{Scene <scene.Scene>} object
430            @param scene: Scene in which objects are to be rendered on
431          """          """
432    
433          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