Ejemplo n.º 1
0
        private void ChangeCoefficients()
        {
            int mNest = int.Parse(MText.Text);
            int nNest = int.Parse(NText.Text);

            triangles = GenerateTriangles(nNest, mNest);

            if (CoefficientSameValueRadioButton.Checked)
            {
                double kd = kdTrackBar.Value * 0.01;
                double ks = ksTrackBar.Value * 0.01;
                double m  = mTrackBar.Value;

                triangles.WriteAllCoefficienst(kd, ks, m);
            }
            else
            {
                triangles.WriteRandomCoefficients();
            }

            if (LConstRadioButton.Checked)
            {
                LightTimer.Stop();
            }
            else
            {
                LightTimer.Start();
            }

            if (PreciselyFillRadioButton.Checked)
            {
                current_mode = PaintMode.Normal;
            }
            else if (InterpolationFillRadioButton.Checked)
            {
                current_mode = PaintMode.Interpolate;
            }
            else if (HybridFillRadioButton.Checked)
            {
                current_mode = PaintMode.HybridInterpolate;
            }

            isColorFromTexture       = TextureColorRadioButton.Checked;
            isNormalVectorFromMap    = NFromTextureRadioButton.Checked;
            isNormalVectorFromBubble = BubbleRadioButton.Checked;
            lightColor = LightColor.BackColor;
        }
Ejemplo n.º 2
0
 private void StopButton_Click(object sender, EventArgs e)
 {
     //start the Attention phase by calling 'LightTimer'
     LightTimer.Interval = 6000;
     LightTimer.Start();
 }
Ejemplo n.º 3
0
 private void StopButton_Click(object sender, EventArgs e)
 {
     //start the Attention phase by calling 'LightTimer'
     lblCountDown.Visible = true;
     LightTimer.Start();
 }