Ejemplo n.º 1
0
 public IfcBSplineSurface(IfcInteger __UDegree, IfcInteger __VDegree, IfcCartesianPoint[] __ControlPointsList, IfcBSplineSurfaceForm __SurfaceForm, IfcLogical __UClosed, IfcLogical __VClosed, IfcLogical __SelfIntersect)
 {
     this._UDegree           = __UDegree;
     this._VDegree           = __VDegree;
     this._ControlPointsList = new List <IfcCartesianPoint>(__ControlPointsList);
     this._SurfaceForm       = __SurfaceForm;
     this._UClosed           = __UClosed;
     this._VClosed           = __VClosed;
     this._SelfIntersect     = __SelfIntersect;
 }
Ejemplo n.º 2
0
        internal static bool AsBool(this IfcLogical toCast)
        {
            var val = (bool?)toCast.Value;

            if (!val.HasValue)
            {
                throw new Exception("IfcLogical value not defined attempting bool conversion.");
            }
            return(val.Value);
        }
Ejemplo n.º 3
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _segments.InternalAdd((IfcCompositeCurveSegment)value.EntityVal);
                return;

            case 1:
                _selfIntersect = value.BooleanVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Ejemplo n.º 4
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _basisCurve = (IfcCurve)(value.EntityVal);
                return;

            case 1:
                _distance = value.RealVal;
                return;

            case 2:
                _selfIntersect = value.BooleanVal;
                return;

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

            case 1:
                _distance = value.RealVal;
                break;

            case 2:
                _selfIntersect = value.BooleanVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Ejemplo n.º 6
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _uDegree = value.IntegerVal;
                return;

            case 1:
                _vDegree = value.IntegerVal;
                return;

            case 2:
                ((ItemSet <IfcCartesianPoint>)_controlPointsList
                 .InternalGetAt(nestedIndex[0]))
                .InternalAdd((IfcCartesianPoint)(value.EntityVal));
                return;

            case 3:
                _surfaceForm = (IfcBSplineSurfaceForm)System.Enum.Parse(typeof(IfcBSplineSurfaceForm), value.EnumVal, true);
                return;

            case 4:
                _uClosed = value.BooleanVal;
                return;

            case 5:
                _vClosed = value.BooleanVal;
                return;

            case 6:
                _selfIntersect = value.BooleanVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Ejemplo n.º 7
0
 public IfcBSplineCurveWithKnots(IfcInteger __Degree, IfcCartesianPoint[] __ControlPointsList, IfcBSplineCurveForm __CurveForm, IfcLogical __ClosedCurve, IfcLogical __SelfIntersect, IfcInteger[] __KnotMultiplicities, IfcParameterValue[] __Knots, IfcKnotType __KnotSpec)
     : base(__Degree, __ControlPointsList, __CurveForm, __ClosedCurve, __SelfIntersect)
 {
     this.KnotMultiplicities = new List <IfcInteger>(__KnotMultiplicities);
     this.Knots    = new List <IfcParameterValue>(__Knots);
     this.KnotSpec = __KnotSpec;
 }
Ejemplo n.º 8
0
 public IfcCompositeCurveOnSurface(IfcCompositeCurveSegment[] __Segments, IfcLogical __SelfIntersect)
     : base(__Segments, __SelfIntersect)
 {
 }
Ejemplo n.º 9
0
 public IfcBoundaryCurve(IfcCompositeCurveSegment[] __Segments, IfcLogical __SelfIntersect)
     : base(__Segments, __SelfIntersect)
 {
 }
Ejemplo n.º 10
0
 public IfcBSplineSurfaceWithKnots(IfcInteger __UDegree, IfcInteger __VDegree, IfcCartesianPoint[] __ControlPointsList, IfcBSplineSurfaceForm __SurfaceForm, IfcLogical __UClosed, IfcLogical __VClosed, IfcLogical __SelfIntersect, IfcInteger[] __UMultiplicities, IfcInteger[] __VMultiplicities, IfcParameterValue[] __UKnots, IfcParameterValue[] __VKnots, IfcKnotType __KnotSpec)
     : base(__UDegree, __VDegree, __ControlPointsList, __SurfaceForm, __UClosed, __VClosed, __SelfIntersect)
 {
     this.UMultiplicities = new List <IfcInteger>(__UMultiplicities);
     this.VMultiplicities = new List <IfcInteger>(__VMultiplicities);
     this.UKnots          = new List <IfcParameterValue>(__UKnots);
     this.VKnots          = new List <IfcParameterValue>(__VKnots);
     this.KnotSpec        = __KnotSpec;
 }
