internal override void ParseXml(XmlElement xml) { base.ParseXml(xml); foreach (XmlNode child in xml.ChildNodes) { string name = child.Name; if (string.Compare(name, "RepresentationMaps") == 0) { List <IfcRepresentationMap> repMaps = new List <IfcRepresentationMap>(child.ChildNodes.Count); foreach (XmlNode cn in child.ChildNodes) { IfcRepresentationMap rm = mDatabase.ParseXml <IfcRepresentationMap>(cn as XmlElement); if (rm != null) { repMaps.Add(rm); } } RepresentationMaps = repMaps; } } if (xml.HasAttribute("Tag")) { Tag = xml.Attributes["Tag"].Value; } }
internal static void parseFields(IfcRepresentationMap rm, List<string> arrFields, ref int ipos) { rm.mMappingOrigin = ParserSTEP.ParseLink(arrFields[ipos++]); rm.mMappedRepresentation = ParserSTEP.ParseLink(arrFields[ipos++]); }
internal static IfcRepresentationMap Parse(string strDef) { IfcRepresentationMap m = new IfcRepresentationMap(); int ipos = 0; parseFields(m, ParserSTEP.SplitLineFields(strDef), ref ipos); return m; }
internal IfcRepresentationMap(IfcRepresentationMap p) : base() { mMappingOrigin = p.mMappingOrigin; mMappedRepresentation = p.mMappedRepresentation; }
internal IfcMappedItem(IfcRepresentationMap rm, IfcCartesianTransformationOperator co) : base(rm.mDatabase) { mMappingSource = rm.mIndex; mMappingTarget = co.mIndex; }