-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathOrientationReader.h
31 lines (25 loc) · 957 Bytes
/
OrientationReader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "stdafx.h"
namespace je_nourish_fusion {
class IOrientationReader {
public:
virtual OSVR_ReturnCode update(OSVR_OrientationState* orientation, OSVR_TimeValue* timeValue) = 0;
};
class OrientationReaderFactory {
public:
static IOrientationReader* getReader(OSVR_ClientContext ctx, Json::Value config);
};
class SingleOrientationReader : public IOrientationReader {
public:
SingleOrientationReader(OSVR_ClientContext ctx, std::string orientation_path);
OSVR_ReturnCode update(OSVR_OrientationState* orientation, OSVR_TimeValue* timeValue);
protected:
OSVR_ClientInterface m_orientation;
};
class CombinedOrientationReader : public IOrientationReader {
public:
CombinedOrientationReader(OSVR_ClientContext ctx, Json::Value orientation_paths);
OSVR_ReturnCode update(OSVR_OrientationState* orientation, OSVR_TimeValue* timeValue);
protected:
OSVR_ClientInterface m_orientations[3];
};
}