示例#1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 2:
                _coordinateSpaceDimension = value.IntegerVal;
                return;

            case 3:
                _precision = value.RealVal;
                return;

            case 4:
                _worldCoordinateSystem = (IfcAxis2Placement)(value.EntityVal);
                return;

            case 5:
                _trueNorth = (IfcDirection)(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:
            case 1:
                base.IfcParse(propIndex, value);
                break;

            case 2:
                _coordinateSpaceDimension = (sbyte)value.IntegerVal;
                break;

            case 3:
                _precision = value.RealVal;
                break;

            case 4:
                _worldCoordinateSystem = (IfcAxis2Placement)value.EntityVal;
                break;

            case 5:
                _trueNorth = (IfcDirection)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 public IfcGeometricRepresentationContext(IfcLabel?__ContextIdentifier, IfcLabel?__ContextType, IfcDimensionCount __CoordinateSpaceDimension, IfcReal?__Precision, IfcAxis2Placement __WorldCoordinateSystem, IfcDirection __TrueNorth)
     : base(__ContextIdentifier, __ContextType)
 {
     this._CoordinateSpaceDimension = __CoordinateSpaceDimension;
     this._Precision             = __Precision;
     this._WorldCoordinateSystem = __WorldCoordinateSystem;
     this._TrueNorth             = __TrueNorth;
 }
示例#4
0
 public GeometricRepresentationContext(IfcStore model, string contextType, long coordinateSpaceDim, double precision, PlacementAxis3D worldCoordinateSystem)
 {
     this.contextType = contextType;
     this.coordinateSpaceDimension = coordinateSpaceDim;
     this.precision             = precision;
     this.worldCoordinateSystem = worldCoordinateSystem;
     this.Model = model;
     ifcRepresenationContext = Model.Instances.New <IfcGeometricRepresentationContext>(r =>
     {
         r.ContextType = contextType;
         r.CoordinateSpaceDimension = coordinateSpaceDim;
         r.Precision             = precision;
         r.WorldCoordinateSystem = worldCoordinateSystem.IfcAxis2Placement3D;
     });
 }
示例#5
0
        public override string WhereRule()
        {
            IfcDimensionCount dim = Dim;
            string            err = "";

            if (dim <= 0)
            {
                err += "WR21 GeometricSet: There must be at least one Element in the set with a valid dimension count\n";
            }
            foreach (IfcGeometricSetSelect item in _elements)
            {
                if (DimElem(item) != dim)
                {
                    err += "WR21 GeometricSet: All elements within a geometric set shall have the same dimensionality.";
                    return(err);
                }
            }
            return(err);
        }
 public IfcGeometricRepresentationContext(IfcLabel?__ContextIdentifier, IfcLabel?__ContextType, IfcDimensionCount __CoordinateSpaceDimension, IfcReal?__Precision, IfcAxis2Placement __WorldCoordinateSystem, IfcDirection __TrueNorth)
     : base(__ContextIdentifier, __ContextType)
 {
     this.CoordinateSpaceDimension = __CoordinateSpaceDimension;
     this.Precision              = __Precision;
     this.WorldCoordinateSystem  = __WorldCoordinateSystem;
     this.TrueNorth              = __TrueNorth;
     this.HasSubContexts         = new HashSet <IfcGeometricRepresentationSubContext>();
     this.HasCoordinateOperation = new HashSet <IfcCoordinateOperation>();
 }
 public IfcGeometricRepresentationSubContext(IfcLabel?__ContextIdentifier, IfcLabel?__ContextType, IfcDimensionCount __CoordinateSpaceDimension, IfcReal?__Precision, IfcAxis2Placement __WorldCoordinateSystem, IfcDirection __TrueNorth, IfcGeometricRepresentationContext __ParentContext, IfcPositiveRatioMeasure?__TargetScale, IfcGeometricProjectionEnum __TargetView, IfcLabel?__UserDefinedTargetView)
     : base(__ContextIdentifier, __ContextType, __CoordinateSpaceDimension, __Precision, __WorldCoordinateSystem, __TrueNorth)
 {
     this._ParentContext         = __ParentContext;
     this._TargetScale           = __TargetScale;
     this._TargetView            = __TargetView;
     this._UserDefinedTargetView = __UserDefinedTargetView;
 }