16 |
class Image(DataSetMapper, Actor3D, Texture, PlaneSource, Transform, |
class Image(DataSetMapper, Actor3D, Texture, PlaneSource, Transform, |
17 |
TransformFilter): |
TransformFilter): |
18 |
""" |
""" |
19 |
Class that displays an image which can be scaled (upwards and downwards). |
Class that displays an image which can be scaled (upwards and downwards) |
20 |
The image can also be translated and rotated along the X, Y and Z axes. |
and has interaction capability. The image can also be translated and |
21 |
|
rotated along the X, Y and Z axes. |
22 |
|
|
23 |
@bug: Translating an image works differently (opposite) compared to |
@bug: Translating an image works differently (opposite) compared to |
24 |
translating a plane. For example, a positive translation along the |
translating a plane. For example, a positive translation along the |
31 |
def __init__(self, scene, image_reader, viewport = Viewport.SOUTH_WEST): |
def __init__(self, scene, image_reader, viewport = Viewport.SOUTH_WEST): |
32 |
""" |
""" |
33 |
@type scene: L{Scene <scene.Scene>} object |
@type scene: L{Scene <scene.Scene>} object |
34 |
@param scene: Scene in which objects are to be rendered on |
@param scene: Scene in which the image is to be displayed |
35 |
@type image_reader: L{ImageReader <imagereader.ImageReader>} |
@type image_reader: L{ImageReader <imagereader.ImageReader>} |
36 |
object |
object |
37 |
@param image_reader: Deal with source of image for vizualisation |
@param image_reader: Deal with source of data for vizualisation |
38 |
@type viewport: L{Viewport <constant.Viewport>} constant |
@type viewport: L{Viewport <constant.Viewport>} constant |
39 |
@param viewport: Viewport in which objects are to be rendered on |
@param viewport: Viewport in which the image is to be displayed |
40 |
""" |
""" |
41 |
|
|
42 |
# ----- Image ----- |
# ----- Image ----- |