internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="crossSectionCurve") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { CrossSectionCurve=node as X3DNurbsControlCurveNode; if(CrossSectionCurve==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="trajectoryCurve") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TrajectoryCurve=node as IX3DNurbsCurveNode; if(TrajectoryCurve==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="ccw") CCW=parser.ParseBoolValue(); else if(id=="solid") Solid=parser.ParseBoolValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="appearance") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Appearance=node as X3DAppearanceNode; if(Appearance==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="geometry") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Geometry=node as X3DGeometryNode; if(Geometry==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="bboxCenter") BBoxCenter=parser.ParseSFVec3fValue(); else if(id=="bboxSize") BBoxSize=parser.ParseSFVec3fValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="anchorPoint") AnchorPoint=parser.ParseSFVec3fValue(); else if(id=="body1") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Body1=node as IX3DRigidBodyNode; if(Body1==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="body2") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Body2=node as IX3DRigidBodyNode; if(Body2==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="forceOutput"||id=="mustOutput") { if(wasForceOutput) ForceOutput.AddRange(parser.ParseSFStringOrMFStringValue()); else ForceOutput=parser.ParseSFStringOrMFStringValue(); wasForceOutput=true; } else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "children") { List <X3DNode> nodes = parser.ParseSFNodeOrMFNodeValue(); foreach (X3DNode node in nodes) { X3DChildNode child = node as X3DChildNode; if (child == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } else { Children.Add(child); } } } else if (id == "layout") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Layout = node as X3DLayoutNode; if (Layout == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "viewport") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Viewport = node as X3DViewportNode; if (Viewport == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "bboxCenter") { BBoxCenter = parser.ParseSFVec3fValue(); } else if (id == "bboxSize") { BBoxSize = parser.ParseSFVec3fValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "anchorPoint") { AnchorPoint = parser.ParseSFVec3fValue(); } else if (id == "body1") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Body1 = node as IX3DRigidBodyNode; if (Body1 == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "body2") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Body2 = node as IX3DRigidBodyNode; if (Body2 == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "forceOutput" || id == "mustOutput") { if (wasForceOutput) { ForceOutput.AddRange(parser.ParseSFStringOrMFStringValue()); } else { ForceOutput = parser.ParseSFStringOrMFStringValue(); } wasForceOutput = true; } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="axis1Angle") Axis1Angle=parser.ParseDoubleValue(); else if(id=="axis1Torque") Axis1Torque=parser.ParseDoubleValue(); else if(id=="axis2Angle") Axis2Angle=parser.ParseDoubleValue(); else if(id=="axis2Torque") Axis2Torque=parser.ParseDoubleValue(); else if(id=="axis3Angle") Axis3Angle=parser.ParseDoubleValue(); else if(id=="axis3Torque") Axis3Torque=parser.ParseDoubleValue(); else if(id=="body1") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Body1=node as IX3DRigidBodyNode; if(Body1==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="body2") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Body2=node as IX3DRigidBodyNode; if(Body2==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="enabledAxes") EnabledAxes=parser.ParseIntValue(); else if(id=="forceOutput") { if(wasForceOutput) ForceOutput.AddRange(parser.ParseSFStringOrMFStringValue()); else ForceOutput=parser.ParseSFStringOrMFStringValue(); wasForceOutput=true; } else if(id=="motor1Axis") Motor1Axis=parser.ParseSFVec3fValue(); else if(id=="motor2Axis") Motor2Axis=parser.ParseSFVec3fValue(); else if(id=="motor3Axis") Motor3Axis=parser.ParseSFVec3fValue(); else if(id=="stop1Bounce") Stop1Bounce=parser.ParseDoubleValue(); else if(id=="stop1ErrorCorrection") Stop1ErrorCorrection=parser.ParseDoubleValue(); else if(id=="stop2Bounce") Stop2Bounce=parser.ParseDoubleValue(); else if(id=="stop2ErrorCorrection") Stop2ErrorCorrection=parser.ParseDoubleValue(); else if(id=="stop3Bounce") Stop3Bounce=parser.ParseDoubleValue(); else if(id=="stop3ErrorCorrection") Stop3ErrorCorrection=parser.ParseDoubleValue(); else if(id=="autoCalc") AutoCalc=parser.ParseBoolValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="children") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { X3DChildNode child=node as X3DChildNode; if(child==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else Children.Add(child); } } else if(id=="collide"||id=="enabled") Enabled=parser.ParseBoolValue(); else if(id=="bboxCenter") BBoxCenter=parser.ParseSFVec3fValue(); else if(id=="bboxSize") BBoxSize=parser.ParseSFVec3fValue(); else if(id=="proxy") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Proxy=node as X3DChildNode; if(Proxy==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=="description") Description=parser.ParseStringValue(); else if(id=="loop") Loop=parser.ParseBoolValue(); else if(id=="pauseTime") PauseTime=parser.ParseDoubleValue(); else if(id=="resumeTime") ResumeTime=parser.ParseDoubleValue(); else if(id=="speed"||id=="pitch") Pitch=parser.ParseDoubleValue(); else if(id=="startTime") StartTime=parser.ParseDoubleValue(); else if(id=="stopTime") StopTime=parser.ParseDoubleValue(); else if(id=="url") URL.AddRange(parser.ParseSFStringOrMFStringValue()); else if(id=="repeatS") RepeatS=parser.ParseBoolValue(); else if(id=="repeatT") RepeatT=parser.ParseBoolValue(); else if(id=="textureProperties") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TextureProperties=node as IX3DTexturePropertiesNode; if(TextureProperties==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 == "name") { Name = parser.ParseStringValue(); } else if (id == "shape") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Shape = node as IX3DCADFaceShape; if (Shape == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "bboxCenter") { BBoxCenter = parser.ParseSFVec3fValue(); } else if (id == "bboxSize") { BBoxSize = parser.ParseSFVec3fValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "center") { Center = parser.ParseSFVec3fValue(); } else if (id == "enabled") { Enabled = parser.ParseBoolValue(); } else if (id == "size") { Size = parser.ParseSFVec3fValue(); } else if (id == "targetObject") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { TargetObject = node as IX3DTranformSensorTargetObject; if (TargetObject == 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=="children") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { X3DChildNode child=node as X3DChildNode; if(child==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else Children.Add(child); } } else if(id=="isPickable") IsPickable=parser.ParseBoolValue(); else if(id=="viewport") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Viewport=node as X3DViewportNode; if(Viewport==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=="coord") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Coord=node as X3DCoordinateNode; if(Coord==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="direction") Direction=parser.ParseSFVec3fValue(); else if(id=="speed") Speed=parser.ParseDoubleValue(); else if(id=="variation") Variation=parser.ParseDoubleValue(); else if(id=="coordIndex") { if(wasCoordIndex) CoordIndex.AddRange(parser.ParseSFInt32OrMFInt32Value()); else CoordIndex=parser.ParseSFInt32OrMFInt32Value(); wasCoordIndex=true; } else if(id=="internal") Internal=parser.ParseBoolValue(); else if(id=="mass") Mass=parser.ParseDoubleValue(); else if(id=="surfaceArea") SurfaceArea=parser.ParseDoubleValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "controlPoint") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { ControlPoint = node as X3DCoordinateNode; if (ControlPoint == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "knot") { Knot.AddRange(parser.ParseSFFloatOrMFFloatValue()); } else if (id == "order") { Order = parser.ParseIntValue(); } else if (id == "weight") { Weight.AddRange(parser.ParseSFFloatOrMFFloatValue()); } 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=="objectType") { if(wasObjectType) ObjectType.AddRange(parser.ParseSFStringOrMFStringValue()); else ObjectType=parser.ParseSFStringOrMFStringValue(); wasObjectType=true; } else if(id=="pickingGeometry") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { PickingGeometry=node as IX3DLinePickSensorPickingGeometry; if(PickingGeometry==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="pickTarget") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { IX3DPickSensorNodePickTarget pt=node as IX3DPickSensorNodePickTarget; if(pt==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else PickTarget.Add(pt); } } else if(id=="intersectionType") IntersectionType=parser.ParseStringValue(); else if(id=="sortOrder") SortOrder=parser.ParseStringValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "url") { URL.AddRange(parser.ParseSFStringOrMFStringValue()); } else if (id == "repeatS") { RepeatS = parser.ParseBoolValue(); } else if (id == "repeatT") { RepeatT = parser.ParseBoolValue(); } else if (id == "textureProperties") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { TextureProperties = node as IX3DTexturePropertiesNode; if (TextureProperties == 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=="geoCenter") GeoCenter=parser.ParseSFVec3fValue(); else if(id=="size") Size=parser.ParseSFVec3fValue(); else if(id=="geoOrigin") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { GeoOrigin=node as IX3DGeoOriginNode; if(GeoOrigin==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="geoSystem") { if(wasGeoSystem) GeoSystem.AddRange(parser.ParseSFStringOrMFStringValue()); else GeoSystem=parser.ParseSFStringOrMFStringValue(); wasGeoSystem=true; } else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "collidables" || id == "collider") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Collider = node as IX3DCollisionCollectionNode; if (Collider == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "enabled") { Enabled = parser.ParseBoolValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="direction") Direction=parser.ParseSFVec3fValue(); else if(id=="intensity") Intensity=parser.ParseDoubleValue(); else if(id=="location") Location=parser.ParseSFVec3fValue(); else if(id=="maxBack") MaxBack=parser.ParseDoubleValue(); else if(id=="maxFront") MaxFront=parser.ParseDoubleValue(); else if(id=="minBack") MinBack=parser.ParseDoubleValue(); else if(id=="minFront") MinFront=parser.ParseDoubleValue(); else if(id=="priority") Priority=parser.ParseDoubleValue(); else if(id=="source") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Source=node as X3DSoundSourceNode; if(Source==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="spatialize") Spatialize=parser.ParseBoolValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="children") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { X3DChildNode child=node as X3DChildNode; if(child==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else Children.Add(child); } } else if(id=="geoCoords") GeoCoords=parser.ParseSFVec3fStringValue(); else if(id=="geoOrigin") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { GeoOrigin=node as IX3DGeoOriginNode; if(GeoOrigin==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="geoSystem") { if(wasGeoSystem) GeoSystem.AddRange(parser.ParseSFStringOrMFStringValue()); else GeoSystem=parser.ParseSFStringOrMFStringValue(); wasGeoSystem=true; } else if(id=="bboxCenter") BBoxCenter=parser.ParseSFVec3fValue(); else if(id=="bboxSize") BBoxSize=parser.ParseSFVec3fValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "update") { Update = parser.ParseStringValue(); } else if (id == "size") { Size = parser.ParseIntValue(); } else if (id == "textureProperties") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { TextureProperties = node as IX3DTexturePropertiesNode; if (TextureProperties == 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 == "geometry") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Geometry = node as X3DGeometryNode; if (Geometry == 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=="controlPoint") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { ControlPoint=node as X3DCoordinateNode; if(ControlPoint==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="texCoord") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TexCoord=node as IX3DNurbsSurfaceGeometryNodeTexCoord; if(TexCoord==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="trimmingContour") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { IX3DContour2DNode contour=node as IX3DContour2DNode; if(contour==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else TrimmingContour.Add(contour); } } else if(id=="uTessellation") UTessellation=parser.ParseIntValue(); else if(id=="vTessellation") VTessellation=parser.ParseIntValue(); else if(id=="weight") Weight.AddRange(parser.ParseSFFloatOrMFFloatValue()); else if(id=="solid") Solid=parser.ParseBoolValue(); else if(id=="uClosed") UClosed=parser.ParseBoolValue(); else if(id=="uDimension") UDimension=parser.ParseIntValue(); else if(id=="uKnot") UKnot.AddRange(parser.ParseSFFloatOrMFFloatValue()); else if(id=="uOrder") UOrder=parser.ParseIntValue(); else if(id=="vClosed") VClosed=parser.ParseBoolValue(); else if(id=="vDimension") VDimension=parser.ParseIntValue(); else if(id=="vKnot") VKnot.AddRange(parser.ParseSFFloatOrMFFloatValue()); else if(id=="vOrder") VOrder=parser.ParseIntValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="attrib") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { X3DVertexAttributeNode attr=node as X3DVertexAttributeNode; if(attr==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else Attrib.Add(attr); } } else if(id=="color") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Color=node as X3DColorNode; if(Color==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="coord") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Coord=node as X3DCoordinateNode; if(Coord==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="fogCoord") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { FogCoord=node as IX3DFogCoordinateNode; if(FogCoord==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="colorIndex") ColorIndex=parser.ParseSFInt32OrMFInt32Value(); else if(id=="colorPerVertex") ColorPerVertex=parser.ParseBoolValue(); else if(id=="coordIndex") CoordIndex=parser.ParseSFInt32OrMFInt32Value(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "direction") { Direction = parser.ParseSFVec3fValue(); } else if (id == "intensity") { Intensity = parser.ParseDoubleValue(); } else if (id == "location") { Location = parser.ParseSFVec3fValue(); } else if (id == "maxBack") { MaxBack = parser.ParseDoubleValue(); } else if (id == "maxFront") { MaxFront = parser.ParseDoubleValue(); } else if (id == "minBack") { MinBack = parser.ParseDoubleValue(); } else if (id == "minFront") { MinFront = parser.ParseDoubleValue(); } else if (id == "priority") { Priority = parser.ParseDoubleValue(); } else if (id == "source") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Source = node as X3DSoundSourceNode; if (Source == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "spatialize") { Spatialize = parser.ParseBoolValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "coord") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Coord = node as X3DCoordinateNode; if (Coord == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "direction") { Direction = parser.ParseSFVec3fValue(); } else if (id == "speed") { Speed = parser.ParseDoubleValue(); } else if (id == "variation") { Variation = parser.ParseDoubleValue(); } else if (id == "coordIndex") { if (wasCoordIndex) { CoordIndex.AddRange(parser.ParseSFInt32OrMFInt32Value()); } else { CoordIndex = parser.ParseSFInt32OrMFInt32Value(); } wasCoordIndex = true; } else if (id == "internal") { Internal = parser.ParseBoolValue(); } else if (id == "mass") { Mass = parser.ParseDoubleValue(); } else if (id == "surfaceArea") { SurfaceArea = parser.ParseDoubleValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="anchorPoint") AnchorPoint=parser.ParseSFVec3fValue(); else if(id=="axis1") Axis1=parser.ParseSFVec3fValue(); else if(id=="axis2") Axis2=parser.ParseSFVec3fValue(); else if(id=="body1") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Body1=node as IX3DRigidBodyNode; if(Body1==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="body2") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Body2=node as IX3DRigidBodyNode; if(Body2==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="desiredAngularVelocity1") DesiredAngularVelocity1=parser.ParseDoubleValue(); else if(id=="desiredAngularVelocity2") DesiredAngularVelocity2=parser.ParseDoubleValue(); else if(id=="forceOutput"||id=="mustOutput") { if(wasForceOutput) ForceOutput.AddRange(parser.ParseSFStringOrMFStringValue()); else ForceOutput=parser.ParseSFStringOrMFStringValue(); wasForceOutput=true; } else if(id=="maxAngle1") MaxAngle1=parser.ParseDoubleValue(); else if(id=="maxTorque1") MaxTorque1=parser.ParseDoubleValue(); else if(id=="maxTorque2") MaxTorque2=parser.ParseDoubleValue(); else if(id=="minAngle1") MinAngle1=parser.ParseDoubleValue(); else if(id=="stopBounce1") StopBounce1=parser.ParseDoubleValue(); else if(id=="stopConstantForceMix1") StopConstantForceMix1=parser.ParseDoubleValue(); else if(id=="stopErrorCorrection1") StopErrorCorrection1=parser.ParseDoubleValue(); else if(id=="suspensionErrorCorrection") SuspensionErrorCorrection=parser.ParseDoubleValue(); else if(id=="suspensionForce") SuspensionForce=parser.ParseDoubleValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "controlPoint") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { ControlPoint = node as X3DCoordinateNode; if (ControlPoint == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "knot") { Knot.AddRange(parser.ParseSFFloatOrMFFloatValue()); } else if (id == "order") { Order = parser.ParseIntValue(); } else if (id == "weight" || id == "keyWeight") { Weight.AddRange(parser.ParseSFFloatOrMFFloatValue()); } else if (id == "dimension") { Dimension = parser.ParseIntValue(); } else if (id == "fractionAbsolute") { FractionAbsolute = parser.ParseBoolValue(); } else if (id == "keyValue") { List <SFVec3f> controlPoints = parser.ParseSFVec3fOrMFVec3fValue(); if (ControlPoint == null) { ControlPoint = new x3dCoordinate(); } x3dCoordinate cp = ControlPoint as x3dCoordinate; if (cp != null) { cp.Point.AddRange(controlPoints); } } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "crossSectionCurve") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { CrossSectionCurve = node as X3DNurbsControlCurveNode; if (CrossSectionCurve == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "trajectoryCurve") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { TrajectoryCurve = node as IX3DNurbsCurveNode; if (TrajectoryCurve == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "ccw") { CCW = parser.ParseBoolValue(); } else if (id == "solid") { Solid = parser.ParseBoolValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "appearance") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Appearance = node as X3DAppearanceNode; if (Appearance == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "geometry") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Geometry = node as X3DGeometryNode; if (Geometry == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "bboxCenter") { BBoxCenter = parser.ParseSFVec3fValue(); } else if (id == "bboxSize") { BBoxSize = parser.ParseSFVec3fValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "children") { List <X3DNode> nodes = parser.ParseSFNodeOrMFNodeValue(); foreach (X3DNode node in nodes) { X3DChildNode child = node as X3DChildNode; if (child == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } else { Children.Add(child); } } } else if (id == "collide" || id == "enabled") { Enabled = parser.ParseBoolValue(); } else if (id == "bboxCenter") { BBoxCenter = parser.ParseSFVec3fValue(); } else if (id == "bboxSize") { BBoxSize = parser.ParseSFVec3fValue(); } else if (id == "proxy") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Proxy = node as X3DChildNode; if (Proxy == 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=="axis") Axis=parser.ParseSFVec3fValue(); else if(id=="body1") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Body1=node as IX3DRigidBodyNode; if(Body1==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="body2") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Body2=node as IX3DRigidBodyNode; if(Body2==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="forceOutput"||id=="mustOutput") { if(wasForceOutput) ForceOutput.AddRange(parser.ParseSFStringOrMFStringValue()); else ForceOutput=parser.ParseSFStringOrMFStringValue(); wasForceOutput=true; } else if(id=="maxSeparation") MaxSeparation=parser.ParseDoubleValue(); else if(id=="minSeparation") MinSeparation=parser.ParseDoubleValue(); else if(id=="sliderForce") SliderForce=parser.ParseDoubleValue(); else if(id=="stopBounce") StopBounce=parser.ParseDoubleValue(); else if(id=="stopErrorCorrection") StopErrorCorrection=parser.ParseDoubleValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="autoDisable") AutoDisable=parser.ParseBoolValue(); else if(id=="bodies") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { IX3DRigidBodyNode rb=node as IX3DRigidBodyNode; if(rb==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else Bodies.Add(rb); } } else if(id=="constantForceMix") ConstantForceMix=parser.ParseDoubleValue(); else if(id=="contactSurfaceThickness") ContactSurfaceThickness=parser.ParseDoubleValue(); else if(id=="disableAngularSpeed") DisableAngularSpeed=parser.ParseDoubleValue(); else if(id=="disableLinearSpeed") DisableLinearSpeed=parser.ParseDoubleValue(); else if(id=="disableTime") DisableTime=parser.ParseDoubleValue(); else if(id=="enabled") Enabled=parser.ParseBoolValue(); else if(id=="errorCorrection") ErrorCorrection=parser.ParseDoubleValue(); else if(id=="gravity") Gravity=parser.ParseSFVec3fValue(); else if(id=="iterations") Iterations=parser.ParseIntValue(); else if(id=="joints") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { X3DRigidJointNode rj=node as X3DRigidJointNode; if(rj==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else Joints.Add(rj); } } else if(id=="maxCorrectionSpeed") MaxCorrectionSpeed=parser.ParseDoubleValue(); else if(id=="preferAccuracy") PreferAccuracy=parser.ParseBoolValue(); else if(id=="collider") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Collider=node as IX3DCollisionCollectionNode; if(Collider==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=="centerOfMass") CenterOfMass=parser.ParseSFVec3fValue(); else if(id=="children") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { X3DChildNode child=node as X3DChildNode; if(child==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else Children.Add(child); } } else if(id=="coord") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Coord=node as X3DCoordinateNode; if(Coord==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="displacers") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { IX3DHAnimDisplacerNode displacer=node as IX3DHAnimDisplacerNode; if(displacer==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else Displacers.Add(displacer); } } else if(id=="mass") Mass=parser.ParseDoubleValue(); else if(id=="momentsOfInertia") { if(wasMomentsOfInertia) MomentsOfInertia.AddRange(parser.ParseSFFloatOrMFFloatValue()); else MomentsOfInertia=parser.ParseSFFloatOrMFFloatValue(); wasMomentsOfInertia=true; } else if(id=="name") Name=parser.ParseStringValue(); else if(id=="bboxCenter") BBoxCenter=parser.ParseSFVec3fValue(); else if(id=="bboxSize") BBoxSize=parser.ParseSFVec3fValue(); 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 == "geoCenter") { GeoCenter = parser.ParseSFVec3fValue(); } else if (id == "size") { Size = parser.ParseSFVec3fValue(); } else if (id == "geoOrigin") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { GeoOrigin = node as IX3DGeoOriginNode; if (GeoOrigin == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "geoSystem") { if (wasGeoSystem) { GeoSystem.AddRange(parser.ParseSFStringOrMFStringValue()); } else { GeoSystem = parser.ParseSFStringOrMFStringValue(); } wasGeoSystem = true; } 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=="geometry") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Geometry=node as X3DGeometryNode; if(Geometry==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=="url") URL=parser.ParseSFStringOrMFStringValue(); else if(id=="textureProperties") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TextureProperties=node as IX3DTexturePropertiesNode; if(TextureProperties==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=="collidables"||id=="collider") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Collider=node as IX3DCollisionCollectionNode; if(Collider==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="enabled") Enabled=parser.ParseBoolValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="controlPoint") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { ControlPoint=node as X3DCoordinateNode; if(ControlPoint==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="knot") Knot.AddRange(parser.ParseSFFloatOrMFFloatValue()); else if(id=="order") Order=parser.ParseIntValue(); else if(id=="weight") Weight.AddRange(parser.ParseSFFloatOrMFFloatValue()); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="name") Name=parser.ParseStringValue(); else if(id=="shape") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Shape=node as IX3DCADFaceShape; if(Shape==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="bboxCenter") BBoxCenter=parser.ParseSFVec3fValue(); else if(id=="bboxSize") BBoxSize=parser.ParseSFVec3fValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="center") Center=parser.ParseSFVec3fValue(); else if(id=="enabled") Enabled=parser.ParseBoolValue(); else if(id=="size") Size=parser.ParseSFVec3fValue(); else if(id=="targetObject") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TargetObject=node as IX3DTranformSensorTargetObject; if(TargetObject==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 == "collidable") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Collidable = node as X3DNBodyCollidableNode; if (Collidable == 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=="image") Image=parser.ParseSFInt32OrMFInt32Value(); else if(id=="repeatS") RepeatS=parser.ParseBoolValue(); else if(id=="repeatR") RepeatR=parser.ParseBoolValue(); else if(id=="repeatT") RepeatT=parser.ParseBoolValue(); else if(id=="textureProperties") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TextureProperties=node as IX3DTexturePropertiesNode; if(TextureProperties==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; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "fontStyle") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { FontStyle = node as X3DFontStyleNode; if (FontStyle == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "length") { Length.AddRange(parser.ParseSFFloatOrMFFloatValue()); } else if (id == "maxExtent") { MaxExtent = parser.ParseDoubleValue(); } else if (id == "string") { String.AddRange(parser.ParseSFStringOrMFStringValue()); } else if (id == "solid") { Solid = parser.ParseBoolValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "axis1Angle") { Axis1Angle = parser.ParseDoubleValue(); } else if (id == "axis1Torque") { Axis1Torque = parser.ParseDoubleValue(); } else if (id == "axis2Angle") { Axis2Angle = parser.ParseDoubleValue(); } else if (id == "axis2Torque") { Axis2Torque = parser.ParseDoubleValue(); } else if (id == "axis3Angle") { Axis3Angle = parser.ParseDoubleValue(); } else if (id == "axis3Torque") { Axis3Torque = parser.ParseDoubleValue(); } else if (id == "body1") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Body1 = node as IX3DRigidBodyNode; if (Body1 == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "body2") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Body2 = node as IX3DRigidBodyNode; if (Body2 == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "enabledAxes") { EnabledAxes = parser.ParseIntValue(); } else if (id == "forceOutput") { if (wasForceOutput) { ForceOutput.AddRange(parser.ParseSFStringOrMFStringValue()); } else { ForceOutput = parser.ParseSFStringOrMFStringValue(); } wasForceOutput = true; } else if (id == "motor1Axis") { Motor1Axis = parser.ParseSFVec3fValue(); } else if (id == "motor2Axis") { Motor2Axis = parser.ParseSFVec3fValue(); } else if (id == "motor3Axis") { Motor3Axis = parser.ParseSFVec3fValue(); } else if (id == "stop1Bounce") { Stop1Bounce = parser.ParseDoubleValue(); } else if (id == "stop1ErrorCorrection") { Stop1ErrorCorrection = parser.ParseDoubleValue(); } else if (id == "stop2Bounce") { Stop2Bounce = parser.ParseDoubleValue(); } else if (id == "stop2ErrorCorrection") { Stop2ErrorCorrection = parser.ParseDoubleValue(); } else if (id == "stop3Bounce") { Stop3Bounce = parser.ParseDoubleValue(); } else if (id == "stop3ErrorCorrection") { Stop3ErrorCorrection = parser.ParseDoubleValue(); } else if (id == "autoCalc") { AutoCalc = parser.ParseBoolValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="appearance") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Appearance=node as X3DAppearanceNode; if(Appearance==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="createParticles") CreateParticles=parser.ParseBoolValue(); else if(id=="geometry") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Geometry=node as X3DGeometryNode; if(Geometry==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="enabled") Enabled=parser.ParseBoolValue(); else if(id=="lifetimeVariation") LifetimeVariation=parser.ParseDoubleValue(); else if(id=="maxParticles") MaxParticles=parser.ParseIntValue(); else if(id=="particleLifetime") ParticleLifetime=parser.ParseDoubleValue(); else if(id=="particleSize") ParticleSize=parser.ParseSFVec2fValue(); else if(id=="bboxCenter") BBoxCenter=parser.ParseSFVec3fValue(); else if(id=="bboxSize") BBoxSize=parser.ParseSFVec3fValue(); else if(id=="colorRamp") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { ColorRamp=node as X3DColorNode; if(ColorRamp==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="colorKey") ColorKey.AddRange(parser.ParseSFFloatOrMFFloatValue()); else if(id=="emitter") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Emitter=node as X3DParticleEmitterNode; if(Emitter==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="geometryType") GeometryType=parser.ParseStringValue(); else if(id=="physics") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { X3DParticlePhysicsModelNode ppmn=node as X3DParticlePhysicsModelNode; if(ppmn==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else Physics.Add(ppmn); } } else if(id=="texCoordRamp") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TexCoordRamp=node as X3DTextureCoordinateNode; if(TexCoordRamp==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="texCoordKey") TexCoordKey.AddRange(parser.ParseSFFloatOrMFFloatValue()); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "center") { Center = parser.ParseSFVec3fStringValue(); } else if (id == "child1Url") { Child1URL.AddRange(parser.ParseSFStringOrMFStringValue()); } else if (id == "child2Url") { Child2URL.AddRange(parser.ParseSFStringOrMFStringValue()); } else if (id == "child3Url") { Child3URL.AddRange(parser.ParseSFStringOrMFStringValue()); } else if (id == "child4Url") { Child4URL.AddRange(parser.ParseSFStringOrMFStringValue()); } else if (id == "geoOrigin") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { GeoOrigin = node as IX3DGeoOriginNode; if (GeoOrigin == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "geoSystem") { if (wasGeoSystem) { GeoSystem.AddRange(parser.ParseSFStringOrMFStringValue()); } else { GeoSystem = parser.ParseSFStringOrMFStringValue(); } wasGeoSystem = true; } else if (id == "range") { Range = parser.ParseDoubleValue(); } else if (id == "rootUrl") { RootURL.AddRange(parser.ParseSFStringOrMFStringValue()); } else if (id == "rootNode") { List <X3DNode> nodes = parser.ParseSFNodeOrMFNodeValue(); foreach (X3DNode node in nodes) { X3DChildNode rn = node as X3DChildNode; if (rn == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } else { RootNode.Add(rn); } } } else if (id == "bboxCenter") { BBoxCenter = parser.ParseSFVec3fValue(); } else if (id == "bboxSize") { BBoxSize = parser.ParseSFVec3fValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="attrib") { List<X3DNode> nodes=parser.ParseSFNodeOrMFNodeValue(); foreach(X3DNode node in nodes) { X3DVertexAttributeNode attr=node as X3DVertexAttributeNode; if(attr==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); else Attrib.Add(attr); } } else if(id=="color") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Color=node as X3DColorNode; if(Color==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="fogCoord") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { FogCoord=node as IX3DFogCoordinateNode; if(FogCoord==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="normal") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { Normal=node as X3DNormalNode; if(Normal==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="texCoord") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TexCoord=node as X3DTextureCoordinateNode; if(TexCoord==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="ccw") CCW=parser.ParseBoolValue(); else if(id=="colorPerVertex") ColorPerVertex=parser.ParseBoolValue(); else if(id=="creaseAngle") CreaseAngle=parser.ParseDoubleValue(); else if(id=="height") Height.AddRange(parser.ParseSFFloatOrMFFloatValue()); else if(id=="normalPerVertex") NormalPerVertex=parser.ParseBoolValue(); else if(id=="solid") Solid=parser.ParseBoolValue(); else if(id=="xDimension") XDimension=parser.ParseIntValue(); else if(id=="xSpacing") XSpacing=parser.ParseDoubleValue(); else if(id=="zDimension") ZDimension=parser.ParseIntValue(); else if(id=="zSpacing") ZSpacing=parser.ParseDoubleValue(); else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "description") { Description = parser.ParseStringValue(); } else if (id == "loop") { Loop = parser.ParseBoolValue(); } else if (id == "pauseTime") { PauseTime = parser.ParseDoubleValue(); } else if (id == "resumeTime") { ResumeTime = parser.ParseDoubleValue(); } else if (id == "speed" || id == "pitch") { Pitch = parser.ParseDoubleValue(); } else if (id == "startTime") { StartTime = parser.ParseDoubleValue(); } else if (id == "stopTime") { StopTime = parser.ParseDoubleValue(); } else if (id == "url") { URL.AddRange(parser.ParseSFStringOrMFStringValue()); } else if (id == "repeatS") { RepeatS = parser.ParseBoolValue(); } else if (id == "repeatT") { RepeatT = parser.ParseBoolValue(); } else if (id == "textureProperties") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { TextureProperties = node as IX3DTexturePropertiesNode; if (TextureProperties == 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 == "back") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Back = node as X3DTexture2DNode; if (Back == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "bottom") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Bottom = node as X3DTexture2DNode; if (Bottom == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "front") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Front = node as X3DTexture2DNode; if (Front == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "left") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Left = node as X3DTexture2DNode; if (Left == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "right") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Right = node as X3DTexture2DNode; if (Right == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "top") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Top = node as X3DTexture2DNode; if (Top == 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 == "attrib") { List <X3DNode> nodes = parser.ParseSFNodeOrMFNodeValue(); foreach (X3DNode node in nodes) { X3DVertexAttributeNode attr = node as X3DVertexAttributeNode; if (attr == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } else { Attrib.Add(attr); } } } else if (id == "color") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Color = node as X3DColorNode; if (Color == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "coord") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Coord = node as X3DCoordinateNode; if (Coord == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "fogCoord") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { FogCoord = node as IX3DFogCoordinateNode; if (FogCoord == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "normal") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Normal = node as X3DNormalNode; if (Normal == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "texCoord") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { TexCoord = node as X3DTextureCoordinateNode; if (TexCoord == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "ccw") { CCW = parser.ParseBoolValue(); } else if (id == "colorPerVertex") { ColorPerVertex = parser.ParseBoolValue(); } else if (id == "normalPerVertex") { NormalPerVertex = parser.ParseBoolValue(); } else if (id == "solid") { Solid = parser.ParseBoolValue(); } else if (id == "index") { Index = parser.ParseSFInt32OrMFInt32Value(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "centerOfMass") { CenterOfMass = parser.ParseSFVec3fValue(); } else if (id == "children") { List <X3DNode> nodes = parser.ParseSFNodeOrMFNodeValue(); foreach (X3DNode node in nodes) { X3DChildNode child = node as X3DChildNode; if (child == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } else { Children.Add(child); } } } else if (id == "coord") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Coord = node as X3DCoordinateNode; if (Coord == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "displacers") { List <X3DNode> nodes = parser.ParseSFNodeOrMFNodeValue(); foreach (X3DNode node in nodes) { IX3DHAnimDisplacerNode displacer = node as IX3DHAnimDisplacerNode; if (displacer == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } else { Displacers.Add(displacer); } } } else if (id == "mass") { Mass = parser.ParseDoubleValue(); } else if (id == "momentsOfInertia") { if (wasMomentsOfInertia) { MomentsOfInertia.AddRange(parser.ParseSFFloatOrMFFloatValue()); } else { MomentsOfInertia = parser.ParseSFFloatOrMFFloatValue(); } wasMomentsOfInertia = true; } else if (id == "name") { Name = parser.ParseStringValue(); } else if (id == "bboxCenter") { BBoxCenter = parser.ParseSFVec3fValue(); } else if (id == "bboxSize") { BBoxSize = parser.ParseSFVec3fValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="groundAngle") GroundAngle.AddRange(parser.ParseSFFloatOrMFFloatValue()); else if(id=="groundColor") GroundColor.AddRange(parser.ParseSFColorOrMFColorValue()); else if(id=="backTexture") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { BackTexture=node as X3DTextureNode; if(BackTexture==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="bottomTexture") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { BottomTexture=node as X3DTextureNode; if(BottomTexture==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="frontTexture") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { FrontTexture=node as X3DTextureNode; if(FrontTexture==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="leftTexture") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { LeftTexture=node as X3DTextureNode; if(LeftTexture==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="rightTexture") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { RightTexture=node as X3DTextureNode; if(RightTexture==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="topTexture") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TopTexture=node as X3DTextureNode; if(TopTexture==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else if(id=="skyAngle") SkyAngle.AddRange(parser.ParseSFFloatOrMFFloatValue()); else if(id=="skyColor") { if(wasSkyColor) SkyColor.AddRange(parser.ParseSFColorOrMFColorValue()); else SkyColor=parser.ParseSFColorOrMFColorValue(); wasSkyColor=true; } else if(id=="transparency") { // since X3D Node Spec and VRML Classic Coding Spec disagree on the fieldType List<double> values=parser.ParseSFFloatOrMFFloatValue(); if(values.Count!=0) Transparency=values[0]; } else return false; return true; }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "image") { try { Image.Clear(); Image.Add(parser.ParseIntValue()); // Number of Components Image.Add(parser.ParseIntValue()); // Width Image.Add(parser.ParseIntValue()); // Height Image.Add(parser.ParseIntValue()); // Depth } catch (UserCancellationException) { throw; } catch (Exception ex) { parser.ErrorParsingNode(VRMLReaderError.SFImageInvalid, ex, this, id, null, line); } if (Image[1] < 0 || Image[2] < 0 || Image[3] < 0 || Image[0] < 0 || Image[0] > 4) { parser.ErrorParsingNode(VRMLReaderError.SFImageInvalid, this, id, null, line); } if (!(Image[0] == 0 || Image[1] == 0 || Image[2] == 0 || Image[3] == 0)) { int count = Image[1] * Image[2] * Image[3]; try { for (int i = 0; i < count; i++) { Image.Add(parser.ParseIntValue()); } } catch (UserCancellationException) { throw; } catch (Exception ex) { parser.ErrorParsingNode(VRMLReaderError.SFImageInvalid, ex, this, id, null, parser.Line); } } } else if (id == "repeatS") { RepeatS = parser.ParseBoolValue(); } else if (id == "repeatR") { RepeatR = parser.ParseBoolValue(); } else if (id == "repeatT") { RepeatT = parser.ParseBoolValue(); } else if (id == "textureProperties") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { TextureProperties = node as IX3DTexturePropertiesNode; if (TextureProperties == 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 == "objectType") { if (wasObjectType) { ObjectType.AddRange(parser.ParseSFStringOrMFStringValue()); } else { ObjectType = parser.ParseSFStringOrMFStringValue(); } wasObjectType = true; } else if (id == "pickingGeometry") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { PickingGeometry = node as IX3DPointPickSensorPickingGeometry; if (PickingGeometry == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "pickTarget") { List <X3DNode> nodes = parser.ParseSFNodeOrMFNodeValue(); foreach (X3DNode node in nodes) { IX3DPickSensorNodePickTarget pt = node as IX3DPickSensorNodePickTarget; if (pt == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } else { PickTarget.Add(pt); } } } else if (id == "intersectionType") { IntersectionType = parser.ParseStringValue(); } else if (id == "sortOrder") { SortOrder = parser.ParseStringValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "attrib") { List <X3DNode> nodes = parser.ParseSFNodeOrMFNodeValue(); foreach (X3DNode node in nodes) { X3DVertexAttributeNode attr = node as X3DVertexAttributeNode; if (attr == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } else { Attrib.Add(attr); } } } else if (id == "color") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Color = node as X3DColorNode; if (Color == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "fogCoord") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { FogCoord = node as IX3DFogCoordinateNode; if (FogCoord == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "normal") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Normal = node as X3DNormalNode; if (Normal == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "texCoord") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { TexCoord = node as X3DTextureCoordinateNode; if (TexCoord == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "ccw") { CCW = parser.ParseBoolValue(); } else if (id == "colorPerVertex") { ColorPerVertex = parser.ParseBoolValue(); } else if (id == "creaseAngle") { CreaseAngle = parser.ParseDoubleValue(); } else if (id == "height") { Height.AddRange(parser.ParseSFFloatOrMFFloatValue()); } else if (id == "normalPerVertex") { NormalPerVertex = parser.ParseBoolValue(); } else if (id == "solid") { Solid = parser.ParseBoolValue(); } else if (id == "xDimension") { XDimension = parser.ParseIntValue(); } else if (id == "xSpacing") { XSpacing = parser.ParseDoubleValue(); } else if (id == "zDimension") { ZDimension = parser.ParseIntValue(); } else if (id == "zSpacing") { ZSpacing = parser.ParseDoubleValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "axis") { Axis = parser.ParseSFVec3fValue(); } else if (id == "body1") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Body1 = node as IX3DRigidBodyNode; if (Body1 == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "body2") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Body2 = node as IX3DRigidBodyNode; if (Body2 == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "forceOutput" || id == "mustOutput") { if (wasForceOutput) { ForceOutput.AddRange(parser.ParseSFStringOrMFStringValue()); } else { ForceOutput = parser.ParseSFStringOrMFStringValue(); } wasForceOutput = true; } else if (id == "maxSeparation") { MaxSeparation = parser.ParseDoubleValue(); } else if (id == "minSeparation") { MinSeparation = parser.ParseDoubleValue(); } else if (id == "sliderForce") { SliderForce = parser.ParseDoubleValue(); } else if (id == "stopBounce") { StopBounce = parser.ParseDoubleValue(); } else if (id == "stopErrorCorrection") { StopErrorCorrection = parser.ParseDoubleValue(); } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="image") { try { Image.Clear(); Image.Add(parser.ParseIntValue()); // Number of Components Image.Add(parser.ParseIntValue()); // Width Image.Add(parser.ParseIntValue()); // Height Image.Add(parser.ParseIntValue()); // Depth } catch(UserCancellationException) { throw; } catch(Exception ex) { parser.ErrorParsingNode(VRMLReaderError.SFImageInvalid, ex, this, id, null, line); } if(Image[1]<0||Image[2]<0||Image[3]<0||Image[0]<0||Image[0]>4) parser.ErrorParsingNode(VRMLReaderError.SFImageInvalid, this, id, null, line); if(!(Image[0]==0||Image[1]==0||Image[2]==0||Image[3]==0)) { int count=Image[1]*Image[2]*Image[3]; try { for(int i=0; i<count; i++) Image.Add(parser.ParseIntValue()); } catch(UserCancellationException) { throw; } catch(Exception ex) { parser.ErrorParsingNode(VRMLReaderError.SFImageInvalid, ex, this, id, null, parser.Line); } } } else if(id=="repeatS") RepeatS=parser.ParseBoolValue(); else if(id=="repeatR") RepeatR=parser.ParseBoolValue(); else if(id=="repeatT") RepeatT=parser.ParseBoolValue(); else if(id=="textureProperties") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TextureProperties=node as IX3DTexturePropertiesNode; if(TextureProperties==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 == "attrib") { List <X3DNode> nodes = parser.ParseSFNodeOrMFNodeValue(); foreach (X3DNode node in nodes) { X3DVertexAttributeNode attr = node as X3DVertexAttributeNode; if (attr == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } else { Attrib.Add(attr); } } } else if (id == "color") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Color = node as X3DColorNode; if (Color == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "coord") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Coord = node as X3DCoordinateNode; if (Coord == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "fogCoord") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { FogCoord = node as IX3DFogCoordinateNode; if (FogCoord == 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 == "fillProperties") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { FillProperties = node as IX3DFillPropertiesNode; if (FillProperties == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "lineProperties") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { LineProperties = node as IX3DLinePropertiesNode; if (LineProperties == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "material") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Material = node as X3DMaterialNode; if (Material == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "shaders") { List <X3DNode> nodes = parser.ParseSFNodeOrMFNodeValue(); foreach (X3DNode node in nodes) { X3DShaderNode sn = node as X3DShaderNode; if (sn == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } else { Shaders.Add(sn); } } } else if (id == "texture") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { Texture = node as X3DTextureNode; if (Texture == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else if (id == "textureTransform") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { TextureTransform = node as X3DTextureTransformNode; if (TextureTransform == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else { return(false); } return(true); }