Open 3D Engine LyShine Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
HierarchyItem Class Reference

Inherits QObject, and QTreeWidgetItem.

Signals

void SignalItemAdd (HierarchyItem *item)
 
void SignalItemRemove (HierarchyItem *item)
 

Public Member Functions

 HierarchyItem (EditorWindow *editWindow, QTreeWidgetItem &parent, int childIndex, const QString label, AZ::Entity *optionalElement)
 
AZ::Entity * GetElement () const
 This should NEVER return a nullptr.
 
AZ::EntityId GetEntityId () const
 
void ClearEntityId ()
 This is ONLY ever called when the HierarchyWidget is being destroyed.
 
void SetMouseIsHovering (bool isHovering)
 
void SetIsExpanded (bool isExpanded)
 
void ApplyElementIsExpanded ()
 
void SetIsSelectable (bool isSelectable)
 
void SetIsSelected (bool isSelected)
 
void SetIsVisible (bool isVisible)
 
HierarchyItemParent () const
 
HierarchyItemChild (int i) const
 
void SetMark (bool m)
 This is a generic marker, for use by any algorithm.
 
bool GetMark ()
 
void SetNonSnappedOffsets (UiTransform2dInterface::Offsets offsets)
 This is ephemeral data used for snapping.
 
UiTransform2dInterface::Offsets GetNonSnappedOffsets ()
 
void SetNonSnappedZRotation (float rotation)
 
float GetNonSnappedZRotation ()
 
void SetPreMove (AZ::EntityId parentId, int childRow)
 
AZ::EntityId GetPreMoveParentId ()
 
int GetPreMoveChildRow ()
 
void ReplaceElement (const AZStd::string &buffer, const AZStd::unordered_set< AZ::Data::AssetId > &referencedSliceAssets)
 
void UpdateSliceInfo ()
 Update the visual look of the element to show slice information.
 
void UpdateEditorOnlyInfo ()
 Update the visual look of the element to show whether it's editor only.
 

Static Public Member Functions

static HierarchyItemRttiCast (QTreeWidgetItem *treeItem)
 

Static Public Attributes

static constexpr int RttiType = ItemType::UserType + 1
 

Member Function Documentation

◆ SetPreMove()

void HierarchyItem::SetPreMove ( AZ::EntityId  parentId,
int  childRow 
)

This is our PREVIOUS parent and childRow. This is used to undo reparenting.


The documentation for this class was generated from the following file: