38 m_Type = WRL2NODES::WRL2_INLINE;
46 m_Type = WRL2NODES::WRL2_INLINE;
56 wxLogTrace(
traceVrmlPlugin, wxT(
" * [INFO] Destroying Inline node." ) );
69 if( aTopNode ==
nullptr || aTopNode->
GetNodeType() != WRL2NODES::WRL2_BASE )
73 char tok = proc.
Peek();
78 " * [INFO] bad file format; unexpected eof %s." ),
88 " * [INFO] bad file format; expecting '{' but got '%s' %s." ),
96 while( ( tok = proc.
Peek() ) != 0 )
110 __FILE__, __FUNCTION__, __LINE__ , proc.
GetError() );
116 if( !glob.compare(
"url" ) )
121 " * [INFO] invalid url %s\n"
122 " * [INFO] file: '%s'\n"
130 else if( !glob.compare(
"bboxCenter" ) )
135 " * [INFO] invalid bboxCenter %s\n"
136 " * [INFO] file: '%s'\n"
144 else if( !glob.compare(
"bboxSize" ) )
149 " * [INFO] invalid bboxSize %s\n"
150 " * [INFO] file: '%s'\n"
162 " * [INFO] invalid Inline %s\n"
163 " * [INFO] file: '%s'\n" ),
173 " * [INFO] invalid Inline %s (no closing brace)\n"
174 " * [INFO] file: '%s'\n" ),
185 wxCHECK_MSG(
false,
false, wxT(
"AddRefNode is not applicable." ) );
192 wxCHECK_MSG(
false,
false, wxT(
"AddChildNode is not applicable." ) );
209 wxString::Format( wxT(
" * [BUG] Appearance does not have a Transform parent "
210 "(parent ID: %d)." ), ptype ) );
The base class of all Scene Graph nodes.
The top node of a VRML2 model.
SGNODE * GetInlineData(const std::string &aName)
std::vector< std::string > url
bool Read(WRLPROC &proc, WRL2BASE *aTopNode) override
bool AddRefNode(WRL2NODE *aNode) override
SGNODE * TranslateToSG(SGNODE *aParent) override
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
bool isDangling(void) override
Determine whether an object should be moved to a different parent during the VRML to SG* translation.
bool AddChildNode(WRL2NODE *aNode) override
WRL2NODES GetNodeType(void) const
virtual bool AddChildNode(WRL2NODE *aNode)
bool ReadMFString(std::vector< std::string > &aMFString)
std::string GetFileName(void)
std::string GetError(void)
bool ReadName(std::string &aName)
std::string GetFilePosition() const
bool ReadSFVec3f(WRLVEC3F &aSFVec3f)
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)
SGLIB_API SGNODE * GetSGNodeParent(SGNODE *aNode)
SGLIB_API bool AddSGNodeChild(SGNODE *aParent, SGNODE *aChild)
SGLIB_API bool AddSGNodeRef(SGNODE *aParent, SGNODE *aChild)