53 wxT(
" * [INFO] Destroying Switch node with %zu children, %zu"
54 "references, and %zu back pointers." ),
70 wxCHECK_MSG( aTopNode,
false, wxT(
"Invalid top node." ) );
72 char tok = proc.
Peek();
77 " * [INFO] bad file format; unexpected eof %s." ),
87 " * [INFO] bad file format; expecting '{' but got '%s' %s.\n"
100 char pchar = proc.
Peek();
107 else if ( pchar ==
'w' )
113 __FILE__, __FUNCTION__, __LINE__ , proc.
GetError() );
118 if( !glob.compare(
"whichChild" ) )
124 " * [INFO] invalid whichChild %s (invalid value '%s')\n"
125 " * [INFO] file: '%s'\n"
138 " * [INFO] invalid Switch %s (unexpected 'whichChild')\n"
139 " * [INFO] file: '%s'" ),
146 if( !aTopNode->
ReadNode( proc,
this,
nullptr ) )
150 " * [INFO] bad file format; unexpected eof %s."),
156 if( proc.
Peek() ==
',' )
168 wxT(
" * [INFO] Translating Switch node with %zu children, %zu"
169 "references, and %zu back pointers (%zu total items)." ),
184 std::list< WRL1NODE* >::iterator ip =
m_Items.begin();
189 SGNODE* np = (*ip)->TranslateToSG( aParent, sp );
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
WRL1SWITCH(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...
bool ReadSFInt(int &aSFInt32)
std::string GetFileName(void)
std::string GetError(void)
bool ReadName(std::string &aName)
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