Loading [MathJax]/extensions/tex2jax.js
AngleType Class Reference

AngleType provides defining angular values in different units (deg, rad, grad and percentage) More...

#include "AngleType.hpp"

+ Inheritance diagram for AngleType:

Public Member Functions

 AngleType (const opals::String &rep)
 
 AngleType (double vale)
 set angle in degrees (default)
 
bool isEmpty () const
 
double getRad () const
 get angle in radiates (0-2*Pi)
 
double getDeg () const
 get angle in degres (0-360)
 
double getGrad () const
 get angle in grads (0-400)
 
double getPerc () const
 get a slope angle in percent (0-infinite)
 
 operator double () const
 
void reset ()
 
void setRad (const double &value)
 
void setDeg (const double &value)
 
void setGrad (const double &value)
 
void setPerc (const double &value)
 
bool operator== (const AngleType &ref) const
 
bool operator!= (const AngleType &ref) const
 

Static Public Member Functions

static const char * help (bool)
 
static const char * syntax ()
 
static bool exportsPythonType ()
 
- Static Public Member Functions inherited from CustomOptionType< AngleType >
static const char * _help (bool forDoxygen)
 get general help on this type
 
static const char * _syntax ()
 get the syntax used for parsing this type
 
static bool _exportsPythonType ()
 returns true if this type is exposed to Python as a custom type, false otherwise (if it is represented as Python-string)
 

Additional Inherited Members

- Protected Member Functions inherited from CustomOptionType< AngleType >
 ~CustomOptionType ()
 protected, must be derived from
 

Detailed Description

AngleType provides defining angular values in different units (deg, rad, grad and percentage)

Author
JO
Date
19.05.2023