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

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

.. _sec:ref-decors:

:mod:`decors` --- 2D decorations for the OpenGL canvas.
=======================================================

.. automodule:: decors
   :synopsis: 2D decorations for the OpenGL canvas.



   .. autoclass:: Decoration


      Decoration objects have the following methods:


   .. autoclass:: Mark


      Mark objects have the following methods:

      .. automethod:: drawGL(mode='wireframe',color=None)

   .. autoclass:: Line


      Line objects have the following methods:

      .. automethod:: drawGL(mode='wireframe',color=None)

   .. autoclass:: GlutText


      GlutText objects have the following methods:

      .. automethod:: drawGL(mode='wireframe',color=None)

   .. autoclass:: ColorLegend


      ColorLegend objects have the following methods:

      .. automethod:: drawGL(mode='wireframe',color=None)
      .. automethod:: use_list()

   .. autoclass:: Rectangle


      Rectangle objects have the following methods:

      .. automethod:: drawGL(mode='wireframe',color=None)

   .. autoclass:: Grid


      Grid objects have the following methods:

      .. automethod:: drawGL(mode='wireframe',color=None)

   .. autoclass:: LineDrawing


      LineDrawing objects have the following methods:

      .. automethod:: drawGL(mode=None,color=None)

   .. autoclass:: Triade


      Triade objects have the following methods:

      .. automethod:: draw(mode='wireframe',color=None)

**Functions defined in the module decors**

   .. autofunction:: drawDot(x,y)
   .. autofunction:: drawLine(x1,y1,x2,y2)
   .. autofunction:: drawGrid(x1,y1,x2,y2,nx,ny)
   .. autofunction:: drawRect(x1,y1,x2,y2)
   .. autofunction:: drawRectangle(x1,y1,x2,y2,color)

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

.. End

