Ejemplo n.º 1
0
 public override string ToString()
 {
     return("IFCNORMALISEDRATIOMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }
Ejemplo n.º 2
0
 protected override void Parse(string str, ref int pos, int len)
 {
     base.Parse(str, ref pos, len); mOrientation = ParserSTEP.StripLink(str, ref pos, len);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + (mDatabase.mRelease == ReleaseVersion.IFC2x3 ? "" : ((mDescription == "$" ? ",$," : ",'" + mDescription + "',") + (mLanguage == "$" ? "$," : "'" + mLanguage + "',") + ParserSTEP.LinkToString(mReferencedLibrary))));
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 internal static IfcLagTime Parse(string strDef)
 {
     IfcLagTime f = new IfcLagTime(); int ipos = 0; parseFields(f, ParserSTEP.SplitLineFields(strDef), ref ipos); return(f);
 }
Ejemplo n.º 7
0
        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 + "'"));
        }
Ejemplo n.º 8
0
 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++]);
 }
Ejemplo n.º 9
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mPnt) + "," + ParserSTEP.LinkToString(mDir));
 }
Ejemplo n.º 10
0
 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++]);
 }
Ejemplo n.º 11
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mOrientation) + "," + ParserSTEP.DoubleToString(mConcentrationExponent) + "," + ParserSTEP.DoubleToString(mSpreadAngle) + "," + ParserSTEP.DoubleToString(mBeamWidthAngle));
 }
Ejemplo n.º 12
0
 //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);
 }
Ejemplo n.º 13
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mPosition) + "," + ParserSTEP.DoubleToString(mRadius) + "," +
            ParserSTEP.DoubleToString(mConstantAttenuation) + "," + ParserSTEP.DoubleToString(mDistanceAttenuation) + "," +
            ParserSTEP.DoubleToString(mQuadricAttenuation));
 }
Ejemplo n.º 14
0
 internal static void parseFields(IfcLightSourceDirectional l, List <string> arrFields, ref int ipos)
 {
     IfcLightSource.parseFields(l, arrFields, ref ipos); l.mOrientation = ParserSTEP.ParseLink(arrFields[ipos++]);
 }
Ejemplo n.º 15
0
 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);
 }
Ejemplo n.º 16
0
 //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);
 }
Ejemplo n.º 17
0
 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) : ""));
 }
Ejemplo n.º 18
0
 internal static IfcLocalPlacement Parse(string strDef)
 {
     IfcLocalPlacement p = new IfcLocalPlacement(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return(p);
 }
Ejemplo n.º 19
0
 internal new static IfcLamp Parse(string strDef)
 {
     IfcLamp s = new IfcLamp(); int ipos = 0; parseFields(s, ParserSTEP.SplitLineFields(strDef), ref ipos); return(s);
 }
Ejemplo n.º 20
0
 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++]);
 }
Ejemplo n.º 21
0
 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);
 }
Ejemplo n.º 22
0
 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));
 }
Ejemplo n.º 23
0
 internal new static IfcLightFixtureType Parse(string strDef)
 {
     IfcLightFixtureType t = new IfcLightFixtureType(); int ipos = 0; parseFields(t, ParserSTEP.SplitLineFields(strDef), ref ipos); return(t);
 }
Ejemplo n.º 24
0
 internal static IfcLocalTime Parse(string strDef)
 {
     IfcLocalTime t = new IfcLocalTime(); int ipos = 0; parseFields(t, ParserSTEP.SplitLineFields(strDef), ref ipos); return(t);
 }
Ejemplo n.º 25
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + (mName == "$" ? ",$," : ",'" + mName + "',") + ParserSTEP.LinkToString(mLightColour) + "," + ParserSTEP.DoubleOptionalToString(mAmbientIntensity) + "," + ParserSTEP.DoubleOptionalToString(mIntensity));
 }
Ejemplo n.º 26
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + "," + mHourComponent + "," + mMinuteComponent + "," + ParserSTEP.DoubleToString(mSecondComponent) + "," + ParserSTEP.LinkToString(mZone) + "," + mDaylightSavingOffset);
 }
Ejemplo n.º 27
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mOrientation));
 }
Ejemplo n.º 28
0
 internal static IfcLoop Parse(string strDef)
 {
     IfcLoop l = new IfcLoop(); int ipos = 0; parseFields(l, ParserSTEP.SplitLineFields(strDef), ref ipos); return(l);
 }
Ejemplo n.º 29
0
 protected override string BuildStringSTEP()
 {
     return(base.BuildStringSTEP() + "," + ParserSTEP.LinkToString(mPosition) + "," + ParserSTEP.LinkToString(mColourAppearance) + "," +
            ParserSTEP.DoubleToString(mColourTemperature) + "," + ParserSTEP.DoubleToString(mLuminousFlux) + ",." +
            mLightEmissionSource.ToString() + ".," + ParserSTEP.LinkToString(mLightDistributionDataSource));
 }
Ejemplo n.º 30
0
 public override string ToString()
 {
     return("IFCMASSMEASURE(" + ParserSTEP.DoubleToString(mValue) + ")");
 }