public abstract

Inheritance Graph

graph BT
	GroupNode
	GroupNode --> Node
	ListNode --> GroupNode
	MultiAlgoGroupNode --> GroupNode
	PathNode --> GroupNode
	click GroupNode "classMinSG_1_1GroupNode"
	click Node "classMinSG_1_1Node"
	click ListNode "classMinSG_1_1ListNode"
	click MultiAlgoGroupNode "classMinSG_1_1MAR_1_1MultiAlgoGroupNode"
	click PathNode "classMinSG_1_1PathNode"

Description

(abstract)[ GroupNode ] > [ Node ]

Public Types

   
   
typedef Util::Reference < GroupNode > ref_t

Public Functions

     
     
  GroupNode()  
     
  ~GroupNode()  
     
size_t countChildren() const  
     
void addChild( Util::Reference < Node > child)  
     
bool hasChildren() const  
     
bool removeChild( Util::Reference < Node > child)  
     
bool doRemoveChild( Util::Reference < Node > child)  
     
void invalidateCompoundBB()  
     
void removeFixedBB()
> Node
     
void clearChildren()
Removes all children from the Node .
 

Documentation

typedef
MinSG::GroupNode::ref_t

public
 
 
typedef Util::Reference < GroupNode > ref_t

Defined in MinSG/Core/Nodes/GroupNode.h:25


function
MinSG::GroupNode::GroupNode

public
   
   
GroupNode( )

Defined in MinSG/Core/Nodes/GroupNode.h:28


function
MinSG::GroupNode::~GroupNode

public inline virtual
   
   
~GroupNode( )

Defined in MinSG/Core/Nodes/GroupNode.h:29


function
MinSG::GroupNode::countChildren

public const virtual
   
   
size_t countChildren( ) const

o

Returns

The number of direct children of this node.

Defined in MinSG/Core/Nodes/GroupNode.h:36


function
MinSG::GroupNode::addChild

public
     
     
void addChild( Util::Reference < Node > child )

Add a child to this node and update the child’s parent.

  • May throw an exception on failure

Defined in MinSG/Core/Nodes/GroupNode.h:40


function
MinSG::GroupNode::hasChildren

public const inline
   
   
bool hasChildren( ) const

Defined in MinSG/Core/Nodes/GroupNode.h:42


function
MinSG::GroupNode::removeChild

public
     
     
bool removeChild( Util::Reference < Node > child )

Try to remove a child from this node.

Returns

trueifchildwas removed.

Defined in MinSG/Core/Nodes/GroupNode.h:46


function
MinSG::GroupNode::doRemoveChild

public virtual
     
     
bool doRemoveChild( Util::Reference < Node > child )

(internal) Remove the given child from this node.

  • called by removeChild(…).

  • Has to set the child’s parent to null (child->_setParent(nullptr)).

    Returns

    false iff the node could not be found.

Note: Normally, use removeChild(…) instead.

Defined in MinSG/Core/Nodes/GroupNode.h:55


function
MinSG::GroupNode::invalidateCompoundBB

public virtual
   
   
void invalidateCompoundBB( )

This method is called by Node::worldBBChanged() for all parent nodes (until one has a fixed bb). If the node’s bounding box is influenced by its children, it should be invalidated here and then re-calculated on the next call of doGetBB().

Defined in MinSG/Core/Nodes/GroupNode.h:62


function
MinSG::GroupNode::removeFixedBB

public inline virtual
   
   
void removeFixedBB( )
> Node

Defined in MinSG/Core/Nodes/GroupNode.h:65


function
MinSG::GroupNode::clearChildren

public
   
   
void clearChildren( )

Removes all children from the Node .

Defined in MinSG/Core/Nodes/GroupNode.h:71