当前位置: 首页>>代码示例>>C#>>正文


C# Ifc.BaseClassIfc类代码示例

本文整理汇总了C#中GeometryGym.Ifc.BaseClassIfc的典型用法代码示例。如果您正苦于以下问题:C# BaseClassIfc类的具体用法?C# BaseClassIfc怎么用?C# BaseClassIfc使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


BaseClassIfc类属于GeometryGym.Ifc命名空间,在下文中一共展示了BaseClassIfc类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetXML

 internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
 {
     base.SetXML(xml, host, processed);
     if (mDimensions > 0)
         xml.AppendChild(Dimensions.GetXML(xml.OwnerDocument, "Dimensions", this, processed));
     xml.SetAttribute("UnitType", mUnitType.ToString().ToLower());
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:7,代码来源:IFC+N+XML.cs

示例2: setJSON

		protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
		{
			base.setJSON(obj, host, processed);
			string tag = Tag;
			if (!string.IsNullOrEmpty(tag))
				obj["Tag"] = tag;
		}
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:7,代码来源:IFC+E+JSON.cs

示例3: SetXML

 internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
 {
     base.SetXML(xml, host, processed);
     xml.AppendChild(ContainerProfile.GetXML(xml.OwnerDocument, "ContainerProfile", this, processed));
     xml.AppendChild(Operator.GetXML(xml.OwnerDocument, "Operator", this, processed));
     setAttribute(xml, "Label", Label);
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:7,代码来源:IFC+D+XML.cs

示例4: setJSON

 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
 {
     base.setJSON(obj, host, processed);
     obj["XLength"] = XLength.ToString();
     obj["YLength"] = YLength.ToString();
     obj["ZLength"] = ZLength.ToString();
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:7,代码来源:IFC+B+JSON.cs

示例5: setJSON

 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
 {
     base.setJSON(obj, host, processed);
     obj["Points"] = Points.getJson(this, processed);
     if (mSegments.Count > 0)
     {
         JArray array = new JArray();
         obj["Segments"] = array;
         foreach (IfcSegmentIndexSelect seg in Segments)
         {
             IfcArcIndex ai = seg as IfcArcIndex;
             JObject jobj = new JObject();
             if (ai != null)
             {
                 jobj["IfcArcIndex"] = ai.mA + " " + ai.mB + " " + ai.mC;
             }
             else
             {
                 IfcLineIndex li = seg as IfcLineIndex;
                 jobj["IfcLineIndex"] = string.Join(" ", li.mIndices.ConvertAll(x => x.ToString()));
             }
             array.Add(jobj);
         }
     }
     if (mSelfIntersect != IfcLogicalEnum.UNKNOWN)
         obj["SelfIntersect"] = mSelfIntersect.ToString();
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:27,代码来源:IFC+I+JSON.cs

示例6: GetXML

        internal XmlElement GetXML(XmlDocument doc,string name, BaseClassIfc host, HashSet<int> processed)
        {
            string type = KeyWord;
            if (string.IsNullOrEmpty(name))
                name = type;

            if (processed.Contains(mIndex))
            {
                XmlElement xelement = doc.CreateElement(name);//, mDatabase.mXmlNamespace);
                XmlAttribute nil = doc.CreateAttribute("xsi", "nil", mDatabase.mXsiNamespace);
                nil.Value = "true";
                xelement.SetAttributeNode(nil);
                xelement.SetAttribute("href", "i" + mIndex);
                return xelement;
            }

            XmlElement element = doc.CreateElement(name);//, mDatabase.mXmlNamespace);
            SetXML(element, host, processed);

            element.SetAttribute("id", "i" + mIndex);
            if (string.Compare(name, type) != 0)
            {
                XmlAttribute att = doc.CreateAttribute("xsi","type",mDatabase.mXsiNamespace);
                //att.Prefix = "xsi";
                //att.LocalName = type;
                att.Value = type;
                element.SetAttributeNode(att);
            }
            processed.Add(mIndex);
            return element;
        }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:31,代码来源:BaseClassIFC+XML.cs

示例7: setJSON

 protected override void setJSON(JObject obj, BaseClassIfc host,  HashSet<int> processed)
 {
     base.setJSON(obj, host, processed);
     JArray array = new JArray();
     foreach(int unit in mUnits)
         array.Add(mDatabase[unit].getJson(this, processed));
     obj["Units"] = array;
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:8,代码来源:IFC+U+JSON.cs

示例8: setJSON

 protected override void setJSON(JObject obj, BaseClassIfc host,  HashSet<int> processed)
 {
     base.setJSON(obj, host, processed);
     setAttribute(obj, "Description", Description);
     setAttribute(obj, "Language", Language);
     if (mReferencedLibrary > 0)
         obj["ReferencedLibrary"] = ReferencedLibrary.getJson(this, processed);
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:8,代码来源:IFC+L+JSON.cs

示例9: setJSON

 protected override void setJSON(JObject obj, BaseClassIfc host,  HashSet<int> processed)
 {
     base.setJSON(obj, host, processed);
     IfcDimensionalExponents exponents = Dimensions;
     if(exponents != null)
         obj["Dimensions"] = exponents.getJson(this, processed);
     obj["UnitType"] = mUnitType.ToString();
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:8,代码来源:IFC+N+JSON.cs

示例10: setJSON

 protected override void setJSON(JObject obj, BaseClassIfc host, List<BaseClassIfc> prime)
 {
     base.setJSON(obj, host, prime);
     if(!double.IsNaN(mStartDistAlong))
         mJsonObject["StartDistAlong"] = mStartDistAlong;
     JArray array = new JArray();
     foreach (IfcAlignment2DHorizontalSegment seg in Segments)
         array.Add(seg.getJson(this,prime));
     mJsonObject["Segments"] = array;
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:10,代码来源:IFC+Alignment+JSON.cs

示例11: SetXML

 internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
 {
     base.SetXML(xml, host, processed);
     xml.SetAttribute("Eastings", mEastings.ToString());
     xml.SetAttribute("Northings", mNorthings.ToString());
     xml.SetAttribute("OrthogonalHeight", mOrthogonalHeight.ToString());
     setAttribute(xml, "XAxisAbscissa", mXAxisAbscissa);
     setAttribute(xml, "XAxisOrdinate", mXAxisOrdinate);
     setAttribute(xml, "Scale", mScale);
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:10,代码来源:IFC+M+XML.cs

示例12: setJSON

		protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
		{
			base.setJSON(obj, host, processed);
			setAttribute(obj, "TypeIdentifier", TypeIdentifier);
			setAttribute(obj, "AttributeIdentifier", AttributeIdentifier);
			setAttribute(obj, "InstanceName", InstanceName);
			if (mListPositions.Count > 0)
				obj["ListPositions"] = new JArray(mListPositions.ToArray());
			if (mInnerReference > 0)
				obj["InnerReference"] = InnerReference.getJson(this, processed);
		}
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:11,代码来源:IFC+R+JSON.cs

示例13: SetXML

 internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
 {
     base.SetXML(xml, host, processed);
     xml.SetAttribute("Name", Name);
     setAttribute(xml, "Version", Version);
     if (mPublisher > 0)
         xml.AppendChild(mDatabase[mPublisher].GetXML(xml.OwnerDocument, "Publisher", this, processed));
     //VersionDate
     setAttribute(xml, "Location", Location);
     setAttribute(xml, "Description", Description);
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:11,代码来源:IFC+L+XML.cs

示例14: SetXML

		internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
		{
			base.SetXML(xml, host, processed);
			Tuple<double, double> tuple = mCoordList[0];
			string str = tuple.Item1 + " " + tuple.Item2;
			for (int icounter = 1; icounter < mCoordList.Length; icounter++)
			{
				tuple = mCoordList[icounter];
				str += " " + tuple.Item1 + " " + tuple.Item2;
			}
			xml.SetAttribute("CoordList", str);
		}
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:12,代码来源:IFC+C+XML.cs

示例15: SetXML

 internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
 {
     base.SetXML(xml, host, processed);
     xml.SetAttribute("Depth", mDepth.ToString());
     xml.SetAttribute("FlangeWidth", mFlangeWidth.ToString());
     xml.SetAttribute("WebThickness", mWebThickness.ToString());
     xml.SetAttribute("FlangeThickness", mFlangeThickness.ToString());
     if (!double.IsNaN(mFilletRadius))
         xml.SetAttribute("FilletRadius", mFilletRadius.ToString());
     if (!double.IsNaN(mEdgeRadius))
         xml.SetAttribute("EdgeRadius", mEdgeRadius.ToString());
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:12,代码来源:IFC+Z+XML.cs


注:本文中的GeometryGym.Ifc.BaseClassIfc类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。