50 wxT(
" * [INFO] Destroying Separator with %zu children %zu references, and %zu "
58 wxCHECK_MSG( aTopNode,
false, wxT(
"Invalid top node." ) );
60 char tok = proc.
Peek();
65 " * [INFO] bad file format; unexpected eof %s." ),
75 " * [INFO] bad file format; expecting '{' but got '%s' %s." ),
85 if( proc.
Peek() ==
'}' )
91 if( !aTopNode->
ReadNode( proc,
this,
nullptr ) )
94 " * [INFO] bad file format; unexpected eof %s." ),
100 if( proc.
Peek() ==
',' )
111 wxCHECK_MSG(
m_Parent,
nullptr, wxT(
"Separator has no parent." ) );
114 wxT(
" * [INFO] Translating Separator with %zu children, %zu references, and "
115 "%zu back pointers (%zu total items)." ),
126 wxString::Format( wxT(
"Separator does not have a Transform parent (parent "
127 "ID: %d)." ), ptype ) );
130 bool hasContent =
false;
132 std::list< WRL1NODE* >::iterator sI =
m_Items.begin();
133 std::list< WRL1NODE* >::iterator eI =
m_Items.end();
139 if(
nullptr != (*sI)->TranslateToSG( node, &
m_current ) )
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)
WRL1NODE(NAMEREGISTER *aDictionary)
std::list< WRL1NODE * > m_Items
std::list< WRL1NODE * > m_BackPointers
std::list< WRL1NODE * > m_Children
std::list< WRL1NODE * > m_Refs
bool Read(WRLPROC &proc, WRL1BASE *aTopNode) override
WRL1SEPARATOR(NAMEREGISTER *aDictionary)
SGNODE * TranslateToSG(SGNODE *aParent, WRL1STATUS *sp) override
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
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)