| FGCObject | ||||||
| FEditorUndoClient
|
Module |
|
Header |
/Engine/Source/Editor/UnrealEd/Public/EditorModeManager.h |
Include |
#include "EditorModeManager.h" |
class FEditorModeTools :
public FGCObject,
public FEditorUndoClient
A helper class to store the state of the various editor modes.
Name | Description | ||
---|---|---|---|
|
ActiveScriptableModes |
A list of active editor modes. |
|
|
bHideViewportUI |
If true, the viewports will hide all UI overlays |
|
|
bSelectionHasSceneComponent |
If true the current selection has a scene component |
|
|
bShowWidget |
If 1, draw the widget and let the user interact with it. |
|
|
CachedLocation |
||
|
DefaultModeIDs |
List of default modes for this tool. These must all be compatible with each other. |
|
|
GridBase |
||
|
InfoString |
Draws in the top level corner of all FEditorViewportClient windows (can be used to relay info to the user). |
|
|
OverrideWidgetMode |
If the widget mode is being overridden, this will be != WM_None. |
|
|
PivotLocation |
||
|
PivotShown |
||
|
RecycledScriptableModes |
A list of previously active editor modes that we will potentially recycle |
|
|
SnappedActor |
||
|
SnappedLocation |
||
|
Snapping |
||
|
ToolkitHost |
The host of the toolkits created by these modes |
|
|
float |
TranslateRotate2DAngle |
The angles for the 2d translate rotate widget |
|
float |
TranslateRotateXAxisAngle |
The angle for the translate rotate widget |
|
WidgetMode |
The mode that the editor viewport widget is in. |
|
|
float |
WidgetScale |
Scale Factor for Widget |
Name | Description | |
---|---|---|
|
FEditorModeTools() |
Name | Description | |
---|---|---|
|
~FEditorModeTools() |
Name | Description | ||
---|---|---|---|
|
ActivateDefaultMode() |
Activates the default modes defined by this class. |
|
|
ActivateMode ( |
Activates an editor mode. |
|
|
ActorMoveNotify() |
||
|
ActorPropChangeNotify() |
||
|
ActorsDuplicatedNotify |
||
|
ActorSelectionChangeNotify() |
||
|
AddDefaultMode ( |
Adds a new default mode to this tool's list of default modes. |
|
|
AllowsViewportDragTool() |
||
|
AllowWidgetMove() |
True if we should allow widget move true if we should allow widget move |
|
|
BoxSelect |
Notifies all active modes of box selection attempts |
|
|
BroadcastCoordSystemChanged ( |
Broadcasts the CoordSystemChangedEvent event |
|
|
BroadcastEditorModeIDChanged ( |
Broadcasts the EditorModeIDChanged event |
|
|
BroadcastWidgetModeChanged ( |
Broadcasts the WidgetModeChanged event |
|
|
CanAutoSave() |
Returns true if all active EdModes are OK with an AutoSave happening now |
|
|
CanCycleWidgetMode() |
Check with modes to see if the widget mode can be cycled |
|
|
CapturedMouseMove ( |
Notifies all active modes of captured mouse movement |
|
|
ComputeBoundingBoxForViewportFocus ( |
Allows editor modes to override the bounding box used to focus the viewport on a selection |
|
|
CycleWidgetMode() |
Cycle the widget mode, forwarding queries to modes Used to cycle widget modes |
|
|
DeactivateAllModes() |
Deactivates all modes, some modes can never be deactivated. |
|
|
DeactivateMode ( |
Deactivates an editor mode. |
|
|
DeactivateOtherVisibleModes ( |
||
|
DeactivateScriptableModeAtIndex ( |
Deactivates the editor mode at the specified index |
|
|
DestroyMode ( |
Deactivate the mode and entirely purge it from memory. Used when a mode type is unregistered |
|
|
DisallowMouseDeltaTracking() |
True if we should disallow mouse delta tracking. |
|
|
DrawActiveModes ( |
Draws all active modes Draws all active mode components |
|
|
DrawHUD ( |
Draws the HUD for all active modes |
|
|
EndTracking ( |
Mouse tracking interface. Passes tracking messages to all active modes |
|
|
EnsureNotInMode ( |
Returns true if the current mode is not the specified ModeID. Also optionally warns the user. |
|
|
FrustumSelect ( |
Notifies all active modes of frustum selection attempts |
|
|
EEditAction:... |
GetActionEditCopy() |
|
|
EEditAction:... |
GetActionEditCut() |
|
|
EEditAction:... |
GetActionEditDelete() |
|
|
EEditAction:... |
GetActionEditDuplicate() |
|
|
EEditAction:... |
GetActionEditPaste() |
|
|
const FEdMod... |
GetActiveMode ( |
Returns a pointer to an active mode specified by the passed in ID If the editor mode is not active, NULL is returned |
|
FEdMode *... |
GetActiveMode ( |
Returns a pointer to an active mode specified by the passed in ID If the editor mode is not active, NULL is returned |
|
SpecificMode... |
GetActiveModeTyped ( |
|
|
const Specif... |
GetActiveModeTyped ( |
|
|
UEdMode *... |
GetActiveScriptableMode ( |
|
|
const FModeT... |
GetActiveTool ( |
Returns the active tool of the passed in editor mode. |
|
GetCoordSystem ( |
Returns the current CoordSystem |
|
|
GetCursor ( |
Get a cursor to override the default with, if any |
|
|
GetCustomDrawingCoordinateSystem() |
Returns a coordinate system that should be applied on top of the worldspace system. |
|
|
GetCustomInputCoordinateSystem() |
||
|
FEditorViewp... |
GetFocusedViewportClient() |
Returns the currently focused viewport client |
|
FEditorViewp... |
GetHoveredViewportClient() |
Returns the currently hovered viewport client |
|
GetLocalCoordinateSystem() |
||
|
GetOverrideCursorVisibility |
Get override cursor visibility settings |
|
|
GetPivotForOrbit ( |
Get a pivot point specified by any active modes around which the camera should orbit |
|
|
USelection &... |
GetSelectedActors() |
Returns the set of selected actors. |
|
USelection &... |
GetSelectedComponents() |
Returns the set of selected components. |
|
USelection &... |
GetSelectedObjects() |
|
|
GetShowWidget() |
||
|
TSharedPtr< ... |
GetToolkitHost() |
Returns the host for toolkits created via modes from this mode manager |
|
EAxisList::T... |
GetWidgetAxisToDraw ( |
Gets the widget axis to be drawn |
|
GetWidgetLocation() |
Returns a good location to draw the widget at. |
|
|
FWidget::EWi... |
GetWidgetMode() |
Retrieves the current widget mode, taking overrides into account. |
|
float |
GetWidgetScale() |
Get Widget Scale Get Scale On The Widget |
|
UWorld * |
GetWorld() |
Returns the world that is being edited by this mode manager |
|
HandleClick ( |
Notifies all active modes of mouse click messages. |
|
|
HasToolkitHost() |
Check if toolkit host exists |
|
|
InputAxis ( |
Notifies all active modes of axis movement |
|
|
InputDelta ( |
Notifies all active modes of any change in mouse movement |
|
|
InputKey ( |
Notifies all active modes of keyboard input |
|
|
InvokeToolPaletteTab ( |
Sets the active Modes ToolBar Palette Tab to the named Palette |
|
|
IsDefaultMode ( |
Returns whether or not the provided mode ID is a default mode |
|
|
IsDefaultModeActive() |
Returns true if the default modes are active. |
|
|
IsModeActive ( |
Returns true if the passed in editor mode is active |
|
|
IsOnlyVisibleActiveMode ( |
||
|
IsSelectionAllowed |
||
|
IsSelectionHandled |
||
|
IsSnapRotationEnabled() |
||
|
IsTracking() |
||
|
IsViewportUIHidden() |
Is the viewport UI hidden? |
|
|
LoadConfig() |
Loads the state that was saved in the INI file |
|
|
LoadWidgetSettings() |
Load Widget Settings from Ini file |
|
|
LostFocus ( |
Notifies all active modes that a viewport has lost focus |
|
|
TSharedRef< ... |
MakeModeToolbarTab() |
Creates the mode toolbar tab if needed |
|
MapChangeNotify() |
Notifies all active modes that a map change has occured |
|
|
MouseEnter ( |
||
|
MouseLeave ( |
||
|
MouseMove ( |
Notifies all active modes that the mouse has moved |
|
|
FCoordSystem... |
OnCoordSystemChanged() |
|
|
FEditorModeI... |
OnEditorModeIDChanged() |
|
|
OnEditorSelectionChanged ( |
Delegate handlers |
|
|
OnEditorSelectNone() |
||
|
OnModeUnregistered ( |
Removes the mode ID from the tools manager when a mode is unregistered |
|
|
FWidgetModeC... |
OnWidgetModeChanged() |
|
|
PostConvertMouseMovement ( |
Called after converting mouse movement to drag/rot |
|
|
PreConvertMouseMovement ( |
Called before converting mouse movement to drag/rot |
|
|
ProcessCapturedMouseMoves ( |
Notifies all active modes of all captured mouse movement |
|
|
ProcessEditCopy() |
||
|
ProcessEditCut() |
||
|
ProcessEditDelete() |
||
|
ProcessEditDuplicate() |
||
|
ProcessEditPaste() |
||
|
ReceivedFocus ( |
Notifies all active modes that a viewport has received focus |
|
|
RemoveDefaultMode ( |
Removes a default mode |
|
|
Render ( |
Renders all active modes |
|
|
SaveConfig() |
Saves the current state to the INI file |
|
|
SaveWidgetSettings() |
Save Widget Settings to Ini file |
|
|
SelectionHasSceneComponent() |
Whether or not the current selection has a scene component selected |
|
|
SelectNone() |
Notifies all active modes to empty their selections |
|
|
SetCoordSystem ( |
Sets the current CoordSystem |
|
|
SetCurrentWidgetAxis ( |
Sets the current widget axis |
|
|
SetDefaultMode ( |
Set the default editor mode for these tools |
|
|
SetHideViewportUI ( |
Sets the hide viewport UI state |
|
|
SetPivotLocation |
Sets the pivot locations |
|
|
SetShowWidget ( |
||
|
SetToolkitHost ( |
Sets the host for toolkits created via modes from this mode manager (can only be called once) |
|
|
SetWidgetMode ( |
Changes the current widget mode. |
|
|
SetWidgetModeOverride ( |
Allows you to temporarily override the widget mode. |
|
|
SetWidgetScale ( |
Set Scale On The Widget |
|
|
ShouldDrawBrushVertices() |
True if brush vertices should be drawn |
|
|
ShouldDrawBrushWireframe ( |
True if the passed in brush actor should be drawn in wireframe |
|
|
ShouldShowModeToolbar() |
Whether or not the mode toolbar should be shown. |
|
|
SnapRotatorToGridOverride ( |
||
|
StartTracking ( |
Mouse tracking interface. Passes tracking messages to all active modes |
|
|
Tick ( |
Ticks all active modes |
|
|
UpdateInternalData() |
||
|
UsesTransformWidget() |
True if any active mode uses a transform widget |
|
|
UsesTransformWidget ( |
True if any active mode uses the passed in transform widget |
Name | Description | ||
---|---|---|---|
|
AddReferencedObjects ( |
Pure virtual that must be overloaded by the inheriting class. |
Name |
Description |
|
---|---|---|
|
FCoordSystemChangedEvent |
Delegate type for triggering when coordinate system changed |
|
FEditorModeIDChangedEvent |
Multicast delegate for OnModeEntered and OnModeExited callbacks. |
|
FWidgetModeChangedEvent |
Delegate type for triggering when widget mode changed |
Name |
Description |
---|---|
EditorModeToolbarTabName |
The toolbar tab name that should be used as the tab identifier |