Package spyre :: Module spyre :: Class BasicCamera
[frames | no frames]

Type BasicCamera

Camera --+
         |
        BasicCamera

Known Subclasses:
BasicCameraFrustum, BasicCameraOrtho, MobileCamera, PrecessingCamera, RovingCamera, RovingCameraY, SubordinateEyeCamera

A basic camera views a center point from an eye position, with a reference up vector that points to the top of the screen.
Method Summary
  __init__(self, engine, eye, center, up, left, right, bottom, top, near, far)
Initialize new camera.
    Inherited from Camera
  displayBackground(self)
Clear the display, or alternate prelim treatment.
  displayViewport(self)
Push the viewport params to OpenGL.
  refresh(self)
Refresh the position of the camera.
  restoreInit(self)
Restore previously saved initialization state.
  saveInit(self)
Save state of initialization internally for later restoration.
  setup(self)
Overridable for things to be done before use, but after engine and interface are initialized.
  setViewport(self, left, top, right, bottom)
Record desired viewport (left, top, right, bottom).
  zoomIn(self, factor)
Zoom in.
  zoomOut(self, factor)
Zoom out.
    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)

Property Summary
    Inherited from Camera
  center: Track center position
  eye: Track eye position

Instance Variable Summary
    Inherited from Camera
  objects: Each camera keeps a list of displayable objects.

Method Details

__init__(self, engine, eye, center=(0, 0, 0), up=(0, 1, 0), left=None, right=None, bottom=None, top=None, near=None, far=None)
(Constructor)

Initialize new camera.
Parameters:
engine - the engine
eye - x,y,z tuple with eye position
center - x,y,z tuple with center of view
up - x,y,z tuple pointing up
left - left edge of viewing box, in eyespace (float)
right - right edge of viewing box, in eyespace (float)
bottom - bottom edge of viewing box, in eyespace (float)
top - top edge of viewing box, in eyespace (float)
near - near edge of viewing box, in eyespace (float)
far - far edge of viewing box, in eyespace (float)
Overrides:
spyre.spyre.Camera.__init__ (inherited documentation)

Generated by Epydoc 2.1 on Sat Jan 07 17:58:16 2006 http://epydoc.sf.net