public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: _basisCurve = (IfcCurve)(value.EntityVal); return; case 1: _trim1.InternalAdd((IfcTrimmingSelect)value.EntityVal); return; case 2: _trim2.InternalAdd((IfcTrimmingSelect)value.EntityVal); return; case 3: _senseAgreement = value.BooleanVal; return; case 4: _masterRepresentation = (IfcTrimmingPreference)System.Enum.Parse(typeof(IfcTrimmingPreference), value.EnumVal, true); return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _basisCurve = (IfcCurve)value.EntityVal; break; case 1: _trim1.Add((IfcTrimmingSelect)value.EntityVal); break; case 2: _trim2.Add((IfcTrimmingSelect)value.EntityVal); break; case 3: _senseAgreement = value.BooleanVal; break; case 4: _masterRepresentation = (IfcTrimmingPreference)Enum.Parse(typeof(IfcTrimmingPreference), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcTrimmedCurve(IfcCurve __BasisCurve, IfcTrimmingSelect[] __Trim1, IfcTrimmingSelect[] __Trim2, IfcBoolean __SenseAgreement, IfcTrimmingPreference __MasterRepresentation) { this._BasisCurve = __BasisCurve; this._Trim1 = new HashSet<IfcTrimmingSelect>(__Trim1); this._Trim2 = new HashSet<IfcTrimmingSelect>(__Trim2); this._SenseAgreement = __SenseAgreement; this._MasterRepresentation = __MasterRepresentation; }
public IfcTrimmedCurve(IfcCurve basisCurve, List <IfcTrimmingSelect> trim1, List <IfcTrimmingSelect> trim2, IfcBoolean senseAgreement, IfcTrimmingPreference masterRepresentation) : base() { BasisCurve = basisCurve; Trim1 = trim1; Trim2 = trim2; SenseAgreement = senseAgreement; MasterRepresentation = masterRepresentation; }
internal IfcTrimmedCurve(IfcCurve basis, IfcTrimmingSelect start, IfcTrimmingSelect end, bool senseAgreement, IfcTrimmingPreference tp) : base(basis.mDatabase) { mBasisCurve = basis.mIndex; mTrim1 = start; mTrim2 = end; mSenseAgreement = senseAgreement; mMasterRepresentation = tp; }
internal IfcTrimmedCurve(IfcTrimmedCurve c) : base(c) { mBasisCurve = c.mBasisCurve; mTrim1 = c.mTrim1; mTrim2 = c.mTrim2; mSenseAgreement = c.mSenseAgreement; mMasterRepresentation = c.mMasterRepresentation; }