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

Type MobileCamera

 Camera --+    
          |    
BasicCamera --+
              |
             MobileCamera

Known Subclasses:
MobileCameraFrustum, MobileCameraOrtho

A mobile camera maintains a certain distance (rho) from the origin, but is user controllable.
Method Summary
  __init__(self, engine, eyeRho, center, up)
Initialize new camera.
  calc(self)
  refresh(self)
Refresh the position of the camera.
    Inherited from Camera
  displayBackground(self)
Clear the display, or alternate prelim treatment.
  displayViewport(self)
Push the viewport params to OpenGL.
  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
  eye
    Inherited from Camera
  center: Track center position

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

Method Details

__init__(self, engine, eyeRho, center=(0, 0, 0), up=(0, 0, 1))
(Constructor)

Initialize new camera.
Parameters:
engine - the engine
eyeRho - either a constant radius (float), or an eye position tuple (x,y,z)
center - center of view tuple (x,y,z)
Overrides:
spyre.spyre.BasicCamera.__init__

refresh(self)

Refresh the position of the camera.
Overrides:
spyre.spyre.Camera.refresh (inherited documentation)

Property Details

eye

Delete Method:
'Maintain eye position, converting to sp...

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