Package esys :: Package lsm :: Package vis :: Package povray :: Module Camera' :: Class Camera
[hide private]
[frames] | no frames]

Class Camera

         object --+    
                  |    
core.Camera'.Camera --+
                      |
                     Camera
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, posn, lookAt, angle=70.0)
Initialises camera object.
 
getLookAt(self)
Returns the coordinate at which this camera is looking.
 
getPosn(self)
Returns the position coordinate of this camera.
 
getRight(self)
 
getUp(self)
float
getZoom(self)
Returns the zoom factor.
 
setAspect(self, sizeTuple)
 
setDirection(self, dir)
 
setLookAt(self, lookAt)
Sets the coordinate at which this camera is looking.
 
setPosn(self, posn)
Sets the position coordinate of this camera.
 
setZoom(self, factor)
Decrease the scale of the projection area by the specified factor.
 
writeSdl(self, f)

Inherited from core.Camera'.Camera: rotate, rotatePosn

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, posn, lookAt, angle=70.0)
(Constructor)

 

Initialises camera object.

Overrides: object.__init__
(inherited documentation)

getLookAt(self)

 

Returns the coordinate at which this camera is looking.

Returns:
The coordinate being looked-at by this camera.
Overrides: core.Camera'.Camera.getLookAt
(inherited documentation)

getPosn(self)

 

Returns the position coordinate of this camera.

Returns:
Position coordinate of this camera.
Overrides: core.Camera'.Camera.getPosn
(inherited documentation)

getZoom(self)

 

Returns the zoom factor.

Returns: float
The zoom factor.
Overrides: core.Camera'.Camera.getZoom
(inherited documentation)

setLookAt(self, lookAt)

 

Sets the coordinate at which this camera is looking.

Parameters:
  • coord - New coordinate to be looked-at by this camera.
Overrides: core.Camera'.Camera.setLookAt
(inherited documentation)

setPosn(self, posn)

 

Sets the position coordinate of this camera.

Parameters:
  • coord - New position of this camera.
Overrides: core.Camera'.Camera.setPosn
(inherited documentation)

setZoom(self, factor)

 

Decrease the scale of the projection area by the specified factor. A value greater than 1 is a zoom-in, a value less than 1 is a zoom-out.

Parameters:
  • factor - Zoom multiplier factor > 0.0.
Overrides: core.Camera'.Camera.setZoom
(inherited documentation)