상속: BaseClassIfc, IfcUnit
예제 #1
0
        internal double ScaleSI(IfcDerivedUnitEnum unitType)
        {
            IfcDerivedUnit derivedUnit = this[unitType];

            if (derivedUnit != null)
            {
                return(derivedUnit.SIFactor);
            }
            return(1);
        }
예제 #2
0
 internal double getScaleSI(IfcDerivedUnitEnum unitType)
 {
     foreach (IfcUnit u in Units)
     {
         IfcDerivedUnit du = u as IfcDerivedUnit;
         if (du != null)
         {
         }
     }
     return(1);
 }
예제 #3
0
 internal IfcDerivedUnit Find(IfcDerivedUnitEnum unit)
 {
     foreach (IfcUnit u in Units)
     {
         IfcDerivedUnit du = u as IfcDerivedUnit;
         if (du != null && du.UnitType == unit)
         {
             return(du);
         }
     }
     return(null);
 }
예제 #4
0
 public IfcDerivedUnit this[IfcDerivedUnitEnum unit]
 {
     get
     {
         foreach (IfcUnit u in Units)
         {
             IfcDerivedUnit du = u as IfcDerivedUnit;
             if (du != null && du.UnitType == unit)
             {
                 return(du);
             }
         }
         return(null);
     }
 }
예제 #5
0
파일: IFC D.cs 프로젝트: jenca-cloud/ggIFC
		internal static IfcDerivedUnit Parse(string strDef) { IfcDerivedUnit u = new IfcDerivedUnit(); int ipos = 0; parseFields(u, ParserSTEP.SplitLineFields(strDef), ref ipos); return u; }
예제 #6
0
파일: IFC D.cs 프로젝트: jenca-cloud/ggIFC
		internal static void parseFields(IfcDerivedUnit u, List<string> arrFields, ref int ipos) { u.mElements = ParserSTEP.SplitListLinks(arrFields[ipos++]); u.mUnitType = (IfcDerivedUnitEnum)Enum.Parse(typeof(IfcDerivedUnitEnum), arrFields[ipos++].Replace(".", "")); u.mUserDefinedType = arrFields[ipos++]; }
예제 #7
0
파일: IFC D.cs 프로젝트: jenca-cloud/ggIFC
		//internal string UserDefinedType { get { } }

		internal IfcDerivedUnit(IfcDerivedUnit v) : base() { mElements = new List<int>(v.mElements.ToArray()); mUnitType = v.mUnitType; mUserDefinedType = v.mUserDefinedType; }
예제 #8
0
		internal IfcDerivedUnit(DatabaseIfc db, IfcDerivedUnit u) : base(db) { Elements = u.Elements.ConvertAll(x=>db.Factory.Duplicate(x) as IfcDerivedUnitElement); mUnitType = u.mUnitType; mUserDefinedType = u.mUserDefinedType; }