/[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 1109 by jongui, Thu Apr 19 04:02:11 2007 UTC revision 1110 by jongui, Thu Apr 19 05:24:28 2007 UTC
# Line 12  from constant import Viewport Line 12  from constant import Viewport
12  # to their public methods from the driver.  # to their public methods from the driver.
13  class Logo(ImageMapper, ImageReslice, Actor2D):  class Logo(ImageMapper, ImageReslice, Actor2D):
14      """      """
15      Class that displays an image which can be scaled (upwards and downwards).      Class that displays a static image in particular a logo
16      The image can also be translated and rotated along the X, Y and Z axes.      (i.e. company symbol) which has NO interaction capability.
   
     @bug: Translating an image works differently (opposite) compared to  
     translating a plane. For example, a positive translation along the  
     z-axis moves a plane up. However, if the identical translation is applied on  
     an image, the image moves down.  
17      """      """
18    
19      # 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.
# Line 26  class Logo(ImageMapper, ImageReslice, Ac Line 21  class Logo(ImageMapper, ImageReslice, Ac
21      def __init__(self, scene, image_reader, viewport = Viewport.SOUTH_WEST):      def __init__(self, scene, image_reader, viewport = Viewport.SOUTH_WEST):
22          """          """
23          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
24          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which the logo is to be displayed
25          @type image_reader: L{ImageReader <imagereader.ImageReader>}          @type image_reader: L{ImageReader <imagereader.ImageReader>}
26                  object                  object
27          @param image_reader: Deal with source of image for vizualisation          @param image_reader: Deal with source of data for vizualisation
28          @type viewport: L{Viewport <constant.Viewport>} constant            @type viewport: L{Viewport <constant.Viewport>} constant  
29          @param viewport: Viewport in which objects are to be rendered on          @param viewport: Viewport in which the logo is to be displayed
30          """          """
31    
32          # ----- Image -----          # ----- Logo -----
33    
34          ImageReslice.__init__(self, image_reader._getOutput())          ImageReslice.__init__(self, image_reader._getOutput())
35          ImageMapper.__init__(self, ImageReslice._getOutput(self))          ImageMapper.__init__(self, ImageReslice._getOutput(self))

Legend:
Removed from v.1109  
changed lines
  Added in v.1110

  ViewVC Help
Powered by ViewVC 1.1.26