public override string ToString() { return("IFCNORMALISEDRATIOMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }
protected override void Parse(string str, ref int pos, int len) { base.Parse(str, ref pos, len); mOrientation = ParserSTEP.StripLink(str, ref pos, len); }
protected override void Parse(string str, ref int pos, int len) { base.Parse(str, ref pos, len); mPosition = ParserSTEP.StripLink(str, ref pos, len); mColourAppearance = ParserSTEP.StripLink(str, ref pos, len); mColourTemperature = ParserSTEP.StripDouble(str, ref pos, len); mLuminousFlux = ParserSTEP.StripDouble(str, ref pos, len); mLightEmissionSource = (IfcLightEmissionSourceEnum)Enum.Parse(typeof(IfcLightEmissionSourceEnum), ParserSTEP.StripField(str, ref pos, len).Replace(".", "")); mLightDistributionDataSource = ParserSTEP.StripLink(str, ref pos, len); }
protected override string BuildStringSTEP() { return(base.BuildStringSTEP() + (mDatabase.mRelease == ReleaseVersion.IFC2x3 ? "" : ((mDescription == "$" ? ",$," : ",'" + mDescription + "',") + (mLanguage == "$" ? "$," : "'" + mLanguage + "',") + ParserSTEP.LinkToString(mReferencedLibrary)))); }
internal static IfcLaborResource Parse(string strDef, ReleaseVersion schema) { IfcLaborResource r = new IfcLaborResource(); int ipos = 0; parseFields(r, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return(r); }
internal static IfcLagTime Parse(string strDef) { IfcLagTime f = new IfcLagTime(); int ipos = 0; parseFields(f, ParserSTEP.SplitLineFields(strDef), ref ipos); return(f); }
protected override string BuildStringSTEP() { string result = base.BuildStringSTEP() + ",'" + mName + (mVersion == "$" ? "',$," : "','" + mVersion + "',") + ParserSTEP.LinkToString(mPublisher); if (mDatabase.Release == ReleaseVersion.IFC2x3) { string refs = mHasLibraryReferences.Count > 0 ? "#" + mHasLibraryReferences[0].mIndex : ""; for (int icounter = 1; icounter < mHasLibraryReferences.Count; icounter++) { refs += ",#" + mHasLibraryReferences[icounter].mIndex; } return(result + ",$,(" + refs + ")"); //TODO date } return(result + (mVersionDate == "$" ? ",$," : ",'" + mVersionDate + "',") + (mLocation == "$" ? "$," : "'" + mLocation + "',") + (mDescription == "$" ? "$" : "'" + mDescription + "'")); }
internal static void parseFields(IfcLine l, List <string> arrFields, ref int ipos) { IfcCurve.parseFields(l, arrFields, ref ipos); l.mPnt = ParserSTEP.ParseLink(arrFields[ipos++]); l.mDir = ParserSTEP.ParseLink(arrFields[ipos++]); }
protected override string BuildStringSTEP() { return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mPnt) + "," + ParserSTEP.LinkToString(mDir)); }
internal static void parseFields(IfcLightSourceSpot l, List <string> arrFields, ref int ipos) { IfcLightSource.parseFields(l, arrFields, ref ipos); l.mOrientation = ParserSTEP.ParseLink(arrFields[ipos++]); l.mConcentrationExponent = ParserSTEP.ParseDouble(arrFields[ipos++]); l.mSpreadAngle = ParserSTEP.ParseDouble(arrFields[ipos++]); l.mBeamWidthAngle = ParserSTEP.ParseDouble(arrFields[ipos++]); }
protected override string BuildStringSTEP() { return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mOrientation) + "," + ParserSTEP.DoubleToString(mConcentrationExponent) + "," + ParserSTEP.DoubleToString(mSpreadAngle) + "," + ParserSTEP.DoubleToString(mBeamWidthAngle)); }
//internal IfcLightSourceSpot(IfcLightSourceSpot el) : base(el) { mOrientation = el.mOrientation; mConcentrationExponent = el.mConcentrationExponent; mSpreadAngle = el.mSpreadAngle; mBeamWidthAngle = el.mBeamWidthAngle; } internal static IfcLightSourceSpot Parse(string strDef) { IfcLightSourceSpot l = new IfcLightSourceSpot(); int ipos = 0; parseFields(l, ParserSTEP.SplitLineFields(strDef), ref ipos); return(l); }
protected override string BuildStringSTEP() { return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mPosition) + "," + ParserSTEP.DoubleToString(mRadius) + "," + ParserSTEP.DoubleToString(mConstantAttenuation) + "," + ParserSTEP.DoubleToString(mDistanceAttenuation) + "," + ParserSTEP.DoubleToString(mQuadricAttenuation)); }
internal static void parseFields(IfcLightSourceDirectional l, List <string> arrFields, ref int ipos) { IfcLightSource.parseFields(l, arrFields, ref ipos); l.mOrientation = ParserSTEP.ParseLink(arrFields[ipos++]); }
internal static IfcLShapeProfileDef Parse(string strDef, ReleaseVersion schema) { IfcLShapeProfileDef p = new IfcLShapeProfileDef(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return(p); }
//internal IfcLinearDimension(IfcAngularDimension el) : base((IfcDimensionCurveDirectedCallout)el) { } internal new static IfcLinearDimension Parse(string strDef) { IfcLinearDimension d = new IfcLinearDimension(); int ipos = 0; parseFields(d, ParserSTEP.SplitLineFields(strDef), ref ipos); return(d); }
protected override string BuildStringSTEP() { return(base.BuildStringSTEP() + "," + ParserSTEP.DoubleToString(mDepth) + "," + ParserSTEP.DoubleToString(mWidth) + "," + ParserSTEP.DoubleToString(mThickness) + "," + ParserSTEP.DoubleOptionalToString(mFilletRadius) + "," + ParserSTEP.DoubleOptionalToString(mEdgeRadius) + "," + ParserSTEP.DoubleOptionalToString(mLegSlope) + (mDatabase.mRelease == ReleaseVersion.IFC2x3 ? "," + ParserSTEP.DoubleOptionalToString(mCentreOfGravityInX) + "," + ParserSTEP.DoubleOptionalToString(mCentreOfGravityInY) : "")); }
internal static IfcLocalPlacement Parse(string strDef) { IfcLocalPlacement p = new IfcLocalPlacement(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return(p); }
internal new static IfcLamp Parse(string strDef) { IfcLamp s = new IfcLamp(); int ipos = 0; parseFields(s, ParserSTEP.SplitLineFields(strDef), ref ipos); return(s); }
internal static void parseFields(IfcLocalPlacement p, List <string> arrFields, ref int ipos) { IfcObjectPlacement.parseFields(p, arrFields, ref ipos); p.mPlacementRelTo = ParserSTEP.ParseLink(arrFields[ipos++]); p.mRelativePlacement = ParserSTEP.ParseLink(arrFields[ipos++]); }
internal static IfcLibraryReference Parse(string strDef, ReleaseVersion schema) { IfcLibraryReference f = new IfcLibraryReference(); int ipos = 0; parseFields(f, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return(f); }
protected override string BuildStringSTEP() { if (mPlacesObject.Count == 0 && mReferencedByPlacements.Count == 0) { return(""); } return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mPlacementRelTo) + "," + ParserSTEP.LinkToString(mRelativePlacement == 0 ? mDatabase.Factory.PlaneXYPlacement.mIndex : mRelativePlacement)); }
internal new static IfcLightFixtureType Parse(string strDef) { IfcLightFixtureType t = new IfcLightFixtureType(); int ipos = 0; parseFields(t, ParserSTEP.SplitLineFields(strDef), ref ipos); return(t); }
internal static IfcLocalTime Parse(string strDef) { IfcLocalTime t = new IfcLocalTime(); int ipos = 0; parseFields(t, ParserSTEP.SplitLineFields(strDef), ref ipos); return(t); }
protected override string BuildStringSTEP() { return(base.BuildStringSTEP() + (mName == "$" ? ",$," : ",'" + mName + "',") + ParserSTEP.LinkToString(mLightColour) + "," + ParserSTEP.DoubleOptionalToString(mAmbientIntensity) + "," + ParserSTEP.DoubleOptionalToString(mIntensity)); }
protected override string BuildStringSTEP() { return(base.BuildStringSTEP() + "," + mHourComponent + "," + mMinuteComponent + "," + ParserSTEP.DoubleToString(mSecondComponent) + "," + ParserSTEP.LinkToString(mZone) + "," + mDaylightSavingOffset); }
protected override string BuildStringSTEP() { return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mOrientation)); }
internal static IfcLoop Parse(string strDef) { IfcLoop l = new IfcLoop(); int ipos = 0; parseFields(l, ParserSTEP.SplitLineFields(strDef), ref ipos); return(l); }
protected override string BuildStringSTEP() { return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mPosition) + "," + ParserSTEP.LinkToString(mColourAppearance) + "," + ParserSTEP.DoubleToString(mColourTemperature) + "," + ParserSTEP.DoubleToString(mLuminousFlux) + ",." + mLightEmissionSource.ToString() + ".," + ParserSTEP.LinkToString(mLightDistributionDataSource)); }
public override string ToString() { return("IFCMASSMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")"); }