functional wrist tracker component

This commit is contained in:
Mamadou Babaei
2023-03-23 21:48:48 +01:00
parent db42061326
commit 6e05843c0f
10 changed files with 415 additions and 267 deletions
@@ -49,40 +49,42 @@ void UWristTrackerComponentKismetLibrary::OverridePluginWristTrackingSettings(
WristTrackerComponent->OverridePluginWristTrackingSettings(bInOverridePluginWristTrackingSettings);
}
ESGPositionalTrackingHardware UWristTrackerComponentKismetLibrary::GetHardwareOffset(
ESGPositionalTrackingHardware UWristTrackerComponentKismetLibrary::GetTrackingHardware(
const USGWristTrackerComponent* WristTrackerComponent)
{
return WristTrackerComponent->GetHardwareOffset();
return WristTrackerComponent->GetTrackingHardware();
}
void UWristTrackerComponentKismetLibrary::SetHardwareOffset(USGWristTrackerComponent* WristTrackerComponent,
ESGPositionalTrackingHardware InHardwareOffset)
void UWristTrackerComponentKismetLibrary::SetTrackingHardware(
USGWristTrackerComponent* WristTrackerComponent, ESGPositionalTrackingHardware InTrackingHardware)
{
WristTrackerComponent->SetHardwareOffset(InHardwareOffset);
WristTrackerComponent->SetTrackingHardware(InTrackingHardware);
}
const FVector& UWristTrackerComponentKismetLibrary::GetHardwareLocationOffset(
const FVector& UWristTrackerComponentKismetLibrary::GetTrackingHardwareLocationOffset(
const USGWristTrackerComponent* WristTrackerComponent)
{
return WristTrackerComponent->GetHardwareLocationOffset();
return WristTrackerComponent->GetTrackingHardwareLocationOffset();
}
void UWristTrackerComponentKismetLibrary::SetHardwareLocationOffset(USGWristTrackerComponent* WristTrackerComponent,
const FVector& InHardwareLocationOffset)
void UWristTrackerComponentKismetLibrary::SetTrackingHardwareLocationOffset(
USGWristTrackerComponent* WristTrackerComponent,
const FVector& InTrackingHardwareLocationOffset)
{
WristTrackerComponent->SetHardwareLocationOffset(InHardwareLocationOffset);
WristTrackerComponent->SetTrackingHardwareLocationOffset(InTrackingHardwareLocationOffset);
}
const FRotator& UWristTrackerComponentKismetLibrary::GetHardwareRotationOffset(
const FRotator& UWristTrackerComponentKismetLibrary::GetTrackingHardwareRotationOffset(
const USGWristTrackerComponent* WristTrackerComponent)
{
return WristTrackerComponent->GetHardwareRotationOffset();
return WristTrackerComponent->GetTrackingHardwareRotationOffset();
}
void UWristTrackerComponentKismetLibrary::SetHardwareRotationOffset(USGWristTrackerComponent* WristTrackerComponent,
const FRotator& InHardwareRotationOffset)
void UWristTrackerComponentKismetLibrary::SetTrackingHardwareRotationOffset(
USGWristTrackerComponent* WristTrackerComponent,
const FRotator& InTrackingHardwareRotationOffset)
{
WristTrackerComponent->SetHardwareRotationOffset(InHardwareRotationOffset);
WristTrackerComponent->SetTrackingHardwareRotationOffset(InTrackingHardwareRotationOffset);
}
bool UWristTrackerComponentKismetLibrary::OverridesPluginWristTrackingDebugSettings(
@@ -103,8 +105,8 @@ bool UWristTrackerComponentKismetLibrary::GetDrawDebugWristTrackerGizmo(
return WristTrackerComponent->GetDrawDebugWristTrackerGizmo();
}
void UWristTrackerComponentKismetLibrary::SetDrawDebugWristTrackerGizmo(USGWristTrackerComponent* WristTrackerComponent,
const bool bInDrawDebugWristTrackerGizmo)
void UWristTrackerComponentKismetLibrary::SetDrawDebugWristTrackerGizmo(
USGWristTrackerComponent* WristTrackerComponent, const bool bInDrawDebugWristTrackerGizmo)
{
WristTrackerComponent->SetDrawDebugWristTrackerGizmo(bInDrawDebugWristTrackerGizmo);
}
@@ -121,38 +123,38 @@ void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoLength(
WristTrackerComponent->SetDebugWristTrackerGizmoLength(InDebugWristTrackerGizmoLength);
}
const FLinearColor& UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoXAxisColor(
const FColor& UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoXAxisColor(
const USGWristTrackerComponent* WristTrackerComponent)
{
return WristTrackerComponent->GetDebugWristTrackerGizmoXAxisColor();
}
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoXAxisColor(
USGWristTrackerComponent* WristTrackerComponent, const FLinearColor& InDebugWristTrackerGizmoXAxisColor)
USGWristTrackerComponent* WristTrackerComponent, const FColor& InDebugWristTrackerGizmoXAxisColor)
{
WristTrackerComponent->SetDebugWristTrackerGizmoXAxisColor(InDebugWristTrackerGizmoXAxisColor);
}
const FLinearColor& UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoYAxisColor(
const FColor& UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoYAxisColor(
const USGWristTrackerComponent* WristTrackerComponent)
{
return WristTrackerComponent->GetDebugWristTrackerGizmoYAxisColor();
}
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoYAxisColor(
USGWristTrackerComponent* WristTrackerComponent, const FLinearColor& InDebugWristTrackerGizmoYAxisColor)
USGWristTrackerComponent* WristTrackerComponent, const FColor& InDebugWristTrackerGizmoYAxisColor)
{
WristTrackerComponent->SetDebugWristTrackerGizmoYAxisColor(InDebugWristTrackerGizmoYAxisColor);
}
const FLinearColor& UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoZAxisColor(
const FColor& UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoZAxisColor(
const USGWristTrackerComponent* WristTrackerComponent)
{
return WristTrackerComponent->GetDebugWristTrackerGizmoZAxisColor();
}
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoZAxisColor(
USGWristTrackerComponent* WristTrackerComponent, const FLinearColor& InDebugWristTrackerGizmoZAxisColor)
USGWristTrackerComponent* WristTrackerComponent, const FColor& InDebugWristTrackerGizmoZAxisColor)
{
WristTrackerComponent->SetDebugWristTrackerGizmoZAxisColor(InDebugWristTrackerGizmoZAxisColor);
}
@@ -200,7 +202,7 @@ float UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoThickness(
}
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoThickness(
USGWristTrackerComponent* WristTrackerComponent, float InDebugWristTrackerGizmoThickness)
USGWristTrackerComponent* WristTrackerComponent, const float InDebugWristTrackerGizmoThickness)
{
WristTrackerComponent->SetDebugWristTrackerGizmoThickness(InDebugWristTrackerGizmoThickness);
}
@@ -215,8 +217,20 @@ bool UWristTrackerComponentKismetLibrary::IsRight(const USGWristTrackerComponent
return WristTrackerComponent->IsRight();
}
void UWristTrackerComponentKismetLibrary::SetRight(USGWristTrackerComponent* WristTrackerComponent,
const bool bInRight)
void UWristTrackerComponentKismetLibrary::SetRight(
USGWristTrackerComponent* WristTrackerComponent, const bool bInRight)
{
WristTrackerComponent->SetRight(bInRight);
}
const FVector& UWristTrackerComponentKismetLibrary::GetWristLocation(
const USGWristTrackerComponent* WristTrackerComponent)
{
return WristTrackerComponent->GetWristLocation();
}
const FRotator& UWristTrackerComponentKismetLibrary::GetWristRotation(
const USGWristTrackerComponent* WristTrackerComponent)
{
return WristTrackerComponent->GetWristRotation();
}
@@ -61,25 +61,25 @@ public:
bool bInOverridePluginWristTrackingSettings);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Wrist Tracker Component")
static ESGPositionalTrackingHardware GetHardwareOffset(const USGWristTrackerComponent* WristTrackerComponent);
static ESGPositionalTrackingHardware GetTrackingHardware(const USGWristTrackerComponent* WristTrackerComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Wrist Tracker Component")
static void SetHardwareOffset(UPARAM(ref) USGWristTrackerComponent* WristTrackerComponent,
ESGPositionalTrackingHardware InHardwareOffset);
static void SetTrackingHardware(UPARAM(ref) USGWristTrackerComponent* WristTrackerComponent,
ESGPositionalTrackingHardware InTrackingHardware);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Wrist Tracker Component")
static const FVector& GetHardwareLocationOffset(const USGWristTrackerComponent* WristTrackerComponent);
static const FVector& GetTrackingHardwareLocationOffset(const USGWristTrackerComponent* WristTrackerComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Wrist Tracker Component")
static void SetHardwareLocationOffset(UPARAM(ref) USGWristTrackerComponent* WristTrackerComponent,
const FVector& InHardwareLocationOffset);
static void SetTrackingHardwareLocationOffset(UPARAM(ref) USGWristTrackerComponent* WristTrackerComponent,
const FVector& InTrackingHardwareLocationOffset);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Wrist Tracker Component")
static const FRotator& GetHardwareRotationOffset(const USGWristTrackerComponent* WristTrackerComponent);
static const FRotator& GetTrackingHardwareRotationOffset(const USGWristTrackerComponent* WristTrackerComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Wrist Tracker Component")
static void SetHardwareRotationOffset(UPARAM(ref) USGWristTrackerComponent* WristTrackerComponent,
const FRotator& InHardwareRotationOffset);
static void SetTrackingHardwareRotationOffset(UPARAM(ref) USGWristTrackerComponent* WristTrackerComponent,
const FRotator& InTrackingHardwareRotationOffset);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Wrist Tracker Component")
static bool OverridesPluginWristTrackingDebugSettings(const USGWristTrackerComponent* WristTrackerComponent);
@@ -103,28 +103,28 @@ public:
float InDebugWristTrackerGizmoLength);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Wrist Tracker Component")
static const FLinearColor& GetDebugWristTrackerGizmoXAxisColor(
static const FColor& GetDebugWristTrackerGizmoXAxisColor(
const USGWristTrackerComponent* WristTrackerComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Wrist Tracker Component")
static void SetDebugWristTrackerGizmoXAxisColor(UPARAM(ref) USGWristTrackerComponent* WristTrackerComponent,
const FLinearColor& InDebugWristTrackerGizmoXAxisColor);
const FColor& InDebugWristTrackerGizmoXAxisColor);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Wrist Tracker Component")
static const FLinearColor& GetDebugWristTrackerGizmoYAxisColor(
static const FColor& GetDebugWristTrackerGizmoYAxisColor(
const USGWristTrackerComponent* WristTrackerComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Wrist Tracker Component")
static void SetDebugWristTrackerGizmoYAxisColor(UPARAM(ref) USGWristTrackerComponent* WristTrackerComponent,
const FLinearColor& InDebugWristTrackerGizmoYAxisColor);
const FColor& InDebugWristTrackerGizmoYAxisColor);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Wrist Tracker Component")
static const FLinearColor& GetDebugWristTrackerGizmoZAxisColor(
static const FColor& GetDebugWristTrackerGizmoZAxisColor(
const USGWristTrackerComponent* WristTrackerComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Wrist Tracker Component")
static void SetDebugWristTrackerGizmoZAxisColor(UPARAM(ref) USGWristTrackerComponent* WristTrackerComponent,
const FLinearColor& InDebugWristTrackerGizmoZAxisColor);
const FColor& InDebugWristTrackerGizmoZAxisColor);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Wrist Tracker Component")
static bool GetDebugWristTrackerGizmoPersistentLines(const USGWristTrackerComponent* WristTrackerComponent);
@@ -162,4 +162,10 @@ public:
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Wrist Tracker Component")
static void SetRight(UPARAM(ref) USGWristTrackerComponent* WristTrackerComponent, bool bInRight);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Wrist Tracker Component")
static const FVector& GetWristLocation(const USGWristTrackerComponent* WristTrackerComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Wrist Tracker Component")
static const FRotator& GetWristRotation(const USGWristTrackerComponent* WristTrackerComponent);
};