36 m_Type = WRL2NODES::WRL2_NORMAL;
42 m_Type = WRL2NODES::WRL2_NORMAL;
52 wxLogTrace(
traceVrmlPlugin, wxT(
" * [INFO] Destroying Normal node." ) );
70 wxCHECK_MSG(
false,
false, wxT(
"AddRefNode is not applicable." ) );
77 wxCHECK_MSG(
false,
false, wxT(
"AddChildNode is not applicable." ) );
83 char tok = proc.
Peek();
88 " * [INFO] bad file format; unexpected eof %s." ),
98 " * [INFO] bad file format; expecting '{' but got '%s' %s." ),
107 if( proc.
Peek() ==
'}' )
117 __FILE__, __FUNCTION__, __LINE__ , proc.
GetError() );
123 if( !glob.compare(
"vector" ) )
128 " * [INFO] invalid vector set %s\n"
129 " * [INFO] file: '%s'\n"
140 " * [INFO] invalid Normal %s\n"
141 " * [INFO] file: '%s'" ),
147 if( proc.
Peek() ==
'}' )
154 " * [INFO] invalid Normal %s (no closing brace)\n"
155 " * [INFO] file: '%s'" ),
The base class of all Scene Graph nodes.
The top node of a VRML2 model.
WRL2NODES GetNodeType(void) const
virtual bool AddChildNode(WRL2NODE *aNode)
bool isDangling(void) override
Determine whether an object should be moved to a different parent during the VRML to SG* translation.
bool Read(WRLPROC &proc, WRL2BASE *aTopNode) override
bool AddRefNode(WRL2NODE *aNode) override
bool AddChildNode(WRL2NODE *aNode) override
SGNODE * TranslateToSG(SGNODE *aParent) override
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
std::vector< WRLVEC3F > vectors
std::string GetFileName(void)
std::string GetError(void)
bool ReadMFVec3f(std::vector< WRLVEC3F > &aMFVec3f)
bool ReadName(std::string &aName)
std::string GetFilePosition() const
const wxChar *const traceVrmlPlugin
Flag to enable VRML plugin trace output.