Package esys :: Package pyvisi :: Module camera :: Class Camera
[show private | hide private]
[frames | no frames]

Type Camera

object --+    
         |    
      Item --+
             |
            Camera


Camera class
Method Summary
  __init__(self, scene)
Initialisation of the Camera object
  getAzimuth(self)
Get the azimuthal angle (in degrees) of the Camera
  getElevation(self)
Gets the elevation angle (in degrees) of the Camera
  getFocalPoint(self)
Get the position of the focal point of the Camera
  getPosition(self)
Get the position of Camera within Scene
  setAzimuth(self, azimuth)
Set the azimuthal angle (in degrees) of the Camera
  setElevation(self, elevation)
Set the elevation angle (in degrees) of the Camera
  setFocalPoint(self, *pos)
Sets the focal point of the Camera with the Scene
  setPosition(self, *pos)
Set position of camera within scene
    Inherited from Item
  render(self)
Render the object
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self, scene)
(Constructor)

Initialisation of the Camera object
Parameters:
scene - The Scene object to add the Camera object to
           (type=Scene object)
Overrides:
esys.pyvisi.item.Item.__init__

getAzimuth(self)

Get the azimuthal angle (in degrees) of the Camera

getElevation(self)

Gets the elevation angle (in degrees) of the Camera

getFocalPoint(self)

Get the position of the focal point of the Camera

Returns the position of the focal point in a tuple of form (xPos, yPos, zPos)

getPosition(self)

Get the position of Camera within Scene

Returns the position in a tuple of form (xPos, yPos, zPos)

setAzimuth(self, azimuth)

Set the azimuthal angle (in degrees) of the Camera
Parameters:
azimuth - The azimuthal angle (in degrees) of the Camera
           (type=float)

setElevation(self, elevation)

Set the elevation angle (in degrees) of the Camera
Parameters:
elevation - The elevation angle (in degrees) of the Camera
           (type=float)

setFocalPoint(self, *pos)

Sets the focal point of the Camera with the Scene
Parameters:
pos - Position to set the focal point
           (type=tuple)

setPosition(self, *pos)

Set position of camera within scene
Parameters:
pos - Position to set camera in terms of x,y,z coordinates
           (type=tuple)

Generated by Epydoc 2.1 on Thu Apr 27 11:16:23 2006 http://epydoc.sf.net