Navigation
API > API/Plugins > API/Plugins/AvalancheOutliner > API/Plugins/AvalancheOutliner/Item
Inheritance Hierarchy
- IAvaTypeCastable
- TSharedFromThis< IAvaOutlinerItem >
- IAvaOutlinerItem
- FAvaOutlinerItem
- FAvaOutlinerItemProxy
- FAvaOutlinerComponentProxy
- FAvaOutlinerMaterialProxy
- FAvaOutlinerObject
- FAvaOutlinerActor
- FAvaOutlinerComponent
- FAvaOutlinerLevel
- FAvaOutlinerObjectReference
- FAvaOutlinerMaterial
- FAvaOutlinerSharedObject
References
| Module | AvalancheOutliner |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheOutliner/Public/Item/IAvaOutlinerItem.h |
| Include | #include "Item/IAvaOutlinerItem.h" |
Syntax
class IAvaOutlinerItem :
public IAvaTypeCastable ,
public TSharedFromThis< IAvaOutlinerItem >
Remarks
An Outliner Item is the class that represents a Single Element (i.e. Node) in the Outliner Tree. This can be an Item that represents an Object (e.g. Actor,Component) or a Folder, or something else.
Functions
| Type | Name | Description | |
|---|---|---|---|
| FReply | AcceptDrop
(
const FDragDropEvent& InDragDropEvent, |
Processes the Drag and Drop Event for this Item | |
| bool | AddChild
(
const FAvaOutlinerAddItemParams& InAddItemParams |
Adds another Child under this Item if such Item is supported. | |
| void | AddFlags
(
EAvaOutlinerItemFlags Flag |
||
| TOptional< EItemDropZone > | CanAcceptDrop
(
const FDragDropEvent& InDragDropEvent, |
Determines if and where the incoming Drag Drop Event can be processed by this item | |
| bool | CanAddChild
(
const FAvaOutlinerItemPtr& InChild |
Determines whether the given Child is supported and can be added under this Item | |
| bool | Whether the Item is able to expand when AutoExpand functionality is enabled | ||
| bool | Whether this Item can be at the Top Level just beneath the Root, or it needs to always be under some other Item E.g. | ||
| bool | CanDelete () |
Whether this Item can be deleted or not | |
| bool | CanLock () |
Whether an Item can be Locked in any kind. E.g. Actors can be location-locked | |
| bool | Whether a change in Parent Visibility should also affect this Item's Visibility | ||
| bool | CanRename () |
Whether this Item can be renamed or not | |
| bool | Delete () |
The implementation to delete the item | |
| void | FindChildren
(
TArray< FAvaOutlinerItemPtr >& OutChildren, |
Figures out the Children of this Item. | |
| TArray< FAvaOutlinerItemPtr > | FindPath
(
const TArray< FAvaOutlinerItemPtr >& Items |
Tries to Find the First Path of Descendants (not including self) that lead to a given Item in the Set. | |
| void | FindValidChildren
(
TArray< FAvaOutlinerItemPtr >& OutChildren, |
||
| TSharedRef< SWidget > | GenerateLabelWidget
(
const TSharedRef< SAvaOutlinerTreeRow >& InRow |
Function responsible of Generating the Label Widget for this Item (i.e. the column containing the Icon and the Name) | |
| FAvaOutlinerItemPtr | GetChildAt
(
IndexType Index |
Gets the Child Item at the given Index. | |
| IndexType | GetChildIndex
(
const FAvaOutlinerItemPtr& ChildItem |
Gets the Index that the given Child Item is at. | |
| const TArray< FAvaOutlinerItemPtr > & | GetChildren () |
Gets the current Child Items of this Item | |
| TArray< FAvaOutlinerItemPtr > & | Gets the current Child Items of this Item | ||
| FText | GetClassName () |
Gets the Class/Type of this Item (e.g. for Items that represent UObjects, it will be the UObject class) | |
| TOptional< FAvaOutlinerColorPair > | GetColor
(
bool bRecurse |
Returns the Item's Color Name and Color (either inherited if bRecurse is true, or explicit if false) | |
| FText | Gets the Display Name Text of the Item | ||
| EAvaOutlinerItemFlags | GetFlags () |
||
| FSlateIcon | GetIcon () |
||
| const FSlateBrush * | GetIconBrush () |
||
| FText | |||
| FLinearColor | GetItemColor () |
Gets the Brush Color to use for the Item in the Outliner (e.g. Components should be grayed out a bit) | |
| FAvaOutlinerItemId | GetItemId () |
Gets the Id of this Item | |
| void | GetItemProxies
(
TArray< TSharedPtr< FAvaOutlinerItemProxy > >& OutItemProxies |
Gets the Item Proxies for this Item (e.g. Component Item that represent Primitives add in a Material Proxy to display) | |
| int32 | Returns the item's height in tree, Root Item should return 0 as it has no Parent | ||
| TSharedRef< IAvaOutliner > | Gets the Outliner that owns this Item | ||
| FAvaOutlinerItemPtr | GetParent () |
Gets the Parent of this Item. | |
| EAvaOutlinerItemViewMode | GetSupportedViewModes
(
const FAvaOutlinerView& InOutlinerView |
Gets the View Modes that this Item Supports | |
| TArray< FName > | GetTags () |
Gets the Tags found for this Item (e.g. for Actors, actor tags and for Components Component Tags) | |
| bool | GetVisibility
(
EAvaOutlinerVisibilityType VisibilityType |
Whether this Item is currently visible or not for the Given Type | |
| bool | HasAllFlags
(
EAvaOutlinerItemFlags Flag |
||
| bool | HasAnyFlags
(
EAvaOutlinerItemFlags Flag |
||
| bool | Returns whether this Item (and what it represents) should be allowed to be registered in Outliner | ||
| bool | Whether Ignoring Pending Kill. | ||
| bool | IsItemValid () |
Determines whether the Item properties are in a valid state | |
| bool | IsLocked () |
Whether the Item is currently Locked | |
| bool | IsSelectable () |
Whether the Item can be selected in Outliner at all | |
| bool | IsSelected
(
const FAvaOutlinerScopedSelection& InSelection |
Determines whether the given Item is selected in the given Scoped Selection | |
| bool | IsSortable () |
Determines whether this item can be sorted by the Outliner or not. | |
| bool | IsViewModeSupported
(
EAvaOutlinerItemViewMode InViewMode, |
Whether this Item should be visualized in the given View Mode, for the given Outliner View | |
| FOnExpansionChanged & | Called when Expansion state (Expanded/Collapsed) has been changed | ||
| void | Called when the Item has been registered into the Outliner | ||
| void | OnItemSelectionChanged
(
bool bInIsSelected |
Called when the Item been selected/deselected from the Tree View | |
| void | Called when the Item has been unregistered from the Outliner | ||
| void | OnObjectsReplaced
(
const TMap< UObject*, UObject* >& InReplacementMap, |
Called when objects have been replaced on the Engine side. | |
| FOnRenameAction & | Broadcasts whenever a rename action takes place from a given view (e.g. when pressing "F2" to rename, or committing the rename text) | ||
| void | OnVisibilityChanged
(
EAvaOutlinerVisibilityType VisibilityType, |
Called when the Visibility on Item has been changed on the Outliner side | |
| void | Refreshes what the Parent and Children are of this Item. (not recursive!) | ||
| bool | RemoveChild
(
const FAvaOutlinerRemoveItemParams& InRemoveItemParams |
Removes the given child from this Item if it was ever indeed a child. | |
| void | RemoveFlags
(
EAvaOutlinerItemFlags Flag |
||
| bool | The implementation to rename the item (e.g. for AActor it will be the Actor Label that is changed) | ||
| void | Resets both the Cached Visible Children and Children (before doing so, sets all child's parents to null) | ||
| void | Select
(
FAvaOutlinerScopedSelection& InSelection |
Used to signal the Scoped Selection that this Item should be Selected | |
| void | SetFlags
(
EAvaOutlinerItemFlags InFlags |
||
| void | SetLocked
(
bool bInIsLocked |
Lock/Unlock the Item | |
| void | SetParent
(
FAvaOutlinerItemPtr InParent |
Sets the Parent. Note that the Parent must've already have this instance as a child (check is done) | |
| bool | ShowVisibility
(
EAvaOutlinerVisibilityType VisibilityType |
Whether this Item supports Visibility for the Given Type | |
Typedefs
| Name | Description |
|---|---|
| FOnExpansionChanged | Delegate signature for when the Item Expansion Changes const TSharedPtr |
| FOnRenameAction | Delegate signature for relaying an Item Rename action EAvaOutlinerRenameAction the type of action being relayed (e.g. request a rename, or notify rename complete, etc) const TSharedPtr |
| IndexType |