engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
UMeshSurfacePointTool类 参考

UMeshSurfacePointTool is a base Tool implementation that can be used to implement various "point on surface" interactions. 更多...

#include <MeshSurfacePointTool.h>

+ 类 UMeshSurfacePointTool 继承关系图:

Public 成员函数

virtual FInputRayHit BeginHoverSequenceHitTest (const FInputDeviceRay &PressPos) override
 Do hover hit-test
 
virtual FInputRayHit CanBeginClickDragSequence (const FInputDeviceRay &PressPos) override
 Test if target can begin click-drag interaction at this point 更多...
 
virtual bool GetCtrlToggle () const
 
virtual float GetCurrentDevicePressure () const
 
virtual bool GetShiftToggle () const
 
virtual bool HitTest (const FRay &Ray, FHitResult &OutHit)
 
virtual void OnBeginDrag (const FRay &Ray)
 This function is called when the user begins a click-drag-release interaction
 
virtual void OnBeginHover (const FInputDeviceRay &DevicePos) override
 Initialize hover sequence at given position
 
virtual void OnClickDrag (const FInputDeviceRay &DragPos) override
 Notify Target that input position has changed 更多...
 
virtual void OnClickPress (const FInputDeviceRay &PressPos) override
 Notify Target that click press ocurred 更多...
 
virtual void OnClickRelease (const FInputDeviceRay &ReleasePos) override
 Notify Target that click release occurred 更多...
 
virtual void OnEndDrag (const FRay &Ray)
 This function is called when the user releases the button driving a click-drag-release interaction
 
virtual void OnEndHover () override
 Terminate active hover sequence
 
virtual void OnTerminateDragSequence () override
 Notify Target that click-drag sequence has been explicitly terminated (eg by escape key)
 
virtual void OnUpdateDrag (const FRay &Ray)
 This function is called each frame that the user is in a click-drag-release interaction
 
virtual bool OnUpdateHover (const FInputDeviceRay &DevicePos) override
 Update active hover sequence with new input position
 
virtual void OnUpdateModifierState (int ModifierID, bool bIsOn) override
 Notify target of current modifier state 更多...
 
virtual void SetCtrlToggle (bool bCtrlDown)
 Called by registered InputBehaviors to set the state of the "shift" button (or device equivalent)
 
virtual void SetShiftToggle (bool bShiftDown)
 Called by registered InputBehaviors to set the state of the "shift" button (or device equivalent)
 
virtual void SetStylusAPI (IToolStylusStateProviderAPI *StylusAPI)
 Set current stlyus API source
 
virtual void Setup () override
 Register InputBehaviors, etc
 
virtual FInputRayHit CanBeginClickDragSequence (const FInputDeviceRay &PressPos)=0
 Test if target can begin click-drag interaction at this point 更多...
 
virtual void OnClickDrag (const FInputDeviceRay &DragPos)=0
 Notify Target that input position has changed 更多...
 
virtual void OnClickPress (const FInputDeviceRay &PressPos)=0
 Notify Target that click press ocurred 更多...
 
virtual void OnClickRelease (const FInputDeviceRay &ReleasePos)=0
 Notify Target that click release occurred 更多...
 
virtual void OnTerminateDragSequence ()=0
 Notify Target that click-drag sequence has been explicitly terminated (eg by escape key)
 
virtual void OnUpdateModifierState (int ModifierID, bool bIsOn)
 Notify target of current modifier state 更多...
 
virtual FInputRayHit BeginHoverSequenceHitTest (const FInputDeviceRay &PressPos)=0
 Do hover hit-test
 
virtual void OnBeginHover (const FInputDeviceRay &DevicePos)=0
 Initialize hover sequence at given position
 
virtual void OnEndHover ()=0
 Terminate active hover sequence
 
virtual bool OnUpdateHover (const FInputDeviceRay &DevicePos)=0
 Update active hover sequence with new input position
 

Protected 属性

bool bCtrlToggle = false
 Current state of the ctrl modifier toggle
 
bool bShiftToggle = false
 Current state of the shift modifier toggle
 

详细描述

UMeshSurfacePointTool is a base Tool implementation that can be used to implement various "point on surface" interactions.

The tool acts on an input IMeshDescriptionSource object, which the standard Builder can extract from the current selection (eg Editor selection).

Subclasses override the OnBeginDrag/OnUpdateDrag/OnEndDrag and OnUpdateHover functions to implement custom behavior.

成员函数说明

◆ CanBeginClickDragSequence()

virtual FInputRayHit UMeshSurfacePointTool::CanBeginClickDragSequence ( const FInputDeviceRay &  PressPos)
overridevirtual

Test if target can begin click-drag interaction at this point

参数
PressPosdevice position/ray at click point
返回
hit information at this point

实现了 IClickDragBehaviorTarget.

◆ GetCtrlToggle()

virtual bool UMeshSurfacePointTool::GetCtrlToggle ( ) const
inlinevirtual
返回
current state of the shift toggle

◆ GetCurrentDevicePressure()

virtual float UMeshSurfacePointTool::GetCurrentDevicePressure ( ) const
virtual
返回
current input device pressure in range 0-1

◆ GetShiftToggle()

virtual bool UMeshSurfacePointTool::GetShiftToggle ( ) const
inlinevirtual
返回
current state of the shift toggle

◆ HitTest()

virtual bool UMeshSurfacePointTool::HitTest ( const FRay &  Ray,
FHitResult &  OutHit 
)
virtual
返回
true if the target MeshSource is hit by the Ray

◆ OnClickDrag()

virtual void UMeshSurfacePointTool::OnClickDrag ( const FInputDeviceRay &  DragPos)
overridevirtual

Notify Target that input position has changed

参数
DragPosdevice position/ray at click point

实现了 IClickDragBehaviorTarget.

◆ OnClickPress()

virtual void UMeshSurfacePointTool::OnClickPress ( const FInputDeviceRay &  PressPos)
overridevirtual

Notify Target that click press ocurred

参数
PressPosdevice position/ray at click point

实现了 IClickDragBehaviorTarget.

◆ OnClickRelease()

virtual void UMeshSurfacePointTool::OnClickRelease ( const FInputDeviceRay &  ReleasePos)
overridevirtual

Notify Target that click release occurred

参数
ReleasePosdevice position/ray at click point

实现了 IClickDragBehaviorTarget.

◆ OnUpdateModifierState()

virtual void UMeshSurfacePointTool::OnUpdateModifierState ( int  ModifierID,
bool  bIsOn 
)
overridevirtual

Notify target of current modifier state

参数
ModifierIDclient-defined integer that identifiers modifier
bIsOnis modifier current on or off

重载 IModifierToggleBehaviorTarget .


该类的文档由以下文件生成: