Navigation
API > API/Plugins > API/Plugins/AvalancheViewport > API/Plugins/AvalancheViewport/Interaction
Inheritance Hierarchy
- TSharedFromThis
- FAvaSnapOperation
References
| Module | AvalancheViewport |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheViewport/Public/Interaction/AvaSnapOperation.h |
| Include | #include "Interaction/AvaSnapOperation.h" |
Syntax
class FAvaSnapOperation : public TSharedFromThis< FAvaSnapOperation >
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FAvaSnapPoint > | ActorSnapPoints | Snap points related to actors. | |
| bool | bSnappedToLinkX | ||
| bool | bSnappedToLinkY | ||
| FSceneView * | CachedSceneView | ||
| TSharedPtr< FSceneViewFamilyContext > | CachedSceneViewFamily | SceneView used for calculating world/viewport translations. | |
| int32 | ClosestSnapPointLinkIdxX | Snap stuff. | |
| int32 | ClosestSnapPointLinkIdxY | ||
| FEditorViewportClient * | EditorViewportClient | Cannot ensure that this is available as a shared pointer. | |
| TArray< FAvaSnapPoint > | ScreenSnapPoints | Snap points related to the screen and guides. | |
| FVector | SelectionStartLocation | Transform of the pivot when. | |
| FVector2f | SnapDistances | ||
| FVector2f | SnappedToLocation | ||
| TArray< FAvaSnapPointLink > | SnapPointLinksX | Links to the above 2 arrays. | |
| TArray< FAvaSnapPointLink > | SnapPointLinksY |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAvaSnapOperation
(
FEditorViewportClient* InEditorViewportClient |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddActorSnapPoint
(
const FAvaSnapPoint& InSnapPoint |
Adds a snap point for a shape to the list of shape snap points. | |
| void | Sorts snap point links. | ||
| void | GenerateActorSnapPoints
(
const TConstArrayView< TWeakObjectPtr< AActor > >& InSelectedActors, |
Generates snap points, excluding the list of actors. | |
| void | GenerateBoundsSnapPoints
(
const FVector& InOrigin, |
Generates snap points based on a box extent with no actor reference. | |
| void | GenerateComponentSnapPoints
(
const UActorComponent* InComponent |
Generates snap points, excluding the actor for the given Dynamic Mesh. | |
| void | GenerateLocalSnapPoints
(
AActor* InActor, |
Generates snap points based on a box extent. | |
| void | GenerateLocalSnapPoints
(
UPrimitiveComponent* InComponent, |
Generates snap points based on a box extent. | |
| void | GenerateLocalSnapPoints
(
UPrimitiveComponent* InComponent, |
Generates snap points for the given component. | |
| void | GenerateLocalSnapPoints
(
AActor* InActor, |
Generates snap points for the given actor. | |
| void | Adds screen- and guide-based snap points. | ||
| const FAvaSnapPoint *const | GetActorSnapPoint
(
int32 InActorSnapPointIdx |
||
| const TArray< FAvaSnapPoint > & | |||
| FVector | |||
| const FAvaSnapPoint *const | GetScreenSnapPoint
(
int32 InScreenSnapPointIdx |
||
| const TArray< FAvaSnapPoint > & | |||
| FVector | |||
| const FVector2f & | |||
| const FVector2f & | |||
| const FAvaSnapPoint *const | GetSnapPointByLink
(
int32 InSnapPointLinkIdx |
||
| void | SetScreenSnapPoints
(
const TArray< FAvaSnapPoint >& InSnapPoints |
||
| void | SetSnappedToX
(
bool bInSnappedTo |
||
| void | SetSnappedToY
(
bool bInSnappedTo |
||
| bool | SnapDragLocation
(
const TArray< FAvaSnapPoint >& InDraggedActorSnapPoints, |
||
| bool | SnapLocation
(
FVector& Location |
||
| void | SnapScreenLocation
(
FVector2f& InOutScreenLocation |
||
| void | SnapScreenLocation
(
FVector2f& InOutScreenLocation, |
||
| void | SnapScreenLocationX
(
float& InOutScreenLocation |
||
| void | SnapScreenLocationY
(
float& InOutScreenLocation |
||
| 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. | |
| bool | |||
| bool | |||
| bool | WasSnappedTo () |
||
| bool | |||
| bool |
Constants
| Name | Description |
|---|---|
| MaximumSnapDistance |