.. $Id$  -*- rst -*-
.. pyformex reference manual --- camera
.. CREATED WITH py2rst.py: DO NOT EDIT

.. include:: ../defines.inc
.. include:: ../links.inc

.. _sec:ref-camera:

:mod:`camera` --- OpenGL camera handling
========================================

.. automodule:: camera
   :synopsis: OpenGL camera handling



   .. autoclass:: ViewAngles


      ViewAngles objects have the following methods:

      .. automethod:: get(name)

   .. autoclass:: Camera


      Camera objects have the following methods:

      .. automethod:: getCenter()
      .. automethod:: getRot()
      .. automethod:: getDist()
      .. automethod:: lock(onoff=True)
      .. automethod:: setCenter(x,y,z)
      .. automethod:: setAngles(angles)
      .. automethod:: setRotation(long,lat,twist=0)
      .. automethod:: setDist(dist)
      .. automethod:: report()
      .. automethod:: dolly(val)
      .. automethod:: pan(val,axis=0)
      .. automethod:: tilt(val)
      .. automethod:: move(dx,dy,dz)
      .. automethod:: lookAt(eye,center,up)
      .. automethod:: rotate(val,vx,vy,vz)
      .. automethod:: saveModelView()
      .. automethod:: setModelView()
      .. automethod:: loadModelView()
      .. automethod:: loadCurrentRotation()
      .. automethod:: translate(vx,vy,vz,local=True)
      .. automethod:: transform(v)
      .. automethod:: toWorld(v,trl=False)
      .. automethod:: setLens(fovy=None,aspect=None)
      .. automethod:: resetArea()
      .. automethod:: setArea(hmin,vmin,hmax,vmax,relative=True,center=False,clip=True)
      .. automethod:: zoomArea(val=0.5,area=None)
      .. automethod:: transArea(dx,dy)
      .. automethod:: setClip(near,far)
      .. automethod:: setPerspective(on=True)
      .. automethod:: loadProjection(force=False,pick=None,keepmode=False)
      .. automethod:: set3DMatrices()
      .. automethod:: project(x,y,z)
      .. automethod:: unProject(x,y,z)
      .. automethod:: setTracking(onoff=True)

**Functions defined in the module camera**

   .. autofunction:: tand(arg)
   .. autofunction:: printModelviewMatrix(s="\%s")

   
.. moduleauthor:: pyFormex project (http://pyformex.org)

.. End

