Choreonoid  1.5
Public Member Functions | List of all members
cnoid::VRMLParser Class Reference

Parser for VRML97 format. More...

#include <VRMLParser.h>

Public Member Functions

 VRMLParser (const std::string &filename)
 
 VRMLParser ()
 
 ~VRMLParser ()
 
void setProtoInstanceActualNodeExtractionMode (bool isOn)
 
void load (const std::string &filename)
 
VRMLNodePtr readNode ()
 
void checkEOF ()
 

Detailed Description

Parser for VRML97 format.

The VRMLParser class reads a VRML97 file and extract its nodes.

Constructor & Destructor Documentation

VRMLParser::VRMLParser ( const std::string &  filename)

Constructor. This version of constructor do 'load' mehtod after constructing the object.

Parameters
filenamefile name of a target VRML97 file.
VRMLParser::VRMLParser ( )
VRMLParser::~VRMLParser ( )

Member Function Documentation

void VRMLParser::checkEOF ( )
void VRMLParser::load ( const std::string &  filename)

This function throws EasyScanner::Exception when an error occurs.

VRMLNodePtr VRMLParser::readNode ( )

This method returns the top node of the next node tree written in the file.

void VRMLParser::setProtoInstanceActualNodeExtractionMode ( bool  isOn)

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