Exemple #1
0
 public void SetLightCurveFormCustomizer(ILightCurveFormCustomizer lightCurveCustomizer)
 {
     m_LightCurveCustomizer = lightCurveCustomizer;
     if (lightCurveCustomizer != null)
     {
         m_DisplaySettings = lightCurveCustomizer.FormDisplaySettings;
     }
     else
     {
         m_DisplaySettings = new TangraConfig.LightCurvesDisplaySettings();
         m_DisplaySettings.Load();
         m_DisplaySettings.Initialize();
     }
 }
Exemple #2
0
        internal void Reset()
        {
            rbCorrAll.Checked = true;

            m_DisplaySettings.Load();
            m_DisplaySettings.Initialize();

            if (CorrectTrackingTool != null)
            {
                rbCorr2.Visible  = false;
                rbCorr3.Visible  = false;
                rbCorr4.Visible  = false;
                lbCorr2.Visible  = false;
                lbCorr3.Visible  = false;
                lbCorr4.Visible  = false;
                pnlCorr2.Visible = false;
                pnlCorr3.Visible = false;
                pnlCorr4.Visible = false;

                int trackedObjects = CorrectTrackingTool.Tracker.TrackedObjects.Count;

                pnlCorr1.BackColor = m_DisplaySettings.Target1Color;

                if (trackedObjects > 1)
                {
                    rbCorr2.Visible    = true;
                    lbCorr2.Visible    = true;
                    pnlCorr2.Visible   = true;
                    pnlCorr2.BackColor = m_DisplaySettings.Target2Color;
                }
                if (trackedObjects > 2)
                {
                    rbCorr3.Visible    = true;
                    lbCorr3.Visible    = true;
                    pnlCorr3.Visible   = true;
                    pnlCorr3.BackColor = m_DisplaySettings.Target3Color;
                }
                if (trackedObjects > 3)
                {
                    rbCorr4.Visible    = true;
                    lbCorr4.Visible    = true;
                    pnlCorr4.Visible   = true;
                    pnlCorr4.BackColor = m_DisplaySettings.Target4Color;
                }
            }
        }
Exemple #3
0
        public ucLightCurves()
        {
            InitializeComponent();

            #region Positioning the separate sheets for display
            pnlUserAction.Top = 3;
            pnlUserAction.Left = 3;
            pnlViewLightCurve.Top = 3;
            pnlViewLightCurve.Left = 3;
            #endregion

            ucUtcTime.OnDateTimeInputComplete += new EventHandler(OnUTCDateTimeInputComplete);

            m_DisplaySettings = new TangraConfig.LightCurvesDisplaySettings();
            m_DisplaySettings.Load();
            m_DisplaySettings.Initialize();
        }
Exemple #4
0
        public ucLightCurves()
        {
            InitializeComponent();

            #region Positioning the separate sheets for display
            pnlUserAction.Top      = 3;
            pnlUserAction.Left     = 3;
            pnlViewLightCurve.Top  = 3;
            pnlViewLightCurve.Left = 3;
            #endregion

            ucUtcTime.OnDateTimeInputComplete += new EventHandler(OnUTCDateTimeInputComplete);

            m_DisplaySettings = new TangraConfig.LightCurvesDisplaySettings();
            m_DisplaySettings.Load();
            m_DisplaySettings.Initialize();
        }
Exemple #5
0
        public void Initialize(IFrameStream videoStream, int currentFrameNo)
        {
            m_VideoStream = videoStream;

            m_DisplaySettings.Load();
            m_DisplaySettings.Initialize();

            if (m_VideoStream != null)
            {
                nudFrameNo.Minimum = m_VideoStream.FirstFrame;
                nudFrameNo.Maximum = m_VideoStream.LastFrame;
                nudFrameNo.SetNUDValue(currentFrameNo);
            }

            picHistogram.Image = new Bitmap(picHistogram.Width, picHistogram.Height);
            picStretched.Image = new Bitmap(picStretched.Width, picStretched.Height);

            m_HistogramData.Clear();
            for (int i = 0; i < 256; i++)
            {
                m_HistogramData.Add(0);
            }

            m_DisplayData.Clear();
            for (int i = 0; i < 256; i++)
            {
                m_DisplayData.Add(0);
            }

            m_DisplayWindowData.Clear();
            for (int i = 0; i < 256; i++)
            {
                m_DisplayWindowData.Add(0);
            }

            m_FromByte = 0;
            m_ToByte   = 128;
            UpdateFromToControls();

            pnlClipStretch.Visible        = true;
            pnlBrightnessContrast.Visible = false;

            EnsureWindowData();
        }
        internal ReduceLightCurveOperation(LightCurveController lightCurveController, bool debugMode)
        {
            m_LightCurveController = lightCurveController;
            m_DebugMode = debugMode;

            m_DisplaySettings = new TangraConfig.LightCurvesDisplaySettings();
            m_DisplaySettings.Load();
            m_DisplaySettings.Initialize();
        }
 public void SetLightCurveFormCustomizer(ILightCurveFormCustomizer lightCurveCustomizer)
 {
     m_LightCurveCustomizer = lightCurveCustomizer;
     if (lightCurveCustomizer != null)
     {
         m_DisplaySettings = lightCurveCustomizer.FormDisplaySettings;
     }
     else
     {
         m_DisplaySettings = new TangraConfig.LightCurvesDisplaySettings();
         m_DisplaySettings.Load();
         m_DisplaySettings.Initialize();
     }
 }