/// <summary> /// Construct a IfcLightSourceGoniometric with all required attributes. /// </summary> public IfcLightSourceGoniometric(IfcColourRgb lightColour, IfcAxis2Placement3D position, IfcThermodynamicTemperatureMeasure colourTemperature, IfcLuminousFluxMeasure luminousFlux, IfcLightEmissionSourceEnum lightEmissionSource, IfcLightDistributionDataSourceSelect lightDistributionDataSource) : base(lightColour) { Position = position; ColourTemperature = colourTemperature; LuminousFlux = luminousFlux; LightEmissionSource = lightEmissionSource; LightDistributionDataSource = lightDistributionDataSource; }
public IfcLightSourceGoniometric(IfcLabel name, IfcColourRgb lightColour, IfcNormalisedRatioMeasure ambientIntensity, IfcNormalisedRatioMeasure intensity, IfcAxis2Placement3D position, IfcColourRgb colourAppearance, IfcThermodynamicTemperatureMeasure colourTemperature, IfcLuminousFluxMeasure luminousFlux, IfcLightEmissionSourceEnum lightEmissionSource, IfcLightDistributionDataSourceSelect lightDistributionDataSource) : base(name, lightColour, ambientIntensity, intensity) { Position = position; ColourAppearance = colourAppearance; ColourTemperature = colourTemperature; LuminousFlux = luminousFlux; LightEmissionSource = lightEmissionSource; LightDistributionDataSource = lightDistributionDataSource; }
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); }
internal IfcLightSourceGoniometric(IfcLightSourceGoniometric el) : base(el) { mPosition = el.mPosition; mColourAppearance = el.mColourAppearance; mColourTemperature = el.mColourTemperature; mLuminousFlux = el.mLuminousFlux; mLightEmissionSource = el.mLightEmissionSource; mLightDistributionDataSource = el.mLightDistributionDataSource; }
public IfcLightSourceGoniometric(IfcLabel?__Name, IfcColourRgb __LightColour, IfcNormalisedRatioMeasure?__AmbientIntensity, IfcNormalisedRatioMeasure?__Intensity, IfcAxis2Placement3D __Position, IfcColourRgb __ColourAppearance, IfcThermodynamicTemperatureMeasure __ColourTemperature, IfcLuminousFluxMeasure __LuminousFlux, IfcLightEmissionSourceEnum __LightEmissionSource, IfcLightDistributionDataSourceSelect __LightDistributionDataSource) : base(__Name, __LightColour, __AmbientIntensity, __Intensity) { this._Position = __Position; this._ColourAppearance = __ColourAppearance; this._ColourTemperature = __ColourTemperature; this._LuminousFlux = __LuminousFlux; this._LightEmissionSource = __LightEmissionSource; this._LightDistributionDataSource = __LightDistributionDataSource; }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: base.IfcParse(propIndex, value); break; case 4: _Position = (IfcAxis2Placement3D)value.EntityVal; break; case 5: _ColourAppearance = (IfcColourRgb)value.EntityVal; break; case 6: _ColourTemperature = value.RealVal; break; case 7: _LuminousFlux = value.RealVal; break; case 8: _LightEmissionSource = (IfcLightEmissionSourceEnum)Enum.Parse(typeof(IfcLightEmissionSourceEnum), value.EnumVal); break; case 9: _LightDistributionDataSource = (IfcLightDistributionDataSourceSelect)value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: case 1: case 2: case 3: base.Parse(propIndex, value, nestedIndex); return; case 4: _position = (IfcAxis2Placement3D)(value.EntityVal); return; case 5: _colourAppearance = (IfcColourRgb)(value.EntityVal); return; case 6: _colourTemperature = value.RealVal; return; case 7: _luminousFlux = value.RealVal; return; case 8: _lightEmissionSource = (IfcLightEmissionSourceEnum)System.Enum.Parse(typeof(IfcLightEmissionSourceEnum), value.EnumVal, true); return; case 9: _lightDistributionDataSource = (IfcLightDistributionDataSourceSelect)(value.EntityVal); 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: case 1: case 2: case 3: base.IfcParse(propIndex, value); break; case 4: _Position = (IfcAxis2Placement3D)value.EntityVal; break; case 5: _ColourAppearance = (IfcColourRgb)value.EntityVal; break; case 6: _ColourTemperature = value.RealVal; break; case 7: _LuminousFlux = value.RealVal; break; case 8: _LightEmissionSource = (IfcLightEmissionSourceEnum)Enum.Parse(typeof(IfcLightEmissionSourceEnum), value.EnumVal); break; case 9: _LightDistributionDataSource = (IfcLightDistributionDataSourceSelect)value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
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); }
internal IfcLightSourceGoniometric(IfcLightSourceGoniometric el) : base(el) { mPosition = el.mPosition; mColourAppearance = el.mColourAppearance; mColourTemperature = el.mColourTemperature; mLuminousFlux = el.mLuminousFlux; mLightEmissionSource = el.mLightEmissionSource; mLightDistributionDataSource = el.mLightDistributionDataSource; }