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

Contents of /trunk/pyvisi/py_src/plane.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 605 - (show annotations)
Mon Mar 20 07:16:27 2006 UTC (13 years, 6 months ago) by gross
File MIME type: text/x-python
File size: 2133 byte(s)
pyvisi with vtk runs noe on the altix
1 # Copyright (C) 2004-2005 Paul Cochrane
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
17 # $Id: plane.py,v 1.10 2005/03/07 07:45:48 paultcochrane Exp $
18
19 ## @file plane.py
20
21 """
22 The classes associated with Planes
23 """
24
25 # generic imports
26 from common import debugMsg, overrideWarning
27 from item import Item
28
29 __revision__ = '$Revision: 1.10 $'
30
31 class Plane(Item):
32 """
33 Generic class for Plane objects
34 """
35
36 def __init__(self, scene):
37 """
38 Initialisation of the Plane object
39
40 @param scene: the scene object within which the plane is
41 @type scene: Scene object
42 """
43 Item.__init__(self)
44 debugMsg("Called Plane.__init__()")
45
46 self.renderer = scene.renderer
47
48 def mapImageToPlane(self, image):
49 """
50 Maps an Image object onto a Plane object
51
52 @param image: the image object to be mapped
53 @type image: Image object
54 """
55 debugMsg("Called Plane.mapImageToPlane()")
56
57 if image is None:
58 raise ValueError, "You must specify an image object"
59
60 # print a warning message if get to here
61 overrideWarning("Plane.mapImageToPlane")
62
63 return
64
65 def render(self):
66 """
67 Perform Plane object specific (pre)rendering tasks
68 """
69 debugMsg("Called Plane.mapImageToPlane()")
70
71 # print a warning message if get to here
72 overrideWarning("Plane.render")
73
74 return
75
76 # vim: expandtab shiftwidth=4:

  ViewVC Help
Powered by ViewVC 1.1.26