#ifndef POINTGRID3DDRAW_H
#define POINTGRID3DDRAW_H

#include <gobj.h>
#include <graphmisc.h>
#include <pointgrid3D.h>

/*!
\brief Draw the pointgrid3D ojbect.

Call update() before drawing.

Some basic functionality such as displaying
 the points, displaying the edges.
 Simple set the boolean values to true. 
*/
class pointgrid3Ddraw : public gobjContainer
{
public:

  /** The object being drawn. */
  pointgrid3D const & pg;

  /** The sphere at the points. */
  gobjQuadric * quadric;

  /** Turn the points on. */
  bool displaypoints;

  /** Display the grid lines. */
  bool displayedges;

  /** Construct with point turned on. */
  pointgrid3Ddraw(pointgrid3D const & pg_);
  
  /** Cleanup. */
  ~pointgrid3Ddraw();

  /** Update the graphics by writing to the graphics
    container. */
  void update();
};


#endif



