Go to the documentation of this file.
17 #ifndef OPENHRP_UTIL_VRMLNODES_H_INCLUDED
18 #define OPENHRP_UTIL_VRMLNODES_H_INCLUDED
27 #include <boost/intrusive_ptr.hpp>
28 #include <boost/array.hpp>
128 static const char* getLabelOfFieldType(
int type);
150 if(
obj->refCounter <= 0){
225 virtual MFNode& getChildren() = 0;
226 virtual int countChildren() = 0;
227 virtual VrmlNode* getChild(
int index) = 0;
228 virtual void replaceChild(
int childIndex,
VrmlNode* childNode) = 0;
230 void removeChild(
int childIndex);
241 virtual MFNode& getChildren();
242 virtual int countChildren();
243 virtual VrmlNode* getChild(
int index);
244 virtual void replaceChild(
int childIndex,
VrmlNode* childNode);
660 virtual MFNode& getChildren();
661 virtual int countChildren();
662 virtual VrmlNode* getChild(
int index);
663 virtual void replaceChild(
int childIndex,
VrmlNode* childNode);
677 virtual MFNode& getChildren();
678 virtual int countChildren();
679 virtual VrmlNode* getChild(
int index);
680 virtual void replaceChild(
int childIndex,
VrmlNode* childNode);
868 TProtoFieldMap::iterator p = fields.find(fieldName);
869 return (p != fields.end()) ? &p->second : 0;
893 TProtoFieldMap::iterator p = fields.find(fieldName);
894 return (p != fields.end()) ? &p->second : 0;
906 template<
class VrmlNodeType>
910 return boost::dynamic_pointer_cast<VrmlNodeType>(protoInstance->actualNode);
912 return boost::dynamic_pointer_cast<VrmlNodeType>(node);
boost::intrusive_ptr< VrmlDirectionalLight > VrmlDirectionalLightPtr
boost::intrusive_ptr< VrmlCollision > VrmlCollisionPtr
std::vector< SFTime > MFTime
boost::intrusive_ptr< VrmlBackground > VrmlBackgroundPtr
std::vector< SFNode > MFNode
boost::intrusive_ptr< VrmlTextureCoordinate > VrmlTextureCoordinatePtr
boost::intrusive_ptr< VrmlCylinder > VrmlCylinderPtr
boost::intrusive_ptr< VrmlPixelTexture > VrmlPixelTexturePtr
VRML IndexedLineSet node.
boost::intrusive_ptr< VrmlTransform > VrmlTransformPtr
boost::intrusive_ptr< VrmlFog > VrmlFogPtr
boost::intrusive_ptr< VrmlTexture > VrmlTexturePtr
boost::intrusive_ptr< VrmlAppearance > VrmlAppearancePtr
boost::intrusive_ptr< VrmlWorldInfo > VrmlWorldInfoPtr
boost::intrusive_ptr< VrmlFontStyle > VrmlFontStylePtr
VrmlVariantField * getField(const std::string &fieldName)
boost::array< SFFloat, 3 > SFVec3f
boost::array< SFFloat, 4 > SFVec4f
std::map< std::string, VrmlVariantField > TProtoFieldMap
std::pair< std::string, VrmlVariantField > TProtoFieldPair
boost::intrusive_ptr< VrmlImageTexture > VrmlImageTexturePtr
boost::intrusive_ptr< VrmlSpotLight > VrmlSpotLightPtr
@ UNDETERMINED_FIELD_TYPE
@ TEXTURE_COORDINATE_NODE
VrmlTextureCoordinatePtr texCoord
VRML NavigationInfo node.
VrmlAppearancePtr appearance
boost::intrusive_ptr< VrmlProtoInstance > VrmlProtoInstancePtr
boost::intrusive_ptr< VrmlCylinderSensor > VrmlCylinderSensorPtr
boost::intrusive_ptr< VrmlCone > VrmlConePtr
Abstract base class of all vrml nodes.
void intrusive_ptr_release(Referenced *obj)
std::vector< SFVec4f > MFVec4f
boost::intrusive_ptr< VrmlShape > VrmlShapePtr
VRML IndexedFaseSet node.
png_infop png_charp png_int_32 png_int_32 int * type
std::vector< SFString > MFString
boost::intrusive_ptr< AbstractVrmlGroup > AbstractVrmlGroupPtr
boost::intrusive_ptr< VrmlMaterial > VrmlMaterialPtr
boost::intrusive_ptr< VrmlIndexedFaceSet > VrmlIndexedFaceSetPtr
boost::intrusive_ptr< VrmlBox > VrmlBoxPtr
boost::intrusive_ptr< VrmlPointLight > VrmlPointLightPtr
VrmlTextureCoordinatePtr texCoord
std::vector< SFVec2f > MFVec2f
void setType(VrmlFieldTypeId typeId0)
This can be called once.
VrmlVariantField * addField(const std::string &fieldName, VrmlFieldTypeId typeId)
boost::intrusive_ptr< VrmlGeometry > VrmlGeometryPtr
@ NUM_VRML_NODE_CATEGORIES
boost::intrusive_ptr< VrmlAnchor > VrmlAnchorPtr
std::vector< SFRotation > MFRotation
boost::intrusive_ptr< VrmlNode > VrmlNodePtr
boost::intrusive_ptr< VrmlBillboard > VrmlBillboardPtr
boost::intrusive_ptr< VrmlIndexedLineSet > VrmlIndexedLineSetPtr
Base class of VRML geometry nodes.
boost::intrusive_ptr< VrmlGroup > VrmlGroupPtr
std::vector< SFFloat > MFFloat
boost::intrusive_ptr< VrmlSwitch > VrmlSwitchPtr
std::vector< SFColor > MFColor
VRML CylinderSensor node.
void intrusive_ptr_add_ref(Referenced *obj)
boost::intrusive_ptr< VrmlSphere > VrmlSpherePtr
VRML TextureTransform node.
boost::intrusive_ptr< VrmlNavigationInfo > VrmlNavigationInfoPtr
VRML TextureCoordinate node.
std::vector< SFInt32 > MFInt32
VRML node which is instance of VRML Prototype.
boost::intrusive_ptr< VrmlLOD > VrmlLODPtr
Base class of VRML Texture nodes.
boost::intrusive_ptr< VrmlTextureTransform > VrmlTextureTransformPtr
boost::intrusive_ptr< VrmlInline > VrmlInlinePtr
boost::intrusive_ptr< VrmlCoordinate > VrmlCoordinatePtr
SFRotation & sfRotation()
boost::intrusive_ptr< VrmlPointSet > VrmlPointSetPtr
std::bitset< NUM_VRML_NODE_CATEGORIES > categorySet
boost::intrusive_ptr< VrmlNodeType > dynamic_node_cast(VrmlNodePtr node)
MFRotation & mfRotation()
boost::intrusive_ptr< VrmlProto > VrmlProtoPtr
boost::intrusive_ptr< VrmlViewpoint > VrmlViewpointPtr
boost::intrusive_ptr< VrmlUnsupportedNode > VrmlUnsupportedNodePtr
boost::intrusive_ptr< VrmlMovieTexture > VrmlMovieTexturePtr
boost::intrusive_ptr< VrmlText > VrmlTextPtr
VrmlTextureTransformPtr textureTransform
boost::intrusive_ptr< VrmlElevationGrid > VrmlElevationGridPtr
std::vector< unsigned char > pixels
std::vector< SFVec3f > MFVec3f
boost::intrusive_ptr< VrmlExtrusion > VrmlExtrusionPtr
boost::intrusive_ptr< VrmlNormal > VrmlNormalPtr
boost::intrusive_ptr< VrmlColor > VrmlColorPtr
boost::array< SFFloat, 2 > SFVec2f
VrmlFontStylePtr fontStyle
VrmlVariantField * getField(const std::string &fieldName)
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:04