From be2926499af2e372c313d965533be3a7ee0dcf4d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 16 May 2016 11:19:10 +0200 Subject: add tobii eyex sdk --- Tobii EyeX/include/eyex-cpp/Snapshot.hpp | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 Tobii EyeX/include/eyex-cpp/Snapshot.hpp (limited to 'Tobii EyeX/include/eyex-cpp/Snapshot.hpp') diff --git a/Tobii EyeX/include/eyex-cpp/Snapshot.hpp b/Tobii EyeX/include/eyex-cpp/Snapshot.hpp new file mode 100755 index 0000000..1b1befb --- /dev/null +++ b/Tobii EyeX/include/eyex-cpp/Snapshot.hpp @@ -0,0 +1,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& spContext, TX_HANDLE hSnapshot); + static std::shared_ptr CreateSnapshotForQuery(const std::shared_ptr& spQuery); + static std::shared_ptr CreateSnapshotWithQueryBounds(const std::shared_ptr& spQuery); + + + std::shared_ptr GetBounds() const; + std::shared_ptr CreateBounds(TX_BOUNDSTYPE boundsType); + void SetBoundsFromQuery(); + void DeleteBounds(); + + std::vector> GetInteractors() const; + + std::shared_ptr CreateInteractor( + const std::string& interactorId, + const std::string& parentId, + const std::string& windowId); + + void RemoveInteractor(const std::string& interactorId); + + std::vector GetWindowIds(); + void AddWindowId(const std::string& windowId); + + void CommitAsync(AsyncDataHandler fnHandler) const; +}; + +/*********************************************************************************************************************/ + +TX_NAMESPACE_END + +/*********************************************************************************************************************/ + + +#endif // !defined(__TOBII_TX_CLIENT_CPPBINDINGS_Snapshot__HPP__) + +/*********************************************************************************************************************/ -- cgit v1.2.3