Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
hrp::VrmlParserImpl Class Reference

Public Types

typedef map< VrmlProto *, EasyScannerPtrProtoToEntityScannerMap
 
typedef map< string, VrmlNodePtrTDefNodeMap
 
typedef pair< string, VrmlNodePtrTDefNodePair
 
typedef map< string, VrmlProtoPtrTProtoMap
 
typedef pair< string, VrmlProtoPtrTProtoPair
 

Public Member Functions

void checkIndexedFaceSet (VrmlIndexedFaceSetPtr node)
 
VrmlProtoPtr defineProto ()
 
VrmlNodePtr evalProtoInstance (VrmlProtoInstancePtr proto, VrmlNodeCategory nodeCategory)
 
void load (const string &filename)
 
VrmlNodePtr newInlineSource (std::string &io_filename)
 
VrmlAnchorPtr readAnchorNode ()
 
VrmlAppearancePtr readAppearanceNode ()
 
VrmlBackgroundPtr readBackgroundNode ()
 
VrmlBillboardPtr readBillboardNode ()
 
VrmlBoxPtr readBoxNode ()
 
VrmlCollisionPtr readCollisionNode ()
 
VrmlColorPtr readColorNode ()
 
VrmlConePtr readConeNode ()
 
VrmlCoordinatePtr readCoordNode ()
 
VrmlCylinderPtr readCylinderNode ()
 
VrmlCylinderSensorPtr readCylinderSensorNode ()
 
VrmlDirectionalLightPtr readDirectionalLightNode ()
 
VrmlElevationGridPtr readElevationGridNode ()
 
VrmlExtrusionPtr readExtrusionNode ()
 
VrmlFogPtr readFogNode ()
 
VrmlFontStylePtr readFontStyleNode ()
 
VrmlGroupPtr readGroupNode ()
 
VrmlImageTexturePtr readImageTextureNode ()
 
VrmlIndexedFaceSetPtr readIndexedFaceSetNode ()
 
VrmlIndexedLineSetPtr readIndexedLineSetNode ()
 
VrmlNodePtr readInlineNode (VrmlNodeCategory nodeCategory)
 
VrmlLODPtr readLODNode ()
 
VrmlMaterialPtr readMaterialNode ()
 
void readMFColor (MFColor &out_value)
 
void readMFFloat (MFFloat &out_value)
 
void readMFInt32 (MFInt32 &out_value)
 
void readMFNode (MFNode &out_nodes, VrmlNodeCategory nodeCategory)
 
void readMFRotation (MFRotation &out_value)
 
void readMFString (MFString &out_value)
 
void readMFTime (MFTime &out_value)
 
void readMFVec2f (MFVec2f &out_value)
 
void readMFVec3f (MFVec3f &out_value)
 
VrmlMovieTexturePtr readMovieTextureNode ()
 
VrmlNavigationInfoPtr readNavigationInfoNode ()
 
VrmlNodePtr readNode (VrmlNodeCategory nodeCategory)
 
VrmlNormalPtr readNormalNode ()
 
VrmlPixelTexturePtr readPixelTextureNode ()
 
VrmlPointLightPtr readPointLightNode ()
 
VrmlPointSetPtr readPointSetNode ()
 
VrmlVariantFieldreadProtoField (VrmlFieldTypeId fieldTypeId)
 
VrmlProtoInstancePtr readProtoInstanceNode (const std::string &proto_name, VrmlNodeCategory nodeCategory)
 
void readSFBool (SFBool &out_value)
 
void readSFColor (SFColor &out_value)
 
void readSFFloat (SFFloat &out_value)
 
void readSFImage (SFImage &out_image)
 read "SFImage" node More...
 
void readSFInt32 (SFInt32 &out_value)
 
void readSFNode (SFNode &out_node, VrmlNodeCategory nodeCategory)
 
SFNode readSFNode (VrmlNodeCategory nodeCategory)
 
void readSFRotation (SFRotation &out_value)
 
void readSFString (SFString &out_value)
 
void readSFTime (SFTime &out_value)
 
void readSFVec2f (SFVec2f &out_value)
 
void readSFVec3f (SFVec3f &out_value)
 
VrmlShapePtr readShapeNode ()
 
VrmlNodePtr readSpecificNode (VrmlNodeCategory nodeCategory, int symbol, const std::string &symbolString)
 
