23#include <wx/xml/xml.h>
24#include <wx/tokenzr.h>
40 if(
nullptr != aParent )
55 wxLogTrace(
traceVrmlPlugin, wxT(
" * [INFO] Destroying Coordinate" ) );
61 if(
nullptr == aTopNode ||
nullptr == aNode )
67 for( prop = aNode->GetAttributes(); prop !=
nullptr; prop = prop->GetNext() )
69 const wxString& pname = prop->GetName();
71 if( pname == wxT(
"DEF" ) )
76 else if( pname == wxT(
"point" ) )
79 wxStringTokenizer plist( prop->GetValue() );
84 while( plist.HasMoreTokens() )
86 if( plist.GetNextToken().ToCDouble( &point ) )
133 if(
nullptr != aParent )
141 if(
nullptr !=
m_Parent && doUnlink )
169 aCoordList =
nullptr;
175 aListSize =
points.size();
The base class of all Scene Graph nodes.
bool SetParent(X3DNODE *aParent, bool doUnlink=true) override
Set the parent X3DNODE of this object.
bool AddRefNode(X3DNODE *aNode) override
bool Read(wxXmlNode *aNode, X3DNODE *aTopNode, X3D_DICT &aDict) override
bool AddChildNode(X3DNODE *aNode) override
void GetCoords(WRLVEC3F *&aCoordList, size_t &aListSize)
SGNODE * TranslateToSG(SGNODE *aParent) override
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
std::vector< WRLVEC3F > points
X3DNODES GetNodeType(void) const
Return the type of this node instance.
const wxChar *const traceVrmlPlugin
Flag to enable VRML plugin trace output.