Navigation
API > API/Plugins > API/Plugins/AvalancheViewport
| Name | FAvaSnapOperation |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/Avalanche/Source/AvalancheViewport/Public/Interaction/AvaSnapOperation.h |
| Include Path | #include "Interaction/AvaSnapOperation.h" |
Syntax
class FAvaSnapOperation : public TSharedFromThis< FAvaSnapOperation >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FAvaSnapOperation
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAvaSnapOperation
(
FEditorViewportClient* InEditorViewportClient |
Interaction/AvaSnapOperation.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FAvaSnapOperation() |
Interaction/AvaSnapOperation.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MaximumSnapDistance | const float | Interaction/AvaSnapOperation.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddActorSnapPoint
(
const FAvaSnapPoint& InSnapPoint |
Adds a snap point for a shape to the list of shape snap points. | Interaction/AvaSnapOperation.h | |
void FinaliseSnapPoints() |
Sorts snap point links. | Interaction/AvaSnapOperation.h | |
void GenerateActorSnapPoints
(
const TConstArrayView< TWeakObjectPtr< AActor > >& InSelectedActors, |
Generates snap points, excluding the list of actors. | Interaction/AvaSnapOperation.h | |
void GenerateComponentSnapPoints
(
const UActorComponent* InComponent |
Generates snap points, excluding the actor for the given Dynamic Mesh. | Interaction/AvaSnapOperation.h | |
void GenerateScreenSnapPoints() |
Adds screen- and guide-based snap points. | Interaction/AvaSnapOperation.h | |
const FAvaSnapPoint *const GetActorSnapPoint
(
int32 InActorSnapPointIdx |
Interaction/AvaSnapOperation.h | ||
const TArray< FAvaSnapPoint > & GetActorSnapPoints() |
Interaction/AvaSnapOperation.h | ||
FVector GetDragOffset() |
Interaction/AvaSnapOperation.h | ||
const FAvaSnapPoint *const GetScreenSnapPoint
(
int32 InScreenSnapPointIdx |
Interaction/AvaSnapOperation.h | ||
const TArray< FAvaSnapPoint > & GetScreenSnapPoints() |
Interaction/AvaSnapOperation.h | ||
FVector GetSelectionLocation() |
Interaction/AvaSnapOperation.h | ||
const FVector2f & GetSnapDistances() |
Interaction/AvaSnapOperation.h | ||
const FVector2f & GetSnappedToLocation() |
Interaction/AvaSnapOperation.h | ||
const FAvaSnapPoint *const GetSnapPointByLink
(
int32 InSnapPointLinkIdx |
Interaction/AvaSnapOperation.h | ||
void SetScreenSnapPoints
(
const TArray< FAvaSnapPoint >& InSnapPoints |
Interaction/AvaSnapOperation.h | ||
void SetSnappedToX
(
bool bInSnappedTo |
Interaction/AvaSnapOperation.h | ||
void SetSnappedToY
(
bool bInSnappedTo |
Interaction/AvaSnapOperation.h | ||
bool SnapDragLocation
(
const TArray< FAvaSnapPoint >& InDraggedActorSnapPoints, |
Interaction/AvaSnapOperation.h | ||
bool SnapLocation
(
FVector& Location |
Interaction/AvaSnapOperation.h | ||
void SnapScreenLocation
(
FVector2f& InOutScreenLocation |
Interaction/AvaSnapOperation.h | ||
void SnapScreenLocation
(
FVector2f& InOutScreenLocation, |
Interaction/AvaSnapOperation.h | ||
void SnapScreenLocationX
(
float& InOutScreenLocation |
Interaction/AvaSnapOperation.h | ||
void SnapScreenLocationY
(
float& InOutScreenLocation |
Interaction/AvaSnapOperation.h | ||
bool SnapVectorComponent
(
float& InOutComponent, |
Returns true if we're snapped to a point. We may snap to the grid and not to a point. This returns false. | Interaction/AvaSnapOperation.h | |
bool SnapX
(
float& InOutComponent, |
Interaction/AvaSnapOperation.h | ||
bool SnapY
(
float& InOutComponent, |
Interaction/AvaSnapOperation.h | ||
bool WasSnappedTo() |
Interaction/AvaSnapOperation.h | ||
bool WasSnappedToX() |
Interaction/AvaSnapOperation.h | ||
bool WasSnappedToY() |
Interaction/AvaSnapOperation.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void GenerateBoundsSnapPoints
(
const FVector& InOrigin, |
Generates snap points based on a box extent with no actor reference. | Interaction/AvaSnapOperation.h | |
static void GenerateLocalSnapPoints
(
AActor* InActor, |
Generates snap points based on a box extent. | Interaction/AvaSnapOperation.h | |
static void GenerateLocalSnapPoints
(
UPrimitiveComponent* InComponent, |
Generates snap points based on a box extent. | Interaction/AvaSnapOperation.h | |
static void GenerateLocalSnapPoints
(
UPrimitiveComponent* InComponent, |
Generates snap points for the given component. | Interaction/AvaSnapOperation.h | |
static void GenerateLocalSnapPoints
(
AActor* InActor, |
Generates snap points for the given actor. | Interaction/AvaSnapOperation.h |