OpenSim  OpenSim 3.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
OpenSim::Units Class Reference

A class implementing various units for measuring quantities. More...

#include <Units.h>

Public Types

enum  UnitType {
  UnknownUnits = 0, Radians, Degrees, Millimeters,
  Centimeters, Meters, Seconds, Milliseconds,
  Newtons
}

Public Member Functions

 Units ()
 Units (const Units &aUnits)
 Units (const std::string aString)
 Units (UnitType aType)
virtual ~Units ()
double convertTo (UnitType aType, double aValue) const
double convertTo (UnitType aType) const
double convertTo (const Units &aUnit) const
UnitType getType () const
std::string getLabel () const
std::string getAbbreviation () const

Detailed Description

A class implementing various units for measuring quantities.

Author
Peter Loan
Version
1.0

Member Enumeration Documentation

Enumerator:
UnknownUnits 
Radians 
Degrees 
Millimeters 
Centimeters 
Meters 
Seconds 
Milliseconds 
Newtons 

Constructor & Destructor Documentation

OpenSim::Units::Units ( )
OpenSim::Units::Units ( const Units aUnits)
OpenSim::Units::Units ( const std::string  aString)
OpenSim::Units::Units ( UnitType  aType)
virtual OpenSim::Units::~Units ( )
virtual

Member Function Documentation

double OpenSim::Units::convertTo ( UnitType  aType,
double  aValue 
) const
double OpenSim::Units::convertTo ( UnitType  aType) const
double OpenSim::Units::convertTo ( const Units aUnit) const
std::string OpenSim::Units::getAbbreviation ( ) const
std::string OpenSim::Units::getLabel ( ) const
UnitType OpenSim::Units::getType ( ) const
inline

The documentation for this class was generated from the following file: