36char BadObject[] = 
" * [BUG] operating on an invalid wrapper (object may have been deleted)";
 
   37char BadOperand[] = 
" * [BUG] parameter aNode is an invalid wrapper; its data may have been deleted";
 
   38char BadParent[] = 
" * [BUG] invalid parent node (data may have been deleted)";
 
   39char WrongParent[] = 
" * [BUG] parent node type is incompatible";
 
   75    return m_node->GetNodeType();
 
 
   81    wxCHECK( 
m_node, 
nullptr );
 
   83    return m_node->GetParent();
 
 
   91    return m_node->SetParent( aParent );
 
 
   97    wxCHECK( 
m_node, 
nullptr );
 
 
  114    wxCHECK( 
m_node, 
nullptr );
 
  116    return m_node->GetNodeTypeName( aNodeType );
 
 
  122    wxCHECK( 
m_node, 
nullptr );
 
  124    return m_node->FindNode( aNodeName, 
nullptr );
 
 
  132    return m_node->AddRefNode( aNode );
 
 
  142    wxCHECK( np, 
false );
 
  144    return m_node->AddRefNode( np );
 
 
  152    return m_node->AddChildNode( aNode );
 
 
  162    wxCHECK( np, 
false );
 
  164    return m_node->AddChildNode( np );
 
 
const char * GetNodeTypeName(S3D::SGTYPES aNodeType) const
Return the text representation of the node type or NULL if the node somehow has an invalid type.
 
SGNODE * GetParent(void) const
Return a pointer to the parent SGNODE of this object or NULL if the object has no parent (ie.
 
bool SetParent(SGNODE *aParent)
Set the parent SGNODE of this object.
 
SGNODE * GetRawPtr(void) noexcept
Return the raw internal SGNODE pointer.
 
SGNODE * FindNode(const char *aNodeName)
Search the tree of linked nodes and returns a reference to the first node found with the given name.
 
const char * GetName(void)
Return a pointer to the node name (NULL if no name assigned).
 
void Destroy(void)
Delete the object held by this wrapper.
 
bool AddChildNode(SGNODE *aNode)
Add a node as a child owned by this node.
 
bool AddRefNode(SGNODE *aNode)
Add a reference to an existing node which is not owned by (not a child of) this node.
 
bool SetName(const char *aName)
Set the node's name.
 
S3D::SGTYPES GetNodeType(void) const
Return the type of this node instance.
 
The base class of all Scene Graph nodes.
 
defines the API calls for the manipulation of SG* classes
 
defines the wrapper of the base class SG_NODE