VrmlSpherePtr readSphereNode ()
 
VrmlSpotLightPtr readSpotLightNode ()
 
VrmlSwitchPtr readSwitchNode ()
 
VrmlTextPtr readTextNode ()
 
VrmlTextureCoordinatePtr readTextureCoordinateNode ()
 
VrmlTextureTransformPtr readTextureTransformNode ()
 
VrmlTransformPtr readTransformNode ()
 
VrmlViewpointPtr readViewpointNode ()
 
VrmlWorldInfoPtr readWorldInfoNode ()
 
VrmlUnsupportedNodePtr skipExternProto ()
 
VrmlUnsupportedNodePtr skipScriptNode ()
 
VrmlUnsupportedNodePtr skipUnsupportedNode (const std::string &nodeTypeName)
 
 VrmlParserImpl (VrmlParser *self)
 

Public Attributes

VrmlProtoInstancePtr currentProtoInstance
 
TDefNodeMap defNodeMap
 
bool protoInstanceActualNodeExtractionMode
 
TProtoMap protoMap
 
ProtoToEntityScannerMap protoToEntityScannerMap
 
EasyScannerPtr scanner
 
VrmlParserself
 

Private Member Functions

const list< string > * getAncestorPathsList () const
 
void init ()
 
void setSymbols ()
 
 VrmlParserImpl (const VrmlParserImpl &self, const list< string > &ref)
 

Private Attributes

list< string > ancestorPathsList
 

Detailed Description

Definition at line 304 of file VrmlParser.cpp.

Member Typedef Documentation

◆ ProtoToEntityScannerMap

Definition at line 315 of file VrmlParser.cpp.

◆ TDefNodeMap

Definition at line 318 of file VrmlParser.cpp.

◆ TDefNodePair

Definition at line 319 of file VrmlParser.cpp.

◆ TProtoMap

Definition at line 320 of file VrmlParser.cpp.

◆ TProtoPair

Definition at line 321 of file VrmlParser.cpp.

Constructor & Destructor Documentation

◆ VrmlParserImpl() [1/2]

VrmlParserImpl::VrmlParserImpl ( VrmlParser self)

Definition at line 435 of file VrmlParser.cpp.

◆ VrmlParserImpl() [2/2]

VrmlParserImpl::VrmlParserImpl ( const VrmlParserImpl self,
const list< string > &  ref 
)
private

Definition at line 440 of file VrmlParser.cpp.

Member Function Documentation

◆ checkIndexedFaceSet()

void VrmlParserImpl::checkIndexedFaceSet ( VrmlIndexedFaceSetPtr  node)

Definition at line 1884 of file VrmlParser.cpp.

◆ defineProto()

VrmlProtoPtr VrmlParserImpl::defineProto ( )

Definition at line 817 of file VrmlParser.cpp.

◆ evalProtoInstance()

VrmlNodePtr VrmlParserImpl::evalProtoInstance ( VrmlProtoInstancePtr  proto,
VrmlNodeCategory  nodeCategory 
)

Definition at line 970 of file VrmlParser.cpp.

◆ getAncestorPathsList()

const list< string >* hrp::VrmlParserImpl::getAncestorPathsList ( ) const
inlineprivate

Definition at line 406 of file VrmlParser.cpp.

◆ init()

void VrmlParserImpl::init ( )
private

Definition at line 2533 of file VrmlParser.cpp.

◆ load()

void VrmlParserImpl::load ( const string &  filename)

Definition at line 469 of file VrmlParser.cpp.

◆ newInlineSource()

VrmlNodePtr VrmlParserImpl::newInlineSource ( std::string &  io_filename)

Definition at line 765 of file VrmlParser.cpp.

◆ readAnchorNode()

VrmlAnchorPtr VrmlParserImpl::readAnchorNode ( )

Definition at line 1463 of file VrmlParser.cpp.

◆ readAppearanceNode()

VrmlAppearancePtr VrmlParserImpl::readAppearanceNode ( )

Definition at line 2035 of file VrmlParser.cpp.

◆ readBackgroundNode()

VrmlBackgroundPtr VrmlParserImpl::readBackgroundNode ( )

Definition at line 1040 of file VrmlParser.cpp.

◆ readBillboardNode()

