コード例 #1
0
ファイル: PointsBuilder.cs プロジェクト: luckystar360/sharpGL
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBoxIdentity      = new System.Windows.Forms.GroupBox();
     this.textBoxName           = new System.Windows.Forms.TextBox();
     this.groupBoxVertices      = new System.Windows.Forms.GroupBox();
     this.textBoxMaxDist        = new System.Windows.Forms.TextBox();
     this.label1                = new System.Windows.Forms.Label();
     this.openGLCtrlPointsbuild = new SharpGL.SceneControl();
     this.buttonOK              = new System.Windows.Forms.Button();
     this.buttonCancel          = new System.Windows.Forms.Button();
     this.buttonGeneratePoints  = new System.Windows.Forms.Button();
     this.label2                = new System.Windows.Forms.Label();
     this.textBoxPointsCount    = new System.Windows.Forms.TextBox();
     this.groupBoxIdentity.SuspendLayout();
     this.groupBoxVertices.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBoxIdentity
     //
     this.groupBoxIdentity.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.textBoxName
     });
     this.groupBoxIdentity.Location = new System.Drawing.Point(8, 8);
     this.groupBoxIdentity.Name     = "groupBoxIdentity";
     this.groupBoxIdentity.Size     = new System.Drawing.Size(216, 56);
     this.groupBoxIdentity.TabIndex = 1;
     this.groupBoxIdentity.TabStop  = false;
     this.groupBoxIdentity.Text     = "Name";
     //
     // textBoxName
     //
     this.textBoxName.Location     = new System.Drawing.Point(8, 24);
     this.textBoxName.Name         = "textBoxName";
     this.textBoxName.Size         = new System.Drawing.Size(200, 21);
     this.textBoxName.TabIndex     = 0;
     this.textBoxName.Text         = "Points Name";
     this.textBoxName.TextChanged += new System.EventHandler(this.textBoxName_TextChanged);
     //
     // groupBoxVertices
     //
     this.groupBoxVertices.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.textBoxPointsCount,
         this.label2,
         this.textBoxMaxDist,
         this.label1,
         this.buttonGeneratePoints
     });
     this.groupBoxVertices.Location = new System.Drawing.Point(8, 64);
     this.groupBoxVertices.Name     = "groupBoxVertices";
     this.groupBoxVertices.Size     = new System.Drawing.Size(216, 136);
     this.groupBoxVertices.TabIndex = 2;
     this.groupBoxVertices.TabStop  = false;
     this.groupBoxVertices.Text     = "Points";
     //
     // textBoxMaxDist
     //
     this.textBoxMaxDist.Location = new System.Drawing.Point(112, 64);
     this.textBoxMaxDist.Name     = "textBoxMaxDist";
     this.textBoxMaxDist.Size     = new System.Drawing.Size(96, 21);
     this.textBoxMaxDist.TabIndex = 3;
     this.textBoxMaxDist.Text     = "10";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 64);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(104, 32);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Max Distance From Origin";
     //
     // openGLCtrlPointsbuild
     //
     this.openGLCtrlPointsbuild.AutoSelect      = true;
     this.openGLCtrlPointsbuild.Location        = new System.Drawing.Point(232, 16);
     this.openGLCtrlPointsbuild.Mouse           = SharpGL.SceneGraph.MouseOperation.Translate;
     this.openGLCtrlPointsbuild.Name            = "openGLCtrlPointsbuild";
     this.openGLCtrlPointsbuild.ShowHandOnHover = false;
     this.openGLCtrlPointsbuild.Size            = new System.Drawing.Size(448, 416);
     this.openGLCtrlPointsbuild.TabIndex        = 4;
     //
     // buttonOK
     //
     this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.buttonOK.Location     = new System.Drawing.Point(608, 440);
     this.buttonOK.Name         = "buttonOK";
     this.buttonOK.TabIndex     = 5;
     this.buttonOK.Text         = "OK";
     //
     // buttonCancel
     //
     this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.buttonCancel.Location     = new System.Drawing.Point(528, 440);
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.TabIndex     = 8;
     this.buttonCancel.Text         = "Cancel";
     //
     // buttonGeneratePoints
     //
     this.buttonGeneratePoints.Location = new System.Drawing.Point(8, 24);
     this.buttonGeneratePoints.Name     = "buttonGeneratePoints";
     this.buttonGeneratePoints.Size     = new System.Drawing.Size(200, 23);
     this.buttonGeneratePoints.TabIndex = 9;
     this.buttonGeneratePoints.Text     = "&Generate Points";
     this.buttonGeneratePoints.Click   += new System.EventHandler(this.buttonGeneratePoints_Click);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(8, 96);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(104, 32);
     this.label2.TabIndex = 10;
     this.label2.Text     = "Number of Points";
     //
     // textBoxPointsCount
     //
     this.textBoxPointsCount.Location = new System.Drawing.Point(112, 96);
     this.textBoxPointsCount.Name     = "textBoxPointsCount";
     this.textBoxPointsCount.Size     = new System.Drawing.Size(96, 21);
     this.textBoxPointsCount.TabIndex = 11;
     this.textBoxPointsCount.Text     = "10000";
     //
     // PointsBuilder
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize        = new System.Drawing.Size(690, 472);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.buttonCancel,
         this.buttonOK,
         this.openGLCtrlPointsbuild,
         this.groupBoxVertices,
         this.groupBoxIdentity
     });
     this.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name            = "PointsBuilder";
     this.Text            = "PointsBuilder";
     this.Load           += new System.EventHandler(this.PolygonBuilder_Load);
     this.groupBoxIdentity.ResumeLayout(false);
     this.groupBoxVertices.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #2
