Simox  2.3.50
VirtualRobot::Units Class Reference

Public Types

enum  UnitsType {
  eAngle, eLength, eWeight, eTime,
  eIgnore
}
 

Public Member Functions

 Units (const std::string &unitName)
 
bool isRadian ()
 
bool isDegree ()
 
bool isAngle ()
 
float toRadian (float m)
 
float toDegree (float m)
 
bool isMillimeter ()
 
bool isMeter ()
 
bool isLength ()
 
float toMillimeter (float m)
 
float toMeter (float m)
 
bool isGram ()
 
bool isKilogram ()
 
bool isTon ()
 
bool isWeight ()
 
float toGram (float m)
 
float toKilogram (float m)
 
float toTon (float m)
 
bool isSecond ()
 
bool isMinute ()
 
bool isHour ()
 
bool isTime ()
 
float toSecond (float m)
 
float toMinute (float m)
 
float toHour (float m)
 
bool isValid ()
 

Member Enumeration Documentation

Enumerator
eAngle 
eLength 
eWeight 
eTime 
eIgnore 

Constructor & Destructor Documentation

VirtualRobot::Units::Units ( const std::string &  unitName)
inline

Member Function Documentation

bool VirtualRobot::Units::isAngle ( )
inline
bool VirtualRobot::Units::isDegree ( )
inline
bool VirtualRobot::Units::isGram ( )
inline
bool VirtualRobot::Units::isHour ( )
inline
bool VirtualRobot::Units::isKilogram ( )
inline
bool VirtualRobot::Units::isLength ( )
inline
bool VirtualRobot::Units::isMeter ( )
inline
bool VirtualRobot::Units::isMillimeter ( )
inline
bool VirtualRobot::Units::isMinute ( )
inline

< be careful m==meter!

bool VirtualRobot::Units::isRadian ( )
inline
bool VirtualRobot::Units::isSecond ( )
inline
bool VirtualRobot::Units::isTime ( )
inline
bool VirtualRobot::Units::isTon ( )
inline
bool VirtualRobot::Units::isValid ( )
inline
bool VirtualRobot::Units::isWeight ( )
inline
float VirtualRobot::Units::toDegree ( float  m)
inline
float VirtualRobot::Units::toGram ( float  m)
inline
float VirtualRobot::Units::toHour ( float  m)
inline
float VirtualRobot::Units::toKilogram ( float  m)
inline
float VirtualRobot::Units::toMeter ( float  m)
inline
float VirtualRobot::Units::toMillimeter ( float  m)
inline
float VirtualRobot::Units::toMinute ( float  m)
inline
float VirtualRobot::Units::toRadian ( float  m)
inline
float VirtualRobot::Units::toSecond ( float  m)
inline
float VirtualRobot::Units::toTon ( float  m)
inline