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";
81 wxCHECK(
m_node,
nullptr );
97 wxCHECK(
m_node,
nullptr );
114 wxCHECK(
m_node,
nullptr );
122 wxCHECK(
m_node,
nullptr );
142 wxCHECK( np,
false );
162 wxCHECK( np,
false );
The base class of all DLL-safe Scene Graph nodes.
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.
void SetName(const char *aName)
virtual bool AddRefNode(SGNODE *aNode)=0
const char * GetName(void)
virtual bool SetParent(SGNODE *aParent, bool notify=true)=0
Set the parent SGNODE of this object.
virtual SGNODE * FindNode(const char *aNodeName, const SGNODE *aCaller)=0
Search the tree of linked nodes and return a reference to the first node found with the given name.
SGNODE * GetParent(void) const noexcept
Returns a pointer to the parent SGNODE of this object or NULL if the object has no parent (ie.
S3D::SGTYPES GetNodeType(void) const noexcept
Return the type of this node instance.
virtual bool AddChildNode(SGNODE *aNode)=0
const char * GetNodeTypeName(S3D::SGTYPES aNodeType) const noexcept
void DisassociateWrapper(SGNODE **aWrapperRef) noexcept
Remove the association between an IFSG* wrapper object and this object.
defines the API calls for the manipulation of SG* classes
defines the wrapper of the base class SG_NODE