Exemplo n.º 1
0
 public IfcCurveStyle(IfcLabel?__Name, IfcCurveFontOrScaledCurveFontSelect __CurveFont, IfcSizeSelect __CurveWidth, IfcColour __CurveColour)
     : base(__Name)
 {
     this._CurveFont   = __CurveFont;
     this._CurveWidth  = __CurveWidth;
     this._CurveColour = __CurveColour;
 }
Exemplo n.º 2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 1:
                _curveFont = (IfcCurveFontOrScaledCurveFontSelect)(value.EntityVal);
                return;

            case 2:
                _curveWidth = (IfcSizeSelect)(value.EntityVal);
                return;

            case 3:
                _curveColour = (IfcColour)(value.EntityVal);
                return;

            case 4:
                _modelOrDraughting = value.BooleanVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Exemplo n.º 3
0
 public IfcCurveStyle(IfcLabel?__Name, IfcCurveFontOrScaledCurveFontSelect __CurveFont, IfcSizeSelect __CurveWidth, IfcColour __CurveColour, IfcBoolean?__ModelOrDraughting)
     : base(__Name)
 {
     this._CurveFont         = __CurveFont;
     this._CurveWidth        = __CurveWidth;
     this._CurveColour       = __CurveColour;
     this._ModelOrDraughting = __ModelOrDraughting;
 }
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _colour = (IfcColour)(value.EntityVal);
                return;

            case 1:
                _backgroundColour = (IfcColour)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Exemplo n.º 5
0
        public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _colour = (IfcColour)value.EntityVal;
                break;

            case 1:
                _backgroundColour = (IfcColour)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Exemplo n.º 6
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                base.IfcParse(propIndex, value);
                break;

            case 1:
                _curveFont = (IfcCurveFontOrScaledCurveFontSelect)value.EntityVal;
                break;

            case 2:
                _curveWidth = (IfcSizeSelect)value.EntityVal;
                break;

            case 3:
                _curveColour = (IfcColour)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Exemplo n.º 7
0
 public IfcTextStyleForDefinedFont(IfcColour __Colour, IfcColour __BackgroundColour)
 {
     this._Colour           = __Colour;
     this._BackgroundColour = __BackgroundColour;
 }
Exemplo n.º 8
0
		internal IfcCurveStyle(DatabaseIfc m, string name, IfcCurveFontOrScaledCurveFontSelect font, IfcSizeSelect width, IfcColour col)
			: base(m, name) { if (font != null) mCurveFont = font.Index; if (width != null) mCurveWidth = width.ToString(); if (col != null) mCurveColour = col.Index; }
 public virtual void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _colour = (IfcColour) value.EntityVal;
             break;
         case 1:
             _backgroundColour = (IfcColour) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Exemplo n.º 10
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             base.IfcParse(propIndex, value);
             break;
         case 1:
             _curveFont = (IfcCurveFontOrScaledCurveFontSelect) value.EntityVal;
             break;
         case 2:
             _curveWidth = (IfcSizeSelect) value.EntityVal;
             break;
         case 3:
             _curveColour = (IfcColour) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }