/[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 947 by jongui, Mon Jan 29 07:22:43 2007 UTC revision 948 by jongui, Thu Feb 1 07:23:34 2007 UTC
# Line 13  from plane import PlaneSource Line 13  from plane import PlaneSource
13  # allow access to their public methods from the driver.  # allow access to their public methods from the driver.
14  class Image(DataSetMapper, Actor3D, Texture, PlaneSource):  class Image(DataSetMapper, Actor3D, Texture, PlaneSource):
15      """      """
16      Class that displayes an image with interaction capability.      Class that displays an image with interaction capability.
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 Image(DataSetMapper, Actor3D, Text Line 26  class Image(DataSetMapper, Actor3D, Text
26                  object                  object
27          @param image_reader: Deal with source of image for visualisation          @param image_reader: Deal with source of image for visualisation
28          @type viewport: L{Viewport <constant.Viewport>} constant            @type viewport: L{Viewport <constant.Viewport>} constant  
29          @param viewport: Viewport in which the object is to be rendered on          @param viewport: Viewport in which objects are to be rendered on
30          """          """
31    
32          # ----- Image -----          # ----- Image -----
33          print "image"  
34          Texture.__init__(self, image_reader._getOutput())          Texture.__init__(self, image_reader._getOutput())
35          PlaneSource.__init__(self)          PlaneSource.__init__(self)
36    
37          DataSetMapper.__init__(self, PlaneSource._getOutput(self))            DataSetMapper.__init__(self, PlaneSource._getOutput(self))  
38    
39          Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self))          Actor3D.__init__(self, DataSetMapper._getDataSetMapper(self))
40          Actor3D._setTexture(self, Texture._getTexture(self))          Actor3D._setTexture(self, Texture._getTexture(self))
         scene._addActor3D(viewport, Actor3D._getActor3D(self))  
           
41    
42            scene._addActor3D(viewport, Actor3D._getActor3D(self))
43    

Legend:
Removed from v.947  
changed lines
  Added in v.948

  ViewVC Help
Powered by ViewVC 1.1.26