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.
 
getPosn(self)
Returns the position coordinate of this camera.
 
setPosn(self, posn)
Sets the position coordinate of this camera.
 
getLookAt(self)
Returns the coordinate at which this camera is looking.
 
setLookAt(self, lookAt)
Sets the coordinate at which this camera is looking.
 
setDirection(self, dir)
 
setZoom(self, factor)
Decrease the scale of the projection area by the specified factor.
float
getZoom(self)
Returns the zoom factor.
 
setAspect(self, sizeTuple)
 
getUp(self)
 
getRight(self)
 
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)

getPosn(self)

 

Returns the position coordinate of this camera.

Returns:
Position coordinate of this camera.
Overrides: core.camera.Camera.getPosn
(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)

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)

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)

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)

getZoom(self)

 

Returns the zoom factor.

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