/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : AngleAttribute.h                                              */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#ifndef _ANGLEATTRIBUTE_H
#define _ANGLEATTRIBUTE_H

#include "FloatAttribute.h"

/*
CLASS 
AngleAttribute

DESCRIPTION
A kind of FloatAttribute; assumes string representation is in
degrees, and converts internally to radians.

AUTHOR
Tom O'Reilly
*/
class AngleAttribute : public FloatAttribute {

public:

  AngleAttribute(const char *name, const char *description, 
		 double *valueAddress); 

  AngleAttribute(const char *name, const char *description,
		 double *valueAddress, double defaultValue);
  
  virtual ~AngleAttribute();

  virtual void setValue(const char *stringRep);

  virtual const char *typeMnem() {
    return "Angle (deg)";
  }

  virtual const char *valueString();

protected:
};

#endif

