public IfcMaterialLayerSetUsage(IfcMaterialLayerSet __ForLayerSet, IfcLayerSetDirectionEnum __LayerSetDirection, IfcDirectionSenseEnum __DirectionSense, IfcLengthMeasure __OffsetFromReferenceLine) { this._ForLayerSet = __ForLayerSet; this._LayerSetDirection = __LayerSetDirection; this._DirectionSense = __DirectionSense; this._OffsetFromReferenceLine = __OffsetFromReferenceLine; }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: _forLayerSet = (IfcMaterialLayerSet)(value.EntityVal); return; case 1: _layerSetDirection = (IfcLayerSetDirectionEnum)System.Enum.Parse(typeof(IfcLayerSetDirectionEnum), value.EnumVal, true); return; case 2: _directionSense = (IfcDirectionSenseEnum)System.Enum.Parse(typeof(IfcDirectionSenseEnum), value.EnumVal, true); return; case 3: _offsetFromReferenceLine = value.RealVal; return; case 4: _referenceExtent = value.RealVal; return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: base.Parse(propIndex, value, nestedIndex); return; case 7: _offsetDirection = (IfcLayerSetDirectionEnum)System.Enum.Parse(typeof(IfcLayerSetDirectionEnum), value.EnumVal, true); return; case 8: _offsetValues.InternalAdd(value.RealVal); return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
} // optional /// <summary> /// Construct a IfcMaterialLayerSetUsage with all required attributes. /// </summary> public IfcMaterialLayerSetUsage(IfcMaterialLayerSet forLayerSet, IfcLayerSetDirectionEnum layerSetDirection, IfcDirectionSenseEnum directionSense, IfcLengthMeasure offsetFromReferenceLine) : base() { ForLayerSet = forLayerSet; LayerSetDirection = layerSetDirection; DirectionSense = directionSense; OffsetFromReferenceLine = offsetFromReferenceLine; }
public virtual void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _forLayerSet = (IfcMaterialLayerSet)value.EntityVal; break; case 1: _layerSetDirection = (IfcLayerSetDirectionEnum)Enum.Parse(typeof(IfcLayerSetDirectionEnum), value.EnumVal, true); break; case 2: _directionSense = (IfcDirectionSenseEnum)Enum.Parse(typeof(IfcDirectionSenseEnum), value.EnumVal, true); break; case 3: _offsetFromReferenceLine = value.RealVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcMaterialLayerSetUsage(IfcMaterialLayerSet __ForLayerSet, IfcLayerSetDirectionEnum __LayerSetDirection, IfcDirectionSenseEnum __DirectionSense, IfcLengthMeasure __OffsetFromReferenceLine, IfcPositiveLengthMeasure?__ReferenceExtent) { this.ForLayerSet = __ForLayerSet; this.LayerSetDirection = __LayerSetDirection; this.DirectionSense = __DirectionSense; this.OffsetFromReferenceLine = __OffsetFromReferenceLine; this.ReferenceExtent = __ReferenceExtent; }
/// <summary> /// Set Material set usage and creates it if it doesn't exist. /// </summary> /// <param name = "forLayerSet">Material layer set for the usage</param> /// <param name = "layerSetDirection">Direction of the material layer set in the usage</param> /// <param name = "directionSense">Sense of the direction of the usage</param> /// <param name = "offsetFromReferenceLine">Offset from the reference line of the element</param> public static void SetMaterialLayerSetUsage(this IfcRoot element, IfcMaterialLayerSet forLayerSet, IfcLayerSetDirectionEnum layerSetDirection, IfcDirectionSenseEnum directionSense, IfcLengthMeasure offsetFromReferenceLine) { IModel model = element.ModelOf; element.SetMaterialLayerSetUsage(model, forLayerSet, layerSetDirection, directionSense, offsetFromReferenceLine); }
/// <summary> /// Set Material set usage parameters and creates it if it doesn't exist. /// </summary> /// <param name = "model">Model of the element</param> /// <param name = "forLayerSet">Material layer set for the usage</param> /// <param name = "layerSetDirection">Direction of the material layer set in the usage</param> /// <param name = "directionSense">Sense of the direction of the usage</param> /// <param name = "offsetFromReferenceLine">Offset from the reference line of the element</param> public static void SetMaterialLayerSetUsage(this IfcRoot element, IModel model, IfcMaterialLayerSet forLayerSet, IfcLayerSetDirectionEnum layerSetDirection, IfcDirectionSenseEnum directionSense, IfcLengthMeasure offsetFromReferenceLine) { //if some input is not correct, material layer set usage is not created or changed if (element == null || forLayerSet == null) { return; } IfcMaterialLayerSetUsage materialUsage = element.GetOrCreateLayerSetUsage(model); materialUsage.ForLayerSet = forLayerSet; materialUsage.LayerSetDirection = layerSetDirection; materialUsage.DirectionSense = directionSense; materialUsage.OffsetFromReferenceLine = offsetFromReferenceLine; }
public virtual void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _forLayerSet = (IfcMaterialLayerSet) value.EntityVal; break; case 1: _layerSetDirection = (IfcLayerSetDirectionEnum) Enum.Parse(typeof (IfcLayerSetDirectionEnum), value.EnumVal, true); break; case 2: _directionSense = (IfcDirectionSenseEnum) Enum.Parse(typeof (IfcDirectionSenseEnum), value.EnumVal, true); break; case 3: _offsetFromReferenceLine = value.RealVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
internal IfcMaterialLayerWithOffsets(IfcMaterial mat, double thickness, string name, IfcLayerSetDirectionEnum d, double startOffset,double endOffset) : base(mat, thickness, name) { mOffsetDirection = d; mOffsetValues = new double[]{ startOffset,endOffset}; }
internal IfcMaterialLayerWithOffsets(IfcMaterialLayerWithOffsets m) : base(m) { mOffsetDirection = m.mOffsetDirection; mOffsetValues = m.mOffsetValues; }
internal IfcMaterialLayerSetWithOffsets(List<IfcMaterialLayer> layers, string name, IfcLayerSetDirectionEnum dir, double offset1,double offset2) : this(layers, name,dir,offset1) { mOffsetValues[1] = offset2; }
internal IfcMaterialLayerSetWithOffsets(List<IfcMaterialLayer> layers, string name, IfcLayerSetDirectionEnum dir, double offset) : base(layers, name) { mOffsetDirection = dir; mOffsetValues[0] = offset; }
internal IfcMaterialLayerSetUsage(DatabaseIfc m, IfcMaterialLayerSet ls, IfcLayerSetDirectionEnum dir, IfcDirectionSenseEnum sense, double offset) : base(m) { mForLayerSet = ls.mIndex; mLayerSetDirection = dir; mDirectionSense = sense; mOffsetFromReferenceLine = offset; }
/// <summary> /// Set Material set usage parameters and creates it if it doesn't exist. /// </summary> /// <param name = "model">Model of the element</param> /// <param name = "forLayerSet">Material layer set for the usage</param> /// <param name = "layerSetDirection">Direction of the material layer set in the usage</param> /// <param name = "directionSense">Sense of the direction of the usage</param> /// <param name = "offsetFromReferenceLine">Offset from the reference line of the element</param> public static void SetMaterialLayerSetUsage(this IfcRoot element, IModel model, IfcMaterialLayerSet forLayerSet, IfcLayerSetDirectionEnum layerSetDirection, IfcDirectionSenseEnum directionSense, IfcLengthMeasure offsetFromReferenceLine) { //if some input is not correct, material layer set usage is not created or changed if (element == null || forLayerSet == null) return; IfcMaterialLayerSetUsage materialUsage = element.GetOrCreateLayerSetUsage(model); materialUsage.ForLayerSet = forLayerSet; materialUsage.LayerSetDirection = layerSetDirection; materialUsage.DirectionSense = directionSense; materialUsage.OffsetFromReferenceLine = offsetFromReferenceLine; }
public IfcMaterialLayerWithOffsets(IfcMaterial __Material, IfcNonNegativeLengthMeasure __LayerThickness, IfcLogical?__IsVentilated, IfcLabel?__Name, IfcText?__Description, IfcLabel?__Category, IfcInteger?__Priority, IfcLayerSetDirectionEnum __OffsetDirection, IfcLengthMeasure[] __OffsetValues) : base(__Material, __LayerThickness, __IsVentilated, __Name, __Description, __Category, __Priority) { this.OffsetDirection = __OffsetDirection; this.OffsetValues = __OffsetValues; }
public IfcMaterialLayerWithOffsets(IfcMaterial material, IfcNonNegativeLengthMeasure layerThickness, IfcLogical isVentilated, IfcLabel name, IfcText description, IfcLabel category, IfcInteger priority, IfcLayerSetDirectionEnum offsetDirection, List <IfcLengthMeasure> offsetValues) : base(material, layerThickness, isVentilated, name, description, category, priority) { OffsetDirection = offsetDirection; OffsetValues = offsetValues; }
/// <summary> /// Construct a IfcMaterialLayerWithOffsets with all required attributes. /// </summary> public IfcMaterialLayerWithOffsets(IfcNonNegativeLengthMeasure layerThickness, IfcLayerSetDirectionEnum offsetDirection, List <IfcLengthMeasure> offsetValues) : base(layerThickness) { OffsetDirection = offsetDirection; OffsetValues = offsetValues; }
/// <summary> /// Set Material set usage and creates it if it doesn't exist. /// </summary> /// <param name = "forLayerSet">Material layer set for the usage</param> /// <param name = "layerSetDirection">Direction of the material layer set in the usage</param> /// <param name = "directionSense">Sense of the direction of the usage</param> /// <param name = "offsetFromReferenceLine">Offset from the reference line of the element</param> public static void SetMaterialLayerSetUsage(this IfcRoot element, IfcMaterialLayerSet forLayerSet, IfcLayerSetDirectionEnum layerSetDirection, IfcDirectionSenseEnum directionSense, IfcLengthMeasure offsetFromReferenceLine) { IModel model = element.ModelOf; element.SetMaterialLayerSetUsage(model, forLayerSet, layerSetDirection, directionSense, offsetFromReferenceLine); }
internal IfcMaterialLayerSetUsage(IfcMaterialLayerSetUsage m) : base(m) { mForLayerSet = m.mForLayerSet; mLayerSetDirection = m.mLayerSetDirection; mDirectionSense = m.mDirectionSense; mOffsetFromReferenceLine = m.mOffsetFromReferenceLine; mReferenceExtent = m.mReferenceExtent; }