blob: 1b1befb805f580908ae6674b3d316313f3e385d8 (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*********************************************************************************************************************
* Copyright 2013-2014 Tobii Technology AB. All rights reserved.
* Snapshot.hpp
*********************************************************************************************************************/
#if !defined(__TOBII_TX_CLIENT_CPPBINDINGS_Snapshot__HPP__)
#define __TOBII_TX_CLIENT_CPPBINDINGS_Snapshot__HPP__
/*********************************************************************************************************************/
TX_NAMESPACE_BEGIN
/*********************************************************************************************************************/
class Snapshot :
public InteractionObject
{
public:
Snapshot(const std::shared_ptr<const Context>& spContext, TX_HANDLE hSnapshot);
static std::shared_ptr<Snapshot> CreateSnapshotForQuery(const std::shared_ptr<Query>& spQuery);
static std::shared_ptr<Snapshot> CreateSnapshotWithQueryBounds(const std::shared_ptr<Query>& spQuery);
std::shared_ptr<Bounds> GetBounds() const;
std::shared_ptr<Bounds> CreateBounds(TX_BOUNDSTYPE boundsType);
void SetBoundsFromQuery();
void DeleteBounds();
std::vector<std::shared_ptr<Interactor>> GetInteractors() const;
std::shared_ptr<Interactor> CreateInteractor(
const std::string& interactorId,
const std::string& parentId,
const std::string& windowId);
void RemoveInteractor(const std::string& interactorId);
std::vector<std::string> GetWindowIds();
void AddWindowId(const std::string& windowId);
void CommitAsync(AsyncDataHandler fnHandler) const;
};
/*********************************************************************************************************************/
TX_NAMESPACE_END
/*********************************************************************************************************************/
#endif // !defined(__TOBII_TX_CLIENT_CPPBINDINGS_Snapshot__HPP__)
/*********************************************************************************************************************/
|