2023-04-25 17:30:27 +02:00
|
|
|
/**
|
|
|
|
|
* @file
|
|
|
|
|
*
|
|
|
|
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
|
|
|
|
*
|
|
|
|
|
* @section LICENSE
|
|
|
|
|
*
|
|
|
|
|
* (The MIT License)
|
|
|
|
|
*
|
2024-02-03 04:39:36 +01:00
|
|
|
* Copyright (c) 2020 - 2024 SenseGlove
|
2023-04-25 17:30:27 +02:00
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "UObject/ObjectMacros.h"
|
|
|
|
|
|
|
|
|
|
#include "SGTypes/SGDebugTypes.h"
|
|
|
|
|
|
|
|
|
|
#include "SGDebugVirtualHandSettings.generated.h"
|
|
|
|
|
|
|
|
|
|
USTRUCT(BlueprintType)
|
|
|
|
|
struct SENSEGLOVESETTINGS_API FSGDebugVirtualHandSettings
|
|
|
|
|
{
|
|
|
|
|
GENERATED_USTRUCT_BODY()
|
|
|
|
|
|
|
|
|
|
public:
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg")
|
2023-06-02 19:38:21 +02:00
|
|
|
uint8 bDrawDebugVirtualHand : 1;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2023-06-02 19:38:21 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand", EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
ESGDebugVirtualHandDrawingMode DrawingMode;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::CubicJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
FVector CubeExtent;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::CubicJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
FColor CubeColor;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::CubicJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
float CubeThickness;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::GizmoJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
float GizmoLength;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::GizmoJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
float GizmoThickness;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::GizmoJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
FColor GizmoXAxisColor;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::GizmoJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
FColor GizmoYAxisColor;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::GizmoJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
FColor GizmoZAxisColor;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::GizmoJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
uint8 bPersistentLines : 1;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::GizmoJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
float LifeTimeModifier;
|
|
|
|
|
|
2024-06-07 00:07:21 +02:00
|
|
|
UPROPERTY(Config, EditDefaultsOnly, Category = "Debug Virtual Handg",
|
2024-05-03 11:29:17 +02:00
|
|
|
meta=(EditCondition="bDrawDebugVirtualHand && DrawingMode == ESGDebugVirtualHandDrawingMode::GizmoJoints",
|
|
|
|
|
EditConditionHides))
|
2023-04-25 17:30:27 +02:00
|
|
|
uint8 DepthPriority;
|
|
|
|
|
|
|
|
|
|
public:
|
2023-06-02 19:38:21 +02:00
|
|
|
FSGDebugVirtualHandSettings();
|
|
|
|
|
|
2024-05-03 11:29:17 +02:00
|
|
|
FSGDebugVirtualHandSettings(
|
2023-06-02 19:38:21 +02:00
|
|
|
bool bInDrawDebugVirtualHand,
|
2024-05-03 11:29:17 +02:00
|
|
|
ESGDebugVirtualHandDrawingMode InDrawingMode,
|
|
|
|
|
const FVector& InCubeExtent,
|
|
|
|
|
const FColor& InCubeColor,
|
|
|
|
|
float InCubeThickness,
|
|
|
|
|
float InGizmoLength,
|
|
|
|
|
float InGizmoThickness,
|
|
|
|
|
const FColor& InGizmoXAxisColor,
|
|
|
|
|
const FColor& InGizmoYAxisColor,
|
|
|
|
|
const FColor& InGizmoZAxisColor,
|
|
|
|
|
bool bInPersistentLines,
|
|
|
|
|
float InLifeTimeModifier,
|
|
|
|
|
uint8 InDepthPriority);
|
2023-04-25 17:30:27 +02:00
|
|
|
};
|