Files Classes Functions Hierarchy
#include <vrmlshapeparse.h>
Public Member Functions | |
| vrmlshapeShape () | |
| A shape token. | |
| void | depth (vrmlshapeparse &p) const |
| Expect indexed line set, indexed face set and material tokens in parser scope. | |
| void | eval (vrmlshapeparse &p) const |
| Expect { . | |
Definition at line 127 of file vrmlshapeparse.h.
| vrmlshapeShape::vrmlshapeShape | ( | ) |
A shape token.
Definition at line 400 of file vrmlshapeparse.cpp.
References DEBUG_VRML, and vrmlshapetokengroup::tokens.
00401 : vrmlshapetoken("Shape") 00402 { 00403 DEBUG_VRML(vrmlshapeShape::vrmlshapeShape()); 00404 00405 tg.tokens.push_back( new vrmlshapeIndexedLineSet() ); 00406 tg.tokens.push_back( new vrmlshapeIndexedFaceSet() ); 00407 tg.tokens.push_back( new vrmlshapeMaterial() ); 00408 }
| void vrmlshapeShape::depth | ( | vrmlshapeparse & | p | ) | const [inline, virtual] |
Expect indexed line set, indexed face set and material tokens in parser scope.
Reimplemented from vrmlshapetoken.
Definition at line 138 of file vrmlshapeparse.h.
References vrmlshapetokengroup::eval().
00139 { tg.eval(p); }
| void vrmlshapeShape::eval | ( | vrmlshapeparse & | p | ) | const [virtual] |
Expect { .
.. } in parser scope.
Implements vrmlshapetoken.
Definition at line 410 of file vrmlshapeparse.cpp.
References vrmlshapetoken::consumescope(), DEBUG_VRML, and vrmlshapeparse::vshp.
00411 { 00412 DEBUG_VRML(void vrmlshapeShape::eval( vrmlshapeparse & p ) const); 00413 00414 p.vshp.push_back( vrmlshaperaw() ); 00415 00416 consumescope(p,"{","}"); 00417 }
1.5.8