Ejemplo n.º 11
0
 public IfcShapeAspect(IfcShapeModel[] __ShapeRepresentations, IfcLabel?__Name, IfcText?__Description, IfcLogical __ProductDefinitional, IfcProductRepresentationSelect __PartOfProductDefinitionShape)
 {
     this.ShapeRepresentations = new List <IfcShapeModel>(__ShapeRepresentations);
     this.Name                         = __Name;
     this.Description                  = __Description;
     this.ProductDefinitional          = __ProductDefinitional;
     this.PartOfProductDefinitionShape = __PartOfProductDefinitionShape;
     this.HasExternalReferences        = new HashSet <IfcExternalReferenceRelationship>();
 }
Ejemplo n.º 12
0
 public IfcShapeAspect(IfcShapeModel[] __ShapeRepresentations, IfcLabel?__Name, IfcText?__Description, IfcLogical __ProductDefinitional, IfcProductRepresentationSelect __PartOfProductDefinitionShape)
 {
     this._ShapeRepresentations = new List <IfcShapeModel>(__ShapeRepresentations);
     this._Name                         = __Name;
     this._Description                  = __Description;
     this._ProductDefinitional          = __ProductDefinitional;
     this._PartOfProductDefinitionShape = __PartOfProductDefinitionShape;
 }
Ejemplo n.º 13
0
 public IfcCompositeCurve(IfcCompositeCurveSegment[] __Segments, IfcLogical __SelfIntersect)
 {
     this._Segments      = new List <IfcCompositeCurveSegment>(__Segments);
     this._SelfIntersect = __SelfIntersect;
 }
Ejemplo n.º 14
0
 protected IfcBSplineCurve(IfcInteger __Degree, IfcCartesianPoint[] __ControlPointsList, IfcBSplineCurveForm __CurveForm, IfcLogical __ClosedCurve, IfcLogical __SelfIntersect)
 {
     this.Degree            = __Degree;
     this.ControlPointsList = new List <IfcCartesianPoint>(__ControlPointsList);
     this.CurveForm         = __CurveForm;
     this.ClosedCurve       = __ClosedCurve;
     this.SelfIntersect     = __SelfIntersect;
 }
Ejemplo n.º 15
0
 public IfcPresentationLayerWithStyle(IfcLabel __Name, IfcText?__Description, IfcLayeredItem[] __AssignedItems, IfcIdentifier?__Identifier, IfcLogical __LayerOn, IfcLogical __LayerFrozen, IfcLogical __LayerBlocked, IfcPresentationStyle[] __LayerStyles)
     : base(__Name, __Description, __AssignedItems, __Identifier)
 {
     this._LayerOn      = __LayerOn;
     this._LayerFrozen  = __LayerFrozen;
     this._LayerBlocked = __LayerBlocked;
     this._LayerStyles  = new HashSet <IfcPresentationStyle>(__LayerStyles);
 }
Ejemplo n.º 16
0
 public IfcOffsetCurve2D(IfcCurve __BasisCurve, IfcLengthMeasure __Distance, IfcLogical __SelfIntersect)
     : base(__BasisCurve)
 {
     this.Distance      = __Distance;
     this.SelfIntersect = __SelfIntersect;
 }
Ejemplo n.º 17
0
 public IfcRationalBSplineCurveWithKnots(IfcInteger __Degree, IfcCartesianPoint[] __ControlPointsList, IfcBSplineCurveForm __CurveForm, IfcLogical __ClosedCurve, IfcLogical __SelfIntersect, IfcInteger[] __KnotMultiplicities, IfcParameterValue[] __Knots, IfcKnotType __KnotSpec, IfcReal[] __WeightsData)
     : base(__Degree, __ControlPointsList, __CurveForm, __ClosedCurve, __SelfIntersect, __KnotMultiplicities, __Knots, __KnotSpec)
 {
     this.WeightsData = new List <IfcReal>(__WeightsData);
 }