OpenDAFF C++ API
v1.7
Directional Audio File Format
Main Page
Namespaces
Classes
Files
File List
File Members
include
DAFFSCTransform.h
Go to the documentation of this file.
1
/*
2
* -------------------------------------------------------------------------------------
3
*
4
* OpenDAFF - A free, open source software package for directional audio data
5
* Copyright 2016 Institute of Technical Acoustics, RWTH Aachen University
6
* OpenDAFF is distributed under the Apache License Version 2.0.
7
*
8
* ------------------------------------------------------------------------------------
9
*
10
*/
11
12
#ifndef IW_DAFF_SC_TRANSFORM
13
#define IW_DAFF_SC_TRANSFORM
14
15
#include <
DAFFDefs.h
>
16
23
class
DAFF_API
DAFFSCTransform
24
{
25
public
:
27
inline
DAFFSCTransform
() {};
28
30
DAFFSCTransform
(
const
DAFFOrientationYPR
& orient );
31
33
void
getOrientation(
DAFFOrientationYPR
& orient )
const
;
34
36
void
setOrientation(
const
DAFFOrientationYPR
& orient );
37
39
void
transformOSC2DSC(
float
azimuth_in,
float
elevation_in,
40
float
& alpha_out,
float
& beta_out )
const
;
41
43
void
transformDSC2OSC(
float
alpha_in,
float
beta_in,
44
float
& azimuth_out,
float
& elevation_out )
const
;
45
47
void
transformOSC2DSC(
double
azimuth_in,
double
elevation_in,
48
double
& alpha_out,
double
& beta_out )
const
;
49
51
void
transformDSC2OSC(
double
alpha_in,
double
beta_in,
52
double
& azimuth_out,
double
& elevation_out )
const
;
53
54
private
:
56
class
RotationConstants
57
{
58
public
:
59
double
t1, t2, t3, t4, t5, t6, t7, t8, t9;
60
62
void
Init(
double
yaw,
double
pitch,
double
roll );
63
};
64
65
DAFFOrientationYPR
m_orient;
66
RotationConstants m_const;
67
int
m_orient_index;
68
};
69
70
#endif // IW_DAFF_SC_TRANSFORM
DAFF_API
#define DAFF_API
Definition:
DAFFDefs.h:29
DAFFDefs.h
DAFFSCTransform
Definition:
DAFFSCTransform.h:23
DAFFSCTransform::DAFFSCTransform
DAFFSCTransform()
Constructor.
Definition:
DAFFSCTransform.h:27
DAFFOrientationYPR
Data class for orientations in yaw-pitch-roll (YPR) angles (right-handed OpenGL coordinate system) ...
Definition:
DAFFDefs.h:138
OpenDAFF
is a project from the
Institute of Technical Acoustics
, RWTH Aachen University, Germany.