Module |
|
Header |
/Engine/Source/Editor/UnrealEd/Public/EdMode.h |
Include |
#include "EdMode.h" |
class FEdMode :
public TSharedFromThis< FEdMode >,
public FGCObject,
public FEditorCommonDrawHelper
Base class for all editor modes.
Name | Description | ||
---|---|---|---|
|
bEditedPropertyIsTransform |
Indicates |
|
|
CurrentTool |
The tool that is currently active within this mode. |
|
|
CurrentWidgetAxis |
The current axis that is being dragged on the widget. |
|
|
EditedPropertyIndex |
If the property being edited is an array property, this is the index of the element we're currently dealing with |
|
|
EditedPropertyName |
Name of the property currently being edited |
|
|
Info |
Information pertaining to this mode. |
|
|
Owner |
Pointer back to the mode tools that we are registered with |
|
|
TSharedPtr< cla... |
Toolkit |
Editor Mode Toolkit that is associated with this toolkit mode |
|
Tools |
Optional array of tools for this mode. |
Name | Description | |
---|---|---|
|
FEdMode() |
Name | Description | |
---|---|---|
|
~FEdMode() |
Name | Description | ||
---|---|---|---|
|
ActorMoveNotify() |
||
|
ActorPropChangeNotify() |
||
|
ActorsDuplicatedNotify |
||
|
ActorSelectionChangeNotify() |
||
|
AllowsViewportDragTool() |
||
|
AllowWidgetMove() |
If the EdMode is handling InputDelta (i.e., returning true from it), this allows a mode to indicated whether or not the Widget should also move. |
|
|
BoxSelect |
Lets each mode/tool handle box selection in its own way. |
|
|
BuildModeToolbar ( |
Called when the editor mode should rebuild its toolbar |
|
|
CanAutoSave() |
Check to see if this EdMode wants to disallow AutoSave |
|
|
CanCreateWidgetForProperty ( |
Returns true if this property can support creating a widget in the editor |
|
|
CanCreateWidgetForStructure ( |
Returns true if this structure can support creating a widget in the editor |
|
|
CanCycleWidgetMode() |
Check to see if the current widget mode can be cycled |
|
|
CapturedMouseMove ( |
Called when the mouse is moved while a window input capture is in effect |
|
|
ComputeBoundingBoxForViewportFocus ( |
Allows an editor mode to override the bounding box used to focus the viewport on a selection |
|
|
CurrentToolChanged() |
||
|
DisallowMouseDeltaTracking() |
If the Edmode is handling its own mouse deltas, it can disable the MouseDeltaTacker |
|
|
DrawBrackets ( |
Called when the mode wants to draw brackets around selected objects |
|
|
DrawHUD ( |
Overlays the editor hud (brushes, drag tools, static mesh vertices, etc*. |
|
|
EndTracking ( |
||
|
Enter() |
||
|
Exit() |
||
|
FModeTool &#... |
FindTool ( |
|
|
FrustumSelect ( |
Lets each mode/tool handle frustum selection in its own way. |
|
|
EEditAction:... |
GetActionEditCopy() |
|
|
EEditAction:... |
GetActionEditCut() |
|
|
EEditAction:... |
GetActionEditDelete() |
|
|
EEditAction:... |
GetActionEditDuplicate() |
Added for handling EDIT Command... |
|
EEditAction:... |
GetActionEditPaste() |
|
|
const FModeT... |
GetCurrentTool() |
|
|
FModeTool &#... |
GetCurrentTool() |
Returns the current tool. |
|
EAxisList::T... |
GetCurrentWidgetAxis() |
|
|
GetCursor ( |
Get a cursor to override the default with, if any. |
|
|
GetCustomDrawingCoordinateSystem |
||
|
GetCustomInputCoordinateSystem |
||
|
AActor * |
GetFirstSelectedActorInstance() |
Returns the first selected Actor, or NULL if there is no selection. |
|
FEditorModeI... |
GetID() |
Returns the editor mode identifier. |
|
UObject *... |
GetItemToTryDisplayingWidgetsFor ( |
Finds the best item to display widgets for (preferring selected components over selected actors) |
|
const FEdito... |
GetModeInfo() |
Returns the editor mode information. |
|
FEditorModeT... |
GetModeManager() |
Returns the owning mode manager for this mode |
|
GetOverrideCursorVisibility |
Get override cursor visibility settings |
|
|
GetPivotForOrbit ( |
Lets each mode/tool specify a pivot point around which the camera should orbit |
|
|
GetPropertyWidgetInfos ( |
Gets an array of property widget info structures for the given struct/class type for the given container. |
|
|
TSharedPtr< ... |
GetToolkit() |
Gets the toolkit created by this mode |
|
const TArray... |
GetTools() |
|
|
UTexture2D &... |
GetVertexTexture() |
|
|
EAxisList::T... |
GetWidgetAxisToDraw ( |
Allows each mode to customize the axis pieces of the widget they want drawn. |
|
GetWidgetLocation() |
Allows each mode/tool to determine a good location for the widget to be drawn at. |
|
|
GetWidgetNormalFromCurrentAxis ( |
||
|
UWorld * |
GetWorld() |
Returns the world this toolkit is editing |
|
HandleClick ( |
||
|
HandleDragDuplicate() |
Called when attempting to duplicate the selected actors by alt+dragging, return true to prevent normal duplication. |
|
|
Initialize() |
||
|
InputAxis ( |
||
|
InputDelta ( |
||
|
InputKey ( |
||
|
IsCompatibleWith ( |
||
|
IsPendingDeletion() |
Returns true if this mode is to be deleted at the next convenient opportunity (FEditorModeTools::Tick) |
|
|
IsSelectionAllowed |
Check to see if an actor can be selected in this mode - no side effects |
|
|
IsSnapRotationEnabled() |
If Rotation Snap should be enabled for this mode |
|
|
LostFocus ( |
||
|
MapChangeNotify() |
||
|
MouseEnter ( |
||
|
MouseLeave ( |
||
|
MouseMove ( |
||
|
PostConvertMouseMovement ( |
Called after mouse movement is converted to drag/rot |
|
|
PostUndo() |
||
|
PreConvertMouseMovement ( |
Called before mouse movement is converted to drag/rot |
|
|
ProcessCapturedMouseMoves ( |
Process all captured mouse moves that occurred during the current frame |
|
|
ProcessEditCopy() |
||
|
ProcessEditCut() |
||
|
ProcessEditDelete() |
||
|
ProcessEditDuplicate() |
||
|
ProcessEditPaste() |
||
|
ReceivedFocus ( |
||
|
Render ( |
Draws translucent polygons on brushes and volumes. |
|
|
RequestDeletion() |
Request that this mode be deleted at the next convenient opportunity (FEditorModeTools::Tick) |
|
|
Select |
Handling SelectActor |
|
|
SelectionChanged() |
||
|
SelectNone() |
||
|
SetCurrentTool ( |
||
|
SetCurrentTool ( |
||
|
SetCurrentWidgetAxis ( |
||
|
ShouldCreateWidgetForProperty ( |
See if we should create a widget for the supplied property when selecting an actor instance |
|
|
ShouldDrawBrushWireframe ( |
||
|
ShouldDrawWidget() |
Lets the mode determine if it wants to draw the widget or not. |
|
|
ShowModeWidgets() |
||
|
SnapRotatorToGridOverride ( |
If this mode should override the snap rotation |
|
|
StartTracking ( |
||
|
Tick ( |
||
|
UpdateInternalData() |
||
|
UsesPropertyWidgets() |
Lets each mode selectively enable widgets for editing properties tagged with 'Show 3D Widget' metadata. |
|
|
UsesToolkits() |
True if this mode uses a toolkit mode (eventually they all should) |
|
|
UsesTransformWidget() |
Lets each tool determine if it wants to use the editor widget or not. |
|
|
UsesTransformWidget ( |
Lets each mode selectively exclude certain widget types. |
Name | Description | ||
---|---|---|---|
|
AddReferencedObjects ( |
Pure virtual that must be overloaded by the inheriting class. |
Name |
Description |
|
---|---|---|
|
FPropertyWidgetInfo |
Property Widgets. |
Name |
Description |
---|---|
MD_MakeEditWidget |
: Find a better home for these? |
MD_ValidateWidgetUsing |
Specifies a function used for validation of the current value of a property. |