• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Ifc.BaseClassIfc类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: setJSON

		protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
		{
			base.setJSON(obj, host, processed);
			JArray array = new JArray();
			foreach (IfcShapeModel sm in ShapeRepresentations)
				array.Add(sm.getJson(this, processed));
			obj["ShapeRepresentations"] = array;
			setAttribute(obj, "Name", Name);
			setAttribute(obj, "Description", Description);
			setAttribute(obj, "ProductDefinitional", mProductDefinitional.ToString());
			if (mPartOfProductDefinitionShape > 0 && mPartOfProductDefinitionShape != host.mIndex)
				obj["PartOfProductDefinitionShape"] = mDatabase[mPartOfProductDefinitionShape].getJson(this, processed);
		}
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:13,代码来源:IFC+S+JSON.cs


示例17: setJSON

 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
 {
     base.setJSON(obj, host, processed);
     obj["Eastings"] = mEastings;
     obj["Northings"] = mNorthings;
     obj["OrthogonalHeight"] = mOrthogonalHeight;
     if (!double.IsNaN(mXAxisAbscissa))
         obj["XAxisAbscissa"] = mXAxisAbscissa;
     if (!double.IsNaN(mXAxisOrdinate))
         obj["XAxisOrdinate"] = mXAxisOrdinate;
     if (!double.IsNaN(mScale))
         obj["Scale"] = mScale;
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:13,代码来源:IFC+M+JSON.cs


示例18: setJSON

 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
 {
     base.setJSON(obj, host, processed);
     if (mElements.Count > 0)
     {
         JArray array = new JArray();
         foreach (int i in mElements)
             array.Add(mDatabase[i].getJson(this, processed));
         obj["Elements"] = array;
     }
     base.setAttribute(obj, "UnitType", mUnitType.ToString());
     base.setAttribute(obj, "UserDefinedType", UserDefinedType);
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:13,代码来源:IFC+D+JSON.cs


示例19: SetXML

 internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
 {
     base.SetXML(xml, host, processed);
     XmlElement element = xml.OwnerDocument.CreateElement("ShapeRepresentations");
     xml.AppendChild(element);
     foreach (IfcShapeModel s in ShapeRepresentations)
         element.AppendChild(s.GetXML(xml.OwnerDocument, "", this, processed));
     setAttribute(xml, "Name", Name);
     setAttribute(xml, "Description", Description);
     xml.SetAttribute("ProductDefinitional", ProductDefinitional.ToString().ToLower());
     if (mPartOfProductDefinitionShape > 0)
         xml.AppendChild(mDatabase[mPartOfProductDefinitionShape].GetXML(xml.OwnerDocument, "PartOfProductDefinitionShape", this, processed));
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:13,代码来源:IFC+S+XML.cs


示例20: SetXML

 internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
 {
     base.SetXML(xml, host, processed);
     setAttribute(xml, "ObjectType", ObjectType);
     if (mIsTypedBy != null)
         xml.AppendChild(mIsTypedBy.GetXML(xml.OwnerDocument, "IsTypedBy", this, processed));
     if (mIsDefinedBy.Count > 0)
     {
         XmlElement element = xml.OwnerDocument.CreateElement("IsDefinedBy");
         xml.AppendChild(element);
         foreach (IfcRelDefinesByProperties rd in IsDefinedBy)
             element.AppendChild(rd.GetXML(xml.OwnerDocument, "", this, processed));
     }
 }
开发者ID:jmirtsch,项目名称:GeometryGymIFC,代码行数:14,代码来源:IFC+O+XML.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Ifc.DatabaseIfc类代码示例发布时间:2022-05-26
下一篇:
C# GeometryAPI.Vector3D类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap