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()));
            }
        }
Beispiel #4
0
        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:
                _propertySource =
                    (IfcPropertySourceEnum)Enum.Parse(typeof(IfcPropertySourceEnum), value.EnumVal, true);
                break;

            case 5:
                _flowConditionTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 6:
                _velocityTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 7:
                _flowrateTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 8:
                _fluid = (IfcMaterial)value.EntityVal;
                break;

            case 9:
                _pressureTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 10:
                _userDefinedPropertySource = value.StringVal;
                break;

            case 11:
                _temperatureSingleValue = value.RealVal;
                break;

            case 12:
                _wetBulbTemperatureSingleValue = value.RealVal;
                break;

            case 13:
                _wetBulbTemperatureTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 14:
                _temperatureTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 15:
                _flowrateSingleValue = value.EntityVal;
                break;

            case 16:
                _flowConditionSingleValue = value.RealVal;
                break;

            case 17:
                _velocitySingleValue = value.RealVal;
                break;

            case 18:
                _pressureSingleValue = value.RealVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }