49 wxLogTrace(
traceVrmlPlugin, wxT(
" * [INFO] Destroying Coordinate3 node." ) );
56 wxCHECK_MSG(
false,
false, wxT(
"AddRefNode is not applicable." ) );
63 wxCHECK_MSG(
false,
false, wxT(
"AddChildNode is not applicable." ) );
69 char tok = proc.
Peek();
75 " * [INFO] bad file format; unexpected eof %s." ),
85 " * [INFO] bad file format; expecting '{' but got '%s' %s" ),
94 if( proc.
Peek() ==
'}' )
103 __FILE__, __FUNCTION__, __LINE__, proc.
GetError() );
109 if( !glob.compare(
"point" ) )
115 " * [INFO] invalid point set %s\n"
116 " * [INFO] file: '%s'\n"
127 "* [INFO] bad Coordinate %s.\n"
128 "* [INFO] file: '%s'." ),
136 std::vector< WRLVEC3F >::iterator sP =
points.begin();
137 std::vector< WRLVEC3F >::iterator eP =
points.end();
147 if( proc.
Peek() ==
'}' )
155 " * [INFO] bad Coordinate %s (no closing brace)." ),
166 aCoordList =
nullptr;
172 aListSize =
points.size();
178 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)
WRL1NODE(NAMEREGISTER *aDictionary)
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.
Define the base class for VRML1.0 nodes.