222 lines
8.7 KiB
C++
222 lines
8.7 KiB
C++
/**
|
|
* @file
|
|
*
|
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
|
*
|
|
* @section LICENSE
|
|
*
|
|
* (The MIT License)
|
|
*
|
|
* Copyright (c) 2020 - 2023 SenseGlove
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
* in the Software without restriction, including without limitation the rights
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in all
|
|
* copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
* SOFTWARE.
|
|
*
|
|
* @section DESCRIPTION
|
|
*
|
|
*
|
|
*/
|
|
|
|
|
|
#include "SGKismet/SGWristTrackerComponentKismetLibrary.h"
|
|
|
|
#include "SenseGlove/Components/SGWristTrackerComponent.h"
|
|
|
|
bool UWristTrackerComponentKismetLibrary::OverridesPluginWristTrackingSettings(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->OverridesPluginWristTrackingSettings();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::OverridePluginWristTrackingSettings(
|
|
USGWristTrackerComponent* WristTrackerComponent, const bool bInOverridePluginWristTrackingSettings)
|
|
{
|
|
WristTrackerComponent->OverridePluginWristTrackingSettings(bInOverridePluginWristTrackingSettings);
|
|
}
|
|
|
|
ESGPositionalTrackingHardware UWristTrackerComponentKismetLibrary::GetHardwareOffset(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetHardwareOffset();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetHardwareOffset(USGWristTrackerComponent* WristTrackerComponent,
|
|
ESGPositionalTrackingHardware InHardwareOffset)
|
|
{
|
|
WristTrackerComponent->SetHardwareOffset(InHardwareOffset);
|
|
}
|
|
|
|
const FVector& UWristTrackerComponentKismetLibrary::GetHardwareLocationOffset(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetHardwareLocationOffset();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetHardwareLocationOffset(USGWristTrackerComponent* WristTrackerComponent,
|
|
const FVector& InHardwareLocationOffset)
|
|
{
|
|
WristTrackerComponent->SetHardwareLocationOffset(InHardwareLocationOffset);
|
|
}
|
|
|
|
const FRotator& UWristTrackerComponentKismetLibrary::GetHardwareRotationOffset(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetHardwareRotationOffset();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetHardwareRotationOffset(USGWristTrackerComponent* WristTrackerComponent,
|
|
const FRotator& InHardwareRotationOffset)
|
|
{
|
|
WristTrackerComponent->SetHardwareRotationOffset(InHardwareRotationOffset);
|
|
}
|
|
|
|
bool UWristTrackerComponentKismetLibrary::OverridesPluginWristTrackingDebugSettings(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->OverridesPluginWristTrackingDebugSettings();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::OverridePluginWristTrackingDebugSettings(
|
|
USGWristTrackerComponent* WristTrackerComponent, const bool bInOverridePluginWristTrackingDebugSettings)
|
|
{
|
|
WristTrackerComponent->OverridePluginWristTrackingDebugSettings(bInOverridePluginWristTrackingDebugSettings);
|
|
}
|
|
|
|
bool UWristTrackerComponentKismetLibrary::GetDrawDebugWristTrackerGizmo(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetDrawDebugWristTrackerGizmo();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetDrawDebugWristTrackerGizmo(USGWristTrackerComponent* WristTrackerComponent,
|
|
const bool bInDrawDebugWristTrackerGizmo)
|
|
{
|
|
WristTrackerComponent->SetDrawDebugWristTrackerGizmo(bInDrawDebugWristTrackerGizmo);
|
|
}
|
|
|
|
float UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoLength(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetDebugWristTrackerGizmoLength();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoLength(
|
|
USGWristTrackerComponent* WristTrackerComponent, const float InDebugWristTrackerGizmoLength)
|
|
{
|
|
WristTrackerComponent->SetDebugWristTrackerGizmoLength(InDebugWristTrackerGizmoLength);
|
|
}
|
|
|
|
const FLinearColor& UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoXAxisColor(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetDebugWristTrackerGizmoXAxisColor();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoXAxisColor(
|
|
USGWristTrackerComponent* WristTrackerComponent, const FLinearColor& InDebugWristTrackerGizmoXAxisColor)
|
|
{
|
|
WristTrackerComponent->SetDebugWristTrackerGizmoXAxisColor(InDebugWristTrackerGizmoXAxisColor);
|
|
}
|
|
|
|
const FLinearColor& UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoYAxisColor(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetDebugWristTrackerGizmoYAxisColor();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoYAxisColor(
|
|
USGWristTrackerComponent* WristTrackerComponent, const FLinearColor& InDebugWristTrackerGizmoYAxisColor)
|
|
{
|
|
WristTrackerComponent->SetDebugWristTrackerGizmoYAxisColor(InDebugWristTrackerGizmoYAxisColor);
|
|
}
|
|
|
|
const FLinearColor& UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoZAxisColor(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetDebugWristTrackerGizmoZAxisColor();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoZAxisColor(
|
|
USGWristTrackerComponent* WristTrackerComponent, const FLinearColor& InDebugWristTrackerGizmoZAxisColor)
|
|
{
|
|
WristTrackerComponent->SetDebugWristTrackerGizmoZAxisColor(InDebugWristTrackerGizmoZAxisColor);
|
|
}
|
|
|
|
bool UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoPersistentLines(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetDebugWristTrackerGizmoPersistentLines();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoPersistentLines(
|
|
USGWristTrackerComponent* WristTrackerComponent, const bool bInDebugWristTrackerGizmoPersistentLines)
|
|
{
|
|
WristTrackerComponent->SetDebugWristTrackerGizmoPersistentLines(bInDebugWristTrackerGizmoPersistentLines);
|
|
}
|
|
|
|
float UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoLifeTimeModifier(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetDebugWristTrackerGizmoLifeTimeModifier();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoLifeTimeModifier(
|
|
USGWristTrackerComponent* WristTrackerComponent, const float InDebugWristTrackerGizmoLifeTimeModifier)
|
|
{
|
|
WristTrackerComponent->SetDebugWristTrackerGizmoLifeTimeModifier(InDebugWristTrackerGizmoLifeTimeModifier);
|
|
}
|
|
|
|
uint8 UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoDepthPriority(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetDebugWristTrackerGizmoDepthPriority();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoDepthPriority(
|
|
USGWristTrackerComponent* WristTrackerComponent, const uint8 InDebugWristTrackerGizmoDepthPriority)
|
|
{
|
|
WristTrackerComponent->SetDebugWristTrackerGizmoDepthPriority(InDebugWristTrackerGizmoDepthPriority);
|
|
}
|
|
|
|
float UWristTrackerComponentKismetLibrary::GetDebugWristTrackerGizmoThickness(
|
|
const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->GetDebugWristTrackerGizmoThickness();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetDebugWristTrackerGizmoThickness(
|
|
USGWristTrackerComponent* WristTrackerComponent, float InDebugWristTrackerGizmoThickness)
|
|
{
|
|
WristTrackerComponent->SetDebugWristTrackerGizmoThickness(InDebugWristTrackerGizmoThickness);
|
|
}
|
|
|
|
bool UWristTrackerComponentKismetLibrary::IsLeft(const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->IsLeft();
|
|
}
|
|
|
|
bool UWristTrackerComponentKismetLibrary::IsRight(const USGWristTrackerComponent* WristTrackerComponent)
|
|
{
|
|
return WristTrackerComponent->IsRight();
|
|
}
|
|
|
|
void UWristTrackerComponentKismetLibrary::SetRight(USGWristTrackerComponent* WristTrackerComponent,
|
|
const bool bInRight)
|
|
{
|
|
WristTrackerComponent->SetRight(bInRight);
|
|
} |