Пример #1
0
        public CalibrationWindow(Font font, string txt)
        {
            Height     = SystemMetrics.ScreenHeight;
            Width      = SystemMetrics.ScreenWidth;
            Visibility = Visibility.Visible;
            //Buttons.Focus(this);

            pen = new Pen(ColorUtility.ColorFromRGB(255, 0, 0), 1);

            Text text = new Text();

            text.Font        = font;
            text.ForeColor   = Colors.Blue;
            text.TextContent = txt;
            text.TextWrap    = true;
            text.SetMargin(0, 0, 0, SystemMetrics.ScreenHeight / 2);
            text.TextAlignment       = TextAlignment.Center;
            text.HorizontalAlignment = HorizontalAlignment.Center;
            text.VerticalAlignment   = VerticalAlignment.Center;
            Child = text;

            CalibrationManager.PrepareCalibrationPoints();
            CalibrationManager.StartCalibration();
            idx = 0;

            Invalidate();
        }
        public override void OnEnterStep()
        {
            // Register the strategy used by the NeuroTags during the calibration.
            MonoTargetBehaviour behaviour = new MonoTargetBehaviour();

            behaviour.InitFromStep(this);
            calibrationManager.SetNeuroTagBehaviour(behaviour);

            numberOfTrials = calibrationManager.NumberOfTrials;

            // Reset the particle system.
            UpdateParticleSystem(0);

            calibrationManager.StartCalibration();

            calibrationManager.onCalibrationOver.AddListener(OnCalibrationOver);
        }
        public override void OnEnterStep()
        {
            // Register the strategy used by the NeuroTags during the calibration.
            MonoTargetBehaviour behaviour = new MonoTargetBehaviour();
            behaviour.InitFromStep(this);
            calibrationManager.SetNeuroTagBehaviour(behaviour);

            // Ensure displaying the preClibrationGroup at calibration start.
            preCalibrationGroup.StartFade(true, true);

            // Reset the particle system progress & speed.
            UpdateParticleSystem(0);
            var main = particles.main;
            main.simulationSpeed = originalSimulationSpeed;

            calibrationManager.StartCalibration();

            calibrationManager.onCalibrationOver.AddListener(OnCalibrationOver);
            calibrationManager.onCalibrationError.AddListener(OnCalibrationError);
        }
Пример #4
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     toolStripButton1.Enabled = false;
     _calibrationManager.UpdatePatternModel();
     _calibrationManager.StartCalibration();
 }