63 for (
int i = 0; i < a_depth - 1; i++)
86 for (
unsigned int i = 0; i <
nbChildren(); i++)
99 std::cout <<
m_name <<
" (address : " << std::hex <<
this <<
")" << std::endl;
Base class for all scene-graph nodes in the component hierarchy.
void unref()
Decrement the reference counter; deletes this when it reaches zero.
void print(int l_depth=0)
void ref()
Increment the reference counter.
virtual void onNameChanged()
virtual unsigned int nbChildren() const
void setName(const std::string &name)
unsigned int m_refCounter
virtual void onParentSet(Component *)
Called after the parent has been set; override for custom logic.
void setParentComponent(Component *)
Set the parent of this component.
void copy(const Component &component, bool)
virtual Component * getChild(unsigned int)
virtual bool addChild(Component *)
Add a child component to this node.
virtual bool removeChild(Component *)
Remove a child component from this node.