Files
Plugin/Source/SenseGloveKismet/Public/SGKismet/SGGrabComponentKismetLibrary.h
T

121 lines
5.8 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
*
* A data class containing the minimum required data for a hand's forward
* kinematics.
* Used in both kinematics and calibration.
*/
#pragma once
#include "SGKismet/SGBlueprintFunctionLibrary.h"
#include "SGGrabComponentKismetLibrary.generated.h"
class AActor;
class USGGrabComponent;
UCLASS(meta=(ScriptName = "SesneGloveGrabComponentKismetLibrary"))
class SENSEGLOVEKISMET_API UGrabComponentKismetLibrary final : public USGBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static USGGrabComponent* GetGrabComponent(const AActor* Actor);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static bool IsGrabbable(const AActor* Actor);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Grab Component")
static EAttachmentRule GetAttachmentLocationRule(const USGGrabComponent* GrabComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static void SetAttachmentLocationRule(UPARAM(ref) USGGrabComponent* GrabComponent,
EAttachmentRule InAttachmentLocationRule);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Grab Component")
static EAttachmentRule GetAttachmentRotationRule(const USGGrabComponent* GrabComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static void SetAttachmentRotationRule(UPARAM(ref) USGGrabComponent* GrabComponent,
EAttachmentRule InAttachmentRotationRule);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Grab Component")
static EAttachmentRule GetAttachmentScaleRule(const USGGrabComponent* GrabComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static void SetAttachmentScaleRule(UPARAM(ref) USGGrabComponent* GrabComponent,
EAttachmentRule InAttachmentScaleRule);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Grab Component")
static bool GetAttachmentWeldSimulatedBodies(const USGGrabComponent* GrabComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static void SetAttachmentWeldSimulatedBodies(UPARAM(ref) USGGrabComponent* GrabComponent,
bool bInAttachmentWeldSimulatedBodies);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Grab Component")
static const FName& GetAttachmentSocketName(const USGGrabComponent* GrabComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static void SetAttachmentSocketName(UPARAM(ref) USGGrabComponent* GrabComponent,
const FName& InAttachmentSocketName);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Grab Component")
static EDetachmentRule GetDetachmentLocationRule(const USGGrabComponent* GrabComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static void SetDetachmentLocationRule(UPARAM(ref) USGGrabComponent* GrabComponent,
EDetachmentRule InDetachmentLocationRule);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Grab Component")
static EDetachmentRule GetDetachmentRotationRule(const USGGrabComponent* GrabComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static void SetDetachmentRotationRule(UPARAM(ref) USGGrabComponent* GrabComponent,
EDetachmentRule InDetachmentRotationRule);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Grab Component")
static EDetachmentRule GetDetachmentScaleRule(const USGGrabComponent* GrabComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static void SetDetachmentScaleRule(UPARAM(ref) USGGrabComponent* GrabComponent,
EDetachmentRule InDetachmentScaleRule);
UFUNCTION(BlueprintPure, Category="SenseGlove | Components | Grab Component")
static bool GetDetachmentInCallModify(const USGGrabComponent* GrabComponent);
UFUNCTION(BlueprintCallable, Category="SenseGlove | Components | Grab Component")
static void SetDetachmentInCallModify(UPARAM(ref) USGGrabComponent* GrabComponent,
bool bInDetachmentInCallModify);
};