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 );
IFSG_NODE represents the base class of all DLL-safe Scene Graph nodes.
const char * GetNodeTypeName(S3D::SGTYPES aNodeType) const
Function GetNodeTypeName returns the text representation of the node type or NULL if the node somehow...
SGNODE * GetParent(void) const
Function GetParent returns a pointer to the parent SGNODE of this object or NULL if the object has no...
bool SetParent(SGNODE *aParent)
Function SetParent sets the parent SGNODE of this object.
SGNODE * GetRawPtr(void) noexcept
Function GetRawPtr() returns the raw internal SGNODE pointer.
SGNODE * FindNode(const char *aNodeName)
Function FindNode searches the tree of linked nodes and returns a reference to the first node found w...
const char * GetName(void)
Function GetName returns a pointer to the node name (NULL if no name assigned)
void Destroy(void)
Function Destroy deletes the object held by this wrapper.
bool AddChildNode(SGNODE *aNode)
Function AddChildNode adds a node as a child owned by this node.
bool AddRefNode(SGNODE *aNode)
Function AddRefNode adds a reference to an existing node which is not owned by (not a child of) this ...
bool SetName(const char *aName)
Function SetName sets the node's name; if the pointer passed is NULL then the node's name is erased.
S3D::SGTYPES GetNodeType(void) const
Function GetNodeType returns 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