proj home

Files   Classes   Functions   Hierarchy  

vrmlshapeShape Class Reference

Identify VRML Shape node. More...

#include <vrmlshapeparse.h>

Inheritance diagram for vrmlshapeShape:
Collaboration diagram for vrmlshapeShape:

List of all members.

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


Detailed Description

Identify VRML Shape node.

Definition at line 127 of file vrmlshapeparse.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }


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