ItemTreeData Class Reference

#include <customgui_itemtree.h>

Inheritance diagram for ItemTreeData:

Public Member Functions

ItemTreeNode * AddItem (Int32 id, const maxon::String &name, BaseList2D *bl, const GeData &data, UInt32 flags, Bool aslast=true)
 
ItemTreeNode * AddNode (Int32 id, const maxon::String &name, BaseList2D *bl, const GeData &data, UInt32 flags, ItemTreeNode *parent, ItemTreeNode *prev, Bool aslast=true)
 
ItemTreeNodeData * GetNodeData (ItemTreeNode *node)
 
const ItemTreeNodeData * GetNodeData (const ItemTreeNode *node) const
 
ItemTreeNode * GetiNext (ItemTreeNode *node, ItemTreeNode *topnode=nullptr)
 
const ItemTreeNode * GetiNext (const ItemTreeNode *node, const ItemTreeNode *topnode=nullptr) const
 
ItemTreeNode * GetNext (ItemTreeNode *node)
 
const ItemTreeNode * GetNext (const ItemTreeNode *node) const
 
ItemTreeNode * GetPrev (ItemTreeNode *node)
 
ItemTreeNode * GetUp (ItemTreeNode *node)
 
const ItemTreeNode * GetUp (const ItemTreeNode *node) const
 
ItemTreeNode * GetDown (ItemTreeNode *node)
 
const ItemTreeNode * GetDown (const ItemTreeNode *node) const
 
ItemTreeNode * GetRoot ()
 
ItemTreeNode * GetFirst ()
 
const ItemTreeNode * GetFirst () const
 
void Remove (ItemTreeNode *node)
 
void FreeNode (ItemTreeNode *&node)
 
void Insert (ItemTreeNode *node, ItemTreeNode *parent, ItemTreeNode *prev, Bool aslast=true)
 
void SetOwner (BaseList2D *bl)
 
BaseContainerGetUserData ()
 
Int32 GetSelected (ItemTreeNode ***table, Bool children=true)
 
ItemTreeNode * Find (UInt64 guid, ItemTreeNode *node=nullptr)
 
ItemTreeNode * Find (UInt64 guid, Int32 id, Bool child=true, ItemTreeNode *node=nullptr)
 
const ItemTreeNode * Find (UInt64 guid, const ItemTreeNode *node=nullptr) const
 
const ItemTreeNode * Find (UInt64 guid, Int32 id, Bool child=true, const ItemTreeNode *node=nullptr) const
 
void ClearSelection ()
 
UInt64 GetSelectedID ()
 
void SetSelectedID (UInt64 guid)
 
void SetSelected (ItemTreeNode *node)
 
ItemTreeNode * GetFirstSelected ()
 
const ItemTreeNode * GetFirstSelected () const
 
void AddToSelected (ItemTreeNode *node)
 
void Reset ()
 
ItemTreeNodeIndex * BuildIndexTable (Int32 &tcnt, Bool sorted)
 
Int32 GetClipCount ()
 
ItemTreeNode ** GetClipArray ()
 
Int32 GetNodeTable (ItemTreeNode ***table)
 
void RemoveSelected ()
 
UInt64 GetChecksum () const
 
maxon::HashInt GetHashCode (Bool onlyGuid) const
 
void SortNames (BaseDocument *doc)
 
void Validate (BaseDocument *doc)
 
Bool CopyFrom (ItemTreeData *src)
 

Static Public Member Functions

static ItemTreeDataAlloc ()
 
static void Free (ItemTreeData *&data)
 

Private Member Functions

 ItemTreeData ()
 
 ~ItemTreeData ()
 

Additional Inherited Members

- Static Public Attributes inherited from CustomDataTypeT< 1024869 >
static constexpr Int32 DATATYPEID
 

Constructor & Destructor Documentation

◆ ItemTreeData()

ItemTreeData ( )
private

◆ ~ItemTreeData()

~ItemTreeData ( )
private

Member Function Documentation

◆ Alloc()

static ItemTreeData* Alloc ( )
static

◆ Free()

static void Free ( ItemTreeData *&  data)
static

◆ AddItem()

ItemTreeNode* AddItem ( Int32  id,
const maxon::String name,
BaseList2D bl,
const GeData data,
UInt32  flags,
Bool  aslast = true 
)

◆ AddNode()