VrmlBillboardPtr VrmlParserImpl::readBillboardNode ( )

Definition at line 1529 of file VrmlParser.cpp.

◆ readBoxNode()

VrmlBoxPtr VrmlParserImpl::readBoxNode ( )

Definition at line 1704 of file VrmlParser.cpp.

◆ readCollisionNode()

VrmlCollisionPtr VrmlParserImpl::readCollisionNode ( )

Definition at line 1428 of file VrmlParser.cpp.

◆ readColorNode()

VrmlColorPtr VrmlParserImpl::readColorNode ( )

Definition at line 2007 of file VrmlParser.cpp.

◆ readConeNode()

VrmlConePtr VrmlParserImpl::readConeNode ( )

Definition at line 1718 of file VrmlParser.cpp.

◆ readCoordNode()

VrmlCoordinatePtr VrmlParserImpl::readCoordNode ( )

Definition at line 1979 of file VrmlParser.cpp.

◆ readCylinderNode()

VrmlCylinderPtr VrmlParserImpl::readCylinderNode ( )

Definition at line 1739 of file VrmlParser.cpp.

◆ readCylinderSensorNode()

VrmlCylinderSensorPtr VrmlParserImpl::readCylinderSensorNode ( )

Definition at line 1140 of file VrmlParser.cpp.

◆ readDirectionalLightNode()

VrmlDirectionalLightPtr VrmlParserImpl::readDirectionalLightNode ( )

Definition at line 1627 of file VrmlParser.cpp.

◆ readElevationGridNode()

VrmlElevationGridPtr VrmlParserImpl::readElevationGridNode ( )

Definition at line 1256 of file VrmlParser.cpp.

◆ readExtrusionNode()

VrmlExtrusionPtr VrmlParserImpl::readExtrusionNode ( )

Definition at line 1323 of file VrmlParser.cpp.

◆ readFogNode()

VrmlFogPtr VrmlParserImpl::readFogNode ( )

Definition at line 1502 of file VrmlParser.cpp.

◆ readFontStyleNode()

VrmlFontStylePtr VrmlParserImpl::readFontStyleNode ( )

Definition at line 1796 of file VrmlParser.cpp.

◆ readGroupNode()

VrmlGroupPtr VrmlParserImpl::readGroupNode ( )

Definition at line 1067 of file VrmlParser.cpp.

◆ readImageTextureNode()

VrmlImageTexturePtr VrmlParserImpl::readImageTextureNode ( )

Definition at line 2079 of file VrmlParser.cpp.

◆ readIndexedFaceSetNode()

VrmlIndexedFaceSetPtr VrmlParserImpl::readIndexedFaceSetNode ( )

Definition at line 1844 of file VrmlParser.cpp.

◆ readIndexedLineSetNode()

VrmlIndexedLineSetPtr VrmlParserImpl::readIndexedLineSetNode ( )

Definition at line 1822 of file VrmlParser.cpp.

◆ readInlineNode()

VrmlNodePtr VrmlParserImpl::readInlineNode ( VrmlNodeCategory  nodeCategory)

Definition at line 745 of file VrmlParser.cpp.

◆ readLODNode()

VrmlLODPtr VrmlParserImpl::readLODNode ( )

Definition at line 1401 of file VrmlParser.cpp.

◆ readMaterialNode()

VrmlMaterialPtr VrmlParserImpl::readMaterialNode ( )

Definition at line 2056 of file VrmlParser.cpp.

◆ readMFColor()

void VrmlParserImpl::readMFColor ( MFColor out_value)

Definition at line 2314 of file VrmlParser.cpp.

◆ readMFFloat()

void VrmlParserImpl::readMFFloat ( MFFloat out_value)

Definition at line 2182 of file VrmlParser.cpp.

◆ readMFInt32()

void VrmlParserImpl::readMFInt32 ( MFInt32 out_value)

Definition at line 2150 of file VrmlParser.cpp.

◆ readMFNode()

void VrmlParserImpl::readMFNode ( MFNode out_nodes,
VrmlNodeCategory  nodeCategory 
)

Definition at line 2504 of file VrmlParser.cpp.

◆ readMFRotation()

void VrmlParserImpl::readMFRotation ( MFRotation out_value)

Definition at line 2353 of file VrmlParser.cpp.

