forked from simlrh/OSVR-fusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPositionReader.h
31 lines (25 loc) · 900 Bytes
/
PositionReader.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 IPositionReader {
public:
virtual OSVR_ReturnCode update(OSVR_PositionState* position, OSVR_TimeValue* timeValue) = 0;
};
class PositionReaderFactory {
public:
static IPositionReader* getReader(OSVR_ClientContext ctx, Json::Value config);
};
class SinglePositionReader : public IPositionReader {
public:
SinglePositionReader(OSVR_ClientContext ctx, std::string position_path);
OSVR_ReturnCode update(OSVR_PositionState* position, OSVR_TimeValue* timeValue);
protected:
OSVR_ClientInterface m_position;
};
class CombinedPositionReader : public IPositionReader {
public:
CombinedPositionReader(OSVR_ClientContext ctx, Json::Value position_paths);
OSVR_ReturnCode update(OSVR_PositionState* position, OSVR_TimeValue* timeValue);
protected:
OSVR_ClientInterface m_positions[3];
};
}