Files Classes Functions Hierarchy
#include <vrmlshapeparse.h>
Public Member Functions | |
| vrmlshapeambientIntensity () | |
| A ambient intensity token. | |
| void | eval (vrmlshapeparse &p) const |
| Expecting a real number in parser scope. | |
Definition at line 247 of file vrmlshapeparse.h.
| vrmlshapeambientIntensity::vrmlshapeambientIntensity | ( | ) | [inline] |
A ambient intensity token.
Definition at line 253 of file vrmlshapeparse.h.
00254 : vrmlshapetoken("ambientIntensity") {}
| void vrmlshapeambientIntensity::eval | ( | vrmlshapeparse & | p | ) | const [virtual] |
Expecting a real number in parser scope.
Implements vrmlshapetoken.
Definition at line 364 of file vrmlshapeparse.cpp.
References dbg, vrmlshapeparse::tokenstream, and vrmlshapeparse::vshp.
00367 { 00368 assert(p.vshp.empty()==false); 00369 ++p.tokenstream; 00370 double x; 00371 stringstream(p.tokenstream()) >> x; 00372 p.vshp.back().ambientIntensity = x; 00373 00374 ++p.tokenstream; 00375 00376 #ifdef DEBUG_VRMLSHAPEPARSE 00377 dbg() << id << endl; 00378 #endif 00379 }
1.5.8