◆ readMFString()

void VrmlParserImpl::readMFString ( MFString out_value)

Definition at line 2214 of file VrmlParser.cpp.

◆ readMFTime()

void VrmlParserImpl::readMFTime ( MFTime out_value)

Definition at line 2456 of file VrmlParser.cpp.

◆ readMFVec2f()

void VrmlParserImpl::readMFVec2f ( MFVec2f out_value)

Definition at line 2247 of file VrmlParser.cpp.

◆ readMFVec3f()

void VrmlParserImpl::readMFVec3f ( MFVec3f out_value)

Definition at line 2281 of file VrmlParser.cpp.

◆ readMovieTextureNode()

VrmlMovieTexturePtr VrmlParserImpl::readMovieTextureNode ( )

Definition at line 1213 of file VrmlParser.cpp.

◆ readNavigationInfoNode()

VrmlNavigationInfoPtr VrmlParserImpl::readNavigationInfoNode ( )

Definition at line 1018 of file VrmlParser.cpp.

◆ readNode()

VrmlNodePtr VrmlParserImpl::readNode ( VrmlNodeCategory  nodeCategory)

Definition at line 502 of file VrmlParser.cpp.

◆ readNormalNode()

VrmlNormalPtr VrmlParserImpl::readNormalNode ( )

Definition at line 2021 of file VrmlParser.cpp.

◆ readPixelTextureNode()

VrmlPixelTexturePtr VrmlParserImpl::readPixelTextureNode ( )

Definition at line 1186 of file VrmlParser.cpp.

◆ readPointLightNode()

VrmlPointLightPtr VrmlParserImpl::readPointLightNode ( )

Definition at line 1583 of file VrmlParser.cpp.

◆ readPointSetNode()

VrmlPointSetPtr VrmlParserImpl::readPointSetNode ( )

Definition at line 1163 of file VrmlParser.cpp.

◆ readProtoField()

VrmlVariantField & VrmlParserImpl::readProtoField ( VrmlFieldTypeId  fieldTypeId)

Definition at line 2118 of file VrmlParser.cpp.

◆ readProtoInstanceNode()

VrmlProtoInstancePtr VrmlParserImpl::readProtoInstanceNode ( const std::string &  proto_name,
VrmlNodeCategory  nodeCategory 
)

Definition at line 920 of file VrmlParser.cpp.

◆ readSFBool()

void VrmlParserImpl::readSFBool ( SFBool out_value)

Definition at line 2374 of file VrmlParser.cpp.

◆ readSFColor()

void VrmlParserImpl::readSFColor ( SFColor out_value)

Definition at line 2302 of file VrmlParser.cpp.

◆ readSFFloat()

void VrmlParserImpl::readSFFloat ( SFFloat out_value)

Definition at line 2171 of file VrmlParser.cpp.

◆ readSFImage()

void VrmlParserImpl::readSFImage ( SFImage out_image)

read "SFImage" node

Note

Date
2008-03-13 K.FUKUDA
Returns
void

start reading pixel values per component. numComponents means: 1:grayscale, 2:grayscale with transparency 3:RGB components, 4:RGB components with transparency

Parameters
out_imageto return read SFImage

Definition at line 2403 of file VrmlParser.cpp.

◆ readSFInt32()

void VrmlParserImpl::readSFInt32 ( SFInt32 out_value)

Definition at line 2139 of file VrmlParser.cpp.

◆ readSFNode() [1/2]

void VrmlParserImpl::readSFNode ( SFNode out_node,
VrmlNodeCategory  nodeCategory 
)

Definition at line 2478 of file VrmlParser.cpp.

◆ readSFNode() [2/2]

SFNode VrmlParserImpl::readSFNode ( VrmlNodeCategory  nodeCategory)

Definition at line 2491 of file VrmlParser.cpp.

◆ readSFRotation()

void VrmlParserImpl::readSFRotation ( SFRotation out_value)

Definition at line 2325 of file VrmlParser.cpp.

◆ readSFString()

void VrmlParserImpl::readSFString ( SFString out_value)

Definition at line 2203 of file VrmlParser.cpp.

◆ readSFTime()

void VrmlParserImpl::readSFTime ( SFTime out_value)

Definition at line 2445 of file VrmlParser.cpp.

◆ readSFVec2f()

