OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
dataspace_base_defs_fwd.hpp
1#pragma once
2#include <ossia/detail/config.hpp>
3
4#include <ratio>
5
6namespace ossia
7{
8class value;
9template <typename Unit>
10struct strong_value;
11
12// 2
13struct degree_u;
14struct radian_u;
15
16using degree = strong_value<degree_u>;
17using radian = strong_value<radian_u>;
18
19// 9
20struct argb_u;
21struct rgba_u;
22struct rgba8_u;
23struct rgb_u;
24struct bgr_u;
25struct argb8_u;
26struct hsv_u;
27struct cmy8_u;
28struct xyz_u;
29
30// unused:
31struct hsl_u;
32struct cmyk8_u;
33struct yxy_u;
34struct hunter_lab_u;
35struct cie_lab_u;
36struct cie_luv_u;
37
38using argb = strong_value<argb_u>;
39using rgba = strong_value<rgba_u>;
40using rgba8 = strong_value<rgba8_u>;
41using rgb = strong_value<rgb_u>;
42using bgr = strong_value<bgr_u>;
43using argb8 = strong_value<argb8_u>;
44using hsv = strong_value<hsv_u>;
45using cmy8 = strong_value<cmy8_u>;
46
47using hsl = strong_value<hsl_u>;
48using cmyk8 = strong_value<cmyk8_u>;
49using xyz = strong_value<xyz_u>;
50using yxy = strong_value<yxy_u>;
51using hunter_lab = strong_value<hunter_lab_u>;
52using cie_lab = strong_value<cie_lab_u>;
53using cie_luv = strong_value<cie_luv_u>;
54
55template <typename T>
56struct distance_ratio;
57
58// 11
59using meter_u = distance_ratio<std::ratio<1>>;
60using kilometer_u = distance_ratio<std::kilo>;
61using decimeter_u = distance_ratio<std::deci>;
62using centimeter_u = distance_ratio<std::centi>;
63using millimeter_u = distance_ratio<std::milli>;
64using micrometer_u = distance_ratio<std::micro>;
65using nanometer_u = distance_ratio<std::nano>;
66using picometer_u = distance_ratio<std::pico>;
67using inch_u = distance_ratio<std::ratio<254, 10000>>;
68using foot_u = distance_ratio<std::ratio<254 * 12, 10000>>;
69using mile_u = distance_ratio<std::ratio<254 * 12 * 5280, 10000>>;
70
71using meter = strong_value<meter_u>;
72using kilometer = strong_value<kilometer_u>;
73using decimeter = strong_value<decimeter_u>;
74using centimeter = strong_value<centimeter_u>;
75using millimeter = strong_value<millimeter_u>;
76using micrometer = strong_value<micrometer_u>;
77using nanometer = strong_value<nanometer_u>;
78using picometer = strong_value<picometer_u>;
79using inch = strong_value<inch_u>;
80using foot = strong_value<foot_u>;
81using mile = strong_value<mile_u>;
82
83// 4
84struct linear_u;
85struct midigain_u;
86struct decibel_u;
87struct decibel_raw_u;
88
89using linear = strong_value<linear_u>;
90using midigain = strong_value<midigain_u>;
91using decibel = strong_value<decibel_u>;
92using decibel_raw = strong_value<decibel_raw_u>;
93
94// 3
95struct quaternion_u;
96struct euler_u;
97struct axis_u;
98
99using quaternion = strong_value<quaternion_u>;
100using euler = strong_value<euler_u>;
101using axis = strong_value<axis_u>;
102
103// 9
104struct cartesian_3d_u;
105struct cartesian_2d_u;
106struct spherical_u;
107struct polar_u;
108struct aed_u;
109struct ad_u;
110struct opengl_u;
111struct cylindrical_u;
112struct azd_u;
113
114using cartesian_3d = strong_value<cartesian_3d_u>;
115using cartesian_2d = strong_value<cartesian_2d_u>;
116using spherical = strong_value<spherical_u>;
117using polar = strong_value<polar_u>;
118using aed = strong_value<aed_u>;
119using ad = strong_value<ad_u>;
120using opengl = strong_value<opengl_u>;
121using cylindrical = strong_value<cylindrical_u>;
122using azd = strong_value<azd_u>;
123
124template <typename T>
125struct speed_ratio;
126
127// 6
128using meter_per_second_u = speed_ratio<std::ratio<1>>;
129using miles_per_hour_u = speed_ratio<std::ratio<254 * 12 * 5280, 3600 * 10000>>;
130using kilometer_per_hour_u = speed_ratio<std::ratio<1000, 3600>>;
131using knot_u = speed_ratio<std::ratio<1852, 3600>>;
132using foot_per_hour_u = speed_ratio<std::ratio<254 * 12, 3600 * 10000>>;
133using foot_per_second_u = speed_ratio<std::ratio<254 * 12, 10000>>;
134
135using meter_per_second = strong_value<meter_per_second_u>;
136using miles_per_hour = strong_value<miles_per_hour_u>;
137using kilometer_per_hour = strong_value<kilometer_per_hour_u>;
138using knot = strong_value<knot_u>;
139using foot_per_second = strong_value<foot_per_second_u>;
140using foot_per_hour = strong_value<foot_per_hour_u>;
141
142// 9
143struct second_u;
144struct bark_u;
145struct bpm_u;
146struct cent_u;
147struct frequency_u;
148struct mel_u;
149struct midi_pitch_u;
150struct millisecond_u;
151struct playback_speed_u;
152
153using second = strong_value<second_u>;
154using bark = strong_value<bark_u>;
155using bpm = strong_value<bpm_u>;
156using cent = strong_value<cent_u>;
157using frequency = strong_value<frequency_u>;
158using mel = strong_value<mel_u>;
159using midi_pitch = strong_value<midi_pitch_u>;
160using millisecond = strong_value<millisecond_u>;
161using playback_speed = strong_value<playback_speed_u>;
162
164struct angle_u;
165struct color_u;
166struct distance_u;
167struct orientation_u;
168struct gain_u;
169struct position_u;
170struct speed_u;
171struct timing_u;
172
173struct angle;
174struct color;
175struct distance;
176struct orientation;
177struct gain;
178struct position;
179struct speed;
180struct timing;
181
182struct unit_t;
183struct value_with_unit;
184
185template <typename T>
186struct dataspace_traits : public std::false_type
187{
188};
189}
Definition git_info.h:7