36 m_Type = WRL2NODES::WRL2_COORDINATE;
42 m_Type = WRL2NODES::WRL2_COORDINATE;
52 wxLogTrace(
traceVrmlPlugin, wxT(
" * [INFO] Destroying Coordinate node." ) );
70 wxCHECK_MSG(
false,
false, wxT(
"AddRefNode is not applicable." ) );
77 wxCHECK_MSG(
false,
false, wxT(
"AddChildNode is not applicable." ) );
83 char tok = proc.
Peek();
88 " * [INFO] bad file format; unexpected eof %s." ),
98 " * [INFO] bad file format; expecting '{' but got '%s' %s." ),
107 if( proc.
Peek() ==
'}' )
117 __FILE__, __FUNCTION__, __LINE__ , proc.
GetError() );
123 if( !glob.compare(
"point" ) )
128 " * [INFO] invalid Coordinate point set %s\n"
129 " * [INFO] file: '%s'\n"
140 " * [INFO] invalid Coordinate %s\n"
141 " * [INFO] file: '%s'\n" ),
149 std::vector< WRLVEC3F >::iterator sP =
points.begin();
150 std::vector< WRLVEC3F >::iterator eP =
points.end();
160 if( proc.
Peek() ==
'}' )
167 " * [INFO] invalid Coordinate %s (no closing brace)\n"
168 " * [INFO] file: '%s'\n" ),
179 aCoordList =
nullptr;
185 aListSize =
points.size();
The base class of all Scene Graph nodes.
The top node of a VRML2 model.
bool AddChildNode(WRL2NODE *aNode) override
bool AddRefNode(WRL2NODE *aNode) override
void GetCoords(WRLVEC3F *&aCoordList, size_t &aListSize)
std::vector< WRLVEC3F > points
bool isDangling(void) override
Determine whether an object should be moved to a different parent during the VRML to SG* translation.
SGNODE * TranslateToSG(SGNODE *aParent) override
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
bool Read(WRLPROC &proc, WRL2BASE *aTopNode) override
WRL2NODES GetNodeType(void) const
virtual bool AddChildNode(WRL2NODE *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.