void VrmlParserImpl::readSFVec2f ( SFVec2f out_value)

Definition at line 2235 of file VrmlParser.cpp.

◆ readSFVec3f()

void VrmlParserImpl::readSFVec3f ( SFVec3f out_value)

Definition at line 2268 of file VrmlParser.cpp.

◆ readShapeNode()

VrmlShapePtr VrmlParserImpl::readShapeNode ( )

Definition at line 1121 of file VrmlParser.cpp.

◆ readSpecificNode()

VrmlNodePtr VrmlParserImpl::readSpecificNode ( VrmlNodeCategory  nodeCategory,
int  symbol,
const std::string &  symbolString 
)

Definition at line 604 of file VrmlParser.cpp.

◆ readSphereNode()

VrmlSpherePtr VrmlParserImpl::readSphereNode ( )

Definition at line 1761 of file VrmlParser.cpp.

◆ readSpotLightNode()

VrmlSpotLightPtr VrmlParserImpl::readSpotLightNode ( )

Definition at line 1649 of file VrmlParser.cpp.

◆ readSwitchNode()

VrmlSwitchPtr VrmlParserImpl::readSwitchNode ( )

Definition at line 1378 of file VrmlParser.cpp.

◆ readTextNode()

VrmlTextPtr VrmlParserImpl::readTextNode ( )

Definition at line 1775 of file VrmlParser.cpp.

◆ readTextureCoordinateNode()

VrmlTextureCoordinatePtr VrmlParserImpl::readTextureCoordinateNode ( )

Definition at line 1993 of file VrmlParser.cpp.

◆ readTextureTransformNode()

VrmlTextureTransformPtr VrmlParserImpl::readTextureTransformNode ( )

Definition at line 2098 of file VrmlParser.cpp.

◆ readTransformNode()

VrmlTransformPtr VrmlParserImpl::readTransformNode ( )

Definition at line 1095 of file VrmlParser.cpp.

◆ readViewpointNode()

VrmlViewpointPtr VrmlParserImpl::readViewpointNode ( )

Definition at line 996 of file VrmlParser.cpp.

◆ readWorldInfoNode()

VrmlWorldInfoPtr VrmlParserImpl::readWorldInfoNode ( )

Definition at line 1560 of file VrmlParser.cpp.

◆ setSymbols()

void VrmlParserImpl::setSymbols ( )
private

Definition at line 2542 of file VrmlParser.cpp.

◆ skipExternProto()

VrmlUnsupportedNodePtr VrmlParserImpl::skipExternProto ( )

Definition at line 721 of file VrmlParser.cpp.

◆ skipScriptNode()

VrmlUnsupportedNodePtr VrmlParserImpl::skipScriptNode ( )

Definition at line 699 of file VrmlParser.cpp.

◆ skipUnsupportedNode()

VrmlUnsupportedNodePtr VrmlParserImpl::skipUnsupportedNode ( const std::string &  nodeTypeName)

Definition at line 684 of file VrmlParser.cpp.

Member Data Documentation

◆ ancestorPathsList

list< string > hrp::VrmlParserImpl::ancestorPathsList
private

Definition at line 409 of file VrmlParser.cpp.

◆ currentProtoInstance

VrmlProtoInstancePtr hrp::VrmlParserImpl::currentProtoInstance

Definition at line 311 of file VrmlParser.cpp.

◆ defNodeMap

TDefNodeMap hrp::VrmlParserImpl::defNodeMap

Definition at line 324 of file VrmlParser.cpp.

◆ protoInstanceActualNodeExtractionMode

bool hrp::VrmlParserImpl::protoInstanceActualNodeExtractionMode

Definition at line 313 of file VrmlParser.cpp.

◆ protoMap

TProtoMap hrp::VrmlParserImpl::protoMap

Definition at line 323 of file VrmlParser.cpp.

◆ protoToEntityScannerMap

ProtoToEntityScannerMap hrp::VrmlParserImpl::protoToEntityScannerMap

Definition at line 316 of file VrmlParser.cpp.

◆ scanner

EasyScannerPtr hrp::VrmlParserImpl::scanner

Definition at line 310 of file VrmlParser.cpp.

◆ self

VrmlParser* hrp::VrmlParserImpl::self

Definition at line 308 of file VrmlParser.cpp.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:08