/// <summary>
        /// Exchanges update items that were previously generated via
        /// a call to <see cref="GetUpdateItems"/>.
        /// </summary>
        /// <param name="data">The update data to apply to the edit (modified to
        /// hold the values that were previously defined for the edit)</param>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_Direction = data.ExchangeObservation <Direction>(this, DataField.Direction, m_Direction);
            m_Distance  = data.ExchangeObservation <Observation>(this, DataField.Distance, m_Distance);
            m_From      = data.ExchangeFeature <PointFeature>(this, DataField.From, m_From);
            m_Default   = data.ExchangeValue <bool>(DataField.Default, m_Default);

            AssignObservedLengths();
        }
示例#2
0
        /// <summary>
        /// Exchanges update items that were previously generated via
        /// a call to <see cref="GetUpdateItems"/>.
        /// </summary>
        /// <param name="data">The update data to apply to the edit (modified to
        /// hold the values that were previously defined for the edit)</param>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_Direction = data.ExchangeObservation <Direction>(this, DataField.Direction, m_Direction);
            m_Length    = data.ExchangeObservation <Observation>(this, DataField.Length, m_Length);

            if (m_Line != null)
            {
                m_Line.ObservedLength = (m_Length as Distance);
            }
        }
示例#3
0
        /// <summary>
        /// Exchanges update items that were previously generated via
        /// a call to <see cref="GetUpdateItems"/>.
        /// </summary>
        /// <param name="data">The update data to apply to the edit (modified to
        /// hold the values that were previously defined for the edit)</param>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_Distance1 = data.ExchangeObservation <Observation>(this, DataField.Distance1, m_Distance1);
            m_From1     = data.ExchangeFeature <PointFeature>(this, DataField.From1, m_From1);
            m_Distance2 = data.ExchangeObservation <Observation>(this, DataField.Distance2, m_Distance2);
            m_From2     = data.ExchangeFeature <PointFeature>(this, DataField.From2, m_From2);
            m_Default   = data.ExchangeValue <bool>(DataField.Default, m_Default);

            AssignObservedLengths();
        }
示例#4
0
        /// <summary>
        /// Exchanges update items that were previously generated via
        /// a call to <see cref="GetUpdateItems"/>.
        /// </summary>
        /// <param name="data">The update data to apply to the edit (modified to
        /// hold the values that were previously defined for the edit)</param>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_IsExtendFromEnd = data.ExchangeValue <bool>(DataField.ExtendFromEnd, m_IsExtendFromEnd);
            m_Length          = data.ExchangeObservation <Distance>(this, DataField.Distance, m_Length);

            if (m_NewLine != null)
            {
                m_NewLine.ObservedLength = m_Length;
            }
        }
        /// <summary>
        /// Modifies this edit by applying the values in the supplied update items
        /// (as produced via a prior call to <see cref="GetUpdateItems"/>).
        /// </summary>
        /// <param name="data">The update items to apply to this edit.</param>
        /// <returns>The original values for the update items.</returns>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_Distance  = data.ExchangeObservation <Distance>(this, DataField.Distance, m_Distance);
            m_IsFromEnd = data.ExchangeValue <bool>(DataField.EntryFromEnd, m_IsFromEnd);

            if (m_IsFromEnd)
            {
                m_NewLine2.ObservedLength = m_Distance;
            }
            else
            {
                m_NewLine1.ObservedLength = m_Distance;
            }
        }
        /// <summary>
        /// Modifies this edit by applying the values in the supplied update items
        /// (as produced via a prior call to <see cref="GetUpdateItems"/>).
        /// </summary>
        /// <param name="data">The update items to apply to this edit.</param>
        /// <returns>The original values for the update items.</returns>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_RefLine = data.ExchangeFeature <LineFeature>(this, DataField.RefLine, m_RefLine);
            m_Offset  = data.ExchangeObservation <Observation>(this, DataField.Offset, m_Offset);
            m_Term1   = data.ExchangeFeature <LineFeature>(this, DataField.Term1, m_Term1);
            m_Term2   = data.ExchangeFeature <LineFeature>(this, DataField.Term2, m_Term2);

            // Alter arc direction if necessary.
            bool isArcReversed = data.ExchangeValue <bool>(DataField.ReverseArc, this.IsArcReversed);

            if (isArcReversed)
            {
                m_Flags = 1;
            }
            else
            {
                m_Flags = 0;
            }
        }
