GeometryGym.Ifc.IfcGeometricRepresentationSubContext.ParseXml C# (CSharp) Méthode

ParseXml() private méthode

private ParseXml ( XmlElement xml ) : void
xml System.Xml.XmlElement
Résultat void
        internal override void ParseXml(XmlElement xml)
        {
            base.ParseXml(xml);
            foreach (XmlNode child in xml.ChildNodes)
            {
                string name = child.Name;
                if (string.Compare(name, "ContainerContext") == 0)
                    ContainerContext = mDatabase.ParseXml<IfcGeometricRepresentationContext>(child as XmlElement);
            }
            if (xml.HasAttribute("TargetScale"))
                TargetScale = double.Parse(xml.Attributes["TargetScale"].Value);
            if (xml.HasAttribute("TargetView"))
                Enum.TryParse<IfcGeometricProjectionEnum>(xml.Attributes["TargetView"].Value, true, out mTargetView);
            if (xml.HasAttribute("UserDefinedTargetView"))
                UserDefinedTargetView = xml.Attributes["UserDefinedTargetView"].Value;
        }