public DrawReferencePoint(ILog logger, IReferencePoint contact, double velocityVectorTime, SizeF viewPortExtent) { Logger = logger; Contact = contact; VelocityVectorTime = velocityVectorTime; ViewPortExtent = viewPortExtent; }
/// <summary> /// Creates a <see cref="ContactManagement"/> instance to manage speed, heading and altitude /// </summary> /// <param name="refPoint"></param> /// <param name="percentageCourseStability"></param> /// <param name="percentageSpeedStability"></param> public ContactManagement(IReferencePoint refPoint, float percentageCourseStability, float percentageSpeedStability) { ReferencePoint = refPoint; PreviousPositions = new List <PointF>() { refPoint.Position }; PercentageCourseStability = percentageCourseStability; PercentageSpeedStability = percentageSpeedStability; }
private void RwrReceiver_UpdatePending(IReferencePoint referencePoint) { plotPanel.Invalidate(); }
private void Contact_UpdatePending(IReferencePoint referencePoint) { Logger.Debug($"Updating contact: {referencePoint}"); // OnUpdatePending(referencePoint); }
/// <summary> /// Binds this weapon to its current owner /// </summary> private void Bind( ) { if ( m_Bound ) { return; } IMessageHub hub = ( IMessageHub )m_Owner; MessageHub.AddRecipient< FireWeaponMessage >( hub, FireWeapon, 0 ); IReferencePoints refPoints = Parent.GetType< IReferencePoints >( m_Owner ); m_AttachPoint = refPoints[ "Weapon" ]; m_AttachPoint.OnRender += m_Graphics.Render; m_Bound = true; }