Example #1
0
        /// <summary>
        /// Writes the content of this instance to a persistent storage area.
        /// </summary>
        /// <param name="editSerializer">The mechanism for storing content.</param>
        public override void WriteData(EditSerializer editSerializer)
        {
            base.WriteData(editSerializer);

            editSerializer.WriteFeatureRef <PointFeature>(DataField.From, m_From);
            editSerializer.WriteFeatureRef <PointFeature>(DataField.To, m_To);
            editSerializer.WriteString(DataField.EntryString, m_EntryString);
            editSerializer.WriteDistanceUnit(DataField.DefaultEntryUnit, m_DefaultEntryUnit);
            editSerializer.WriteEntity(DataField.PointType, EditingController.Current.Project.DefaultPointType);
            editSerializer.WriteEntity(DataField.LineType, EditingController.Current.Project.DefaultLineType);
            editSerializer.WriteIdMappings(DataField.Ids, this.Features);
        }
        /// <summary>
        /// Writes the content of this instance to a persistent storage area.
        /// </summary>
        /// <param name="editSerializer">The mechanism for storing content.</param>
        public override void WriteData(EditSerializer editSerializer)
        {
            base.WriteData(editSerializer);

            editSerializer.WriteFeatureRef <LineFeature>(DataField.Line, m_Line);
            editSerializer.WritePersistent <LineSubdivisionFace>(DataField.Face, m_Face);

            // When we initially write the primary face, this will always be undefined. Only the
            // alternate face will write out the reference to the other side.
            if (OtherSide != null)
            {
                editSerializer.WriteInternalId(DataField.OtherSide, OtherSide.InternalId);
            }

            editSerializer.WriteEntity(DataField.PointType, EditingController.Current.Project.DefaultPointType);
            editSerializer.WriteIdMappings(DataField.Ids, this.Features);
        }
Example #3
0
        /// <summary>
        /// Writes the content of this instance to a persistent storage area.
        /// </summary>
        /// <param name="editSerializer">The mechanism for storing content.</param>
        public override void WriteData(EditSerializer editSerializer)
        {
            base.WriteData(editSerializer);

            editSerializer.WriteFeatureRef<PointFeature>(DataField.From, m_From);
            editSerializer.WriteFeatureRef<PointFeature>(DataField.To, m_To);
            editSerializer.WriteString(DataField.EntryString, m_EntryString);
            editSerializer.WriteDistanceUnit(DataField.DefaultEntryUnit, m_DefaultEntryUnit);
            editSerializer.WriteEntity(DataField.PointType, EditingController.Current.Project.DefaultPointType);
            editSerializer.WriteEntity(DataField.LineType, EditingController.Current.Project.DefaultLineType);
            editSerializer.WriteIdMappings(DataField.Ids, this.Features);
        }
Example #4
0
 /// <summary>
 /// Writes the content of this instance to a persistent storage area.
 /// </summary>
 /// <param name="editSerializer">The mechanism for storing content.</param>
 public void WriteData(EditSerializer editSerializer)
 {
     editSerializer.WriteInternalId(DataField.Id, m_InternalId);
     editSerializer.WriteEntity(DataField.Entity, m_What);
     editSerializer.WriteFeatureId(m_Id);
 }
        /// <summary>
        /// Writes the content of this instance to a persistent storage area.
        /// </summary>
        /// <param name="editSerializer">The mechanism for storing content.</param>
        public override void WriteData(EditSerializer editSerializer)
        {
            base.WriteData(editSerializer);

            editSerializer.WriteFeatureRef<LineFeature>(DataField.Line, m_Line);
            editSerializer.WritePersistent<LineSubdivisionFace>(DataField.Face, m_Face);

            // When we initially write the primary face, this will always be undefined. Only the
            // alternate face will write out the reference to the other side.
            if (OtherSide != null)
                editSerializer.WriteInternalId(DataField.OtherSide, OtherSide.InternalId);

            editSerializer.WriteEntity(DataField.PointType, EditingController.Current.Project.DefaultPointType);
            editSerializer.WriteIdMappings(DataField.Ids, this.Features);
        }