示例#7
0
 /// <summary>
 /// Exchanges update items that were previously generated via
 /// a call to <see cref="GetUpdateItems"/>.
 /// </summary>
 /// <param name="data">The update data to apply to the edit (modified to
 /// hold the values that were previously defined for the edit)</param>
 public override void ExchangeData(UpdateItemCollection data)
 {
     m_Direction1 = data.ExchangeObservation <Direction>(this, DataField.Direction1, m_Direction1);
     m_Direction2 = data.ExchangeObservation <Direction>(this, DataField.Direction2, m_Direction2);
 }
 /// <summary>
 /// Exchanges update items that were previously generated via
 /// a call to <see cref="GetUpdateItems"/>.
 /// </summary>
 /// <param name="data">The update data to apply to the edit (modified to
 /// hold the values that were previously defined for the edit)</param>
 public override void ExchangeData(UpdateItemCollection data)
 {
     m_Direction = data.ExchangeObservation <Direction>(this, DataField.Direction, m_Direction);
     m_Line      = data.ExchangeFeature <LineFeature>(this, DataField.Line, m_Line);
     m_CloseTo   = data.ExchangeFeature <PointFeature>(this, DataField.CloseTo, m_CloseTo);
 }
        /// <summary>
        /// Modifies this edit by applying the values in the supplied update items
        /// (as produced via a prior call to <see cref="GetUpdateItems"/>).
        /// </summary>
        /// <param name="data">The update items to apply to this edit.</param>
        /// <returns>The original values for the update items.</returns>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_Distance = data.ExchangeObservation<Distance>(this, DataField.Distance, m_Distance);
            m_IsFromEnd = data.ExchangeValue<bool>(DataField.EntryFromEnd, m_IsFromEnd);

            if (m_IsFromEnd)
                m_NewLine2.ObservedLength = m_Distance;
            else
                m_NewLine1.ObservedLength = m_Distance;
        }
        /// <summary>
        /// Exchanges update items that were previously generated via
        /// a call to <see cref="GetUpdateItems"/>.
        /// </summary>
        /// <param name="data">The update data to apply to the edit (modified to
        /// hold the values that were previously defined for the edit)</param>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_IsExtendFromEnd = data.ExchangeValue<bool>(DataField.ExtendFromEnd, m_IsExtendFromEnd);
            m_Length = data.ExchangeObservation<Distance>(this, DataField.Distance, m_Length);

            if (m_NewLine != null)
                m_NewLine.ObservedLength = m_Length;
        }
 /// <summary>
 /// Exchanges update items that were previously generated via
 /// a call to <see cref="GetUpdateItems"/>.
 /// </summary>
 /// <param name="data">The update data to apply to the edit (modified to
 /// hold the values that were previously defined for the edit)</param>
 public override void ExchangeData(UpdateItemCollection data)
 {
     m_Direction1 = data.ExchangeObservation<Direction>(this, DataField.Direction1, m_Direction1);
     m_Direction2 = data.ExchangeObservation<Direction>(this, DataField.Direction2, m_Direction2);
 }
示例#12
0
        /// <summary>
        /// Exchanges update items that were previously generated via
        /// a call to <see cref="GetUpdateItems"/>.
        /// </summary>
        /// <param name="data">The update data to apply to the edit (modified to
        /// hold the values that were previously defined for the edit)</param>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_Direction = data.ExchangeObservation<Direction>(this, DataField.Direction, m_Direction);
            m_Length = data.ExchangeObservation<Observation>(this, DataField.Length, m_Length);

            if (m_Line != null)
                m_Line.ObservedLength = (m_Length as Distance);
        }
        /// <summary>
        /// Exchanges update items that were previously generated via
        /// a call to <see cref="GetUpdateItems"/>.
        /// </summary>
        /// <param name="data">The update data to apply to the edit (modified to
        /// hold the values that were previously defined for the edit)</param>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_Direction = data.ExchangeObservation<Direction>(this, DataField.Direction, m_Direction);
            m_Distance = data.ExchangeObservation<Observation>(this, DataField.Distance, m_Distance);
            m_From = data.ExchangeFeature<PointFeature>(this, DataField.From, m_From);
            m_Default = data.ExchangeValue<bool>(DataField.Default, m_Default);

            AssignObservedLengths();
        }
        /// <summary>
        /// Exchanges update items that were previously generated via
        /// a call to <see cref="GetUpdateItems"/>.
        /// </summary>
        /// <param name="data">The update data to apply to the edit (modified to
        /// hold the values that were previously defined for the edit)</param>
        public override void ExchangeData(UpdateItemCollection data)
        {
            m_Distance1 = data.ExchangeObservation<Observation>(this, DataField.Distance1, m_Distance1);
            m_From1 = data.ExchangeFeature<PointFeature>(this, DataField.From1, m_From1);
            m_Distance2 = data.ExchangeObservation<Observation>(this, DataField.Distance2, m_Distance2);
            m_From2 = data.ExchangeFeature<PointFeature>(this, DataField.From2, m_From2);
            m_Default = data.ExchangeValue<bool>(DataField.Default, m_Default);

            AssignObservedLengths();
        }
 /// <summary>
 /// Exchanges update items that were previously generated via
 /// a call to <see cref="GetUpdateItems"/>.
 /// </summary>
 /// <param name="data">The update data to apply to the edit (modified to
 /// hold the values that were previously defined for the edit)</param>
 public override void ExchangeData(UpdateItemCollection data)
 {
     m_Direction = data.ExchangeObservation<Direction>(this, DataField.Direction, m_Direction);
     m_Line = data.ExchangeFeature<LineFeature>(this, DataField.Line, m_Line);
     m_CloseTo = data.ExchangeFeature<PointFeature>(this, DataField.CloseTo, m_CloseTo);
 }