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

UBaseBrushTool implements standard brush-style functionality for an InteractiveTool. 更多...

#include <BaseBrushTool.h>

+ 类 UBaseBrushTool 继承关系图:

Public 成员函数

virtual void OnBeginDrag (const FRay &Ray) override
 This function is called when the user begins a click-drag-release interaction
 
virtual void OnEndDrag (const FRay &Ray) override
 This function is called when the user releases the button driving a click-drag-release interaction
 
virtual void OnPropertyModified (UObject *PropertySet, FProperty *Property) override
 Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes 更多...
 
virtual void OnUpdateDrag (const FRay &Ray) override
 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 RegisterActions (FInteractiveToolActionSet &ActionSet) override
 Override this function to register the set of Actions this Tool supports, using FInteractiveToolActionSet::RegisterAction. 更多...
 
virtual void Render (IToolsContextRenderAPI *RenderAPI) override
 Allow the Tool to do any custom drawing (ie via PDI/RHI) 更多...
 
virtual void Setup () override
 Register InputBehaviors, etc
 
virtual void Shutdown (EToolShutdownType ShutdownType) override
 Called by ToolManager to shut down the Tool 更多...
 
- Public 成员函数 继承自 UMeshSurfacePointTool
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
 

Public 属性

bool bInBrushStroke = false
 Set to true by Tool if user is currently in an active brush stroke
 
UBrushBaseProperties * BrushProperties
 Properties that control brush size/etc
 
FBrushStampData LastBrushStamp
 Position of brush at last update (both during stroke and during Hover)
 
float WorldToLocalScale = 1.0f
 Uniform scale factor that scales from world space (where brush usually exists) to local space
 

Protected 成员函数

virtual double EstimateMaximumTargetDimension ()
 Subclasses should implement this to give an estimate of target dimension for brush size scaling
 

额外继承的成员函数

- Protected 属性 继承自 UMeshSurfacePointTool
bool bCtrlToggle = false
 Current state of the ctrl modifier toggle
 
bool bShiftToggle = false
 Current state of the shift modifier toggle
 

详细描述

UBaseBrushTool implements standard brush-style functionality for an InteractiveTool.

This includes: 1) brush radius property set with dimension-relative brush sizing and default brush radius hotkeys 2) brush indicator visualization 3) tracking of last brush stamp location via .LastBrushStamp FProperty 4) status of brush stroke via .bInBrushStroke FProperty

成员函数说明

◆ OnPropertyModified()

virtual void UBaseBrushTool::OnPropertyModified ( UObject *  PropertySet,
FProperty *  Property 
)
overridevirtual

Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes

参数
PropertySetwhich UInteractiveToolPropertySet was modified
Propertywhich FProperty in the set was modified

重载 UInteractiveTool .

◆ RegisterActions()

virtual void UBaseBrushTool::RegisterActions ( FInteractiveToolActionSet &  ActionSet)
overridevirtual

Override this function to register the set of Actions this Tool supports, using FInteractiveToolActionSet::RegisterAction.

Note that for the actions to be triggered, you will also need to add corresponding registration per tool – see Engine\Plugins\Experimental\ModelingToolsEditorMode\Source\ModelingToolsEditorMode\Public\ModelingToolsActions.h for examples

重载 UInteractiveTool .

◆ Render()

virtual void UBaseBrushTool::Render ( IToolsContextRenderAPI *  RenderAPI)
overridevirtual

Allow the Tool to do any custom drawing (ie via PDI/RHI)

参数
RenderAPIAbstraction that provides access to Rendering in the current ToolsContext

重载 UInteractiveTool .

◆ Shutdown()

virtual void UBaseBrushTool::Shutdown ( EToolShutdownType  ShutdownType)
overridevirtual

Called by ToolManager to shut down the Tool

参数
ShutdownTypeindicates how the tool should shutdown (ie Accept or Cancel current preview, etc)

重载 UInteractiveTool .


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