#ifndef POINTSGRAPHTIMED2_H
#define POINTSGRAPHTIMED2_H

/*!
\brief Plot fixed number of points in time.

The newest point is plotted furthest to the right.
 As the x-axis is in time.
*/
class pointsgraphtimeD2 : public pointsgraph 
{
public:

  /** Number of points. */
  uint N; // N-1 segments as points on ends.

  /** Current number of points. */
  uint Ncurrent;

  /** y values in time. */
  deque<double> ytime;

  pointsgraphtimeD2
  (
    uintc N_, 
    windowscaleD2 const & screen_,
    windowscaleD2 const & world_
  );

  /** Add the point to the back. */ 
  void push_back(doublec y);
  /** Add the point to the front. */
  void push_front(doublec y);

  /** Update so draw() draws the current state. */
  void update();
};



#endif


