Beispiel #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public SubGridRequestsBase(ITRexTask tRexTask,
                            Guid siteModelID,
                            Guid requestID,
                            Guid trexNodeId,
                            GridDataType requestedGridDataType,
                            bool includeSurveyedSurfaceInformation,
                            ISubGridTreeBitMask prodDataMask,
                            ISubGridTreeBitMask surveyedSurfaceOnlyMask,
                            IFilterSet filters,
                            DesignOffset referenceDesign,
                            AreaControlSet areaControlSet,
                            Action <TSubGridsRequestArgument> customArgumentInitializer,
                            SubGridsRequestComputeStyle subGridsRequestComputeStyle) : this()
 {
     TRexTask                          = tRexTask;
     SiteModelID                       = siteModelID;
     RequestID                         = requestID;
     TRexNodeId                        = trexNodeId;
     RequestedGridDataType             = requestedGridDataType;
     IncludeSurveyedSurfaceInformation = includeSurveyedSurfaceInformation;
     ProdDataMask                      = prodDataMask;
     SurveyedSurfaceOnlyMask           = surveyedSurfaceOnlyMask;
     Filters                     = filters;
     ReferenceDesign             = referenceDesign;
     AreaControlSet              = areaControlSet;
     CustomArgumentInitializer   = customArgumentInitializer;
     SubGridsRequestComputeStyle = SubGridsRequestComputeStyle;
 }
Beispiel #2
0
        /// <summary>
        /// Serializes content from the writer
        /// </summary>
        public override void InternalFromBinary(IBinaryRawReader reader)
        {
            base.InternalFromBinary(reader);

            var version = VersionSerializationHelper.CheckVersionByte(reader, VERSION_NUMBER);

            if (version == 1)
            {
                RequestID    = reader.ReadGuid() ?? Guid.Empty;
                GridDataType = (GridDataType)reader.ReadInt();

                ProdDataMaskBytes            = reader.ReadByteArray();
                SurveyedSurfaceOnlyMaskBytes = reader.ReadByteArray();

                IncludeSurveyedSurfaceInformation = reader.ReadBoolean();

                AreaControlSet = new AreaControlSet();
                AreaControlSet.FromBinary(reader);

                SubGridsRequestComputeStyle = (SubGridsRequestComputeStyle)reader.ReadInt();
            }
        }