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

Diff of /trunk/pyvisi/py_src/image.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 39  class Image(DataSetMapper, Actor3D, Text Line 39  class Image(DataSetMapper, Actor3D, Text
39          @param viewport: Viewport in which the image is to be displayed          @param viewport: Viewport in which the image is to be displayed
40          """          """
41    
         self.__scene = scene  
42          self.__image_reader = image_reader          self.__image_reader = image_reader
43          self.__viewport = viewport          self.__viewport = viewport
44    
# Line 63  class Image(DataSetMapper, Actor3D, Text Line 62  class Image(DataSetMapper, Actor3D, Text
62          self._setupActor3D(self._getDataSetMapper())          self._setupActor3D(self._getDataSetMapper())
63    
64          self._setTexture(self._getTexture())          self._setTexture(self._getTexture())
65          self.__scene._addActor3D(self.__viewport, self._getActor3D())          scene._addActor3D(self.__viewport, self._getActor3D())
66    
67      def _isModified(self):      def _isModified(self):
68          """          """
# Line 78  class Image(DataSetMapper, Actor3D, Text Line 77  class Image(DataSetMapper, Actor3D, Text
77          else:          else:
78              return False              return False
79    
80      def _render(self):      def _render(self, scene):
81          """          """
82          Render the image.          Render the image.
83    
84            @type scene: L{Scene <scene.Scene>} object
85            @param scene: Scene in which the image is to be displayed
86          """          """
87    
88          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