Jamoma API  0.6.0.a19
TTDataspaceLib.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup foundationDataspaceLib
4  *
5  * @brief This library provides convertions between different measurement units for values relating to time, color, distance, gain. and more.
6  *
7  * @details The DataspaceLib enables other parts of the Jamoma project to address the values of parameters and attributes in different, interchangeable measurement units. For each type of data (e.g. trigonometrical angels), a _neutral_ unit is defined. Methods are then provided for converting between each alternative unit and the neutral unit. Wherever relevant the neutral unit is chosen in accordance with the international system of units of measurement.
8  *
9  * @authors Tim Place, Trond Lossius, Nils Peters, Pascal Baltazar, Alexander Refsum Jensenious, Theo de la Hogue, ...
10  *
11  * @copyright Copyright © 2007 by the Jamoma developers @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 #include "AngleDataspace.h"
18 #include "ColorDataspace.h"
19 #include "DistanceDataspace.h"
20 #include "GainDataspace.h"
21 #include "NoneDataspace.h"
22 #include "OrientationDataspace.h"
23 #include "PositionDataspace.h"
24 #include "SpeedDataspace.h"
25 #include "TemperatureDataspace.h"
26 #include "TimeDataspace.h"
27 
28 #include "TTDataspaceConverter.h"
29 
30 
31 extern "C" TT_EXTENSION_EXPORT TTErr TTLoadJamomaExtension_DataspaceLib(void)
32 {
33  TTFoundationInit();
34 
35  AngleDataspace::registerClass();
36  RadianUnit::registerClass();
37  DegreeUnit::registerClass();
38 
39  ColorDataspace::registerClass();
40  CMYUnit::registerClass();
41  HSLUnit::registerClass();
42  HSVUnit::registerClass();
43  RGBUnit::registerClass();
44  RGB8Unit::registerClass();
45 
46  DistanceDataspace::registerClass();
47  CentimeterUnit::registerClass();
48  FootUnit::registerClass();
49  InchUnit::registerClass();
50  MeterUnit::registerClass();
51 
52  GainDataspace::registerClass();
53  LinearAmplitudeUnit::registerClass();
54  MidiGainUnit::registerClass();
55  DecibelUnit::registerClass();
56 
57  NoneDataspace::registerClass();
58  NoneUnit::registerClass();
59 
60  OrientationDataspace::registerClass();
61  QuaternionUnit::registerClass();
62  EulerUnit::registerClass();
63  AxisUnit::registerClass();
64 
65  PositionDataspace::registerClass();
66  Cartesian3DUnit::registerClass();
67  Cartesian2DUnit::registerClass();
68  SphericalUnit::registerClass();
69  PolarUnit::registerClass();
70  OpenGlUnit::registerClass();
71  CylindricalUnit::registerClass();
72 
73  SpeedDataspace::registerClass();
74  FootPerSecondUnit::registerClass();
75  MeterPerSecondUnit::registerClass();
76  MilesPerHourUnit::registerClass();
77  KilometerPerHourUnit::registerClass();
78  KnotUnit::registerClass();
79 
80  TemperatureDataspace::registerClass();
81  CelsiusUnit::registerClass();
82  FahrenheitUnit::registerClass();
83  KelvinUnit::registerClass();
84 
85  TimeDataspace::registerClass();
86  BarkUnit::registerClass();
87  BpmUnit::registerClass();
88  CentUnit::registerClass();
89  MelUnit::registerClass();
90  MidiPitchUnit::registerClass();
91  MillisecondUnit::registerClass();
92  SampleUnit::registerClass();
93  SecondUnit::registerClass();
94  SpeedUnit::registerClass();
95  FrequencyUnit::registerClass();
96 
97 
98  TTDataspaceConverter::registerClass();
99 
100  return kTTErrNone;
101 }
102 
103 
The AngleDataspace converts between different measurement untis describing trigonometric angles...
Specification for TTDataspaceConverter, the base class of dataspace converters.
The PositionDataspace converts between different untis describing position.
The TimeDataspace converts between different measurement untis describing time intervals and frequenc...
The DistanceDataspace converts between different measurement untis describing distance.
The SpeedDataspace converts between different measurement untis describing velocity.
The NoneDataspace is a dataspace unit for situations where no dataspace conversions are desired or re...
The GainDataspace converts between different measurement untis describing audio gain.
The ColorDataspace converts between different measurement units describing colors.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
No Error.
Definition: TTBase.h:343
The TemperatureDataspace converts between different measurement untis describing temperature.
The OrientationDataspace converts between different untis describing orientation. ...