0
ファイル: PointsBuilder.cs プロジェクト: mind0n/hive
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.groupBoxIdentity = new System.Windows.Forms.GroupBox();
			this.textBoxName = new System.Windows.Forms.TextBox();
			this.groupBoxVertices = new System.Windows.Forms.GroupBox();
			this.textBoxMaxDist = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
            this.openGLCtrlPointsbuild = new SharpGL.SceneControl();
			this.buttonOK = new System.Windows.Forms.Button();
			this.buttonCancel = new System.Windows.Forms.Button();
			this.buttonGeneratePoints = new System.Windows.Forms.Button();
			this.label2 = new System.Windows.Forms.Label();
			this.textBoxPointsCount = new System.Windows.Forms.TextBox();
			this.groupBoxIdentity.SuspendLayout();
			this.groupBoxVertices.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBoxIdentity
			// 
			this.groupBoxIdentity.Controls.AddRange(new System.Windows.Forms.Control[] {
																						   this.textBoxName});
			this.groupBoxIdentity.Location = new System.Drawing.Point(8, 8);
			this.groupBoxIdentity.Name = "groupBoxIdentity";
			this.groupBoxIdentity.Size = new System.Drawing.Size(216, 56);
			this.groupBoxIdentity.TabIndex = 1;
			this.groupBoxIdentity.TabStop = false;
			this.groupBoxIdentity.Text = "Name";
			// 
			// textBoxName
			// 
			this.textBoxName.Location = new System.Drawing.Point(8, 24);
			this.textBoxName.Name = "textBoxName";
			this.textBoxName.Size = new System.Drawing.Size(200, 21);
			this.textBoxName.TabIndex = 0;
			this.textBoxName.Text = "Points Name";
			this.textBoxName.TextChanged += new System.EventHandler(this.textBoxName_TextChanged);
			// 
			// groupBoxVertices
			// 
			this.groupBoxVertices.Controls.AddRange(new System.Windows.Forms.Control[] {
																						   this.textBoxPointsCount,
																						   this.label2,
																						   this.textBoxMaxDist,
																						   this.label1,
																						   this.buttonGeneratePoints});
			this.groupBoxVertices.Location = new System.Drawing.Point(8, 64);
			this.groupBoxVertices.Name = "groupBoxVertices";
			this.groupBoxVertices.Size = new System.Drawing.Size(216, 136);
			this.groupBoxVertices.TabIndex = 2;
			this.groupBoxVertices.TabStop = false;
			this.groupBoxVertices.Text = "Points";
			// 
			// textBoxMaxDist
			// 
			this.textBoxMaxDist.Location = new System.Drawing.Point(112, 64);
			this.textBoxMaxDist.Name = "textBoxMaxDist";
			this.textBoxMaxDist.Size = new System.Drawing.Size(96, 21);
			this.textBoxMaxDist.TabIndex = 3;
			this.textBoxMaxDist.Text = "10";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 64);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(104, 32);
			this.label1.TabIndex = 2;
			this.label1.Text = "Max Distance From Origin";
			// 
			// openGLCtrlPointsbuild
			// 
			this.openGLCtrlPointsbuild.AutoSelect = true;
			this.openGLCtrlPointsbuild.Location = new System.Drawing.Point(232, 16);
			this.openGLCtrlPointsbuild.Mouse = SharpGL.SceneGraph.MouseOperation.Translate;
			this.openGLCtrlPointsbuild.Name = "openGLCtrlPointsbuild";
			this.openGLCtrlPointsbuild.ShowHandOnHover = false;
			this.openGLCtrlPointsbuild.Size = new System.Drawing.Size(448, 416);
			this.openGLCtrlPointsbuild.TabIndex = 4;
			// 
			// buttonOK
			// 
			this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.buttonOK.Location = new System.Drawing.Point(608, 440);
			this.buttonOK.Name = "buttonOK";
			this.buttonOK.TabIndex = 5;
			this.buttonOK.Text = "OK";
			// 
			// buttonCancel
			// 
			this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.buttonCancel.Location = new System.Drawing.Point(528, 440);
			this.buttonCancel.Name = "buttonCancel";
			this.buttonCancel.TabIndex = 8;
			this.buttonCancel.Text = "Cancel";
			// 
			// buttonGeneratePoints
			// 
			this.buttonGeneratePoints.Location = new System.Drawing.Point(8, 24);
			this.buttonGeneratePoints.Name = "buttonGeneratePoints";
			this.buttonGeneratePoints.Size = new System.Drawing.Size(200, 23);
			this.buttonGeneratePoints.TabIndex = 9;
			this.buttonGeneratePoints.Text = "&Generate Points";
			this.buttonGeneratePoints.Click += new System.EventHandler(this.buttonGeneratePoints_Click);
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 96);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(104, 32);
			this.label2.TabIndex = 10;
			this.label2.Text = "Number of Points";
			// 
			// textBoxPointsCount
			// 
			this.textBoxPointsCount.Location = new System.Drawing.Point(112, 96);
			this.textBoxPointsCount.Name = "textBoxPointsCount";
			this.textBoxPointsCount.Size = new System.Drawing.Size(96, 21);
			this.textBoxPointsCount.TabIndex = 11;
			this.textBoxPointsCount.Text = "10000";
			// 
			// PointsBuilder
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
			this.ClientSize = new System.Drawing.Size(690, 472);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.buttonCancel,
																		  this.buttonOK,
																		  this.openGLCtrlPointsbuild,
																		  this.groupBoxVertices,
																		  this.groupBoxIdentity});
			this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
			this.Name = "PointsBuilder";
			this.Text = "PointsBuilder";
			this.Load += new System.EventHandler(this.PolygonBuilder_Load);
			this.groupBoxIdentity.ResumeLayout(false);
			this.groupBoxVertices.ResumeLayout(false);
			this.ResumeLayout(false);

		}
