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;
 }
Ejemplo n.º 3
0
 private void RwrReceiver_UpdatePending(IReferencePoint referencePoint)
 {
     plotPanel.Invalidate();
 }
Ejemplo n.º 4
0
 private void Contact_UpdatePending(IReferencePoint referencePoint)
 {
     Logger.Debug($"Updating contact: {referencePoint}");
     // OnUpdatePending(referencePoint);
 }
Ejemplo n.º 5
0
        /// <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;
        }