diff --git a/Source/StudyFrameworkPlugin/Private/GazeTracking/SFGazeTracker.cpp b/Source/StudyFrameworkPlugin/Private/GazeTracking/SFGazeTracker.cpp index 31e4943000526b4d90c40094df54ff24d38b17e8..f25f6ba02dc5808d14feb618f77cac8ee562d589 100644 --- a/Source/StudyFrameworkPlugin/Private/GazeTracking/SFGazeTracker.cpp +++ b/Source/StudyFrameworkPlugin/Private/GazeTracking/SFGazeTracker.cpp @@ -252,9 +252,7 @@ FString USFGazeTracker::GetCurrentGazeTarget() break; } } - - - + return ""; } @@ -294,7 +292,7 @@ bool USFGazeTracker::LaunchCalibration() return false; } -bool USFGazeTracker::IsTrackingEyes() +bool USFGazeTracker::IsTrackingEyes() const { if (!bEyeTrackingStarted) return false; @@ -318,7 +316,7 @@ bool USFGazeTracker::IsTrackingEyes() return false; } -float USFGazeTracker::GetEyesOpenness() +float USFGazeTracker::GetEyesOpenness() const { if (!IsTrackingEyes()) { diff --git a/Source/StudyFrameworkPlugin/Public/GazeTracking/SFGazeTracker.h b/Source/StudyFrameworkPlugin/Public/GazeTracking/SFGazeTracker.h index 38de76344b294e38547d80948684c26ccfdd221d..a07d360b711fbd39dfa1e11ed6b9209814611d7d 100644 --- a/Source/StudyFrameworkPlugin/Public/GazeTracking/SFGazeTracker.h +++ b/Source/StudyFrameworkPlugin/Public/GazeTracking/SFGazeTracker.h @@ -67,12 +67,12 @@ public: //whether currently the eyes are tracked, otherwise head-forward is used (this can change during execution if the HMD is taken off etc.) UFUNCTION(BlueprintCallable) - bool IsTrackingEyes(); + bool IsTrackingEyes() const; // a value (mean of both eyes), how open the eyes are from 0.0 (fully closed), to 1.0 (fully opened), extreme values might not be reached // returns -1.0 if the eyes are not tracked or not value can be estimated UFUNCTION(BlueprintCallable) - float GetEyesOpenness(); + float GetEyesOpenness() const; bool DataAlreadyLogged(); void SetDataLogged(); diff --git a/Source/StudyFrameworkPlugin/Public/SFStudySetup.h b/Source/StudyFrameworkPlugin/Public/SFStudySetup.h index 5970bfbd8df55ba91500917bce9f537a59167aff..0fa3e4d8a956190b83ad5bc1c3251f4ebec6d1ab 100644 --- a/Source/StudyFrameworkPlugin/Public/SFStudySetup.h +++ b/Source/StudyFrameworkPlugin/Public/SFStudySetup.h @@ -94,7 +94,7 @@ public: UPROPERTY(BlueprintReadOnly, EditAnywhere, Instanced, meta = (TitleProperty = "Name", Category = "Study Setup")) TArray<USFIndependentVariable*> IndependentVariables; - //give names of phases wich should be randomized in their order between participants + //give names of phases which should be randomized in their order between participants UPROPERTY(BlueprintReadOnly, EditAnywhere, meta = (Category = "Study Setup")) TArray<FString> PhasesToOrderRandomize;