#ifndef PLOTPOLAR_H
#define PLOTPOLAR_H

#include <vector>
using namespace std;

#include <point.h>
#include <gobj.h>

/*
\brief  Plot a polar graph in 2D.

Configure the state after construction.
*/
class plotpolar : public gobjContainer
{
  vector< point2<double> > pts;
public:

  /** Insert the data points in (length,degrees) form. */
  void adddatapointsinPolarDegrees
  ( 
    vector< point2<double> > const & p 
  );
  /** Insert the data points in (length,radians) form. */
  void adddatapointsinPolarRadians
  ( 
    vector< point2<double> > const & p 
  );

  /** To display the points this adds the points to 
      the graphics container. */
  void addpoints(uintc r, uintc g, uintc b);

  /** Adds points as crosses to the graphics container. */
  void addcrosses
  (
    uintc r,  
    uintc g, 
    uintc b,
    doublec crosshairlength
  );

};






#endif



