Files Classes Functions Hierarchy
#include <vrmlshapeparse.h>
Public Member Functions | |
| vrmlshapeMaterial () | |
| A material token. | |
| void | depth (vrmlshapeparse &p) const |
| Expect emissive color, diffuse color and ambient intensity tokens within the parsers scope. | |
| void | eval (vrmlshapeparse &p) const |
| Expect { . | |
Definition at line 192 of file vrmlshapeparse.h.
| vrmlshapeMaterial::vrmlshapeMaterial | ( | ) |
A material token.
Definition at line 211 of file vrmlshapeparse.cpp.
References vrmlshapetokengroup::tokens.
00212 : vrmlshapetoken("Material") 00213 { 00214 tg.tokens.push_back(new vrmlshapediffuseColor()); 00215 tg.tokens.push_back(new vrmlshapeemissiveColor()); 00216 tg.tokens.push_back(new vrmlshapeambientIntensity()); 00217 }
| void vrmlshapeMaterial::depth | ( | vrmlshapeparse & | p | ) | const [inline, virtual] |
Expect emissive color, diffuse color and ambient intensity tokens within the parsers scope.
Reimplemented from vrmlshapetoken.
Definition at line 203 of file vrmlshapeparse.h.
References vrmlshapetokengroup::eval().
00204 { tg.eval(p); }
| void vrmlshapeMaterial::eval | ( | vrmlshapeparse & | p | ) | const [virtual] |
Expect { .
.. } in parser scope.
Implements vrmlshapetoken.
Definition at line 219 of file vrmlshapeparse.cpp.
References vrmlshapetoken::consumescope(), dbg, and vrmlshapeparse::vshp.
00220 { 00221 assert(p.vshp.empty()==false); 00222 00223 consumescope(p,"{","}"); 00224 00225 #ifdef DEBUG_VRMLSHAPEPARSE 00226 dbg() << id << endl; 00227 #endif 00228 }
1.5.8