Пример #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _vertexGeometry = (IfcPoint)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Пример #2
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _vertexGeometry = (IfcPoint)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Пример #3
0
        private IfcDimensionCount DimElem(object elem)
        {
            IfcPoint   pt = elem as IfcPoint;
            IfcCurve   cv = elem as IfcCurve;
            IfcSurface sf = elem as IfcSurface;

            if (pt != null)
            {
                return(pt.Dim);
            }
            if (cv != null)
            {
                return(cv.Dim);
            }
            if (sf != null)
            {
                return(sf.Dim);
            }
            return(0);
        }
Пример #4
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 3:
                _fillStyleTarget = (IfcPoint)(value.EntityVal);
                return;

            case 4:
                _globalOrLocal = (IfcGlobalOrLocalEnum)System.Enum.Parse(typeof(IfcGlobalOrLocalEnum), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Пример #5
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
                base.IfcParse(propIndex, value);
                break;

            case 3:
                _fillStyleTarget = (IfcPoint)value.EntityVal;
                break;

            case 4:
                _globalOrLocal = (IfcGlobalOrLocalEnum)Enum.Parse(typeof(IfcGlobalOrLocalEnum), value.EnumVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Пример #6
0
 public IXbimPoint CreatePoint(IfcPoint pt)
 {
     return(_engine.CreatePoint(pt));
 }
Пример #7
0
 public IfcVertexPoint(IfcPoint __VertexGeometry)
 {
     this.VertexGeometry = __VertexGeometry;
 }
Пример #8
0
 public IfcAnnotationFillAreaOccurrence(IfcRepresentationItem __Item, IfcPresentationStyleAssignment[] __Styles, IfcLabel?__Name, IfcPoint __FillStyleTarget, IfcGlobalOrLocalEnum?__GlobalOrLocal)
     : base(__Item, __Styles, __Name)
 {
     this._FillStyleTarget = __FillStyleTarget;
     this._GlobalOrLocal   = __GlobalOrLocal;
 }