ItemTreeNode* AddNode ( Int32  id,
const maxon::String name,
BaseList2D bl,
const GeData data,
UInt32  flags,
ItemTreeNode *  parent,
ItemTreeNode *  prev,
Bool  aslast = true 
)

◆ GetNodeData() [1/2]

ItemTreeNodeData* GetNodeData ( ItemTreeNode *  node)

◆ GetNodeData() [2/2]

const ItemTreeNodeData* GetNodeData ( const ItemTreeNode *  node) const

◆ GetiNext() [1/2]

ItemTreeNode* GetiNext ( ItemTreeNode *  node,
ItemTreeNode *  topnode = nullptr 
)

◆ GetiNext() [2/2]

const ItemTreeNode* GetiNext ( const ItemTreeNode *  node,
const ItemTreeNode *  topnode = nullptr 
) const

◆ GetNext() [1/2]

ItemTreeNode* GetNext ( ItemTreeNode *  node)

◆ GetNext() [2/2]

const ItemTreeNode* GetNext ( const ItemTreeNode *  node) const

◆ GetPrev()

ItemTreeNode* GetPrev ( ItemTreeNode *  node)

◆ GetUp() [1/2]

ItemTreeNode* GetUp ( ItemTreeNode *  node)

◆ GetUp() [2/2]

const ItemTreeNode* GetUp ( const ItemTreeNode *  node) const

◆ GetDown() [1/2]

ItemTreeNode* GetDown ( ItemTreeNode *  node)

◆ GetDown() [2/2]

const ItemTreeNode* GetDown ( const ItemTreeNode *  node) const

◆ GetRoot()

ItemTreeNode* GetRoot ( )

◆ GetFirst() [1/2]

ItemTreeNode* GetFirst ( )

◆ GetFirst() [2/2]

const ItemTreeNode* GetFirst ( ) const

◆ Remove()

void Remove ( ItemTreeNode *  node)

◆ FreeNode()

void FreeNode ( ItemTreeNode *&  node)

◆ Insert()

void Insert ( ItemTreeNode *  node,
ItemTreeNode *  parent,
ItemTreeNode *  prev,
Bool  aslast = true 
)

◆ SetOwner()

void SetOwner ( BaseList2D bl)

◆ GetUserData()

BaseContainer* GetUserData ( )

◆ GetSelected()

Int32 GetSelected ( ItemTreeNode ***  table,
Bool  children = true 
)

◆ Find() [1/4]

ItemTreeNode* Find ( UInt64  guid,
ItemTreeNode *  node = nullptr 
)

◆ Find() [2/4]

ItemTreeNode* Find ( UInt64  guid,
Int32  id,
Bool  child = true,
ItemTreeNode *  node = nullptr 
)

◆ Find() [3/4]

const ItemTreeNode* Find ( UInt64  guid,
const ItemTreeNode *  node = nullptr 
) const

◆ Find() [4/4]

const ItemTreeNode* Find ( UInt64  guid,
Int32  id,
Bool  child = true,
const ItemTreeNode *  node = nullptr 
) const

◆ ClearSelection()

void ClearSelection ( )

◆ GetSelectedID()

UInt64 GetSelectedID ( )

◆ SetSelectedID()

void SetSelectedID ( UInt64  guid)

◆ SetSelected()

void SetSelected ( ItemTreeNode *  node)

◆ GetFirstSelected() [1/2]

ItemTreeNode* GetFirstSelected ( )

◆ GetFirstSelected() [2/2]

const ItemTreeNode* GetFirstSelected ( ) const

◆ AddToSelected()

void AddToSelected ( ItemTreeNode *  node)

◆ Reset()

void Reset ( )

◆ BuildIndexTable()

ItemTreeNodeIndex* BuildIndexTable ( Int32 tcnt,
Bool  sorted 
)

◆ GetClipCount()

Int32 GetClipCount ( )

◆ GetClipArray()

ItemTreeNode** GetClipArray ( )

◆ GetNodeTable()

Int32 GetNodeTable ( ItemTreeNode ***  table)

◆ RemoveSelected()

void RemoveSelected ( )

◆ GetChecksum()

UInt64 GetChecksum ( ) const

◆ GetHashCode()

maxon::HashInt GetHashCode ( Bool  onlyGuid) const

◆ SortNames()

void SortNames ( BaseDocument doc)

◆ Validate()

void Validate ( BaseDocument doc)

◆ CopyFrom()

Bool CopyFrom ( ItemTreeData src)