Navigation
API > API/Developer > API/Developer/TreeMap
Inheritance Hierarchy
References
| Module | TreeMap |
| Header | /Engine/Source/Developer/TreeMap/Public/STreeMap.h |
| Include | #include "STreeMap.h" |
Syntax
class STreeMap : public SLeafWidget
Remarks
Graphical tree map widget with interactive controls
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyVisualizationToNodes
(
const FTreeMapNodeDataRef& Node |
Called to apply the current 'size based on' and 'color based on' settings to the tree | |
| void | ApplyVisualizationToNodesRecursively
(
const FTreeMapNodeDataRef& Node, |
Recursively applies the active visualization to all nodes, such as size by attribute, or color by attribute | |
| bool | CanZoomOut () |
Returns true if it is possible to zoom out | |
| void | Construct
(
const FArguments& InArgs, |
Construct the widget | |
| FReply | Deletes the node under the mouse cursor, if any (undoable!) | ||
| FTreeMapNodeDataPtr | FindNodeInCopiedTree
(
const FTreeMapNodeDataRef& NodeToFind, |
Searches for the specified node in an identical copy of the node tree. | |
| FTreeMapNodeVisualInfo * | FindNodeVisualUnderCursor
(
const FGeometry& MyGeometry, |
Finds the node visual that's under the cursor | |
| FTreeMapNodeDataPtr | GetTreeRoot () |
Returns the current tree root, which is the largest node visible | |
| FReply | InsertNewNodeAsChildOfHoveredNode
(
const FGeometry& MyGeometry |
Insert a new node as a child of the node under the cursor | |
| bool | |||
| void | MakeBlendedNodeVisual
(
const int32 VisualIndex, |
Blends between the current visual state and the state before the last navigation transition, by the specified amount | |
| void | RebuildTreeMap
(
const bool bShouldPlayTransition |
Refreshes the tree map from its source data. | |
| void | Redo () |
Redoes the last action | |
| void | RenamingNode_OnTextCommitted
(
const FText& NewText, |
Called when the user commits a rename change | |
| void | ReparentNode
(
const FTreeMapNodeDataRef DroppedNode, |
Reparents DroppedNode to NewParentNode (undoable!) | |
| void | SetTreeRoot
(
const FTreeMapNodeDataRef& NewRoot, |
Sets a new "active root" for the tree. | |
| void | ShowOptionsMenuAt
(
const FPointerEvent& InMouseEvent |
Displays a context menu at the specified location with options for configuring the tree display | |
| void | StartRenamingNode
(
const FGeometry& MyGeometry, |
Pops up a box to allow the user to start renaming a node's title (undoable!) | |
| void | Stops renaming a node, committing whatever text was entered | ||
| void | Grabs a snapshot of the current tree so we can restore it if the user performs an Undo action | ||
| void | Undo () |
Undoes the last action | |
| bool | ZoomOut () |
Zooms out, setting root to it's parent if possible, returns false if not |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float |
Overwritten from SWidget. | |
| FReply | Called after a key is pressed when this widget has focus (this event bubbles if not handled) | ||
| FReply | OnMouseButtonDoubleClick
(
const FGeometry& InMyGeometry, |
Called when a mouse button is double clicked. Override this in derived classes. | |
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. | |
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was release within it. | |
| void | OnMouseLeave
(
const FPointerEvent& MouseEvent |
The system will use this event to notify a widget that the cursor has left it. | |
| FReply | OnMouseMove
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse moved within it. | |
| FReply | OnMouseWheel
(
const FGeometry& MyGeometry, |
Called when the mouse wheel is spun. This event is bubbled. | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
SWidget overrides | |
| bool | Checks to see if this widget supports keyboard focus. Override this in derived classes. | ||
| void | Ticks this widget with Geometry. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| FOnTreeMapNodeInteracted | Delegate used when clicking or interacting with a specific node |