コード例 #3
0
        public bool Renderiza(ref SharpGL.SceneControl scene_GLControl, bool Grid = false, bool Modelo = false, double CotaZ = double.NaN, bool BBox = false)
        {
            bool Res = true;

            scene_GLControl.Scene.RenderBoundingVolumes = BBox;

            for (int i = 0; i < scene_GLControl.Scene.SceneContainer.Children.Count(); i++)
            {
                switch (scene_GLControl.Scene.SceneContainer.Children[i].Name)
                {
                case constPlanoSLT:
                    if (CotaZ != double.NaN)
                    {
                        scene_GLControl.Scene.SceneContainer.RemoveChild(scene_GLControl.Scene.SceneContainer.Children[i]);
                        i--;
                    }
                    break;

                case constModeloSLT:
                    if (Modelo)
                    {
                        scene_GLControl.Scene.SceneContainer.RemoveChild(scene_GLControl.Scene.SceneContainer.Children[i]);
                        i--;
                    }
                    break;

                case constDesignPrimitives:
                    if (Grid)
                    {
                        if (scene_GLControl.Scene.SceneContainer.Children[i] is SharpGL.SceneGraph.Primitives.Folder)
                        {
                            SharpGL.SceneGraph.Primitives.Folder Foldr = scene_GLControl.Scene.SceneContainer.Children[i] as SharpGL.SceneGraph.Primitives.Folder;
                            for (int j = 0; j < Foldr.Children.Count(); j++)
                            {
                                if (Foldr.Children[j] is SharpGL.SceneGraph.Primitives.Grid)
                                {
                                    SharpGL.SceneGraph.Primitives.Grid Grd = Foldr.Children[j] as SharpGL.SceneGraph.Primitives.Grid;

                                    if (Grd.Name == constDesignGrid)
                                    {
                                        Foldr.RemoveChild(Grd);
                                        j--;
                                    }
                                }
                                else if (Foldr.Children[j] is SharpGL.SceneGraph.Primitives.Axies)
                                {
                                    SharpGL.SceneGraph.Primitives.Axies Ax = Foldr.Children[j] as SharpGL.SceneGraph.Primitives.Axies;

                                    if (Ax.Name == constDesignAxie)
                                    {
                                        Foldr.RemoveChild(Ax);
                                        j--;
                                    }
                                }
                            }
                        }
                    }
                    break;

                default:
                    break;
                }
            }

            if (Grid)
            {
                SharpGL.SceneGraph.Primitives.Folder Foldr = null;

                for (int i = 0; i < scene_GLControl.Scene.SceneContainer.Children.Count(); i++)
                {
                    if (scene_GLControl.Scene.SceneContainer.Children[i].Name == constDesignPrimitives)
                    {
                        if (scene_GLControl.Scene.SceneContainer.Children[i] is SharpGL.SceneGraph.Primitives.Folder)
                        {
                            Foldr = scene_GLControl.Scene.SceneContainer.Children[i] as SharpGL.SceneGraph.Primitives.Folder;
                            break;
                        }
                    }
                }

                if (Foldr != null)
                {
                    SharpGL.SceneGraph.Primitives.Grid grid = new SharpGL.SceneGraph.Primitives.Grid();
                    grid.Name = constDesignGrid;

                    SharpGL.SceneGraph.Primitives.Axies axie = new SharpGL.SceneGraph.Primitives.Axies();
                    axie.Name = constDesignAxie;

                    if (_Facets.Count > 0)
                    {
                        //printer Axies
                        SharpGL.SceneGraph.Transformations.LinearTransformation linearAxiesTransformation = new SharpGL.SceneGraph.Transformations.LinearTransformation();

                        linearAxiesTransformation.ScaleX = 10;
                        linearAxiesTransformation.ScaleY = 10;
                        linearAxiesTransformation.ScaleZ = 10;

                        SharpGL.SceneGraph.Effects.LinearTransformationEffect linearAxiesTransformationEffect = new SharpGL.SceneGraph.Effects.LinearTransformationEffect();
                        linearAxiesTransformationEffect.LinearTransformation = linearAxiesTransformation;

                        axie.AddEffect(linearAxiesTransformationEffect);

                        //Printer Grid
                        SharpGL.SceneGraph.Transformations.LinearTransformation linearGridTransformation = new SharpGL.SceneGraph.Transformations.LinearTransformation();

                        linearGridTransformation.TranslateX = 200;
                        linearGridTransformation.TranslateY = 200;
                        linearGridTransformation.ScaleX     = 20;
                        linearGridTransformation.ScaleY     = 20;

                        SharpGL.SceneGraph.Effects.LinearTransformationEffect linearGridTransformationEffect = new SharpGL.SceneGraph.Effects.LinearTransformationEffect();
                        linearGridTransformationEffect.LinearTransformation = linearGridTransformation;

                        grid.AddEffect(linearGridTransformationEffect);
                    }

                    Foldr.AddChild(axie);
                    Foldr.AddChild(grid);
                }
            }

            if (!double.IsNaN(CotaZ))
            {
                //Dibuja el plano Z.
                SharpGL.SceneGraph.Primitives.Polygon Polig = new SharpGL.SceneGraph.Primitives.Polygon();
                Polig.Name        = constPlanoSLT;
                Polig.DrawNormals = false;

                SharpGL.SceneGraph.Vertex[] Vertices = new SharpGL.SceneGraph.Vertex[4];

                float MargenX = (float)this.Ancho * 0.1f;
                float MargenY = (float)this.Alto * 0.1f;

                Vertices[0] = new SharpGL.SceneGraph.Vertex(_IzqFrontInf.Xf - MargenX, _IzqFrontInf.Yf - MargenY, (float)CotaZ);
                Vertices[1] = new SharpGL.SceneGraph.Vertex(_IzqFrontInf.Xf - MargenX, _DerPostSup.Yf + MargenY, (float)CotaZ);
                Vertices[2] = new SharpGL.SceneGraph.Vertex(_DerPostSup.Xf + MargenX, _DerPostSup.Yf + MargenY, (float)CotaZ);
                Vertices[3] = new SharpGL.SceneGraph.Vertex(_DerPostSup.Xf + MargenX, _IzqFrontInf.Yf - MargenY, (float)CotaZ);

                Polig.AddFaceFromVertexData(Vertices);

                Polig.Validate(true);

                scene_GLControl.Scene.SceneContainer.AddChild(Polig);
            }

            if (Modelo && _Facets.Count > 0)
            {
                SharpGL.SceneGraph.Primitives.Polygon Polig = new SharpGL.SceneGraph.Primitives.Polygon();
                Polig.Name        = constModeloSLT;
                Polig.DrawNormals = false;

                foreach (FacetSLT F in _Facets)
                {
                    foreach (LoopSLT L in F._Loops)
                    {
                        bool Representar = true;

                        if (!double.IsNaN(CotaZ))
                        {
                            //Evalua si se tiene que mostrar o no por encontrarse bajo el plano
                            foreach (VertexSLT V in L.Vertices)
                            {
                                if (V.Z <= CotaZ)
                                {
                                    Representar = true;
                                    break;
                                }
                                else
                                {
                                    Representar = false;
                                }
                            }
                        }

                        if (Representar)
                        {
                            SharpGL.SceneGraph.Vertex[] Vertices = new SharpGL.SceneGraph.Vertex[L.Vertices.Count()];
                            for (int i = 0; i < L.Vertices.Count(); i++)
                            {
                                //Polig.Vertices.Add(new SharpGL.SceneGraph.Vertex(V._X, V._Y, V._Z));
                                Vertices[i] = new SharpGL.SceneGraph.Vertex(L.Vertices[i].Xf + (float)_Tx, L.Vertices[i].Yf + (float)_Ty, L.Vertices[i].Zf + (float)_Tz);
                            }

                            Polig.AddFaceFromVertexData(Vertices);
                        }
                    }
                }

                Polig.Validate(true);

                scene_GLControl.Scene.SceneContainer.AddChild(Polig);
            }

            return(Res);
        }
