add missing nova glove hand profile wrappers in layer 3/4 of the api and also more documentation

This commit is contained in:
Mamadou Babaei
2022-11-18 12:02:29 +01:00
parent f018831e3a
commit 9b0e662793
4 changed files with 115 additions and 4 deletions
@@ -49,6 +49,18 @@ USGNovaGloveHandProfile* USGNovaGloveHandProfileKismetLibrary::MakeNovaGloveHand
return USGNovaGloveHandProfile::NewNovaGloveHandProfile(WorldContextObject, bRightHanded, Interpolator);
}
USGNovaGloveHandProfile* USGNovaGloveHandProfileKismetLibrary::Default(UObject* WorldContextObject,
const bool bRightHanded)
{
return USGNovaGloveHandProfile::Default(WorldContextObject, bRightHanded);
}
USGNovaGloveHandProfile* USGNovaGloveHandProfileKismetLibrary::Deserialize(UObject* WorldContextObject,
const FString& SerializedString)
{
return USGNovaGloveHandProfile::Deserialize(WorldContextObject, SerializedString);
}
bool USGNovaGloveHandProfileKismetLibrary::IsRight(const USGNovaGloveHandProfile* NovaGloveHandProfile)
{
return NovaGloveHandProfile->IsRight();
@@ -29,7 +29,8 @@
*
* @section DESCRIPTION
*
*
* Input for Nova kinematics to calculate a HandPose.
* Output of calibration algorithms.
*/
@@ -42,35 +43,73 @@
class USGHandInterpolator;
class USGNovaGloveHandProfile;
/**
* Contains user-specific data for the Nova to convert sensor data into a hand pose.
*/
UCLASS(meta=(ScriptName = "SesneGloveNovaGloveHandProfileKismetLibrary"))
class SENSEGLOVECOREKISMET_API USGNovaGloveHandProfileKismetLibrary final : public USGBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Nova | Nova Glove Hand Profile",
/**
* The default constructor.
*/
UFUNCTION(BlueprintCallable, Category="SenseGlove | Core | Nova | Nova Glove Hand Profile",
meta=(WorldContext="WorldContextObject"))
static USGNovaGloveHandProfile* MakeNovaGloveHandProfile(UObject* WorldContextObject);
UFUNCTION(BlueprintPure, DisplayName="Make Nova Glove Hand Profile",
/**
* Create a new instance of a Nova-Profile.
*/
UFUNCTION(BlueprintCallable, DisplayName="Make Nova Glove Hand Profile",
Category="SenseGlove | Core | Nova | Nova Glove Hand Profile", meta=(WorldContext="WorldContextObject"))
static USGNovaGloveHandProfile* MakeNovaGloveHandProfile_bRH_I(
UObject* WorldContextObject, bool bRightHanded, const USGHandInterpolator* Interpolator);
/**
* Creates a default Nova Profile for a left or right hand.
*/
UFUNCTION(BlueprintCallable, Category="SenseGlove | Core | Nova | Nova Glove Hand Profile",
meta=(WorldContext="WorldContextObject"))
static USGNovaGloveHandProfile* Default(UObject* WorldContextObject, bool bRightHanded);
/**
* Convert a string notation of a NovaGloveHandProfile into a new instance.
*/
UFUNCTION(BlueprintCallable, Category="SenseGlove | Core | Nova | Nova Glove Hand Profile",
meta=(WorldContext="WorldContextObject"))
static USGNovaGloveHandProfile* Deserialize(UObject* WorldContextObject, const FString& SerializedString);
/**
* Whether this profile was created for a right- or left hand.
*/
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Nova | Nova Glove Hand Profile")
static bool IsRight(const USGNovaGloveHandProfile* NovaGloveHandProfile);
/**
* Interpolation sets to convert sensor data into a hand pose.
*/
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Nova | Nova Glove Hand Profile",
meta=(WorldContext="WorldContextObject"))
static USGHandInterpolator* GetInterpolationSet(UObject* WorldContextObject,
const USGNovaGloveHandProfile* NovaGloveHandProfile);
/**
*
*/
UFUNCTION(BlueprintPure, Category="SenseGlove | Core | Nova | Nova Glove Hand Profile")
static bool Equals(const USGNovaGloveHandProfile* A, const USGNovaGloveHandProfile* B);
/**
*
*/
UFUNCTION(BlueprintCallable, Category="SenseGlove | Core | Nova | Nova Glove Hand Profile")
static void Reset(UPARAM(ref) USGNovaGloveHandProfile* NovaGloveHandProfile);
/**
* Convert this NovaGloveHandProfile into a string notation so it can be stored on disk.
*/
UFUNCTION(BlueprintPure, DisplayName="Serialize", Category="SenseGlove | Core | Nova | Nova Glove Hand Profile")
static FString SGSerialize(const USGNovaGloveHandProfile* NovaGloveHandProfile);
};