/// <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_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> /// 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; } }
/// <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> /// 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); }