本文整理汇总了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());
}
示例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;
}
示例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);
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例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);
}
示例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();
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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());
}