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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 792 by gross, Fri Jul 28 10:37:16 2006 UTC revision 835 by jongui, Mon Sep 4 22:20:28 2006 UTC
# Line 1  Line 1 
1  """  """
2  Classes defining geometrical items in visualization  Class that defines the positioning of components in the visualization.
   
 @var __author__: name of author  
 @var __license__: licence agreement  
 @var __copyright__: copyrights  
 @var __url__: url entry point on documentation  
 @var __version__: version  
 @var __date__: date of the version  
3  """  """
4    
5  __copyright__="""  Copyright (c) 2006 by ACcESS MNRF  class Position:
6                      http://www.access.edu.au      """
7                  Primary Business: Queensland, Australia"""      @author: John Ngui
8  __license__="""Licensed under the Open Software License version 3.0      @author: Lutz Gross
9               http://www.opensource.org/licenses/osl-3.0.php"""      """
 __author__="Paul Cochrane, L. Gross"  
 __url__="http://www.iservo.edu.au/esys"  
 __version__="$Revision:$"  
 __date__="$Date:$"  
10    
11        def __init__(self, x_coor, y_coor, z_coor):
12            """
13            Initialize the x,y and z coordinates.  
14    
15  def Position(object):          @type x_coor: Number
16      """          @param x_coor: X coordinate in global position
17      A position in global coordinates          @type y_coor: Number
18      """          @param y_coor: Y coordinate in global position
19      pass          @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    
56    
57    
58    #def Position(object):
59    """
60    A position in global coordinates
61    """
62    pass
63    
64  def Origin(Position):  def Origin(Position):
65      """      """

Legend:
Removed from v.792  
changed lines
  Added in v.835

  ViewVC Help
Powered by ViewVC 1.1.26