32 case SFTIME:
return "SFTime";
33 case MFTIME:
return "MFTime";
38 case SFNODE:
return "SFNode";
39 case MFNODE:
return "MFNode";
40 case SFBOOL:
return "SFBool";
42 default:
return "Unknown Field Type";
68 nodeTypeName(nodeTypeName)
81 fieldOfView = 0.785398;
84 orientation[0] = orientation[1] = orientation[3] = 0.0;
107 type.push_back(
"WALK");
129 replaceChild(childIndex, 0);
135 bboxCenter[0] = bboxCenter[1] = bboxCenter[2] = 0.0;
136 bboxSize[0] = bboxSize[1] = bboxSize[2] = -1;
146 return children.size();
152 return children[index].get();
159 children.erase(children.begin() + childIndex);
161 children[childIndex] = childNode;
168 center[0] = center[1] = center[2] = 0.0;
169 rotation[0] = rotation[1] = rotation[3] = 0.0;
171 scale[0] = scale[1] = scale[2] = 1.0;
172 scaleOrientation[0] = scaleOrientation[1] = scaleOrientation[3] = 0.0;
173 scaleOrientation[2] = 1.0;
174 translation[0] = translation[1] = translation[2] = 0.0;
200 diffuseColor [0] = diffuseColor [1] = diffuseColor [2] = 0.8;
201 emissiveColor[0] = emissiveColor[1] = emissiveColor[2] = 0.0;
202 specularColor[0] = specularColor[1] = specularColor[2] = 0.0;
203 ambientIntensity = 0.2;
226 center[0] = center[1] = 0.0;
227 scale[0] = scale[1] = 1.0;
228 translation[0] = translation[1] = 0.0;
274 family.push_back(
"SERIF");
276 justify.push_back(
"BEGIN");
293 colorPerVertex =
true;
302 normalPerVertex =
true;
361 image.numComponents = 0;
362 image.pixels.clear();
393 colorPerVertex =
true;
395 normalPerVertex =
true;
416 orientation.push_back(ori);
435 return choice.size();
441 return choice[index].get();
448 choice.erase(choice.begin() + childIndex);
449 if(whichChoice == childIndex){
451 }
else if(whichChoice > childIndex){
455 choice[childIndex] = childNode;
462 center[0] = center[1] = center[2] = 0.0;
478 return level[index].get();
487 int rangeIndexToRemove = (childIndex > 0) ? (childIndex - 1) : 0;
488 range.erase(range.begin() + rangeIndexToRemove);
491 level[childIndex] = childNode;
510 axisOfRotation[0] = axisOfRotation[1] = axisOfRotation[3] = 0;
516 color[0] = color[1] = color[3] = 0.0f;
517 visibilityRange = 0.0f;
537 color[0] = color[1] = color[2] = 1.0f;
539 ambientIntensity = 0.0f;
541 attenuation[1] = attenuation[2] = 0;
551 ambientIntensity = 0.0f;
552 color[0] = color[1] = color[2] = 1.0f;
553 direction[0] = direction[1] = 0.0f;
554 direction[2] = -1.0f;
567 direction[0] = direction[1] = 0.0f;
568 direction[2] = -1.0f;
570 color[0] = color[1] = color[2] = 1.0f;
573 ambientIntensity = 0.0f;
574 attenuation[0] = 1.0f;
575 attenuation[1] = attenuation[2] = 0.0f;
576 beamWidth = 1.570796f;
577 cutOffAngle = 0.785398f;
586 setType(initialTypeId);
std::vector< SFNode > MFNode
std::vector< SFFloat > MFFloat
union hrp::VrmlVariantField::@8 v
virtual VrmlNode * getChild(int index)
std::vector< SFColor > MFColor
png_infop png_charp png_int_32 png_int_32 int * type
VrmlVariantField & operator=(const VrmlVariantField &org)
Abstract base class of all vrml nodes.
virtual MFNode & getChildren()
static const char * getLabelOfFieldType(int type)
void copy(const VrmlVariantField &org)
virtual void replaceChild(int childIndex, VrmlNode *childNode)
VrmlUnsupportedNode(const std::string &nodeTypeName)
virtual void replaceChild(int childIndex, VrmlNode *childNode)
virtual int countChildren()
virtual void replaceChild(int childIndex, VrmlNode *childNode)
VrmlProto(const std::string &n)
bool isCategoryOf(VrmlNodeCategory category)
virtual int countChildren()
boost::intrusive_ptr< VrmlProto > VrmlProtoPtr
png_infop png_uint_32 png_uint_32 * height
virtual VrmlNode * getChild(int index)
virtual int countChildren()
std::vector< SFRotation > MFRotation
std::vector< SFVec3f > MFVec3f
boost::array< SFFloat, 2 > SFVec2f
void setType(VrmlFieldTypeId typeId0)
This can be called once.
void removeChild(int childIndex)
VrmlProtoInstance(VrmlProtoPtr proto0)
png_infop int int location
std::vector< SFVec2f > MFVec2f
virtual VrmlNode * getChild(int index)
std::bitset< NUM_VRML_NODE_CATEGORIES > categorySet
virtual MFNode & getChildren()
std::vector< SFString > MFString
std::vector< SFInt32 > MFInt32
virtual MFNode & getChildren()
std::vector< SFTime > MFTime