コード例 #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBoxIdentity        = new System.Windows.Forms.GroupBox();
     this.textBoxName             = new System.Windows.Forms.TextBox();
     this.groupBoxType            = new System.Windows.Forms.GroupBox();
     this.labelTypes              = new System.Windows.Forms.Label();
     this.radioButtonType5        = new System.Windows.Forms.RadioButton();
     this.radioButtonType3        = new System.Windows.Forms.RadioButton();
     this.radioButtonType4        = new System.Windows.Forms.RadioButton();
     this.radioButtonType2        = new System.Windows.Forms.RadioButton();
     this.radioButtonType1        = new System.Windows.Forms.RadioButton();
     this.groupBoxProperties      = new System.Windows.Forms.GroupBox();
     this.propertyGridSystem      = new System.Windows.Forms.PropertyGrid();
     this.openGLCtrlParticlebuild = new SharpGL.SceneControl();
     this.timerSystemTick         = new System.Timers.Timer();
     this.buttonOK = new System.Windows.Forms.Button();
     this.groupBoxIdentity.SuspendLayout();
     this.groupBoxType.SuspendLayout();
     this.groupBoxProperties.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.timerSystemTick)).BeginInit();
     this.SuspendLayout();
     //
     // groupBoxIdentity
     //
     this.groupBoxIdentity.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.textBoxName
     });
     this.groupBoxIdentity.Location = new System.Drawing.Point(8, 8);
     this.groupBoxIdentity.Name     = "groupBoxIdentity";
     this.groupBoxIdentity.Size     = new System.Drawing.Size(216, 56);
     this.groupBoxIdentity.TabIndex = 1;
     this.groupBoxIdentity.TabStop  = false;
     this.groupBoxIdentity.Text     = "Name";
     //
     // textBoxName
     //
     this.textBoxName.Location = new System.Drawing.Point(8, 24);
     this.textBoxName.Name     = "textBoxName";
     this.textBoxName.Size     = new System.Drawing.Size(200, 21);
     this.textBoxName.TabIndex = 0;
     this.textBoxName.Text     = "System Name";
     //
     // groupBoxType
     //
     this.groupBoxType.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.labelTypes,
         this.radioButtonType5,
         this.radioButtonType3,
         this.radioButtonType4,
         this.radioButtonType2,
         this.radioButtonType1
     });
     this.groupBoxType.Location = new System.Drawing.Point(8, 64);
     this.groupBoxType.Name     = "groupBoxType";
     this.groupBoxType.Size     = new System.Drawing.Size(216, 192);
     this.groupBoxType.TabIndex = 2;
     this.groupBoxType.TabStop  = false;
     this.groupBoxType.Text     = "Type";
     //
     // labelTypes
     //
     this.labelTypes.Location = new System.Drawing.Point(8, 24);
     this.labelTypes.Name     = "labelTypes";
     this.labelTypes.Size     = new System.Drawing.Size(200, 40);
     this.labelTypes.TabIndex = 5;
     this.labelTypes.Text     = "Warning: Changing the System Type resets ALL system properties!";
     //
     // radioButtonType5
     //
     this.radioButtonType5.Location        = new System.Drawing.Point(8, 160);
     this.radioButtonType5.Name            = "radioButtonType5";
     this.radioButtonType5.Size            = new System.Drawing.Size(200, 24);
     this.radioButtonType5.TabIndex        = 4;
     this.radioButtonType5.Text            = "Fire";
     this.radioButtonType5.CheckedChanged += new System.EventHandler(this.radioButtonType5_CheckedChanged);
     //
     // radioButtonType3
     //
     this.radioButtonType3.Location        = new System.Drawing.Point(8, 112);
     this.radioButtonType3.Name            = "radioButtonType3";
     this.radioButtonType3.Size            = new System.Drawing.Size(200, 24);
     this.radioButtonType3.TabIndex        = 3;
     this.radioButtonType3.Text            = "Cloud of Dust";
     this.radioButtonType3.CheckedChanged += new System.EventHandler(this.radioButtonType3_CheckedChanged);
     //
     // radioButtonType4
     //
     this.radioButtonType4.Location        = new System.Drawing.Point(8, 136);
     this.radioButtonType4.Name            = "radioButtonType4";
     this.radioButtonType4.Size            = new System.Drawing.Size(200, 24);
     this.radioButtonType4.TabIndex        = 2;
     this.radioButtonType4.Text            = "Electricity";
     this.radioButtonType4.CheckedChanged += new System.EventHandler(this.radioButtonType4_CheckedChanged);
     //
     // radioButtonType2
     //
     this.radioButtonType2.Location        = new System.Drawing.Point(8, 88);
     this.radioButtonType2.Name            = "radioButtonType2";
     this.radioButtonType2.Size            = new System.Drawing.Size(200, 24);
     this.radioButtonType2.TabIndex        = 1;
     this.radioButtonType2.Text            = "Bolt";
     this.radioButtonType2.CheckedChanged += new System.EventHandler(this.radioButtonType2_CheckedChanged);
     //
     // radioButtonType1
     //
     this.radioButtonType1.Checked         = true;
     this.radioButtonType1.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.radioButtonType1.Location        = new System.Drawing.Point(8, 64);
     this.radioButtonType1.Name            = "radioButtonType1";
     this.radioButtonType1.Size            = new System.Drawing.Size(200, 24);
     this.radioButtonType1.TabIndex        = 0;
     this.radioButtonType1.TabStop         = true;
     this.radioButtonType1.Text            = "Particle System";
     this.radioButtonType1.CheckedChanged += new System.EventHandler(this.radioButtonType1_CheckedChanged);
     //
     // groupBoxProperties
     //
     this.groupBoxProperties.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.propertyGridSystem
     });
     this.groupBoxProperties.Location = new System.Drawing.Point(8, 264);
     this.groupBoxProperties.Name     = "groupBoxProperties";
     this.groupBoxProperties.Size     = new System.Drawing.Size(216, 200);
     this.groupBoxProperties.TabIndex = 3;
     this.groupBoxProperties.TabStop  = false;
     this.groupBoxProperties.Text     = "Properties";
     //
     // propertyGridSystem
     //
     this.propertyGridSystem.CommandsVisibleIfAvailable = true;
     this.propertyGridSystem.LargeButtons  = false;
     this.propertyGridSystem.LineColor     = System.Drawing.SystemColors.ScrollBar;
     this.propertyGridSystem.Location      = new System.Drawing.Point(8, 24);
     this.propertyGridSystem.Name          = "propertyGridSystem";
     this.propertyGridSystem.Size          = new System.Drawing.Size(200, 168);
     this.propertyGridSystem.TabIndex      = 0;
     this.propertyGridSystem.Text          = "propertyGrid1";
     this.propertyGridSystem.ViewBackColor = System.Drawing.SystemColors.Window;
     this.propertyGridSystem.ViewForeColor = System.Drawing.SystemColors.WindowText;
     //
     // openGLCtrlParticlebuild
     //
     this.openGLCtrlParticlebuild.Location = new System.Drawing.Point(232, 16);
     this.openGLCtrlParticlebuild.Mouse    = SharpGL.SceneGraph.MouseOperation.Translate;
     this.openGLCtrlParticlebuild.Name     = "openGLCtrlParticlebuild";
     this.openGLCtrlParticlebuild.Size     = new System.Drawing.Size(448, 416);
     this.openGLCtrlParticlebuild.TabIndex = 4;
     //
     // timerSystemTick
     //
     this.timerSystemTick.Enabled             = true;
     this.timerSystemTick.SynchronizingObject = this;
     this.timerSystemTick.Elapsed            += new System.Timers.ElapsedEventHandler(this.timerSystemTick_Elapsed);
     //
     // buttonOK
     //
     this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.buttonOK.Location     = new System.Drawing.Point(608, 440);
     this.buttonOK.Name         = "buttonOK";
     this.buttonOK.TabIndex     = 5;
     this.buttonOK.Text         = "OK";
     //
     // ParticleSystemBuilderForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize        = new System.Drawing.Size(690, 472);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.buttonOK,
         this.openGLCtrlParticlebuild,
         this.groupBoxProperties,
         this.groupBoxType,
         this.groupBoxIdentity
     });
     this.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name            = "ParticleSystemBuilderForm";
     this.Text            = "ParticleSystem Builder";
     this.Load           += new System.EventHandler(this.ParticleSystemBuilder_Load);
     this.groupBoxIdentity.ResumeLayout(false);
     this.groupBoxType.ResumeLayout(false);
     this.groupBoxProperties.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.timerSystemTick)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #5
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.groupBoxIdentity = new System.Windows.Forms.GroupBox();
			this.textBoxName = new System.Windows.Forms.TextBox();
			this.groupBoxType = new System.Windows.Forms.GroupBox();
			this.labelTypes = new System.Windows.Forms.Label();
			this.radioButtonType5 = new System.Windows.Forms.RadioButton();
			this.radioButtonType3 = new System.Windows.Forms.RadioButton();
			this.radioButtonType4 = new System.Windows.Forms.RadioButton();
			this.radioButtonType2 = new System.Windows.Forms.RadioButton();
			this.radioButtonType1 = new System.Windows.Forms.RadioButton();
			this.groupBoxProperties = new System.Windows.Forms.GroupBox();
			this.propertyGridSystem = new System.Windows.Forms.PropertyGrid();
            this.openGLCtrlParticlebuild = new SharpGL.SceneControl();
			this.timerSystemTick = new System.Timers.Timer();
			this.buttonOK = new System.Windows.Forms.Button();
			this.groupBoxIdentity.SuspendLayout();
			this.groupBoxType.SuspendLayout();
			this.groupBoxProperties.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.timerSystemTick)).BeginInit();
			this.SuspendLayout();
			// 
			// groupBoxIdentity
			// 
			this.groupBoxIdentity.Controls.AddRange(new System.Windows.Forms.Control[] {
																						   this.textBoxName});
			this.groupBoxIdentity.Location = new System.Drawing.Point(8, 8);
			this.groupBoxIdentity.Name = "groupBoxIdentity";
			this.groupBoxIdentity.Size = new System.Drawing.Size(216, 56);
			this.groupBoxIdentity.TabIndex = 1;
			this.groupBoxIdentity.TabStop = false;
			this.groupBoxIdentity.Text = "Name";
			// 
			// textBoxName
			// 
			this.textBoxName.Location = new System.Drawing.Point(8, 24);
			this.textBoxName.Name = "textBoxName";
			this.textBoxName.Size = new System.Drawing.Size(200, 21);
			this.textBoxName.TabIndex = 0;
			this.textBoxName.Text = "System Name";
			// 
			// groupBoxType
			// 
			this.groupBoxType.Controls.AddRange(new System.Windows.Forms.Control[] {
																					   this.labelTypes,
																					   this.radioButtonType5,
																					   this.radioButtonType3,
																					   this.radioButtonType4,
																					   this.radioButtonType2,
																					   this.radioButtonType1});
			this.groupBoxType.Location = new System.Drawing.Point(8, 64);
			this.groupBoxType.Name = "groupBoxType";
			this.groupBoxType.Size = new System.Drawing.Size(216, 192);
			this.groupBoxType.TabIndex = 2;
			this.groupBoxType.TabStop = false;
			this.groupBoxType.Text = "Type";
			// 
			// labelTypes
			// 
			this.labelTypes.Location = new System.Drawing.Point(8, 24);
			this.labelTypes.Name = "labelTypes";
			this.labelTypes.Size = new System.Drawing.Size(200, 40);
			this.labelTypes.TabIndex = 5;
			this.labelTypes.Text = "Warning: Changing the System Type resets ALL system properties!";
			// 
			// radioButtonType5
			// 
			this.radioButtonType5.Location = new System.Drawing.Point(8, 160);
			this.radioButtonType5.Name = "radioButtonType5";
			this.radioButtonType5.Size = new System.Drawing.Size(200, 24);
			this.radioButtonType5.TabIndex = 4;
			this.radioButtonType5.Text = "Fire";
			this.radioButtonType5.CheckedChanged += new System.EventHandler(this.radioButtonType5_CheckedChanged);
			// 
			// radioButtonType3
			// 
			this.radioButtonType3.Location = new System.Drawing.Point(8, 112);
			this.radioButtonType3.Name = "radioButtonType3";
			this.radioButtonType3.Size = new System.Drawing.Size(200, 24);
			this.radioButtonType3.TabIndex = 3;
			this.radioButtonType3.Text = "Cloud of Dust";
			this.radioButtonType3.CheckedChanged += new System.EventHandler(this.radioButtonType3_CheckedChanged);
			// 
			// radioButtonType4
			// 
			this.radioButtonType4.Location = new System.Drawing.Point(8, 136);
			this.radioButtonType4.Name = "radioButtonType4";
			this.radioButtonType4.Size = new System.Drawing.Size(200, 24);
			this.radioButtonType4.TabIndex = 2;
			this.radioButtonType4.Text = "Electricity";
			this.radioButtonType4.CheckedChanged += new System.EventHandler(this.radioButtonType4_CheckedChanged);
			// 
			// radioButtonType2
			// 
			this.radioButtonType2.Location = new System.Drawing.Point(8, 88);
			this.radioButtonType2.Name = "radioButtonType2";
			this.radioButtonType2.Size = new System.Drawing.Size(200, 24);
			this.radioButtonType2.TabIndex = 1;
			this.radioButtonType2.Text = "Bolt";
			this.radioButtonType2.CheckedChanged += new System.EventHandler(this.radioButtonType2_CheckedChanged);
			// 
			// radioButtonType1
			// 
			this.radioButtonType1.Checked = true;
			this.radioButtonType1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.radioButtonType1.Location = new System.Drawing.Point(8, 64);
			this.radioButtonType1.Name = "radioButtonType1";
			this.radioButtonType1.Size = new System.Drawing.Size(200, 24);
			this.radioButtonType1.TabIndex = 0;
			this.radioButtonType1.TabStop = true;
			this.radioButtonType1.Text = "Particle System";
			this.radioButtonType1.CheckedChanged += new System.EventHandler(this.radioButtonType1_CheckedChanged);
			// 
			// groupBoxProperties
			// 
			this.groupBoxProperties.Controls.AddRange(new System.Windows.Forms.Control[] {
																							 this.propertyGridSystem});
			this.groupBoxProperties.Location = new System.Drawing.Point(8, 264);
			this.groupBoxProperties.Name = "groupBoxProperties";
			this.groupBoxProperties.Size = new System.Drawing.Size(216, 200);
			this.groupBoxProperties.TabIndex = 3;
			this.groupBoxProperties.TabStop = false;
			this.groupBoxProperties.Text = "Properties";
			// 
			// propertyGridSystem
			// 
			this.propertyGridSystem.CommandsVisibleIfAvailable = true;
			this.propertyGridSystem.LargeButtons = false;
			this.propertyGridSystem.LineColor = System.Drawing.SystemColors.ScrollBar;
			this.propertyGridSystem.Location = new System.Drawing.Point(8, 24);
			this.propertyGridSystem.Name = "propertyGridSystem";
			this.propertyGridSystem.Size = new System.Drawing.Size(200, 168);
			this.propertyGridSystem.TabIndex = 0;
			this.propertyGridSystem.Text = "propertyGrid1";
			this.propertyGridSystem.ViewBackColor = System.Drawing.SystemColors.Window;
			this.propertyGridSystem.ViewForeColor = System.Drawing.SystemColors.WindowText;
			// 
			// openGLCtrlParticlebuild
			// 
			this.openGLCtrlParticlebuild.Location = new System.Drawing.Point(232, 16);
			this.openGLCtrlParticlebuild.Mouse = SharpGL.SceneGraph.MouseOperation.Translate;
			this.openGLCtrlParticlebuild.Name = "openGLCtrlParticlebuild";
			this.openGLCtrlParticlebuild.Size = new System.Drawing.Size(448, 416);
			this.openGLCtrlParticlebuild.TabIndex = 4;
			// 
			// timerSystemTick
			// 
			this.timerSystemTick.Enabled = true;
			this.timerSystemTick.SynchronizingObject = this;
			this.timerSystemTick.Elapsed += new System.Timers.ElapsedEventHandler(this.timerSystemTick_Elapsed);
			// 
			// buttonOK
			// 
			this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.buttonOK.Location = new System.Drawing.Point(608, 440);
			this.buttonOK.Name = "buttonOK";
			this.buttonOK.TabIndex = 5;
			this.buttonOK.Text = "OK";
			// 
			// ParticleSystemBuilderForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
			this.ClientSize = new System.Drawing.Size(690, 472);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.buttonOK,
																		  this.openGLCtrlParticlebuild,
																		  this.groupBoxProperties,
																		  this.groupBoxType,
																		  this.groupBoxIdentity});
			this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
			this.Name = "ParticleSystemBuilderForm";
			this.Text = "ParticleSystem Builder";
			this.Load += new System.EventHandler(this.ParticleSystemBuilder_Load);
			this.groupBoxIdentity.ResumeLayout(false);
			this.groupBoxType.ResumeLayout(false);
			this.groupBoxProperties.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.timerSystemTick)).EndInit();
			this.ResumeLayout(false);

		}