36 char BadObject[] =
" * [BUG] operating on an invalid wrapper (object may have been deleted)";
37 char BadOperand[] =
" * [BUG] parameter aNode is an invalid wrapper; its data may have been deleted";
38 char BadParent[] =
" * [BUG] invalid parent node (data may have been deleted)";
39 char 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 );
SGNODE * GetParent(void) const
Function GetParent returns a pointer to the parent SGNODE of this object or NULL if the object has no...
virtual bool AddRefNode(SGNODE *aNode)=0
defines the wrapper of the base class SG_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 SetParent(SGNODE *aParent)
Function SetParent sets the parent SGNODE of this object.
IFSG_NODE represents the base class of all DLL-safe Scene Graph nodes.
The base class of all Scene Graph nodes.
SGNODE * GetRawPtr(void) noexcept
Function GetRawPtr() returns the raw internal SGNODE pointer.
bool AddChildNode(SGNODE *aNode)
Function AddChildNode adds a node as a child owned by this node.
const char * GetName(void)
Function GetName returns a pointer to the node name (NULL if no name assigned)
const char * GetName(void)
void DisassociateWrapper(SGNODE **aWrapperRef) noexcept
Remove the association between an IFSG* wrapper object and this object.
const char * GetNodeTypeName(S3D::SGTYPES aNodeType) const noexcept
S3D::SGTYPES GetNodeType(void) const
Function GetNodeType returns the type of this node instance.
defines the API calls for the manipulation of SG* classes
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.
void SetName(const char *aName)
SGNODE * FindNode(const char *aNodeName)
Function FindNode searches the tree of linked nodes and returns a reference to the first node found w...
virtual bool SetParent(SGNODE *aParent, bool notify=true)=0
Set the parent SGNODE of this object.
virtual bool AddChildNode(SGNODE *aNode)=0
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.
const char * GetNodeTypeName(S3D::SGTYPES aNodeType) const
Function GetNodeTypeName returns the text representation of the node type or NULL if the node somehow...
void Destroy(void)
Function Destroy deletes the object held by this wrapper.
S3D::SGTYPES GetNodeType(void) const noexcept
Return the type of this node instance.