56 wxT(
" * [INFO] Destroying Group with %zu children, %zu references, and %zu "
64 if(
nullptr == aTopNode )
67 " * [BUG] aTopNode is NULL" ),
68 __FILE__, __FUNCTION__, __LINE__ );
73 char tok = proc.
Peek();
79 " * [INFO] bad file format; unexpected eof %s." ),
89 " * [INFO] bad file format; expecting '{' but got '%s' %s." ),
99 if( proc.
Peek() ==
'}' )
105 if( !aTopNode->
ReadNode( proc,
this,
nullptr ) )
109 " * [INFO] bad file format; unexpected eof %s." ),
115 if( proc.
Peek() ==
',' )
126 wxCHECK_MSG(
m_Parent,
nullptr, wxT(
"Group has no parent." ) );
129 wxT(
" * [INFO] Translating Group with %zu children, %zu references, %zu back "
130 "pointers, and %zu items." ),
139 wxLogTrace(
traceVrmlPlugin, wxT(
" * [INFO] bad model: no base data given." ) );
144 else if(
nullptr == sp )
154 wxT(
" * [BUG] Group does not have a Transform parent (parent ID: %d" ),
158 bool hasContent =
false;
160 std::list< WRL1NODE* >::iterator sI =
m_Items.begin();
161 std::list< WRL1NODE* >::iterator eI =
m_Items.end();
167 if(
nullptr != (*sI)->TranslateToSG( node, sp ) )
SGNODE * GetRawPtr(void) noexcept
Return the raw internal SGNODE pointer.
void Destroy(void)
Delete the object held by this wrapper.
The base class of all Scene Graph nodes.
Represent the top node of a VRML1 model.
bool ReadNode(WRLPROC &proc, WRL1NODE *aParent, WRL1NODE **aNode)
SGNODE * TranslateToSG(SGNODE *aParent, WRL1STATUS *sp) override
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
WRL1GROUP(NAMEREGISTER *aDictionary)
bool Read(WRLPROC &proc, WRL1BASE *aTopNode) override
WRL1NODE(NAMEREGISTER *aDictionary)
std::list< WRL1NODE * > m_Items
std::list< WRL1NODE * > m_BackPointers
std::list< WRL1NODE * > m_Children
std::list< WRL1NODE * > m_Refs
std::string GetFilePosition() const
const wxChar *const traceVrmlPlugin
Flag to enable VRML plugin trace output.
collects header files for all SG* wrappers and the API
SGLIB_API S3D::SGTYPES GetSGNodeType(SGNODE *aNode)