FUxtPokePointerFocus
Focus implementation for the poke pointers.
struct FUxtPokePointerFocus;
Header
#include <UxtPointerFocus.h>
Inheritance
Inherits from FUxtPointerFocus
Public Functions
Name | |
---|---|
void | BeginPoke(UUxtNearPointerComponent * Pointer) |
void | UpdatePoke(UUxtNearPointerComponent * Pointer) |
void | EndPoke(UUxtNearPointerComponent * Pointer) |
bool | IsPoking() const |
Protected Functions
Name | |
---|---|
virtual UClass * | GetInterfaceClass() const override |
virtual bool | ImplementsTargetInterface(UObject * Target) const override |
virtual bool | GetClosestPointOnTarget(const UActorComponent * Target, const UPrimitiveComponent * Primitive, const FVector & Point, FVector & OutClosestPoint, FVector & OutNormal) const override |
virtual void | RaiseEnterFocusEvent(UPrimitiveComponent * Target, UUxtNearPointerComponent * Pointer) const override |
virtual void | RaiseUpdateFocusEvent(UPrimitiveComponent * Target, UUxtNearPointerComponent * Pointer) const override |
virtual void | RaiseExitFocusEvent(UPrimitiveComponent * Target, UUxtNearPointerComponent * Pointer) const override |
Additional inherited members
Public Functions inherited from FUxtPointerFocus
Name | |
---|---|
virtual | ~FUxtPointerFocus() |
const FVector & | GetClosestTargetPoint() const |
const FVector & | GetClosestTargetNormal() const |
UObject * | GetFocusedTarget() const |
UPrimitiveComponent * | GetFocusedPrimitive() const |
UObject * | GetFocusedTargetChecked() const |
void | SelectClosestTarget(UUxtNearPointerComponent * Pointer, const FTransform & PointerTransform, const TArray< FOverlapResult > & Overlaps) |
void | UpdateClosestTarget(const FTransform & PointerTransform) |
void | SelectClosestPointOnTarget(UUxtNearPointerComponent * Pointer, const FTransform & PointerTransform, UActorComponent * NewTarget) |
void | ClearFocus(UUxtNearPointerComponent * Pointer) |
void | UpdateFocus(UUxtNearPointerComponent * Pointer) const |
UActorComponent * | FindInterfaceComponent(AActor * Owner) const |
Protected Functions inherited from FUxtPointerFocus
Name | |
---|---|
void | SetFocus(UUxtNearPointerComponent * Pointer, const FTransform & PointerTransform, const FUxtPointerFocusSearchResult & FocusResult) |
FUxtPointerFocusSearchResult | FindClosestTarget(const TArray< FOverlapResult > & Overlaps, const FVector & Point) const |
FUxtPointerFocusSearchResult | FindClosestPointOnComponent(UActorComponent * Target, const FVector & Point) const |
Public Functions Documentation
function BeginPoke
void BeginPoke(
UUxtNearPointerComponent * Pointer
)
Notify the target object that poke has started.
function UpdatePoke
void UpdatePoke(
UUxtNearPointerComponent * Pointer
)
Notify the poked target object that the pointer has been updated.
function EndPoke
void EndPoke(
UUxtNearPointerComponent * Pointer
)
Notify the target object that poke has ended.
function IsPoking
bool IsPoking() const
Protected Functions Documentation
function GetInterfaceClass
virtual UClass * GetInterfaceClass() const override
Reimplements: FUxtPointerFocus::GetInterfaceClass
Get the interface class that targets for the pointer must implement.
function ImplementsTargetInterface
virtual bool ImplementsTargetInterface(
UObject * Target
) const override
Reimplements: FUxtPointerFocus::ImplementsTargetInterface
Returns true if the given object implements the required target interface.
function GetClosestPointOnTarget
virtual bool GetClosestPointOnTarget(
const UActorComponent * Target,
const UPrimitiveComponent * Primitive,
const FVector & Point,
FVector & OutClosestPoint,
FVector & OutNormal
) const override
Reimplements: FUxtPointerFocus::GetClosestPointOnTarget
Find the closest point on the given primitive using the distance function of the target interface.
function RaiseEnterFocusEvent
virtual void RaiseEnterFocusEvent(
UPrimitiveComponent * Target,
UUxtNearPointerComponent * Pointer
) const override
Reimplements: FUxtPointerFocus::RaiseEnterFocusEvent
Notify the target object that it has entered focus.
function RaiseUpdateFocusEvent
virtual void RaiseUpdateFocusEvent(
UPrimitiveComponent * Target,
UUxtNearPointerComponent * Pointer
) const override
Reimplements: FUxtPointerFocus::RaiseUpdateFocusEvent
Notify the focused target object that the pointer has been updated.
function RaiseExitFocusEvent
virtual void RaiseExitFocusEvent(
UPrimitiveComponent * Target,
UUxtNearPointerComponent * Pointer
) const override
Reimplements: FUxtPointerFocus::RaiseExitFocusEvent
Notify the target object that it has exited focus.
Updated on 2 November 2021 at 11:40:26 Coordinated Universal Time