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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 852 - (show annotations)
Wed Sep 20 03:23:16 2006 UTC (13 years ago) by jongui
File MIME type: text/x-python
File size: 912 byte(s)
added carpet and isosurface


1 """
2 @author: John Ngui
3 @author: Lutz Gross
4 """
5
6 class Position:
7 """
8 Class that defines the positioning of components in the visualization.
9 """
10
11 def __init__(self, x_coor, y_coor, z_coor):
12 """
13 Initialize the x,y and z coordinates.
14
15 @type x_coor: Number
16 @param x_coor: X coordinate in global position
17 @type y_coor: Number
18 @param y_coor: Y coordinate in global position
19 @type z_coor: Number
20 @param z_coor: Z coordinate in global position
21 """
22
23 self.x_coor = x_coor
24 self.y_coor = y_coor
25 self.z_coor = z_coor
26
27 def getXCoor(self):
28 """
29 Return the x coordinate.
30
31 @rtype: Number
32 @return: X coordinate
33 """
34 return self.x_coor
35
36 def getYCoor(self):
37 """
38 Return the y coordinate.
39
40 @rtype: Number
41 @return: Y coordiante
42 """
43
44 return self.y_coor
45
46 def getZCoor(self):
47 """
48 Return the z coordinate
49
50 @rtype: Number
51 @return: Z coordinate
52 """
53
54 return self.z_coor
55

  ViewVC Help
Powered by ViewVC 1.1.26