Files Classes Functions Hierarchy
#include <vrmlshapeparse.h>
Public Member Functions | |
| vrmlshapeIndexedLineSet () | |
| A indexed line set token. | |
| void | depth (vrmlshapeparse &p) const |
| Expect point and coord index tokens within the parser scope. | |
| void | eval (vrmlshapeparse &p) const |
| Expect { . | |
Definition at line 149 of file vrmlshapeparse.h.
| vrmlshapeIndexedLineSet::vrmlshapeIndexedLineSet | ( | ) |
A indexed line set token.
Definition at line 381 of file vrmlshapeparse.cpp.
References vrmlshapetokengroup::tokens.
00382 : vrmlshapetoken("IndexedLineSet") 00383 { 00384 tg.tokens.push_back(new vrmlshapepoint()); 00385 tg.tokens.push_back(new vrmlshapecoordIndex()); 00386 }
| void vrmlshapeIndexedLineSet::depth | ( | vrmlshapeparse & | p | ) | const [inline, virtual] |
Expect point and coord index tokens within the parser scope.
Reimplemented from vrmlshapetoken.
Definition at line 160 of file vrmlshapeparse.h.
References vrmlshapetokengroup::eval().
00161 { tg.eval(p); }
| void vrmlshapeIndexedLineSet::eval | ( | vrmlshapeparse & | p | ) | const [virtual] |
Expect { .
.. } in parser scope.
Implements vrmlshapetoken.
Definition at line 388 of file vrmlshapeparse.cpp.
References vrmlshapetoken::consumescope(), dbg, and vrmlshapeparse::vshp.
00389 { 00390 assert(p.vshp.empty()==false); 00391 p.vshp.back().isline = true; 00392 00393 consumescope(p,"{","}"); 00394 00395 #ifdef DEBUG_VRMLSHAPEPARSE 00396 dbg() << id << endl; 00397 #endif 00398 }
1.5.8