119 lines
5.7 KiB
C++
119 lines
5.7 KiB
C++
/**
|
|
* @file
|
|
*
|
|
* @author Mamadou Babaei <mamadou@senseglove.com>
|
|
*
|
|
* @section LICENSE
|
|
*
|
|
* (The MIT License)
|
|
*
|
|
* Copyright (c) 2020 - 2022 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
|
|
*
|
|
*
|
|
*/
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "SGKismet/SGBlueprintFunctionLibrary.h"
|
|
|
|
#include "SGInterpolationSetKismetLibrary.generated.h"
|
|
|
|
class USGInterpolationSet;
|
|
|
|
UCLASS(meta=(ScriptName = "SesneGloveInterpolationSetKismetLibrary"))
|
|
class SENSEGLOVECOREKISMET_API USGInterpolationSetKismetLibrary final : public USGBlueprintFunctionLibrary
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UFUNCTION(BlueprintCallable, Category="SenseGlove | Core | Kinematics | Interpolation Set",
|
|
meta=(WorldContext="WorldContextObject"))
|
|
static USGInterpolationSet* MakeInterpolationSet(UObject* WorldContextObject);
|
|
|
|
UFUNCTION(BlueprintCallable, DisplayName="Make Interpolation Set",
|
|
Category="SenseGlove | Core | Kinematics | Interpolation Set", meta=(WorldContext="WorldContextObject"))
|
|
static USGInterpolationSet* MakeInterpolationSet_F1_F2_T1_T2(
|
|
UObject* WorldContextObject, float From1, float From2, float To1, float To2);
|
|
|
|
UFUNCTION(BlueprintCallable, DisplayName="Make Interpolation Set",
|
|
Category="SenseGlove | Core | Kinematics | Interpolation Set", meta=(WorldContext="WorldContextObject"))
|
|
static USGInterpolationSet* MakeInterpolationSet_F1_F2_T1_T2_M_M(
|
|
UObject* WorldContextObject, float From1, float From2, float To1, float To2, float Min, float Max);
|
|
|
|
UFUNCTION(BlueprintCallable, Category="SenseGlove | Core | Kinematics | Interpolation Set",
|
|
meta=(WorldContext="WorldContextObject"))
|
|
static USGInterpolationSet* Deserialize(UObject* WorldContextObject, const FString& SerializedString);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static float GetX0(const USGInterpolationSet* InterpolationSet);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static void SetX0(UPARAM(ref) USGInterpolationSet* InterpolationSet, float X0);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
float GetX1(const USGInterpolationSet* InterpolationSet);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static void SetX1(UPARAM(ref) USGInterpolationSet* InterpolationSet, float X1);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static float GetY0(const USGInterpolationSet* InterpolationSet);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static void SetY0(UPARAM(ref) USGInterpolationSet* InterpolationSet, float Y0);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static float GetY1(const USGInterpolationSet* InterpolationSet);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static void SetY1(UPARAM(ref) USGInterpolationSet* InterpolationSet, float Y1);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static float GetMin(const USGInterpolationSet* InterpolationSet);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static void SetMin(UPARAM(ref) USGInterpolationSet* InterpolationSet, float Min);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static float GetMax(const USGInterpolationSet* InterpolationSet);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static void SetMax(UPARAM(ref) USGInterpolationSet* InterpolationSet, float Max);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static int32 Get(const USGInterpolationSet* InterpolationSet, float Value, bool bLimit,
|
|
bool bNormalizeAngle = false);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static bool Equals(const USGInterpolationSet* A, const USGInterpolationSet* B);
|
|
|
|
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static FString ToString(const USGInterpolationSet* InterpolationSet);
|
|
|
|
UFUNCTION(BlueprintPure, DisplayName="To String", Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static FString ToString_bL(const USGInterpolationSet* InterpolationSet, bool bLimits);
|
|
|
|
UFUNCTION(BlueprintPure, DisplayName="Serialize", Category="SenseGlove | Core | Kinematics | Interpolation Set")
|
|
static FString SGSerialize(const USGInterpolationSet* InterpolationSet);
|
|
}; |