proj home

Files   Classes   Functions   Hierarchy  

vrmlshapeIndexedLineSet Class Reference

Identify VRML IndexedLineSet node. More...

#include <vrmlshapeparse.h>

Inheritance diagram for vrmlshapeIndexedLineSet:
Collaboration diagram for vrmlshapeIndexedLineSet:

List of all members.

Public Member Functions

 vrmlshapeIndexedLineSet ()
 A indexed line set token.
void depth (vrmlshapeparse &p) const
 Expect point and coord index tokens within the parser scope.
void eval (vrmlshapeparse &p) const
 Expect { .


Detailed Description

Identify VRML IndexedLineSet node.

Definition at line 149 of file vrmlshapeparse.h.


Constructor & Destructor Documentation

vrmlshapeIndexedLineSet::vrmlshapeIndexedLineSet (  ) 

A indexed line set token.

Definition at line 381 of file vrmlshapeparse.cpp.

References vrmlshapetokengroup::tokens.

00382   : vrmlshapetoken("IndexedLineSet") 
00383 {
00384   tg.tokens.push_back(new vrmlshapepoint());
00385   tg.tokens.push_back(new vrmlshapecoordIndex());
00386 }


Member Function Documentation

void vrmlshapeIndexedLineSet::depth ( vrmlshapeparse p  )  const [inline, virtual]

Expect point and coord index tokens within the parser scope.

Reimplemented from vrmlshapetoken.

Definition at line 160 of file vrmlshapeparse.h.

References vrmlshapetokengroup::eval().

00161     { tg.eval(p); }

void vrmlshapeIndexedLineSet::eval ( vrmlshapeparse p  )  const [virtual]

Expect { .

.. } in parser scope.

Implements vrmlshapetoken.

Definition at line 388 of file vrmlshapeparse.cpp.

References vrmlshapetoken::consumescope(), dbg, and vrmlshapeparse::vshp.

00389 {
00390   assert(p.vshp.empty()==false);
00391   p.vshp.back().isline = true;
00392     
00393   consumescope(p,"{","}");    
00394 
00395 #ifdef DEBUG_VRMLSHAPEPARSE
00396 dbg() << id << endl;
00397 #endif
00398 }


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