Exemplo n.º 1
0
        /// <summary>
        /// Create a new surveyed surface in the list based on the provided details
        /// </summary>
        public ISurveyedSurface AddSurveyedSurfaceDetails(Guid surveyedSurfaceUid,
                                                          DesignDescriptor designDescriptor,
                                                          DateTime asAtDate,
                                                          BoundingWorldExtent3D extents)
        {
            var ss = Find(x => x.ID == surveyedSurfaceUid);

            if (ss == null) // No existing surveyed surface
            {
                ss = new SurveyedSurface(surveyedSurfaceUid, designDescriptor, asAtDate, extents);
                Add(ss);
            }

            return(ss);
        }
Exemplo n.º 2
0
        public void Read(BinaryReader reader)
        {
            var version = VersionSerializationHelper.CheckVersionByte(reader, VERSION_NUMBER);

            if (version == 1)
            {
                var theCount = reader.ReadInt32();
                for (var i = 0; i < theCount; i++)
                {
                    var surveyedSurface = new SurveyedSurface();
                    surveyedSurface.Read(reader);
                    Add(surveyedSurface);
                }
            }
        }