#ifndef BUTTONPANEL01_H
#define BUTTONPANEL01_H

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

/*!
\brief Display a panel of 4 buttons.
*/
class buttonpanel01 : public gobj
{
public:

  /** radius in ratio space on x-axis. */
  double centerdelta;

  /** Position in terms of ratio. */
  point2<double> pos[4];

  /** Position in world coordinates. */
  point3<double> posw[4];

  /** Color corresponds with position. */  
  point3<uint> color[4];

  /** Radius in terms of ratio. */
  double radiussphere;

  /** Radius in world coordinates. */
  double radiusworld;

  /** Constructor. */
  buttonpanel01(zprmouse* zm_);

  /** Conversion programs. */
  zprmouse* zm;

  /** Draw buttons. */
  void draw();

  /** Calc posw and radiusworld. */
  void update();
  
};

#endif


