| 1 |
/* EMA_def.h |
| 2 |
* |
| 3 |
* Copyright (C) 2023 David Weenink |
| 4 |
* |
| 5 |
* This code is free software; you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation; either version 2 of the License, or (at |
| 8 |
* your option) any later version. |
| 9 |
* |
| 10 |
* This code is distributed in the hope that it will be useful, but |
| 11 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
|
| 19 |
#define ooSTRUCT EMAsensor_Frame |
| 20 |
oo_DEFINE_STRUCT (EMAsensor_Frame) |
| 21 |
oo_DOUBLE (x) |
| 22 |
oo_DOUBLE (y) |
| 23 |
oo_DOUBLE (z) |
| 24 |
oo_DOUBLE (phi) |
| 25 |
oo_DOUBLE (theta) |
| 26 |
oo_END_STRUCT (EMAsensor_Frame) |
| 27 |
#undef ooSTRUCT |
| 28 |
|
| 29 |
#define ooSTRUCT EMA_Frame |
| 30 |
oo_DEFINE_STRUCT (EMA_Frame) |
| 31 |
oo_INTEGER (numberOfSensors) |
| 32 |
oo_STRUCTVEC (EMAsensor_Frame, sensorFrames, numberOfSensors) |
| 33 |
oo_END_STRUCT (EMA_Frame) |
| 34 |
#undef ooSTRUCT |
| 35 |
|
| 36 |
#define ooSTRUCT EMA |
| 37 |
oo_DEFINE_CLASS (EMA, Sampled) |
| 38 |
oo_INTEGER (numberOfSensors) |
| 39 |
oo_STRING_VECTOR (sensorNames, numberOfSensors) |
| 40 |
oo_STRUCTVEC (EMA_Frame, emaFrames, nx) |
| 41 |
|
| 42 |
#if oo_DECLARING |
| 43 |
void v1_info () |
| 44 |
override; |
| 45 |
int v_domainQuantity () const |
| 46 |
override { return MelderQuantity_TIME_SECONDS; } |
| 47 |
#endif |
| 48 |
|
| 49 |
oo_END_CLASS (EMA) |
| 50 |
#undef ooSTRUCT |
| 51 |
|
| 52 |
/* End of file EMA_def.h */ |