Click here to Skip to main content
15,896,544 members
Articles / Desktop Programming / Windows Forms

Visualization of the 2D Voronoi Diagram and the Delaunay Triangulation

Rate me:
Please Sign up or sign in to vote.
4.64/5 (17 votes)
18 Nov 2008CPOL 90.9K   3.4K   38  
An add-on for the Fortune's algorithm.
namespace VoronoyTest
{
    partial class MainForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.pbxVisialization = new System.Windows.Forms.PictureBox();
            this.btnRebuild = new System.Windows.Forms.Button();
            this.grpDiagram = new System.Windows.Forms.GroupBox();
            this.rbtDelaunay = new System.Windows.Forms.RadioButton();
            this.rbtVoronoi = new System.Windows.Forms.RadioButton();
            ((System.ComponentModel.ISupportInitialize)(this.pbxVisialization)).BeginInit();
            this.grpDiagram.SuspendLayout();
            this.SuspendLayout();
            // 
            // pbxVisialization
            // 
            this.pbxVisialization.Location = new System.Drawing.Point(12, 53);
            this.pbxVisialization.Name = "pbxVisialization";
            this.pbxVisialization.Size = new System.Drawing.Size(640, 480);
            this.pbxVisialization.TabIndex = 0;
            this.pbxVisialization.TabStop = false;
            // 
            // btnRebuild
            // 
            this.btnRebuild.Location = new System.Drawing.Point(12, 17);
            this.btnRebuild.Name = "btnRebuild";
            this.btnRebuild.Size = new System.Drawing.Size(83, 24);
            this.btnRebuild.TabIndex = 1;
            this.btnRebuild.Text = "Regenerate";
            this.btnRebuild.UseVisualStyleBackColor = true;
            this.btnRebuild.Click += new System.EventHandler(this.btnRebuild_Click);
            // 
            // grpDiagram
            // 
            this.grpDiagram.Controls.Add(this.rbtDelaunay);
            this.grpDiagram.Controls.Add(this.rbtVoronoi);
            this.grpDiagram.Location = new System.Drawing.Point(111, 8);
            this.grpDiagram.Name = "grpDiagram";
            this.grpDiagram.Size = new System.Drawing.Size(541, 39);
            this.grpDiagram.TabIndex = 2;
            this.grpDiagram.TabStop = false;
            // 
            // rbtDelaunay
            // 
            this.rbtDelaunay.AutoSize = true;
            this.rbtDelaunay.Location = new System.Drawing.Point(200, 16);
            this.rbtDelaunay.Name = "rbtDelaunay";
            this.rbtDelaunay.Size = new System.Drawing.Size(70, 17);
            this.rbtDelaunay.TabIndex = 1;
            this.rbtDelaunay.Text = "Delaunay";
            this.rbtDelaunay.UseVisualStyleBackColor = true;
            this.rbtDelaunay.CheckedChanged += new System.EventHandler(this.rbtDelaunay_CheckedChanged);
            // 
            // rbtVoronoi
            // 
            this.rbtVoronoi.AutoSize = true;
            this.rbtVoronoi.Checked = true;
            this.rbtVoronoi.Location = new System.Drawing.Point(6, 16);
            this.rbtVoronoi.Name = "rbtVoronoi";
            this.rbtVoronoi.Size = new System.Drawing.Size(61, 17);
            this.rbtVoronoi.TabIndex = 0;
            this.rbtVoronoi.TabStop = true;
            this.rbtVoronoi.Text = "Voronoi";
            this.rbtVoronoi.UseVisualStyleBackColor = true;
            this.rbtVoronoi.CheckedChanged += new System.EventHandler(this.rbtVoronoi_CheckedChanged);
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(670, 542);
            this.Controls.Add(this.grpDiagram);
            this.Controls.Add(this.btnRebuild);
            this.Controls.Add(this.pbxVisialization);
            this.Name = "MainForm";
            this.Text = "Voronoi/Delaunay Visualization";
            ((System.ComponentModel.ISupportInitialize)(this.pbxVisialization)).EndInit();
            this.grpDiagram.ResumeLayout(false);
            this.grpDiagram.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.PictureBox pbxVisialization;
        private System.Windows.Forms.Button btnRebuild;
        private System.Windows.Forms.GroupBox grpDiagram;
        private System.Windows.Forms.RadioButton rbtDelaunay;
        private System.Windows.Forms.RadioButton rbtVoronoi;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Russian Federation Russian Federation
Hello! My name is Maxim Subbotin.

Now I work in sphere of web-development. I'm interesting researches in SEO field.
If you interesting, you can see this tool:

KeywordCompetitor

Comments and Discussions