Exemplo n.º 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()));
            }
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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()));
            }
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 6
0
 public IXbimPoint CreatePoint(IfcPoint pt)
 {
     return(_engine.CreatePoint(pt));
 }
Exemplo n.º 7
0
 public IfcVertexPoint(IfcPoint __VertexGeometry)
 {
     this.VertexGeometry = __VertexGeometry;
 }
Exemplo n.º 8
0
 public IfcAnnotationFillAreaOccurrence(IfcRepresentationItem __Item, IfcPresentationStyleAssignment[] __Styles, IfcLabel?__Name, IfcPoint __FillStyleTarget, IfcGlobalOrLocalEnum?__GlobalOrLocal)
     : base(__Item, __Styles, __Name)
 {
     this._FillStyleTarget = __FillStyleTarget;
     this._GlobalOrLocal   = __GlobalOrLocal;
 }