Exemplo n.º 1
0
        public override void MouseLeave()
        {
            if (m_Tracker.SupportsManualCorrections)
            {
                m_VideoController.SetPictureBoxCursor(CustomCursors.PanCursor);
            }

            m_State = CorrectTrackingState.Normal;
        }
Exemplo n.º 2
0
        public override void MouseDown(Point location)
        {
            if (m_Tracker.SupportsManualCorrections && m_State == CorrectTrackingState.Normal)
            {
                m_State = CorrectTrackingState.Correcting;
                m_VideoController.SetPictureBoxCursor(CustomCursors.PanEnabledCursor);

                m_X0 = location.X;
                m_Y0 = location.Y;
            }
        }
Exemplo n.º 3
0
        internal void Initialize(ReduceLightCurveOperation videoOperation, ITracker tracker, VideoController videoController)
        {
            m_LightCurvesVideoOperation = videoOperation;
            m_VideoController           = videoController;
            m_Tracker = tracker;

            if (m_Tracker.SupportsManualCorrections)
            {
                m_VideoController.SetPictureBoxCursor(CustomCursors.PanCursor);
            }

            m_State = CorrectTrackingState.Normal;
            m_Mode  = CorrectTrackingMode.All;

            for (int i = 0; i < tracker.TrackedObjects.Count; i++)
            {
                m_LightCurvesVideoOperation.SetManualTrackingCorrection(i, 0, 0);
            }

            m_VideoController.RefreshCurrentFrame();
        }
Exemplo n.º 4
0
        public override void MouseDown(Point location)
        {
            if (m_Tracker.SupportsManualCorrections && m_State == CorrectTrackingState.Normal)
            {
                m_State = CorrectTrackingState.Correcting;
                m_VideoController.SetPictureBoxCursor(CustomCursors.PanEnabledCursor);

                m_X0 = location.X;
                m_Y0 = location.Y;
            }
        }
Exemplo n.º 5
0
        internal void Initialize(ReduceLightCurveOperation videoOperation, ITracker tracker, VideoController videoController)
        {
            m_LightCurvesVideoOperation = videoOperation;
            m_VideoController = videoController;
            m_Tracker = tracker;

            if (m_Tracker.SupportsManualCorrections)
                m_VideoController.SetPictureBoxCursor(CustomCursors.PanCursor);

            m_State = CorrectTrackingState.Normal;
            m_Mode = CorrectTrackingMode.All;

            for (int i = 0; i < tracker.TrackedObjects.Count; i++)
            {
                m_LightCurvesVideoOperation.SetManualTrackingCorrection(i, 0, 0);
            }

            m_VideoController.RefreshCurrentFrame();
        }
Exemplo n.º 6
0
        public override void MouseUp(Point location)
        {
            if (m_Tracker.SupportsManualCorrections)
                m_VideoController.SetPictureBoxCursor(CustomCursors.PanCursor);

            m_State = CorrectTrackingState.Normal;
        }