From 72c46bdd7f5d430ab1ad1d420ed77c7f22df857a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 30 Sep 2017 15:01:35 +0200 Subject: rename --- .../Debug/MinimalF.9345876F.tlog/CL.command.1.tlog | Bin 764 -> 0 bytes .../Debug/MinimalF.9345876F.tlog/CL.read.1.tlog | Bin 23366 -> 0 bytes .../Debug/MinimalF.9345876F.tlog/CL.write.1.tlog | Bin 580 -> 0 bytes .../MinimalFixationDataStream.lastbuildstate | 2 - .../MinimalF.9345876F.tlog/link.command.1.tlog | Bin 1300 -> 0 bytes .../Debug/MinimalF.9345876F.tlog/link.read.1.tlog | Bin 3158 -> 0 bytes .../Debug/MinimalF.9345876F.tlog/link.write.1.tlog | Bin 520 -> 0 bytes .../Debug/MinimalFixationDataStream.log | 2 - .../Debug/MinimalFixationDataStream.obj | Bin 72441 -> 0 bytes .../MinimalFixationDataStream/Debug/vc140.idb | Bin 265216 -> 0 bytes .../MinimalFixationDataStream/Debug/vc140.pdb | Bin 86016 -> 0 bytes .../MinimalFixationDataStream.c | 181 --------------------- .../MinimalFixationDataStream.vcxproj | 156 ------------------ .../MinimalFixationDataStream.vcxproj.filters | 6 - 14 files changed, 347 deletions(-) delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.command.1.tlog delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.read.1.tlog delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.write.1.tlog delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/MinimalFixationDataStream.lastbuildstate delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.command.1.tlog delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.read.1.tlog delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.write.1.tlog delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalFixationDataStream.log delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalFixationDataStream.obj delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/vc140.idb delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/Debug/vc140.pdb delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.c delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.vcxproj delete mode 100755 Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.vcxproj.filters (limited to 'Tobii EyeX/samples/MinimalFixationDataStream') diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.command.1.tlog b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.command.1.tlog deleted file mode 100755 index 71e55ee..0000000 Binary files a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.command.1.tlog and /dev/null differ diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.read.1.tlog b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.read.1.tlog deleted file mode 100755 index 5f407c0..0000000 Binary files a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.read.1.tlog and /dev/null differ diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.write.1.tlog b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.write.1.tlog deleted file mode 100755 index d898b96..0000000 Binary files a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/CL.write.1.tlog and /dev/null differ diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/MinimalFixationDataStream.lastbuildstate b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/MinimalFixationDataStream.lastbuildstate deleted file mode 100755 index 5cd4c3b..0000000 --- a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/MinimalFixationDataStream.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1 -Debug|Win32|D:\dev\tobii\samples\| diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.command.1.tlog b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.command.1.tlog deleted file mode 100755 index e5015ab..0000000 Binary files a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.command.1.tlog and /dev/null differ diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.read.1.tlog b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.read.1.tlog deleted file mode 100755 index e83e6a0..0000000 Binary files a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.read.1.tlog and /dev/null differ diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.write.1.tlog b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.write.1.tlog deleted file mode 100755 index 51ff531..0000000 Binary files a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalF.9345876F.tlog/link.write.1.tlog and /dev/null differ diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalFixationDataStream.log b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalFixationDataStream.log deleted file mode 100755 index 4122cb4..0000000 --- a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalFixationDataStream.log +++ /dev/null @@ -1,2 +0,0 @@ - MinimalFixationDataStream.c - MinimalFixationDataStream.vcxproj -> D:\dev\tobii\samples\Debug\MinimalFixationDataStream.exe diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalFixationDataStream.obj b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalFixationDataStream.obj deleted file mode 100755 index 16c002d..0000000 Binary files a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/MinimalFixationDataStream.obj and /dev/null differ diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/vc140.idb b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/vc140.idb deleted file mode 100755 index 9079705..0000000 Binary files a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/vc140.idb and /dev/null differ diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/vc140.pdb b/Tobii EyeX/samples/MinimalFixationDataStream/Debug/vc140.pdb deleted file mode 100755 index 01d5e16..0000000 Binary files a/Tobii EyeX/samples/MinimalFixationDataStream/Debug/vc140.pdb and /dev/null differ diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.c b/Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.c deleted file mode 100755 index 92b530e..0000000 --- a/Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.c +++ /dev/null @@ -1,181 +0,0 @@ -/* - * This is an example that demonstrates how to connect to the EyeX Engine and subscribe to the fixation data stream. - * - * Copyright 2013-2014 Tobii Technology AB. All rights reserved. - */ - -#include -#include -#include -#include -#include "eyex/EyeX.h" - -#pragma comment (lib, "Tobii.EyeX.Client.lib") - -// ID of the global interactor that provides our data stream; must be unique within the application. -static const TX_STRING InteractorId = "Rainbow Dash"; - -// global variables -static TX_HANDLE g_hGlobalInteractorSnapshot = TX_EMPTY_HANDLE; - -/* - * Initializes g_hGlobalInteractorSnapshot with an interactor that has the Fixation Data behavior. - */ -BOOL InitializeGlobalInteractorSnapshot(TX_CONTEXTHANDLE hContext) -{ - TX_HANDLE hInteractor = TX_EMPTY_HANDLE; - TX_FIXATIONDATAPARAMS params = { TX_FIXATIONDATAMODE_SENSITIVE }; - BOOL success; - - success = txCreateGlobalInteractorSnapshot( - hContext, - InteractorId, - &g_hGlobalInteractorSnapshot, - &hInteractor) == TX_RESULT_OK; - success &= txCreateFixationDataBehavior(hInteractor, ¶ms) == TX_RESULT_OK; - - txReleaseObject(&hInteractor); - - return success; -} - -/* - * Callback function invoked when a snapshot has been committed. - */ -void TX_CALLCONVENTION OnSnapshotCommitted(TX_CONSTHANDLE hAsyncData, TX_USERPARAM param) -{ - // check the result code using an assertion. - // this will catch validation errors and runtime errors in debug builds. in release builds it won't do anything. - - TX_RESULT result = TX_RESULT_UNKNOWN; - txGetAsyncDataResultCode(hAsyncData, &result); - assert(result == TX_RESULT_OK || result == TX_RESULT_CANCELLED); -} - -/* - * Callback function invoked when the status of the connection to the EyeX Engine has changed. - */ -void TX_CALLCONVENTION OnEngineConnectionStateChanged(TX_CONNECTIONSTATE connectionState, TX_USERPARAM userParam) -{ - switch (connectionState) { - case TX_CONNECTIONSTATE_CONNECTED: { - BOOL success; - printf("The connection state is now CONNECTED (We are connected to the EyeX Engine)\n"); - // commit the snapshot with the global interactor as soon as the connection to the engine is established. - // (it cannot be done earlier because committing means "send to the engine".) - success = txCommitSnapshotAsync(g_hGlobalInteractorSnapshot, OnSnapshotCommitted, NULL) == TX_RESULT_OK; - if (!success) { - printf("Failed to initialize the data stream.\n"); - } - else - { - printf("Waiting for fixation data to start streaming...\n"); - } - } - break; - - case TX_CONNECTIONSTATE_DISCONNECTED: - printf("The connection state is now DISCONNECTED (We are disconnected from the EyeX Engine)\n"); - break; - - case TX_CONNECTIONSTATE_TRYINGTOCONNECT: - printf("The connection state is now TRYINGTOCONNECT (We are trying to connect to the EyeX Engine)\n"); - break; - - case TX_CONNECTIONSTATE_SERVERVERSIONTOOLOW: - printf("The connection state is now SERVER_VERSION_TOO_LOW: this application requires a more recent version of the EyeX Engine to run.\n"); - break; - - case TX_CONNECTIONSTATE_SERVERVERSIONTOOHIGH: - printf("The connection state is now SERVER_VERSION_TOO_HIGH: this application requires an older version of the EyeX Engine to run.\n"); - break; - } -} - -/* - * Handles an event from the fixation data stream. - */ -void OnFixationDataEvent(TX_HANDLE hFixationDataBehavior) -{ - TX_FIXATIONDATAEVENTPARAMS eventParams; - TX_FIXATIONDATAEVENTTYPE eventType; - char* eventDescription; - - if (txGetFixationDataEventParams(hFixationDataBehavior, &eventParams) == TX_RESULT_OK) { - eventType = eventParams.EventType; - - eventDescription = (eventType == TX_FIXATIONDATAEVENTTYPE_DATA) ? "Data" - : ((eventType == TX_FIXATIONDATAEVENTTYPE_END) ? "End" - : "Begin"); - - printf("Fixation %s: (%.1f, %.1f) timestamp %.0f ms\n", eventDescription, eventParams.X, eventParams.Y, eventParams.Timestamp); - } else { - printf("Failed to interpret fixation data event packet.\n"); - } -} - -/* - * Callback function invoked when an event has been received from the EyeX Engine. - */ -void TX_CALLCONVENTION HandleEvent(TX_CONSTHANDLE hAsyncData, TX_USERPARAM userParam) -{ - TX_HANDLE hEvent = TX_EMPTY_HANDLE; - TX_HANDLE hBehavior = TX_EMPTY_HANDLE; - - txGetAsyncDataContent(hAsyncData, &hEvent); - - // NOTE. Uncomment the following line of code to view the event object. The same function can be used with any interaction object. - //OutputDebugStringA(txDebugObject(hEvent)); - - if (txGetEventBehavior(hEvent, &hBehavior, TX_BEHAVIORTYPE_FIXATIONDATA) == TX_RESULT_OK) { - OnFixationDataEvent(hBehavior); - txReleaseObject(&hBehavior); - } - - // NOTE since this is a very simple application with a single interactor and a single data stream, - // our event handling code can be very simple too. A more complex application would typically have to - // check for multiple behaviors and route events based on interactor IDs. - - txReleaseObject(&hEvent); -} - -/* - * Application entry point. - */ -int main(int argc, char* argv[]) -{ - TX_CONTEXTHANDLE hContext = TX_EMPTY_HANDLE; - TX_TICKET hConnectionStateChangedTicket = TX_INVALID_TICKET; - TX_TICKET hEventHandlerTicket = TX_INVALID_TICKET; - BOOL success; - - // initialize and enable the context that is our link to the EyeX Engine. - success = txInitializeEyeX(TX_EYEXCOMPONENTOVERRIDEFLAG_NONE, NULL, NULL, NULL, NULL) == TX_RESULT_OK; - success &= txCreateContext(&hContext, TX_FALSE) == TX_RESULT_OK; - success &= InitializeGlobalInteractorSnapshot(hContext); - success &= txRegisterConnectionStateChangedHandler(hContext, &hConnectionStateChangedTicket, OnEngineConnectionStateChanged, NULL) == TX_RESULT_OK; - success &= txRegisterEventHandler(hContext, &hEventHandlerTicket, HandleEvent, NULL) == TX_RESULT_OK; - success &= txEnableConnection(hContext) == TX_RESULT_OK; - - // let the events flow until a key is pressed. - if (success) { - printf("Initialization was successful.\n"); - } else { - printf("Initialization failed.\n"); - } - printf("Press any key to exit...\n"); - _getch(); - printf("Exiting.\n"); - - // disable and delete the context. - txDisableConnection(hContext); - txReleaseObject(&g_hGlobalInteractorSnapshot); - success = txShutdownContext(hContext, TX_CLEANUPTIMEOUT_DEFAULT, TX_FALSE) == TX_RESULT_OK; - success &= txReleaseContext(&hContext) == TX_RESULT_OK; - success &= txUninitializeEyeX() == TX_RESULT_OK; - if (!success) { - printf("EyeX could not be shut down cleanly. Did you remember to release all handles?\n"); - } - - return 0; -} diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.vcxproj b/Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.vcxproj deleted file mode 100755 index c341a56..0000000 --- a/Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.vcxproj +++ /dev/null @@ -1,156 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {9345876F-09E3-4764-9B3C-6496152D523E} - Win32Proj - MinimalFixationStream - MinimalFixationDataStream - - - - Application - true - v140 - Unicode - - - Application - true - v140 - Unicode - - - Application - false - v140 - true - Unicode - - - Application - false - v140 - true - Unicode - - - - - - - - - - - - - - - - - - - true - - - true - - - false - - - false - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - ..\..\include - - - Console - true - ..\..\lib\x86 - - - - - - - Level3 - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - ..\..\include - - - Console - true - ..\..\lib\x64 - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - ..\..\include - - - Console - true - true - true - ..\..\lib\x86 - - - - - Level3 - - - MaxSpeed - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - - - Console - true - true - true - ..\..\lib\x64 - - - - - - - - - - \ No newline at end of file diff --git a/Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.vcxproj.filters b/Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.vcxproj.filters deleted file mode 100755 index f22a6b0..0000000 --- a/Tobii EyeX/samples/MinimalFixationDataStream/MinimalFixationDataStream.vcxproj.filters +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file -- cgit v1.2.3