Skip to content
Snippets Groups Projects
Commit 7df6cacd authored by Konstantin Kühlem's avatar Konstantin Kühlem
Browse files

style: Ensured coding conventions

parent 8fd82fe0
Branches
No related tags found
No related merge requests found
...@@ -253,8 +253,6 @@ FString USFGazeTracker::GetCurrentGazeTarget() ...@@ -253,8 +253,6 @@ FString USFGazeTracker::GetCurrentGazeTarget()
} }
} }
return ""; return "";
} }
...@@ -294,7 +292,7 @@ bool USFGazeTracker::LaunchCalibration() ...@@ -294,7 +292,7 @@ bool USFGazeTracker::LaunchCalibration()
return false; return false;
} }
bool USFGazeTracker::IsTrackingEyes() bool USFGazeTracker::IsTrackingEyes() const
{ {
if (!bEyeTrackingStarted) if (!bEyeTrackingStarted)
return false; return false;
...@@ -318,7 +316,7 @@ bool USFGazeTracker::IsTrackingEyes() ...@@ -318,7 +316,7 @@ bool USFGazeTracker::IsTrackingEyes()
return false; return false;
} }
float USFGazeTracker::GetEyesOpenness() float USFGazeTracker::GetEyesOpenness() const
{ {
if (!IsTrackingEyes()) if (!IsTrackingEyes())
{ {
......
...@@ -67,12 +67,12 @@ public: ...@@ -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.) //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) 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 // 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 // returns -1.0 if the eyes are not tracked or not value can be estimated
UFUNCTION(BlueprintCallable) UFUNCTION(BlueprintCallable)
float GetEyesOpenness(); float GetEyesOpenness() const;
bool DataAlreadyLogged(); bool DataAlreadyLogged();
void SetDataLogged(); void SetDataLogged();
......
...@@ -94,7 +94,7 @@ public: ...@@ -94,7 +94,7 @@ public:
UPROPERTY(BlueprintReadOnly, EditAnywhere, Instanced, meta = (TitleProperty = "Name", Category = "Study Setup")) UPROPERTY(BlueprintReadOnly, EditAnywhere, Instanced, meta = (TitleProperty = "Name", Category = "Study Setup"))
TArray<USFIndependentVariable*> IndependentVariables; 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")) UPROPERTY(BlueprintReadOnly, EditAnywhere, meta = (Category = "Study Setup"))
TArray<FString> PhasesToOrderRandomize; TArray<FString> PhasesToOrderRandomize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment