Пример #1
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             base.IfcParse(propIndex, value);
             break;
         case 1:
             _side = (IfcSurfaceSide) Enum.Parse(typeof (IfcSurfaceSide), value.EnumVal, true);
             break;
         case 2:
             _styles.Add((IfcSurfaceStyleElementSelect) value.EntityVal);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Пример #2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 1:
                _side = (IfcSurfaceSide)System.Enum.Parse(typeof(IfcSurfaceSide), value.EnumVal, true);
                return;

            case 2:
                _styles.InternalAdd((IfcSurfaceStyleElementSelect)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:
                base.IfcParse(propIndex, value);
                break;

            case 1:
                _side = (IfcSurfaceSide)Enum.Parse(typeof(IfcSurfaceSide), value.EnumVal, true);
                break;

            case 2:
                _styles.Add((IfcSurfaceStyleElementSelect)value.EntityVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Пример #4
0
 public IfcSurfaceStyle(IfcLabel?__Name, IfcSurfaceSide __Side, IfcSurfaceStyleElementSelect[] __Styles)
     : base(__Name)
 {
     this._Side   = __Side;
     this._Styles = new HashSet <IfcSurfaceStyleElementSelect>(__Styles);
 }
Пример #5
0
 public IfcSurfaceStyle(IfcLabel name, IfcSurfaceSide side, List <IfcSurfaceStyleElementSelect> styles) : base(name)
 {
     Side   = side;
     Styles = styles;
 }
Пример #6
0
		internal IfcSurfaceStyle(IfcSurfaceStyle s) : base(s) { mSide = s.mSide; mStyles.AddRange(s.mStyles); }