proj home

Files   Classes   Functions   Hierarchy  

vrmlshapeMaterial Class Reference

Identify VRML Material node. More...

#include <vrmlshapeparse.h>

Inheritance diagram for vrmlshapeMaterial:
Collaboration diagram for vrmlshapeMaterial:

List of all members.

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 { .


Detailed Description

Identify VRML Material node.

Definition at line 192 of file vrmlshapeparse.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }


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