Open 3D Engine GraphCanvas Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
GraphCanvas::GraphCanvasTreeItem Class Referenceabstract

Inherited by GraphCanvas::NodePaletteTreeItem.

Public Member Functions

 AZ_CLASS_ALLOCATOR (GraphCanvasTreeItem, AZ::SystemAllocator)
 
 AZ_RTTI (GraphCanvasTreeItem, "{BB2B829D-64B5-4D33-9390-85056AA0F3AA}")
 
void SetAllowPruneOnEmpty (bool allowsEmpty)
 
bool AllowPruneOnEmpty () const
 
void DetachItem ()
 
int GetChildCount () const
 
void ClearChildren ()
 
GraphCanvasTreeItemFindChildByRow (int row) const
 
int FindRowUnderParent () const
 
GraphCanvasTreeItemGetParent () const
 
void RegisterModel (GraphCanvasTreeModel *itemModel)
 
QModelIndex GetIndexFromModel ()
 
virtual int GetColumnCount () const =0
 
virtual Qt::ItemFlags Flags (const QModelIndex &index) const =0
 
virtual QVariant Data (const QModelIndex &index, int role) const =0
 
virtual bool SetData ([[maybe_unused]] const QModelIndex &index, [[maybe_unused]] const QVariant &value, [[maybe_unused]] int role)
 
virtual GraphCanvasMimeEventCreateMimeEvent () const
 
template<class NodeType , class... Params>
NodeType * CreateChildNode (Params &&... rest)
 
template<class NodeType , class... Params>
NodeType * CreateChildNodeWithoutAddSignal (Params &&... rest)
 

Protected Member Functions

int FindRowForChild (const GraphCanvasTreeItem *item) const
 
void RemoveParent (GraphCanvasTreeItem *item)
 
void AddChild (GraphCanvasTreeItem *item, bool signalAdd=true)
 
void RemoveChild (GraphCanvasTreeItem *item, bool deleteObject=true)
 
void SignalLayoutAboutToBeChanged ()
 
void SignalLayoutChanged ()
 
void SignalDataChanged ()
 
virtual bool LessThan (const GraphCanvasTreeItem *graphItem) const
 
virtual void PreOnChildAdded (GraphCanvasTreeItem *item)
 
virtual void OnChildAdded (GraphCanvasTreeItem *item)
 
virtual void OnChildDataChanged (GraphCanvasTreeItem *item)
 

Friends

struct Comparator
 
class GraphCanvasTreeModel
 

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