internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "enabled") { Enabled = parser.ParseBoolValue(); } else if (id == "rotation") { Rotation = parser.ParseSFRotationValue(); } else if (id == "translation") { Translation = parser.ParseSFVec3fValue(); } else if (id == "bboxCenter") { BBoxCenter = parser.ParseSFVec3fValue(); } else if (id == "bboxSize") { BBoxSize = parser.ParseSFVec3fValue(); } else if (id == "shape") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Shape = node as X3DShapeNode; if (Shape == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="enabled") Enabled=parser.ParseBoolValue(); else if(id=="rotation") Rotation=parser.ParseSFRotationValue(); else if(id=="translation") Translation=parser.ParseSFVec3fValue(); else if(id=="bboxCenter") BBoxCenter=parser.ParseSFVec3fValue(); else if(id=="bboxSize") BBoxSize=parser.ParseSFVec3fValue(); else if(id=="shape") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Shape=node as X3DShapeNode; if(Shape==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else return false; return true; }