コード例 #1
0
ファイル: XbimMaterial.cs プロジェクト: bnaand/xBim-Toolkit
        internal XbimMaterial(XbimDocument document, string materialName)
        {

            _ifcMaterial = document.Model.Instances.New<IfcMaterial>();
            _ifcMaterial.Name = materialName;
            _document = document;
            document.Materials.Add(this);
           
        }
コード例 #2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _materialClassifications.InternalAdd((IfcClassificationNotationSelect)value.EntityVal);
                return;

            case 1:
                _classifiedMaterial = (IfcMaterial)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #3
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
             base.IfcParse(propIndex, value);
             break;
         case 3:
             _representedMaterial = (IfcMaterial) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
コード例 #4
0
        public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                ((IXbimNoNotifyCollection)_materialClassifications).Add((IfcClassificationNotationSelect)value.EntityVal);
                break;

            case 1:
                _classifiedMaterial = (IfcMaterial)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #5
0
        public override bool Equals(object obj)
        {
            // Check for null
            if (obj == null)
            {
                return(false);
            }

            // Check for type
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            // Cast as IfcRoot
            IfcMaterial root = (IfcMaterial)obj;

            return(this == root);
        }
コード例 #6
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _material = (IfcMaterial)(value.EntityVal);
                return;

            case 1:
                _layerThickness = value.RealVal;
                return;

            case 2:
                _isVentilated = value.BooleanVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #7
0
        public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _material = (IfcMaterial)value.EntityVal;
                break;

            case 1:
                _layerThickness = value.RealVal;
                break;

            case 2:
                _isVentilated = value.BooleanVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #8
0
 public virtual void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             ((IXbimNoNotifyCollection)_materialClassifications).Add((IfcClassificationNotationSelect) value.EntityVal);
             break;
         case 1:
             _classifiedMaterial = (IfcMaterial) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
コード例 #9
0
ファイル: XbimMaterial.cs プロジェクト: bnaand/xBim-Toolkit
 internal XbimMaterial(XbimDocument document, IfcMaterial material)
 {
     _ifcMaterial = material;
     _document = document;
 }
コード例 #10
0
ファイル: XbimMaterial.cs プロジェクト: bnaand/xBim-Toolkit
 internal IcimMaterialProperties(IfcMaterial material, IModel model)
 {
     _material = material;
     _model = model;
 }
コード例 #11
0
 public virtual void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _material = (IfcMaterial) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
コード例 #12
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;
     }
 }
コード例 #13
0
 internal XbimSingleMaterialProperties(IfcMaterial material, IModel model)
 {
     _model = model;
     _material = material;
 }