36 m_Type = WRL1NODES::WRL1_COORDINATE3;
43 m_Type = WRL1NODES::WRL1_COORDINATE3;
53 wxLogTrace(
traceVrmlPlugin, wxT(
" * [INFO] Destroying Coordinate3 node." ) );
60 wxCHECK_MSG(
false,
false, wxT(
"AddRefNode is not applicable." ) );
67 wxCHECK_MSG(
false,
false, wxT(
"AddChildNode is not applicable." ) );
73 char tok = proc.
Peek();
79 " * [INFO] bad file format; unexpected eof %s." ),
89 " * [INFO] bad file format; expecting '{' but got '%s' %s" ),
98 if( proc.
Peek() ==
'}' )
107 __FILE__, __FUNCTION__, __LINE__, proc.
GetError() );
113 if( !glob.compare(
"point" ) )
119 " * [INFO] invalid point set %s\n"
120 " * [INFO] file: '%s'\n"
131 "* [INFO] bad Coordinate %s.\n"
132 "* [INFO] file: '%s'." ),
140 std::vector< WRLVEC3F >::iterator sP =
points.begin();
141 std::vector< WRLVEC3F >::iterator eP =
points.end();
151 if( proc.
Peek() ==
'}' )
159 " * [INFO] bad Coordinate %s (no closing brace)." ),
170 aCoordList =
nullptr;
176 aListSize =
points.size();
182 wxCHECK_MSG( sp,
nullptr, wxT(
"Invalid base data." ) );
The base class of all Scene Graph nodes.
Represent the top node of a VRML1 model.
bool Read(WRLPROC &proc, WRL1BASE *aTopNode) override
bool AddRefNode(WRL1NODE *aNode) override
void GetCoords(WRLVEC3F *&aCoordList, size_t &aListSize)
bool AddChildNode(WRL1NODE *aNode) override
SGNODE * TranslateToSG(SGNODE *aParent, WRL1STATUS *sp) override
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
std::vector< WRLVEC3F > points
WRL1COORDS(NAMEREGISTER *aDictionary)
The base class of all VRML1 nodes.
virtual bool AddChildNode(WRL1NODE *aNode)
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.