60 wxT(
" * [INFO] Destroying Appearance node with %zu children, %zu" 61 "references, and %zu back pointers." ),
98 wxCHECK_MSG( aNode,
false, wxT(
"Invalid node." ) );
106 " * [INFO] bad file format; unexpected child node '%s'." ),
118 " * [INFO] bad file format; multiple material nodes." ),
119 __FILE__, __FUNCTION__, __LINE__ );
134 " * [INFO] bad file format; multiple textureTransform nodes." ),
135 __FILE__, __FUNCTION__, __LINE__ );
148 " * [INFO] bad file format; multiple texture nodes." ),
149 __FILE__, __FUNCTION__, __LINE__ );
161 wxCHECK_MSG( aNode,
false, wxT(
"Invalid node." ) );
169 " * [INFO] bad file format; unexpected child node '%s'." ),
181 " * [INFO] bad file format; multiple material nodes." ),
182 __FILE__, __FUNCTION__, __LINE__ );
197 " * [INFO] bad file format; multiple textureTransform nodes." ),
198 __FILE__, __FUNCTION__, __LINE__ );
211 " * [INFO] bad file format; multiple texture nodes." ),
212 __FILE__, __FUNCTION__, __LINE__ );
224 wxCHECK_MSG( aTopNode,
false, wxT(
"Invalid top node." ) );
226 char tok = proc.
Peek();
231 " * [INFO] bad file format; unexpected eof %s." ),
241 " * [INFO] bad file format; expecting '{' but got '%s' %s." ),
252 if( proc.
Peek() ==
'}' )
262 __FILE__, __FUNCTION__, __LINE__ , proc.
GetError() );
272 if( !glob.compare(
"material" ) )
274 if( !aTopNode->
ReadNode( proc,
this,
nullptr ) )
278 " * [INFO] could not read material information." ),
279 __FILE__, __FUNCTION__, __LINE__ );
284 else if( !glob.compare(
"texture" ) )
286 if( !aTopNode->
ReadNode( proc,
this,
nullptr ) )
290 " * [INFO] could not read texture information." ),
291 __FILE__, __FUNCTION__, __LINE__ );
296 else if( !glob.compare(
"textureTransform" ) )
298 if( !aTopNode->
ReadNode( proc,
this,
nullptr ) )
302 " * [INFO] could not read textureTransform information." ),
303 __FILE__, __FUNCTION__, __LINE__ );
311 " * [INFO] bad Appearance %s.\n" 312 " * [INFO] file: '%s'" ),
333 "(parent ID: %d)." ), ptype ) );
336 wxT(
" * [INFO] Translating Appearance node with %zu children, %zu" 337 "references, and %zu back pointers." ),
342 if(
nullptr != aParent )
383 if(
nullptr == aNode )
403 if(
nullptr == aNode )
virtual SGNODE * TranslateToSG(SGNODE *aParent)=0
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
bool checkNodeType(WRL2NODES aType)
Return true if the node type is a material description class.
SGNODE * TranslateToSG(SGNODE *aParent) override
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
std::list< WRL2NODE * > m_Children
bool SetTransparency(float aTransparency) noexcept
bool SetDiffuse(float aRVal, float aGVal, float aBVal)
std::list< WRL2NODE * > m_Refs
void unlinkRefNode(const WRL2NODE *aNode) override
Remove pointers to a referenced node.
void unlinkChildNode(const WRL2NODE *aNode) override
Remove references to an owned child.
SGLIB_API SGNODE * GetSGNodeParent(SGNODE *aNode)
The base class of all Scene Graph nodes.
collects header files for all SG* wrappers and the API
SGNODE * GetRawPtr(void) noexcept
Function GetRawPtr() returns the raw internal SGNODE pointer.
SGLIB_API bool AddSGNodeRef(SGNODE *aParent, SGNODE *aChild)
bool ReadNode(WRLPROC &proc, WRL2NODE *aParent, WRL2NODE **aNode)
bool AddRefNode(WRL2NODE *aNode) override
SGLIB_API bool AddSGNodeChild(SGNODE *aParent, SGNODE *aChild)
std::string GetFilePosition() const
std::list< WRL2NODE * > m_BackPointers
WRL2NODES GetNodeType(void) const
bool SetShininess(float aShininess) noexcept
std::string GetFileName(void)
The top node of a VRML2 model.
const wxChar *const traceVrmlPlugin
Flag to enable VRML plugin trace output.
virtual ~WRL2APPEARANCE()
bool SetEmissive(float aRVal, float aGVal, float aBVal)
const char * GetNodeTypeName(WRL2NODES aNodeType) const
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
bool SetSpecular(float aRVal, float aGVal, float aBVal)
SGLIB_API S3D::SGTYPES GetSGNodeType(SGNODE *aNode)
WRL2NODE * textureTransform
virtual bool AddChildNode(WRL2NODE *aNode)
bool Read(WRLPROC &proc, WRL2BASE *aTopNode) override
bool ReadName(std::string &aName)
virtual void unlinkRefNode(const WRL2NODE *aNode)
Remove pointers to a referenced node.
WRL2NODE * GetParent(void) const
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
std::string GetError(void)
virtual void unlinkChildNode(const WRL2NODE *aNode)
Remove references to an owned child.
virtual bool AddRefNode(WRL2NODE *aNode)