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

Diff of /trunk/pyvisi/py_src/logo.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1157 by jongui, Fri May 18 02:46:32 2007 UTC revision 1158 by jongui, Tue May 22 04:24:01 2007 UTC
# Line 30  class Logo(ImageMapper, ImageReslice, Ac Line 30  class Logo(ImageMapper, ImageReslice, Ac
30          @param viewport: Viewport in which the logo is to be displayed          @param viewport: Viewport in which the logo is to be displayed
31          """          """
32    
         self.__scene = scene  
33          self.__image_reader = image_reader          self.__image_reader = image_reader
34          self.__viewport = viewport          self.__viewport = viewport
35    
# Line 46  class Logo(ImageMapper, ImageReslice, Ac Line 45  class Logo(ImageMapper, ImageReslice, Ac
45          self._setupImageMapper(self._getImageResliceOutput())          self._setupImageMapper(self._getImageResliceOutput())
46    
47          self._setupActor2D(self._getImageMapper())          self._setupActor2D(self._getImageMapper())
48          self.__scene._addActor2D(self.__viewport, self._getActor2D())          scene._addActor2D(self.__viewport, self._getActor2D())
49    
50      def _isModified(self):        def _isModified(self):  
51          """          """
# Line 58  class Logo(ImageMapper, ImageReslice, Ac Line 57  class Logo(ImageMapper, ImageReslice, Ac
57    
58          return self.__modified or self.__data_collector._isModified()          return self.__modified or self.__data_collector._isModified()
59    
60      def _render(self):      def _render(self, scene):
61          """          """
62          Render the logo.          Render the logo.
63    
64            @type scene: L{Scene <scene.Scene>} object
65            @param scene: Scene in which the logo is to be displayed
66          """          """
67    
68          if (self._isModified() == True):          if (self._isModified() == True):

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

  ViewVC Help
Powered by ViewVC 1.1.26