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

Type PrecessingCamera

 Camera --+    
          |    
BasicCamera --+
              |
             PrecessingCamera

Known Subclasses:
PrecessingCameraOrtho

A precessing camera orbits around the z axis at a given distance from it and height above the x-y plane.
Method Summary
  __init__(self, engine, distance, height, rate, center, up)
  calc(self)
Recalculate postion of eye
  refresh(self)
Update calculated position
    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
    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

calc(self)

Recalculate postion of eye

refresh(self)

Update calculated position
Overrides:
spyre.spyre.Camera.refresh

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