Ejemplo n.º 1
0
        private void buttonApply_Click(object sender, EventArgs e)
        {
            OpenGLUC myControl = ParentGLControl as OpenGLUC;

            myControl.OGLControl.GLrender.ResetPointLineSizes();
            myControl.Refresh();
        }
Ejemplo n.º 2
0
        private void buttonColorModel_Click(object sender, EventArgs e)
        {
            ColorDialog dialogColor = new ColorDialog();

            if (dialogColor.ShowDialog() == DialogResult.OK)
            {
                OpenGLUC myControl = ParentGLControl as OpenGLUC;
                myControl.ChangeModelColor(dialogColor.Color);
            }
        }
Ejemplo n.º 3
0
        private void buttonBackColor_Click(object sender, EventArgs e)
        {
            ColorDialog dialogColor = new ColorDialog();

            if (dialogColor.ShowDialog() == DialogResult.OK)
            {
                GLSettings.BackColor = dialogColor.Color;
                OpenGLUC myControl = ParentGLControl as OpenGLUC;
                myControl.Refresh();
            }
        }
Ejemplo n.º 4
0
        private void buttonColorModels_Click(object sender, EventArgs e)
        {
            ColorDialog dialogColor = new ColorDialog();

            // Update the text box color if the user clicks OK
            if (dialogColor.ShowDialog() == DialogResult.OK)
            {
                GLSettings.ColorModels = dialogColor.Color;
                OpenGLUC myControl = ParentGLControl as OpenGLUC;
                myControl.ChangeAllModelsColor(dialogColor.Color);
            }
        }
Ejemplo n.º 5
0
        private void buttonOK_Click(object sender, EventArgs e)
        {
            GLSettings.PointSize     = Convert.ToSingle(this.textBoxPointSize.Text);
            GLSettings.PointSizeAxis = Convert.ToSingle(this.textBoxPointSizeAxis.Text);

            OpenGLUC myControl = ParentGLControl as OpenGLUC;

            if (myControl != null)
            {
                myControl.OGLControl.GLrender.ResetPointLineSizes();
                myControl.Refresh();
            }

            this.Close();
        }
Ejemplo n.º 6
0
        private void AddOpenGLControl()
        {
            this.OpenGLControl = new OpenGLUC();
            this.SuspendLayout();
            //
            // openGLControl1
            //
            this.OpenGLControl.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.OpenGLControl.Location = new System.Drawing.Point(0, 0);
            this.OpenGLControl.Name     = "openGLControl1";
            this.OpenGLControl.Size     = new System.Drawing.Size(854, 453);
            this.OpenGLControl.TabIndex = 0;



            this.ResumeLayout(false);
        }