add missing nova glove hand profile wrappers in layer 3/4 of the api and also more documentation
This commit is contained in:
@@ -107,6 +107,24 @@ USGNovaGloveHandProfile* USGNovaGloveHandProfile::NewNovaGloveHandProfile(
|
||||
return NewNovaGloveHandProfile(Outer, MoveTemp(OutNovaGloveHandProfileImplContainer.NovaGloveHandProfileImpl));
|
||||
}
|
||||
|
||||
USGNovaGloveHandProfile* USGNovaGloveHandProfile::Default(UObject* Outer, const bool bRightHanded)
|
||||
{
|
||||
FSGIC_FSGNovaGloveHandProfileImpl OutNovaGloveHandProfileImplContainer;
|
||||
SGCoreImpl_FSGNovaGloveHandProfileImpl_Default(&OutNovaGloveHandProfileImplContainer, bRightHanded);
|
||||
|
||||
return NewNovaGloveHandProfile(Outer, MoveTemp(OutNovaGloveHandProfileImplContainer.NovaGloveHandProfileImpl));
|
||||
}
|
||||
|
||||
USGNovaGloveHandProfile* USGNovaGloveHandProfile::Deserialize(UObject* Outer, const FString& SerializedString)
|
||||
{
|
||||
FSGIC_FSGNovaGloveHandProfileImpl OutNovaGloveHandProfileImplContainer;
|
||||
FSGIC_FString SerializedStringContainer{SerializedString};
|
||||
SGCoreImpl_FSGNovaGloveHandProfileImpl_Deserialize(&OutNovaGloveHandProfileImplContainer,
|
||||
&SerializedStringContainer);
|
||||
|
||||
return NewNovaGloveHandProfile(Outer, MoveTemp(OutNovaGloveHandProfileImplContainer.NovaGloveHandProfileImpl));
|
||||
}
|
||||
|
||||
USGNovaGloveHandProfile::USGNovaGloveHandProfile()
|
||||
:
|
||||
#if ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 22 )
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
*
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
*
|
||||
* Input for Nova kinematics to calculate a HandPose.
|
||||
* Output of calibration algorithms.
|
||||
*/
|
||||
|
||||
|
||||
@@ -48,6 +49,9 @@
|
||||
|
||||
class FSGNovaGloveHandProfileImpl;
|
||||
|
||||
/**
|
||||
* Contains user-specific data for the Nova to convert sensor data into a hand pose.
|
||||
*/
|
||||
UCLASS(BlueprintType)
|
||||
class SENSEGLOVECORE_API USGNovaGloveHandProfile final : public UObject
|
||||
{
|
||||
@@ -58,11 +62,28 @@ public:
|
||||
UObject* Outer, const FSGNovaGloveHandProfileImpl& NovaGloveHandProfileImpl);
|
||||
|
||||
public:
|
||||
/**
|
||||
* The default constructor.
|
||||
*/
|
||||
static USGNovaGloveHandProfile* NewNovaGloveHandProfile(UObject* Outer);
|
||||
|
||||
/**
|
||||
* Create a new instance of a Nova-Profile.
|
||||
*/
|
||||
static USGNovaGloveHandProfile* NewNovaGloveHandProfile(
|
||||
UObject* Outer, bool bRightHanded, const USGHandInterpolator* Interpolator);
|
||||
|
||||
public:
|
||||
/**
|
||||
* Creates a default Nova Profile for a left or right hand.
|
||||
*/
|
||||
static USGNovaGloveHandProfile* Default(UObject* Outer, bool bRightHanded);
|
||||
|
||||
/**
|
||||
* Convert a string notation of a NovaGloveHandProfile into a new instance.
|
||||
*/
|
||||
static USGNovaGloveHandProfile* Deserialize(UObject* Outer, const FString& SerializedString);
|
||||
|
||||
private:
|
||||
struct FImpl;
|
||||
|
||||
@@ -75,8 +96,14 @@ private:
|
||||
FImplDeleter PimplDeleter;
|
||||
|
||||
public:
|
||||
/**
|
||||
* The default constructor.
|
||||
*/
|
||||
USGNovaGloveHandProfile();
|
||||
|
||||
/**
|
||||
* Create a new instance of a Nova-Profile.
|
||||
*/
|
||||
USGNovaGloveHandProfile(bool bRightHanded, const USGHandInterpolator* Interpolator);
|
||||
|
||||
public:
|
||||
@@ -104,15 +131,30 @@ public:
|
||||
const FSGNovaGloveHandProfileImpl& ToNovaGloveHandProfileImpl() const;
|
||||
|
||||
public:
|
||||
/**
|
||||
* Whether this profile was created for a right- or left hand.
|
||||
*/
|
||||
bool IsRight() const;
|
||||
|
||||
/**
|
||||
* Interpolation sets to convert sensor data into a hand pose.
|
||||
*/
|
||||
USGHandInterpolator* GetInterpolationSet(UObject* Outer) const;
|
||||
|
||||
public:
|
||||
/**
|
||||
*
|
||||
*/
|
||||
bool Equals(const USGNovaGloveHandProfile* NovaGloveHandProfile) const;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void Reset();
|
||||
|
||||
public:
|
||||
/**
|
||||
* Convert this NovaGloveHandProfile into a string notation so it can be stored on disk.
|
||||
*/
|
||||
FString SGSerialize() const;
|
||||
};
|
||||
Reference in New Issue
Block a user