proj home

Files   Classes   Functions   Hierarchy  

vrmlshapeambientIntensity Class Reference

Identify VRML ambientIntensity. More...

#include <vrmlshapeparse.h>

Inheritance diagram for vrmlshapeambientIntensity:
Collaboration diagram for vrmlshapeambientIntensity:

List of all members.

Public Member Functions

 vrmlshapeambientIntensity ()
 A ambient intensity token.
void eval (vrmlshapeparse &p) const
 Expecting a real number in parser scope.


Detailed Description

Identify VRML ambientIntensity.

Definition at line 247 of file vrmlshapeparse.h.


Constructor & Destructor Documentation

vrmlshapeambientIntensity::vrmlshapeambientIntensity (  )  [inline]

A ambient intensity token.

Definition at line 253 of file vrmlshapeparse.h.

00254     : vrmlshapetoken("ambientIntensity") {}


Member Function Documentation

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 }


The documentation for this class was generated from the following files:

Generated on Fri Mar 4 00:50:24 2011 for Chelton Evans Source by  doxygen 1.5.8