From 1a9cdf6990fa5dcd1e4bac3f714f4663fb220e85 Mon Sep 17 00:00:00 2001 From: mfakane Date: Sat, 31 Dec 2022 14:51:42 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A2=E3=83=BC=E3=83=95=E3=81=B8=E3=81=AE?= =?UTF-8?q?=E3=83=8E=E3=82=A4=E3=82=BA=E4=BB=98=E5=8A=A0=E3=81=AB=E5=AF=BE?= =?UTF-8?q?=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ApplyNoisePlugin/ApplyNoiseCommand.cs | 4 +- ApplyNoisePlugin/ApplyNoiseForm.Designer.cs | 2053 +++++++++-------- ApplyNoisePlugin/ApplyNoiseForm.cs | 16 +- ApplyNoisePlugin/ApplyNoiseForm.resx | 4 +- ApplyNoisePlugin/ApplyNoisePlugin.txt | 1 + .../Transform/CameraLayerTransformer.cs | 4 +- .../Transform/CompositeTransformer.cs | 7 +- ApplyNoisePlugin/Transform/ITransformer.cs | 3 +- .../Transform/KeyFrameTransformer.cs | 16 +- .../Transform/MorphTransformer.cs | 43 + .../Transform/MotionLayerTransformer.cs | 6 +- .../Transform/MotionTransformer.cs | 4 +- ApplyNoisePlugin/Transform/NoiseValue.cs | 4 + ApplyNoisePlugin/Transform/Transformer.cs | 2 + PluginFramework/Framework/SceneExtensions.cs | 36 +- 15 files changed, 1217 insertions(+), 986 deletions(-) create mode 100644 ApplyNoisePlugin/Transform/MorphTransformer.cs diff --git a/ApplyNoisePlugin/ApplyNoiseCommand.cs b/ApplyNoisePlugin/ApplyNoiseCommand.cs index 035c82a..a4839d2 100644 --- a/ApplyNoisePlugin/ApplyNoiseCommand.cs +++ b/ApplyNoisePlugin/ApplyNoiseCommand.cs @@ -39,10 +39,12 @@ public override void Run(CommandArgs e) KeyShiftWidth = 0, NoiseValueInterval = 5, NoiseValue = NoiseValue.Default, + NormalizeWeight = true, IsPositionEnabled = transformer.CanApplyTranslation, IsPositionLocalVisible = transformer.CanTranslateByLocal, IsRotationEnabled = transformer.CanApplyRotation, IsRotationLocalVisible = transformer.CanRotateByLocal, + IsWeightEnabled = transformer.CanApplyWeight, IsEnvironmentEnabled = false, IsPositionLocal = transformer.CanRotateByLocal, IsRotationLocal = transformer.CanRotateByLocal, @@ -64,7 +66,7 @@ public override void Run(CommandArgs e) ); using (Scene.BeginUndoBlock()) - transformer.ApplyNoise(context, f.IsPositionLocal, f.IsRotationLocal); + transformer.ApplyNoise(context, f.IsPositionLocal, f.IsRotationLocal, f.NormalizeWeight); } public override string Description => "選択したキーフレームの移動および回転値に指定したオフセットを与えます。"; diff --git a/ApplyNoisePlugin/ApplyNoiseForm.Designer.cs b/ApplyNoisePlugin/ApplyNoiseForm.Designer.cs index 92349b3..ee23559 100644 --- a/ApplyNoisePlugin/ApplyNoiseForm.Designer.cs +++ b/ApplyNoisePlugin/ApplyNoiseForm.Designer.cs @@ -28,1034 +28,1165 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.positionZNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.rotationPanel = new System.Windows.Forms.TableLayoutPanel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.label6 = new System.Windows.Forms.Label(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.label7 = new System.Windows.Forms.Label(); - this.rotationXNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.rotationYNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.rotationZNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.rotationXTrackBar = new System.Windows.Forms.TrackBar(); - this.rotationYTrackBar = new System.Windows.Forms.TrackBar(); - this.rotationZTrackBar = new System.Windows.Forms.TrackBar(); - this.rotationLocalCheckBox = new System.Windows.Forms.CheckBox(); - this.positionPanel = new System.Windows.Forms.TableLayoutPanel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.positionLabel = new System.Windows.Forms.Label(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.label2 = new System.Windows.Forms.Label(); - this.positionXNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.positionYNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.positionXTrackBar = new System.Windows.Forms.TrackBar(); - this.positionYTrackBar = new System.Windows.Forms.TrackBar(); - this.positionZTrackBar = new System.Windows.Forms.TrackBar(); - this.positionLocalCheckBox = new System.Windows.Forms.CheckBox(); - this.label5 = new System.Windows.Forms.Label(); - this.outerContainerPanel = new System.Windows.Forms.TableLayoutPanel(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.okButton = new System.Windows.Forms.Button(); - this.cancelButton = new System.Windows.Forms.Button(); - this.innerContainerPanel = new System.Windows.Forms.TableLayoutPanel(); - this.environmentPanel = new System.Windows.Forms.TableLayoutPanel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.groupBox4 = new System.Windows.Forms.GroupBox(); - this.gravityNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.label12 = new System.Windows.Forms.Label(); - this.gravityTrackBar = new System.Windows.Forms.TrackBar(); - this.label13 = new System.Windows.Forms.Label(); - this.gravityXNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.label14 = new System.Windows.Forms.Label(); - this.label17 = new System.Windows.Forms.Label(); - this.gravityYNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.gravityZNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.gravityXTrackBar = new System.Windows.Forms.TrackBar(); - this.gravityYTrackBar = new System.Windows.Forms.TrackBar(); - this.gravityZTrackBar = new System.Windows.Forms.TrackBar(); - this.colorPanel = new System.Windows.Forms.TableLayoutPanel(); - this.label15 = new System.Windows.Forms.Label(); - this.keyFrameIntervalNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.noiseValueIntervalNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.keyFrameIntervalTrackBar = new System.Windows.Forms.TrackBar(); - this.noiseValueIntervalTrackBar = new System.Windows.Forms.TrackBar(); - this.keyShiftNoiseNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.keyShiftNoiseTrackBar = new System.Windows.Forms.TrackBar(); - this.label16 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.positionZNumericUpDown)).BeginInit(); - this.rotationPanel.SuspendLayout(); - this.panel2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.rotationXNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.rotationYNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.rotationZNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.rotationXTrackBar)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.rotationYTrackBar)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.rotationZTrackBar)).BeginInit(); - this.positionPanel.SuspendLayout(); - this.panel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.positionXNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.positionYNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.positionXTrackBar)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.positionYTrackBar)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.positionZTrackBar)).BeginInit(); - this.outerContainerPanel.SuspendLayout(); - this.flowLayoutPanel1.SuspendLayout(); - this.innerContainerPanel.SuspendLayout(); - this.environmentPanel.SuspendLayout(); - this.panel4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gravityNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityTrackBar)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityXNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityYNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityZNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityXTrackBar)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityYTrackBar)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityZTrackBar)).BeginInit(); - this.colorPanel.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.keyFrameIntervalNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.noiseValueIntervalNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.keyFrameIntervalTrackBar)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.noiseValueIntervalTrackBar)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.keyShiftNoiseNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.keyShiftNoiseTrackBar)).BeginInit(); - this.SuspendLayout(); - // - // positionZNumericUpDown - // - this.positionZNumericUpDown.DecimalPlaces = 4; - this.positionZNumericUpDown.Location = new System.Drawing.Point(204, 95); - this.positionZNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.positionZNumericUpDown.Name = "positionZNumericUpDown"; - this.positionZNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.positionZNumericUpDown.TabIndex = 9; - this.positionZNumericUpDown.Value = new decimal(new int[] { + this.positionZNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.rotationPanel = new System.Windows.Forms.TableLayoutPanel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.label6 = new System.Windows.Forms.Label(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.label7 = new System.Windows.Forms.Label(); + this.rotationXNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.label8 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.rotationYNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.rotationZNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.rotationXTrackBar = new System.Windows.Forms.TrackBar(); + this.rotationYTrackBar = new System.Windows.Forms.TrackBar(); + this.rotationZTrackBar = new System.Windows.Forms.TrackBar(); + this.rotationLocalCheckBox = new System.Windows.Forms.CheckBox(); + this.positionPanel = new System.Windows.Forms.TableLayoutPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this.positionLabel = new System.Windows.Forms.Label(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.label2 = new System.Windows.Forms.Label(); + this.positionXNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.positionYNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.positionXTrackBar = new System.Windows.Forms.TrackBar(); + this.positionYTrackBar = new System.Windows.Forms.TrackBar(); + this.positionZTrackBar = new System.Windows.Forms.TrackBar(); + this.positionLocalCheckBox = new System.Windows.Forms.CheckBox(); + this.label5 = new System.Windows.Forms.Label(); + this.outerContainerPanel = new System.Windows.Forms.TableLayoutPanel(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.okButton = new System.Windows.Forms.Button(); + this.cancelButton = new System.Windows.Forms.Button(); + this.innerContainerPanel = new System.Windows.Forms.TableLayoutPanel(); + this.environmentPanel = new System.Windows.Forms.TableLayoutPanel(); + this.panel4 = new System.Windows.Forms.Panel(); + this.label1 = new System.Windows.Forms.Label(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.gravityNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.label12 = new System.Windows.Forms.Label(); + this.gravityTrackBar = new System.Windows.Forms.TrackBar(); + this.label13 = new System.Windows.Forms.Label(); + this.gravityXNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.label14 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.gravityYNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.gravityZNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.gravityXTrackBar = new System.Windows.Forms.TrackBar(); + this.gravityYTrackBar = new System.Windows.Forms.TrackBar(); + this.gravityZTrackBar = new System.Windows.Forms.TrackBar(); + this.weightPanel = new System.Windows.Forms.TableLayoutPanel(); + this.panel3 = new System.Windows.Forms.Panel(); + this.label11 = new System.Windows.Forms.Label(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.label18 = new System.Windows.Forms.Label(); + this.weightNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.weightTrackBar = new System.Windows.Forms.TrackBar(); + this.normalizeWeightCheckBox = new System.Windows.Forms.CheckBox(); + this.colorPanel = new System.Windows.Forms.TableLayoutPanel(); + this.label15 = new System.Windows.Forms.Label(); + this.keyFrameIntervalNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.noiseValueIntervalNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.keyFrameIntervalTrackBar = new System.Windows.Forms.TrackBar(); + this.noiseValueIntervalTrackBar = new System.Windows.Forms.TrackBar(); + this.keyShiftNoiseNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.keyShiftNoiseTrackBar = new System.Windows.Forms.TrackBar(); + this.label16 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.positionZNumericUpDown)).BeginInit(); + this.rotationPanel.SuspendLayout(); + this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.rotationXNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.rotationYNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.rotationZNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.rotationXTrackBar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.rotationYTrackBar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.rotationZTrackBar)).BeginInit(); + this.positionPanel.SuspendLayout(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.positionXNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.positionYNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.positionXTrackBar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.positionYTrackBar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.positionZTrackBar)).BeginInit(); + this.outerContainerPanel.SuspendLayout(); + this.flowLayoutPanel1.SuspendLayout(); + this.innerContainerPanel.SuspendLayout(); + this.environmentPanel.SuspendLayout(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gravityNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityTrackBar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityXNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityYNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityZNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityXTrackBar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityYTrackBar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityZTrackBar)).BeginInit(); + this.weightPanel.SuspendLayout(); + this.panel3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.weightNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.weightTrackBar)).BeginInit(); + this.colorPanel.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.keyFrameIntervalNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.noiseValueIntervalNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.keyFrameIntervalTrackBar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.noiseValueIntervalTrackBar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.keyShiftNoiseNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.keyShiftNoiseTrackBar)).BeginInit(); + this.SuspendLayout(); + // + // positionZNumericUpDown + // + this.positionZNumericUpDown.DecimalPlaces = 4; + this.positionZNumericUpDown.Location = new System.Drawing.Point(204, 95); + this.positionZNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.positionZNumericUpDown.Name = "positionZNumericUpDown"; + this.positionZNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.positionZNumericUpDown.TabIndex = 9; + this.positionZNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // rotationPanel - // - this.rotationPanel.AutoSize = true; - this.rotationPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.rotationPanel.ColumnCount = 4; - this.rotationPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.rotationPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 48F)); - this.rotationPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.rotationPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.rotationPanel.Controls.Add(this.panel2, 0, 0); - this.rotationPanel.Controls.Add(this.label7, 1, 1); - this.rotationPanel.Controls.Add(this.rotationXNumericUpDown, 3, 1); - this.rotationPanel.Controls.Add(this.label8, 1, 2); - this.rotationPanel.Controls.Add(this.label9, 1, 3); - this.rotationPanel.Controls.Add(this.rotationYNumericUpDown, 3, 2); - this.rotationPanel.Controls.Add(this.rotationZNumericUpDown, 3, 3); - this.rotationPanel.Controls.Add(this.rotationXTrackBar, 2, 1); - this.rotationPanel.Controls.Add(this.rotationYTrackBar, 2, 2); - this.rotationPanel.Controls.Add(this.rotationZTrackBar, 2, 3); - this.rotationPanel.Controls.Add(this.rotationLocalCheckBox, 1, 4); - this.rotationPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.rotationPanel.Location = new System.Drawing.Point(8, 266); - this.rotationPanel.Margin = new System.Windows.Forms.Padding(0); - this.rotationPanel.Name = "rotationPanel"; - this.rotationPanel.RowCount = 5; - this.rotationPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.rotationPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.rotationPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.rotationPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.rotationPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.rotationPanel.Size = new System.Drawing.Size(268, 153); - this.rotationPanel.TabIndex = 2; - // - // panel2 - // - this.panel2.AutoSize = true; - this.panel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.rotationPanel.SetColumnSpan(this.panel2, 4); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.groupBox2); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(0, 0); - this.panel2.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(268, 15); - this.panel2.TabIndex = 0; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label6.Location = new System.Drawing.Point(0, 3); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(41, 12); - this.label6.TabIndex = 0; - this.label6.Text = "回転幅"; - // - // groupBox2 - // - this.groupBox2.Dock = System.Windows.Forms.DockStyle.Bottom; - this.groupBox2.Location = new System.Drawing.Point(0, 11); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(268, 4); - this.groupBox2.TabIndex = 1; - this.groupBox2.TabStop = false; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label7.Location = new System.Drawing.Point(16, 28); - this.label7.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(14, 12); - this.label7.TabIndex = 1; - this.label7.Text = "X:"; - // - // rotationXNumericUpDown - // - this.rotationXNumericUpDown.DecimalPlaces = 4; - this.rotationXNumericUpDown.Location = new System.Drawing.Point(204, 25); - this.rotationXNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.rotationXNumericUpDown.Name = "rotationXNumericUpDown"; - this.rotationXNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.rotationXNumericUpDown.TabIndex = 3; - this.rotationXNumericUpDown.Value = new decimal(new int[] { + // + // rotationPanel + // + this.rotationPanel.AutoSize = true; + this.rotationPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.rotationPanel.ColumnCount = 4; + this.rotationPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.rotationPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 48F)); + this.rotationPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.rotationPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.rotationPanel.Controls.Add(this.panel2, 0, 0); + this.rotationPanel.Controls.Add(this.label7, 1, 1); + this.rotationPanel.Controls.Add(this.rotationXNumericUpDown, 3, 1); + this.rotationPanel.Controls.Add(this.label8, 1, 2); + this.rotationPanel.Controls.Add(this.label9, 1, 3); + this.rotationPanel.Controls.Add(this.rotationYNumericUpDown, 3, 2); + this.rotationPanel.Controls.Add(this.rotationZNumericUpDown, 3, 3); + this.rotationPanel.Controls.Add(this.rotationXTrackBar, 2, 1); + this.rotationPanel.Controls.Add(this.rotationYTrackBar, 2, 2); + this.rotationPanel.Controls.Add(this.rotationZTrackBar, 2, 3); + this.rotationPanel.Controls.Add(this.rotationLocalCheckBox, 1, 4); + this.rotationPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.rotationPanel.Location = new System.Drawing.Point(8, 266); + this.rotationPanel.Margin = new System.Windows.Forms.Padding(0); + this.rotationPanel.Name = "rotationPanel"; + this.rotationPanel.RowCount = 5; + this.rotationPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.rotationPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.rotationPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.rotationPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.rotationPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.rotationPanel.Size = new System.Drawing.Size(268, 153); + this.rotationPanel.TabIndex = 2; + // + // panel2 + // + this.panel2.AutoSize = true; + this.panel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.rotationPanel.SetColumnSpan(this.panel2, 4); + this.panel2.Controls.Add(this.label6); + this.panel2.Controls.Add(this.groupBox2); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(268, 15); + this.panel2.TabIndex = 0; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label6.Location = new System.Drawing.Point(0, 3); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(41, 12); + this.label6.TabIndex = 0; + this.label6.Text = "回転幅"; + // + // groupBox2 + // + this.groupBox2.Dock = System.Windows.Forms.DockStyle.Bottom; + this.groupBox2.Location = new System.Drawing.Point(0, 11); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(268, 4); + this.groupBox2.TabIndex = 1; + this.groupBox2.TabStop = false; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label7.Location = new System.Drawing.Point(16, 28); + this.label7.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(14, 12); + this.label7.TabIndex = 1; + this.label7.Text = "X:"; + // + // rotationXNumericUpDown + // + this.rotationXNumericUpDown.DecimalPlaces = 4; + this.rotationXNumericUpDown.Location = new System.Drawing.Point(204, 25); + this.rotationXNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.rotationXNumericUpDown.Name = "rotationXNumericUpDown"; + this.rotationXNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.rotationXNumericUpDown.TabIndex = 3; + this.rotationXNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // label8 - // - this.label8.AutoSize = true; - this.label8.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label8.Location = new System.Drawing.Point(16, 63); - this.label8.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(14, 12); - this.label8.TabIndex = 4; - this.label8.Text = "Y:"; - // - // label9 - // - this.label9.AutoSize = true; - this.label9.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label9.Location = new System.Drawing.Point(16, 98); - this.label9.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(14, 12); - this.label9.TabIndex = 7; - this.label9.Text = "Z:"; - // - // rotationYNumericUpDown - // - this.rotationYNumericUpDown.DecimalPlaces = 4; - this.rotationYNumericUpDown.Location = new System.Drawing.Point(204, 60); - this.rotationYNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.rotationYNumericUpDown.Name = "rotationYNumericUpDown"; - this.rotationYNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.rotationYNumericUpDown.TabIndex = 6; - this.rotationYNumericUpDown.Value = new decimal(new int[] { + // + // label8 + // + this.label8.AutoSize = true; + this.label8.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label8.Location = new System.Drawing.Point(16, 63); + this.label8.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(14, 12); + this.label8.TabIndex = 4; + this.label8.Text = "Y:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label9.Location = new System.Drawing.Point(16, 98); + this.label9.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(14, 12); + this.label9.TabIndex = 7; + this.label9.Text = "Z:"; + // + // rotationYNumericUpDown + // + this.rotationYNumericUpDown.DecimalPlaces = 4; + this.rotationYNumericUpDown.Location = new System.Drawing.Point(204, 60); + this.rotationYNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.rotationYNumericUpDown.Name = "rotationYNumericUpDown"; + this.rotationYNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.rotationYNumericUpDown.TabIndex = 6; + this.rotationYNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // rotationZNumericUpDown - // - this.rotationZNumericUpDown.DecimalPlaces = 4; - this.rotationZNumericUpDown.Location = new System.Drawing.Point(204, 95); - this.rotationZNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.rotationZNumericUpDown.Name = "rotationZNumericUpDown"; - this.rotationZNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.rotationZNumericUpDown.TabIndex = 9; - this.rotationZNumericUpDown.Value = new decimal(new int[] { + // + // rotationZNumericUpDown + // + this.rotationZNumericUpDown.DecimalPlaces = 4; + this.rotationZNumericUpDown.Location = new System.Drawing.Point(204, 95); + this.rotationZNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.rotationZNumericUpDown.Name = "rotationZNumericUpDown"; + this.rotationZNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.rotationZNumericUpDown.TabIndex = 9; + this.rotationZNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // rotationXTrackBar - // - this.rotationXTrackBar.AutoSize = false; - this.rotationXTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.rotationXTrackBar.Location = new System.Drawing.Point(64, 23); - this.rotationXTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.rotationXTrackBar.Maximum = 30; - this.rotationXTrackBar.Name = "rotationXTrackBar"; - this.rotationXTrackBar.Size = new System.Drawing.Size(140, 27); - this.rotationXTrackBar.TabIndex = 2; - this.rotationXTrackBar.TickFrequency = 6; - this.rotationXTrackBar.Value = 1; - // - // rotationYTrackBar - // - this.rotationYTrackBar.AutoSize = false; - this.rotationYTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.rotationYTrackBar.Location = new System.Drawing.Point(64, 58); - this.rotationYTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.rotationYTrackBar.Maximum = 30; - this.rotationYTrackBar.Name = "rotationYTrackBar"; - this.rotationYTrackBar.Size = new System.Drawing.Size(140, 27); - this.rotationYTrackBar.TabIndex = 5; - this.rotationYTrackBar.TickFrequency = 6; - this.rotationYTrackBar.Value = 1; - // - // rotationZTrackBar - // - this.rotationZTrackBar.AutoSize = false; - this.rotationZTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.rotationZTrackBar.Location = new System.Drawing.Point(64, 93); - this.rotationZTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.rotationZTrackBar.Maximum = 30; - this.rotationZTrackBar.Name = "rotationZTrackBar"; - this.rotationZTrackBar.Size = new System.Drawing.Size(140, 27); - this.rotationZTrackBar.TabIndex = 8; - this.rotationZTrackBar.TickFrequency = 6; - this.rotationZTrackBar.Value = 1; - // - // rotationLocalCheckBox - // - this.rotationLocalCheckBox.AutoSize = true; - this.rotationPanel.SetColumnSpan(this.rotationLocalCheckBox, 2); - this.rotationLocalCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.rotationLocalCheckBox.Location = new System.Drawing.Point(16, 128); - this.rotationLocalCheckBox.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.rotationLocalCheckBox.Name = "rotationLocalCheckBox"; - this.rotationLocalCheckBox.Size = new System.Drawing.Size(157, 17); - this.rotationLocalCheckBox.TabIndex = 10; - this.rotationLocalCheckBox.Text = "ローカル座標系で付加する"; - this.rotationLocalCheckBox.UseVisualStyleBackColor = true; - // - // positionPanel - // - this.positionPanel.AutoSize = true; - this.positionPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.positionPanel.ColumnCount = 4; - this.positionPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.positionPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 48F)); - this.positionPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.positionPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.positionPanel.Controls.Add(this.panel1, 0, 0); - this.positionPanel.Controls.Add(this.label2, 1, 1); - this.positionPanel.Controls.Add(this.positionXNumericUpDown, 3, 1); - this.positionPanel.Controls.Add(this.label3, 1, 2); - this.positionPanel.Controls.Add(this.label4, 1, 3); - this.positionPanel.Controls.Add(this.positionYNumericUpDown, 3, 2); - this.positionPanel.Controls.Add(this.positionZNumericUpDown, 3, 3); - this.positionPanel.Controls.Add(this.positionXTrackBar, 2, 1); - this.positionPanel.Controls.Add(this.positionYTrackBar, 2, 2); - this.positionPanel.Controls.Add(this.positionZTrackBar, 2, 3); - this.positionPanel.Controls.Add(this.positionLocalCheckBox, 1, 4); - this.positionPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.positionPanel.Location = new System.Drawing.Point(8, 113); - this.positionPanel.Margin = new System.Windows.Forms.Padding(0); - this.positionPanel.Name = "positionPanel"; - this.positionPanel.RowCount = 5; - this.positionPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.positionPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.positionPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.positionPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.positionPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.positionPanel.Size = new System.Drawing.Size(268, 153); - this.positionPanel.TabIndex = 1; - // - // panel1 - // - this.panel1.AutoSize = true; - this.panel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.positionPanel.SetColumnSpan(this.panel1, 4); - this.panel1.Controls.Add(this.positionLabel); - this.panel1.Controls.Add(this.groupBox1); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(268, 15); - this.panel1.TabIndex = 0; - // - // positionLabel - // - this.positionLabel.AutoSize = true; - this.positionLabel.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.positionLabel.Location = new System.Drawing.Point(0, 3); - this.positionLabel.Name = "positionLabel"; - this.positionLabel.Size = new System.Drawing.Size(41, 12); - this.positionLabel.TabIndex = 0; - this.positionLabel.Text = "移動幅"; - // - // groupBox1 - // - this.groupBox1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.groupBox1.Location = new System.Drawing.Point(0, 11); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(268, 4); - this.groupBox1.TabIndex = 1; - this.groupBox1.TabStop = false; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label2.Location = new System.Drawing.Point(16, 28); - this.label2.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(14, 12); - this.label2.TabIndex = 1; - this.label2.Text = "X:"; - // - // positionXNumericUpDown - // - this.positionXNumericUpDown.DecimalPlaces = 4; - this.positionXNumericUpDown.Location = new System.Drawing.Point(204, 25); - this.positionXNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.positionXNumericUpDown.Name = "positionXNumericUpDown"; - this.positionXNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.positionXNumericUpDown.TabIndex = 3; - this.positionXNumericUpDown.Value = new decimal(new int[] { + // + // rotationXTrackBar + // + this.rotationXTrackBar.AutoSize = false; + this.rotationXTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.rotationXTrackBar.Location = new System.Drawing.Point(64, 23); + this.rotationXTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.rotationXTrackBar.Maximum = 30; + this.rotationXTrackBar.Name = "rotationXTrackBar"; + this.rotationXTrackBar.Size = new System.Drawing.Size(140, 27); + this.rotationXTrackBar.TabIndex = 2; + this.rotationXTrackBar.TickFrequency = 6; + this.rotationXTrackBar.Value = 1; + // + // rotationYTrackBar + // + this.rotationYTrackBar.AutoSize = false; + this.rotationYTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.rotationYTrackBar.Location = new System.Drawing.Point(64, 58); + this.rotationYTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.rotationYTrackBar.Maximum = 30; + this.rotationYTrackBar.Name = "rotationYTrackBar"; + this.rotationYTrackBar.Size = new System.Drawing.Size(140, 27); + this.rotationYTrackBar.TabIndex = 5; + this.rotationYTrackBar.TickFrequency = 6; + this.rotationYTrackBar.Value = 1; + // + // rotationZTrackBar + // + this.rotationZTrackBar.AutoSize = false; + this.rotationZTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.rotationZTrackBar.Location = new System.Drawing.Point(64, 93); + this.rotationZTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.rotationZTrackBar.Maximum = 30; + this.rotationZTrackBar.Name = "rotationZTrackBar"; + this.rotationZTrackBar.Size = new System.Drawing.Size(140, 27); + this.rotationZTrackBar.TabIndex = 8; + this.rotationZTrackBar.TickFrequency = 6; + this.rotationZTrackBar.Value = 1; + // + // rotationLocalCheckBox + // + this.rotationLocalCheckBox.AutoSize = true; + this.rotationPanel.SetColumnSpan(this.rotationLocalCheckBox, 2); + this.rotationLocalCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.rotationLocalCheckBox.Location = new System.Drawing.Point(16, 128); + this.rotationLocalCheckBox.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.rotationLocalCheckBox.Name = "rotationLocalCheckBox"; + this.rotationLocalCheckBox.Size = new System.Drawing.Size(157, 17); + this.rotationLocalCheckBox.TabIndex = 10; + this.rotationLocalCheckBox.Text = "ローカル座標系で付加する"; + this.rotationLocalCheckBox.UseVisualStyleBackColor = true; + // + // positionPanel + // + this.positionPanel.AutoSize = true; + this.positionPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.positionPanel.ColumnCount = 4; + this.positionPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.positionPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 48F)); + this.positionPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.positionPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.positionPanel.Controls.Add(this.panel1, 0, 0); + this.positionPanel.Controls.Add(this.label2, 1, 1); + this.positionPanel.Controls.Add(this.positionXNumericUpDown, 3, 1); + this.positionPanel.Controls.Add(this.label3, 1, 2); + this.positionPanel.Controls.Add(this.label4, 1, 3); + this.positionPanel.Controls.Add(this.positionYNumericUpDown, 3, 2); + this.positionPanel.Controls.Add(this.positionZNumericUpDown, 3, 3); + this.positionPanel.Controls.Add(this.positionXTrackBar, 2, 1); + this.positionPanel.Controls.Add(this.positionYTrackBar, 2, 2); + this.positionPanel.Controls.Add(this.positionZTrackBar, 2, 3); + this.positionPanel.Controls.Add(this.positionLocalCheckBox, 1, 4); + this.positionPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.positionPanel.Location = new System.Drawing.Point(8, 113); + this.positionPanel.Margin = new System.Windows.Forms.Padding(0); + this.positionPanel.Name = "positionPanel"; + this.positionPanel.RowCount = 5; + this.positionPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.positionPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.positionPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.positionPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.positionPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.positionPanel.Size = new System.Drawing.Size(268, 153); + this.positionPanel.TabIndex = 1; + // + // panel1 + // + this.panel1.AutoSize = true; + this.panel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.positionPanel.SetColumnSpan(this.panel1, 4); + this.panel1.Controls.Add(this.positionLabel); + this.panel1.Controls.Add(this.groupBox1); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(268, 15); + this.panel1.TabIndex = 0; + // + // positionLabel + // + this.positionLabel.AutoSize = true; + this.positionLabel.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.positionLabel.Location = new System.Drawing.Point(0, 3); + this.positionLabel.Name = "positionLabel"; + this.positionLabel.Size = new System.Drawing.Size(41, 12); + this.positionLabel.TabIndex = 0; + this.positionLabel.Text = "移動幅"; + // + // groupBox1 + // + this.groupBox1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.groupBox1.Location = new System.Drawing.Point(0, 11); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(268, 4); + this.groupBox1.TabIndex = 1; + this.groupBox1.TabStop = false; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label2.Location = new System.Drawing.Point(16, 28); + this.label2.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(14, 12); + this.label2.TabIndex = 1; + this.label2.Text = "X:"; + // + // positionXNumericUpDown + // + this.positionXNumericUpDown.DecimalPlaces = 4; + this.positionXNumericUpDown.Location = new System.Drawing.Point(204, 25); + this.positionXNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.positionXNumericUpDown.Name = "positionXNumericUpDown"; + this.positionXNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.positionXNumericUpDown.TabIndex = 3; + this.positionXNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // label3 - // - this.label3.AutoSize = true; - this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label3.Location = new System.Drawing.Point(16, 63); - this.label3.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(14, 12); - this.label3.TabIndex = 4; - this.label3.Text = "Y:"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label4.Location = new System.Drawing.Point(16, 98); - this.label4.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(14, 12); - this.label4.TabIndex = 7; - this.label4.Text = "Z:"; - // - // positionYNumericUpDown - // - this.positionYNumericUpDown.DecimalPlaces = 4; - this.positionYNumericUpDown.Location = new System.Drawing.Point(204, 60); - this.positionYNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.positionYNumericUpDown.Name = "positionYNumericUpDown"; - this.positionYNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.positionYNumericUpDown.TabIndex = 6; - this.positionYNumericUpDown.Value = new decimal(new int[] { + // + // label3 + // + this.label3.AutoSize = true; + this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label3.Location = new System.Drawing.Point(16, 63); + this.label3.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(14, 12); + this.label3.TabIndex = 4; + this.label3.Text = "Y:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label4.Location = new System.Drawing.Point(16, 98); + this.label4.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(14, 12); + this.label4.TabIndex = 7; + this.label4.Text = "Z:"; + // + // positionYNumericUpDown + // + this.positionYNumericUpDown.DecimalPlaces = 4; + this.positionYNumericUpDown.Location = new System.Drawing.Point(204, 60); + this.positionYNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.positionYNumericUpDown.Name = "positionYNumericUpDown"; + this.positionYNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.positionYNumericUpDown.TabIndex = 6; + this.positionYNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // positionXTrackBar - // - this.positionXTrackBar.AutoSize = false; - this.positionXTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.positionXTrackBar.Location = new System.Drawing.Point(64, 23); - this.positionXTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.positionXTrackBar.Maximum = 30; - this.positionXTrackBar.Name = "positionXTrackBar"; - this.positionXTrackBar.Size = new System.Drawing.Size(140, 27); - this.positionXTrackBar.TabIndex = 2; - this.positionXTrackBar.TickFrequency = 6; - this.positionXTrackBar.Value = 1; - // - // positionYTrackBar - // - this.positionYTrackBar.AutoSize = false; - this.positionYTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.positionYTrackBar.Location = new System.Drawing.Point(64, 58); - this.positionYTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.positionYTrackBar.Maximum = 30; - this.positionYTrackBar.Name = "positionYTrackBar"; - this.positionYTrackBar.Size = new System.Drawing.Size(140, 27); - this.positionYTrackBar.TabIndex = 5; - this.positionYTrackBar.TickFrequency = 6; - this.positionYTrackBar.Value = 1; - // - // positionZTrackBar - // - this.positionZTrackBar.AutoSize = false; - this.positionZTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.positionZTrackBar.Location = new System.Drawing.Point(64, 93); - this.positionZTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.positionZTrackBar.Maximum = 30; - this.positionZTrackBar.Name = "positionZTrackBar"; - this.positionZTrackBar.Size = new System.Drawing.Size(140, 27); - this.positionZTrackBar.TabIndex = 8; - this.positionZTrackBar.TickFrequency = 6; - this.positionZTrackBar.Value = 1; - // - // positionLocalCheckBox - // - this.positionLocalCheckBox.AutoSize = true; - this.positionPanel.SetColumnSpan(this.positionLocalCheckBox, 2); - this.positionLocalCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.positionLocalCheckBox.Location = new System.Drawing.Point(16, 128); - this.positionLocalCheckBox.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.positionLocalCheckBox.Name = "positionLocalCheckBox"; - this.positionLocalCheckBox.Size = new System.Drawing.Size(157, 17); - this.positionLocalCheckBox.TabIndex = 10; - this.positionLocalCheckBox.Text = "ローカル座標系で付加する"; - this.positionLocalCheckBox.UseVisualStyleBackColor = true; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(222)))), ((int)(((byte)(222))))); - this.label5.Dock = System.Windows.Forms.DockStyle.Fill; - this.label5.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label5.Location = new System.Drawing.Point(3, 600); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(278, 1); - this.label5.TabIndex = 1; - // - // outerContainerPanel - // - this.outerContainerPanel.AutoSize = true; - this.outerContainerPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.outerContainerPanel.ColumnCount = 1; - this.outerContainerPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.outerContainerPanel.Controls.Add(this.flowLayoutPanel1, 0, 2); - this.outerContainerPanel.Controls.Add(this.innerContainerPanel, 0, 0); - this.outerContainerPanel.Controls.Add(this.label5, 0, 1); - this.outerContainerPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.outerContainerPanel.Location = new System.Drawing.Point(0, 0); - this.outerContainerPanel.Name = "outerContainerPanel"; - this.outerContainerPanel.RowCount = 3; - this.outerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.outerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.outerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.outerContainerPanel.Size = new System.Drawing.Size(284, 640); - this.outerContainerPanel.TabIndex = 1; - // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.AutoSize = true; - this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.flowLayoutPanel1.Controls.Add(this.okButton); - this.flowLayoutPanel1.Controls.Add(this.cancelButton); - this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Right; - this.flowLayoutPanel1.Location = new System.Drawing.Point(118, 609); - this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(8); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(158, 23); - this.flowLayoutPanel1.TabIndex = 2; - // - // okButton - // - this.okButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK; - this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.okButton.Location = new System.Drawing.Point(0, 0); - this.okButton.Margin = new System.Windows.Forms.Padding(0, 0, 8, 0); - this.okButton.MinimumSize = new System.Drawing.Size(75, 23); - this.okButton.Name = "okButton"; - this.okButton.Size = new System.Drawing.Size(75, 23); - this.okButton.TabIndex = 0; - this.okButton.Text = "付加"; - this.okButton.UseVisualStyleBackColor = true; - // - // cancelButton - // - this.cancelButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.cancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.cancelButton.Location = new System.Drawing.Point(83, 0); - this.cancelButton.Margin = new System.Windows.Forms.Padding(0); - this.cancelButton.MinimumSize = new System.Drawing.Size(75, 23); - this.cancelButton.Name = "cancelButton"; - this.cancelButton.Size = new System.Drawing.Size(75, 23); - this.cancelButton.TabIndex = 1; - this.cancelButton.Text = "キャンセル"; - this.cancelButton.UseVisualStyleBackColor = true; - // - // innerContainerPanel - // - this.innerContainerPanel.AutoSize = true; - this.innerContainerPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.innerContainerPanel.BackColor = System.Drawing.SystemColors.Window; - this.innerContainerPanel.ColumnCount = 1; - this.innerContainerPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.innerContainerPanel.Controls.Add(this.environmentPanel, 0, 3); - this.innerContainerPanel.Controls.Add(this.colorPanel, 0, 0); - this.innerContainerPanel.Controls.Add(this.rotationPanel, 0, 2); - this.innerContainerPanel.Controls.Add(this.positionPanel, 0, 1); - this.innerContainerPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.innerContainerPanel.ForeColor = System.Drawing.SystemColors.WindowText; - this.innerContainerPanel.Location = new System.Drawing.Point(0, 0); - this.innerContainerPanel.Margin = new System.Windows.Forms.Padding(0); - this.innerContainerPanel.Name = "innerContainerPanel"; - this.innerContainerPanel.Padding = new System.Windows.Forms.Padding(8, 8, 8, 0); - this.innerContainerPanel.RowCount = 5; - this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.innerContainerPanel.Size = new System.Drawing.Size(284, 600); - this.innerContainerPanel.TabIndex = 0; - // - // environmentPanel - // - this.environmentPanel.AutoSize = true; - this.environmentPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.environmentPanel.ColumnCount = 4; - this.environmentPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 16F)); - this.environmentPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 48F)); - this.environmentPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.environmentPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.environmentPanel.Controls.Add(this.panel4, 0, 0); - this.environmentPanel.Controls.Add(this.gravityNumericUpDown, 3, 1); - this.environmentPanel.Controls.Add(this.label12, 1, 1); - this.environmentPanel.Controls.Add(this.gravityTrackBar, 2, 1); - this.environmentPanel.Controls.Add(this.label13, 1, 2); - this.environmentPanel.Controls.Add(this.gravityXNumericUpDown, 3, 2); - this.environmentPanel.Controls.Add(this.label14, 1, 3); - this.environmentPanel.Controls.Add(this.label17, 1, 4); - this.environmentPanel.Controls.Add(this.gravityYNumericUpDown, 3, 3); - this.environmentPanel.Controls.Add(this.gravityZNumericUpDown, 3, 4); - this.environmentPanel.Controls.Add(this.gravityXTrackBar, 2, 2); - this.environmentPanel.Controls.Add(this.gravityYTrackBar, 2, 3); - this.environmentPanel.Controls.Add(this.gravityZTrackBar, 2, 4); - this.environmentPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.environmentPanel.Location = new System.Drawing.Point(8, 419); - this.environmentPanel.Margin = new System.Windows.Forms.Padding(0); - this.environmentPanel.Name = "environmentPanel"; - this.environmentPanel.RowCount = 5; - this.environmentPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.environmentPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.environmentPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.environmentPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.environmentPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.environmentPanel.Size = new System.Drawing.Size(268, 163); - this.environmentPanel.TabIndex = 4; - // - // panel4 - // - this.panel4.AutoSize = true; - this.panel4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.environmentPanel.SetColumnSpan(this.panel4, 4); - this.panel4.Controls.Add(this.label1); - this.panel4.Controls.Add(this.groupBox4); - this.panel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel4.Location = new System.Drawing.Point(0, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(268, 15); - this.panel4.TabIndex = 0; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label1.Location = new System.Drawing.Point(0, 3); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(29, 12); - this.label1.TabIndex = 0; - this.label1.Text = "重力"; - // - // groupBox4 - // - this.groupBox4.Dock = System.Windows.Forms.DockStyle.Bottom; - this.groupBox4.Location = new System.Drawing.Point(0, 11); - this.groupBox4.Name = "groupBox4"; - this.groupBox4.Size = new System.Drawing.Size(268, 4); - this.groupBox4.TabIndex = 1; - this.groupBox4.TabStop = false; - // - // gravityNumericUpDown - // - this.gravityNumericUpDown.DecimalPlaces = 4; - this.gravityNumericUpDown.Location = new System.Drawing.Point(204, 25); - this.gravityNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.gravityNumericUpDown.Name = "gravityNumericUpDown"; - this.gravityNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.gravityNumericUpDown.TabIndex = 3; - this.gravityNumericUpDown.Value = new decimal(new int[] { + // + // positionXTrackBar + // + this.positionXTrackBar.AutoSize = false; + this.positionXTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.positionXTrackBar.Location = new System.Drawing.Point(64, 23); + this.positionXTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.positionXTrackBar.Maximum = 30; + this.positionXTrackBar.Name = "positionXTrackBar"; + this.positionXTrackBar.Size = new System.Drawing.Size(140, 27); + this.positionXTrackBar.TabIndex = 2; + this.positionXTrackBar.TickFrequency = 6; + this.positionXTrackBar.Value = 1; + // + // positionYTrackBar + // + this.positionYTrackBar.AutoSize = false; + this.positionYTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.positionYTrackBar.Location = new System.Drawing.Point(64, 58); + this.positionYTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.positionYTrackBar.Maximum = 30; + this.positionYTrackBar.Name = "positionYTrackBar"; + this.positionYTrackBar.Size = new System.Drawing.Size(140, 27); + this.positionYTrackBar.TabIndex = 5; + this.positionYTrackBar.TickFrequency = 6; + this.positionYTrackBar.Value = 1; + // + // positionZTrackBar + // + this.positionZTrackBar.AutoSize = false; + this.positionZTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.positionZTrackBar.Location = new System.Drawing.Point(64, 93); + this.positionZTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.positionZTrackBar.Maximum = 30; + this.positionZTrackBar.Name = "positionZTrackBar"; + this.positionZTrackBar.Size = new System.Drawing.Size(140, 27); + this.positionZTrackBar.TabIndex = 8; + this.positionZTrackBar.TickFrequency = 6; + this.positionZTrackBar.Value = 1; + // + // positionLocalCheckBox + // + this.positionLocalCheckBox.AutoSize = true; + this.positionPanel.SetColumnSpan(this.positionLocalCheckBox, 2); + this.positionLocalCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.positionLocalCheckBox.Location = new System.Drawing.Point(16, 128); + this.positionLocalCheckBox.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.positionLocalCheckBox.Name = "positionLocalCheckBox"; + this.positionLocalCheckBox.Size = new System.Drawing.Size(157, 17); + this.positionLocalCheckBox.TabIndex = 10; + this.positionLocalCheckBox.Text = "ローカル座標系で付加する"; + this.positionLocalCheckBox.UseVisualStyleBackColor = true; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(222)))), ((int)(((byte)(222))))); + this.label5.Dock = System.Windows.Forms.DockStyle.Fill; + this.label5.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label5.Location = new System.Drawing.Point(3, 738); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(278, 1); + this.label5.TabIndex = 1; + // + // outerContainerPanel + // + this.outerContainerPanel.AutoSize = true; + this.outerContainerPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.outerContainerPanel.ColumnCount = 1; + this.outerContainerPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.outerContainerPanel.Controls.Add(this.flowLayoutPanel1, 0, 2); + this.outerContainerPanel.Controls.Add(this.innerContainerPanel, 0, 0); + this.outerContainerPanel.Controls.Add(this.label5, 0, 1); + this.outerContainerPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.outerContainerPanel.Location = new System.Drawing.Point(0, 0); + this.outerContainerPanel.Name = "outerContainerPanel"; + this.outerContainerPanel.RowCount = 3; + this.outerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.outerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.outerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.outerContainerPanel.Size = new System.Drawing.Size(284, 778); + this.outerContainerPanel.TabIndex = 1; + // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.AutoSize = true; + this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.flowLayoutPanel1.Controls.Add(this.okButton); + this.flowLayoutPanel1.Controls.Add(this.cancelButton); + this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Right; + this.flowLayoutPanel1.Location = new System.Drawing.Point(118, 747); + this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(8); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(158, 23); + this.flowLayoutPanel1.TabIndex = 2; + // + // okButton + // + this.okButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK; + this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.okButton.Location = new System.Drawing.Point(0, 0); + this.okButton.Margin = new System.Windows.Forms.Padding(0, 0, 8, 0); + this.okButton.MinimumSize = new System.Drawing.Size(75, 23); + this.okButton.Name = "okButton"; + this.okButton.Size = new System.Drawing.Size(75, 23); + this.okButton.TabIndex = 0; + this.okButton.Text = "付加"; + this.okButton.UseVisualStyleBackColor = true; + // + // cancelButton + // + this.cancelButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.cancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.cancelButton.Location = new System.Drawing.Point(83, 0); + this.cancelButton.Margin = new System.Windows.Forms.Padding(0); + this.cancelButton.MinimumSize = new System.Drawing.Size(75, 23); + this.cancelButton.Name = "cancelButton"; + this.cancelButton.Size = new System.Drawing.Size(75, 23); + this.cancelButton.TabIndex = 1; + this.cancelButton.Text = "キャンセル"; + this.cancelButton.UseVisualStyleBackColor = true; + // + // innerContainerPanel + // + this.innerContainerPanel.AutoSize = true; + this.innerContainerPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.innerContainerPanel.BackColor = System.Drawing.SystemColors.Window; + this.innerContainerPanel.ColumnCount = 1; + this.innerContainerPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.innerContainerPanel.Controls.Add(this.environmentPanel, 0, 4); + this.innerContainerPanel.Controls.Add(this.weightPanel, 0, 3); + this.innerContainerPanel.Controls.Add(this.colorPanel, 0, 0); + this.innerContainerPanel.Controls.Add(this.rotationPanel, 0, 2); + this.innerContainerPanel.Controls.Add(this.positionPanel, 0, 1); + this.innerContainerPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.innerContainerPanel.ForeColor = System.Drawing.SystemColors.WindowText; + this.innerContainerPanel.Location = new System.Drawing.Point(0, 0); + this.innerContainerPanel.Margin = new System.Windows.Forms.Padding(0); + this.innerContainerPanel.Name = "innerContainerPanel"; + this.innerContainerPanel.Padding = new System.Windows.Forms.Padding(8, 8, 8, 0); + this.innerContainerPanel.RowCount = 5; + this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.innerContainerPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.innerContainerPanel.Size = new System.Drawing.Size(284, 738); + this.innerContainerPanel.TabIndex = 0; + // + // environmentPanel + // + this.environmentPanel.AutoSize = true; + this.environmentPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.environmentPanel.ColumnCount = 4; + this.environmentPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.environmentPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 48F)); + this.environmentPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.environmentPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.environmentPanel.Controls.Add(this.panel4, 0, 0); + this.environmentPanel.Controls.Add(this.gravityNumericUpDown, 3, 1); + this.environmentPanel.Controls.Add(this.label12, 1, 1); + this.environmentPanel.Controls.Add(this.gravityTrackBar, 2, 1); + this.environmentPanel.Controls.Add(this.label13, 1, 2); + this.environmentPanel.Controls.Add(this.gravityXNumericUpDown, 3, 2); + this.environmentPanel.Controls.Add(this.label14, 1, 3); + this.environmentPanel.Controls.Add(this.label17, 1, 4); + this.environmentPanel.Controls.Add(this.gravityYNumericUpDown, 3, 3); + this.environmentPanel.Controls.Add(this.gravityZNumericUpDown, 3, 4); + this.environmentPanel.Controls.Add(this.gravityXTrackBar, 2, 2); + this.environmentPanel.Controls.Add(this.gravityYTrackBar, 2, 3); + this.environmentPanel.Controls.Add(this.gravityZTrackBar, 2, 4); + this.environmentPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.environmentPanel.Location = new System.Drawing.Point(8, 502); + this.environmentPanel.Margin = new System.Windows.Forms.Padding(0); + this.environmentPanel.Name = "environmentPanel"; + this.environmentPanel.RowCount = 5; + this.environmentPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.environmentPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.environmentPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.environmentPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.environmentPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.environmentPanel.Size = new System.Drawing.Size(268, 236); + this.environmentPanel.TabIndex = 4; + // + // panel4 + // + this.panel4.AutoSize = true; + this.panel4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.environmentPanel.SetColumnSpan(this.panel4, 4); + this.panel4.Controls.Add(this.label1); + this.panel4.Controls.Add(this.groupBox4); + this.panel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel4.Location = new System.Drawing.Point(0, 0); + this.panel4.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(268, 15); + this.panel4.TabIndex = 0; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label1.Location = new System.Drawing.Point(0, 3); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(29, 12); + this.label1.TabIndex = 0; + this.label1.Text = "重力"; + // + // groupBox4 + // + this.groupBox4.Dock = System.Windows.Forms.DockStyle.Bottom; + this.groupBox4.Location = new System.Drawing.Point(0, 11); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Size = new System.Drawing.Size(268, 4); + this.groupBox4.TabIndex = 1; + this.groupBox4.TabStop = false; + // + // gravityNumericUpDown + // + this.gravityNumericUpDown.DecimalPlaces = 4; + this.gravityNumericUpDown.Location = new System.Drawing.Point(204, 25); + this.gravityNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.gravityNumericUpDown.Name = "gravityNumericUpDown"; + this.gravityNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.gravityNumericUpDown.TabIndex = 3; + this.gravityNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // label12 - // - this.label12.AutoSize = true; - this.label12.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label12.Location = new System.Drawing.Point(16, 28); - this.label12.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(43, 12); - this.label12.TabIndex = 1; - this.label12.Text = "加速度:"; - // - // gravityTrackBar - // - this.gravityTrackBar.AutoSize = false; - this.gravityTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.gravityTrackBar.Location = new System.Drawing.Point(64, 23); - this.gravityTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.gravityTrackBar.Maximum = 50; - this.gravityTrackBar.Name = "gravityTrackBar"; - this.gravityTrackBar.Size = new System.Drawing.Size(140, 27); - this.gravityTrackBar.TabIndex = 2; - this.gravityTrackBar.TickFrequency = 10; - this.gravityTrackBar.Value = 1; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label13.Location = new System.Drawing.Point(16, 63); - this.label13.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(14, 12); - this.label13.TabIndex = 1; - this.label13.Text = "X:"; - // - // gravityXNumericUpDown - // - this.gravityXNumericUpDown.DecimalPlaces = 4; - this.gravityXNumericUpDown.Location = new System.Drawing.Point(204, 60); - this.gravityXNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.gravityXNumericUpDown.Maximum = new decimal(new int[] { + // + // label12 + // + this.label12.AutoSize = true; + this.label12.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label12.Location = new System.Drawing.Point(16, 28); + this.label12.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(43, 12); + this.label12.TabIndex = 1; + this.label12.Text = "加速度:"; + // + // gravityTrackBar + // + this.gravityTrackBar.AutoSize = false; + this.gravityTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.gravityTrackBar.Location = new System.Drawing.Point(64, 23); + this.gravityTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.gravityTrackBar.Maximum = 50; + this.gravityTrackBar.Name = "gravityTrackBar"; + this.gravityTrackBar.Size = new System.Drawing.Size(140, 27); + this.gravityTrackBar.TabIndex = 2; + this.gravityTrackBar.TickFrequency = 10; + this.gravityTrackBar.Value = 1; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label13.Location = new System.Drawing.Point(16, 63); + this.label13.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(14, 12); + this.label13.TabIndex = 1; + this.label13.Text = "X:"; + // + // gravityXNumericUpDown + // + this.gravityXNumericUpDown.DecimalPlaces = 4; + this.gravityXNumericUpDown.Location = new System.Drawing.Point(204, 60); + this.gravityXNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.gravityXNumericUpDown.Maximum = new decimal(new int[] { 1, 0, 0, 0}); - this.gravityXNumericUpDown.Name = "gravityXNumericUpDown"; - this.gravityXNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.gravityXNumericUpDown.TabIndex = 3; - this.gravityXNumericUpDown.Value = new decimal(new int[] { + this.gravityXNumericUpDown.Name = "gravityXNumericUpDown"; + this.gravityXNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.gravityXNumericUpDown.TabIndex = 3; + this.gravityXNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // label14 - // - this.label14.AutoSize = true; - this.label14.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label14.Location = new System.Drawing.Point(16, 98); - this.label14.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(14, 12); - this.label14.TabIndex = 4; - this.label14.Text = "Y:"; - // - // label17 - // - this.label17.AutoSize = true; - this.label17.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label17.Location = new System.Drawing.Point(16, 133); - this.label17.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(14, 12); - this.label17.TabIndex = 7; - this.label17.Text = "Z:"; - // - // gravityYNumericUpDown - // - this.gravityYNumericUpDown.DecimalPlaces = 4; - this.gravityYNumericUpDown.Location = new System.Drawing.Point(204, 95); - this.gravityYNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.gravityYNumericUpDown.Maximum = new decimal(new int[] { + // + // label14 + // + this.label14.AutoSize = true; + this.label14.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label14.Location = new System.Drawing.Point(16, 98); + this.label14.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(14, 12); + this.label14.TabIndex = 4; + this.label14.Text = "Y:"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label17.Location = new System.Drawing.Point(16, 133); + this.label17.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(14, 12); + this.label17.TabIndex = 7; + this.label17.Text = "Z:"; + // + // gravityYNumericUpDown + // + this.gravityYNumericUpDown.DecimalPlaces = 4; + this.gravityYNumericUpDown.Location = new System.Drawing.Point(204, 95); + this.gravityYNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.gravityYNumericUpDown.Maximum = new decimal(new int[] { 1, 0, 0, 0}); - this.gravityYNumericUpDown.Name = "gravityYNumericUpDown"; - this.gravityYNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.gravityYNumericUpDown.TabIndex = 6; - this.gravityYNumericUpDown.Value = new decimal(new int[] { + this.gravityYNumericUpDown.Name = "gravityYNumericUpDown"; + this.gravityYNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.gravityYNumericUpDown.TabIndex = 6; + this.gravityYNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // gravityZNumericUpDown - // - this.gravityZNumericUpDown.DecimalPlaces = 4; - this.gravityZNumericUpDown.Location = new System.Drawing.Point(204, 130); - this.gravityZNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.gravityZNumericUpDown.Maximum = new decimal(new int[] { + // + // gravityZNumericUpDown + // + this.gravityZNumericUpDown.DecimalPlaces = 4; + this.gravityZNumericUpDown.Location = new System.Drawing.Point(204, 130); + this.gravityZNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.gravityZNumericUpDown.Maximum = new decimal(new int[] { 1, 0, 0, 0}); - this.gravityZNumericUpDown.Name = "gravityZNumericUpDown"; - this.gravityZNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.gravityZNumericUpDown.TabIndex = 9; - this.gravityZNumericUpDown.Value = new decimal(new int[] { + this.gravityZNumericUpDown.Name = "gravityZNumericUpDown"; + this.gravityZNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.gravityZNumericUpDown.TabIndex = 9; + this.gravityZNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // gravityXTrackBar - // - this.gravityXTrackBar.AutoSize = false; - this.gravityXTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.gravityXTrackBar.Location = new System.Drawing.Point(64, 58); - this.gravityXTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.gravityXTrackBar.Maximum = 100; - this.gravityXTrackBar.Name = "gravityXTrackBar"; - this.gravityXTrackBar.Size = new System.Drawing.Size(140, 27); - this.gravityXTrackBar.TabIndex = 2; - this.gravityXTrackBar.TickFrequency = 20; - this.gravityXTrackBar.Value = 100; - // - // gravityYTrackBar - // - this.gravityYTrackBar.AutoSize = false; - this.gravityYTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.gravityYTrackBar.Location = new System.Drawing.Point(64, 93); - this.gravityYTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.gravityYTrackBar.Maximum = 100; - this.gravityYTrackBar.Name = "gravityYTrackBar"; - this.gravityYTrackBar.Size = new System.Drawing.Size(140, 27); - this.gravityYTrackBar.TabIndex = 5; - this.gravityYTrackBar.TickFrequency = 20; - this.gravityYTrackBar.Value = 100; - // - // gravityZTrackBar - // - this.gravityZTrackBar.AutoSize = false; - this.gravityZTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.gravityZTrackBar.Location = new System.Drawing.Point(64, 128); - this.gravityZTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.gravityZTrackBar.Maximum = 100; - this.gravityZTrackBar.Name = "gravityZTrackBar"; - this.gravityZTrackBar.Size = new System.Drawing.Size(140, 27); - this.gravityZTrackBar.TabIndex = 8; - this.gravityZTrackBar.TickFrequency = 20; - this.gravityZTrackBar.Value = 100; - // - // colorPanel - // - this.colorPanel.AutoSize = true; - this.colorPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.colorPanel.ColumnCount = 3; - this.colorPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 64F)); - this.colorPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.colorPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.colorPanel.Controls.Add(this.label15, 0, 0); - this.colorPanel.Controls.Add(this.keyFrameIntervalNumericUpDown, 2, 0); - this.colorPanel.Controls.Add(this.noiseValueIntervalNumericUpDown, 2, 1); - this.colorPanel.Controls.Add(this.keyFrameIntervalTrackBar, 1, 0); - this.colorPanel.Controls.Add(this.noiseValueIntervalTrackBar, 1, 1); - this.colorPanel.Controls.Add(this.keyShiftNoiseNumericUpDown, 2, 2); - this.colorPanel.Controls.Add(this.keyShiftNoiseTrackBar, 1, 2); - this.colorPanel.Controls.Add(this.label16, 0, 2); - this.colorPanel.Controls.Add(this.label10, 0, 1); - this.colorPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.colorPanel.Location = new System.Drawing.Point(8, 8); - this.colorPanel.Margin = new System.Windows.Forms.Padding(0); - this.colorPanel.Name = "colorPanel"; - this.colorPanel.RowCount = 3; - this.colorPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.colorPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.colorPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.colorPanel.Size = new System.Drawing.Size(268, 105); - this.colorPanel.TabIndex = 0; - // - // label15 - // - this.label15.AutoSize = true; - this.label15.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label15.Location = new System.Drawing.Point(0, 5); - this.label15.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(63, 12); - this.label15.TabIndex = 0; - this.label15.Text = "キー化間隔:"; - // - // keyFrameIntervalNumericUpDown - // - this.keyFrameIntervalNumericUpDown.Location = new System.Drawing.Point(204, 2); - this.keyFrameIntervalNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.keyFrameIntervalNumericUpDown.Maximum = new decimal(new int[] { + // + // gravityXTrackBar + // + this.gravityXTrackBar.AutoSize = false; + this.gravityXTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.gravityXTrackBar.Location = new System.Drawing.Point(64, 58); + this.gravityXTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.gravityXTrackBar.Maximum = 100; + this.gravityXTrackBar.Name = "gravityXTrackBar"; + this.gravityXTrackBar.Size = new System.Drawing.Size(140, 27); + this.gravityXTrackBar.TabIndex = 2; + this.gravityXTrackBar.TickFrequency = 20; + this.gravityXTrackBar.Value = 100; + // + // gravityYTrackBar + // + this.gravityYTrackBar.AutoSize = false; + this.gravityYTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.gravityYTrackBar.Location = new System.Drawing.Point(64, 93); + this.gravityYTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.gravityYTrackBar.Maximum = 100; + this.gravityYTrackBar.Name = "gravityYTrackBar"; + this.gravityYTrackBar.Size = new System.Drawing.Size(140, 27); + this.gravityYTrackBar.TabIndex = 5; + this.gravityYTrackBar.TickFrequency = 20; + this.gravityYTrackBar.Value = 100; + // + // gravityZTrackBar + // + this.gravityZTrackBar.AutoSize = false; + this.gravityZTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.gravityZTrackBar.Location = new System.Drawing.Point(64, 128); + this.gravityZTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.gravityZTrackBar.Maximum = 100; + this.gravityZTrackBar.Name = "gravityZTrackBar"; + this.gravityZTrackBar.Size = new System.Drawing.Size(140, 100); + this.gravityZTrackBar.TabIndex = 8; + this.gravityZTrackBar.TickFrequency = 20; + this.gravityZTrackBar.Value = 100; + // + // weightPanel + // + this.weightPanel.AutoSize = true; + this.weightPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.weightPanel.ColumnCount = 4; + this.weightPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.weightPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 48F)); + this.weightPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.weightPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.weightPanel.Controls.Add(this.panel3, 0, 0); + this.weightPanel.Controls.Add(this.label18, 1, 1); + this.weightPanel.Controls.Add(this.weightNumericUpDown, 3, 1); + this.weightPanel.Controls.Add(this.weightTrackBar, 2, 1); + this.weightPanel.Controls.Add(this.normalizeWeightCheckBox, 1, 2); + this.weightPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.weightPanel.Location = new System.Drawing.Point(8, 419); + this.weightPanel.Margin = new System.Windows.Forms.Padding(0); + this.weightPanel.Name = "weightPanel"; + this.weightPanel.RowCount = 3; + this.weightPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.weightPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.weightPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.weightPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.weightPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.weightPanel.Size = new System.Drawing.Size(268, 83); + this.weightPanel.TabIndex = 5; + // + // panel3 + // + this.panel3.AutoSize = true; + this.panel3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.weightPanel.SetColumnSpan(this.panel3, 4); + this.panel3.Controls.Add(this.label11); + this.panel3.Controls.Add(this.groupBox3); + this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel3.Location = new System.Drawing.Point(0, 0); + this.panel3.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(268, 15); + this.panel3.TabIndex = 0; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label11.Location = new System.Drawing.Point(0, 3); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(44, 12); + this.label11.TabIndex = 0; + this.label11.Text = "モーフ幅"; + // + // groupBox3 + // + this.groupBox3.Dock = System.Windows.Forms.DockStyle.Bottom; + this.groupBox3.Location = new System.Drawing.Point(0, 11); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(268, 4); + this.groupBox3.TabIndex = 1; + this.groupBox3.TabStop = false; + // + // label18 + // + this.label18.AutoSize = true; + this.label18.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label18.Location = new System.Drawing.Point(16, 28); + this.label18.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(43, 12); + this.label18.TabIndex = 1; + this.label18.Text = "適用度:"; + // + // weightNumericUpDown + // + this.weightNumericUpDown.DecimalPlaces = 4; + this.weightNumericUpDown.Location = new System.Drawing.Point(204, 25); + this.weightNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.weightNumericUpDown.Name = "weightNumericUpDown"; + this.weightNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.weightNumericUpDown.TabIndex = 3; + this.weightNumericUpDown.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + // + // weightTrackBar + // + this.weightTrackBar.AutoSize = false; + this.weightTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.weightTrackBar.Location = new System.Drawing.Point(64, 23); + this.weightTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.weightTrackBar.Maximum = 100; + this.weightTrackBar.Name = "weightTrackBar"; + this.weightTrackBar.Size = new System.Drawing.Size(140, 27); + this.weightTrackBar.TabIndex = 2; + this.weightTrackBar.TickFrequency = 20; + this.weightTrackBar.Value = 50; + // + // normalizeWeightCheckBox + // + this.normalizeWeightCheckBox.AutoSize = true; + this.weightPanel.SetColumnSpan(this.normalizeWeightCheckBox, 2); + this.normalizeWeightCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.normalizeWeightCheckBox.Location = new System.Drawing.Point(16, 58); + this.normalizeWeightCheckBox.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.normalizeWeightCheckBox.Name = "normalizeWeightCheckBox"; + this.normalizeWeightCheckBox.Size = new System.Drawing.Size(145, 17); + this.normalizeWeightCheckBox.TabIndex = 10; + this.normalizeWeightCheckBox.Text = "0~1 の範囲で付加する"; + this.normalizeWeightCheckBox.UseVisualStyleBackColor = true; + // + // colorPanel + // + this.colorPanel.AutoSize = true; + this.colorPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.colorPanel.ColumnCount = 3; + this.colorPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 64F)); + this.colorPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.colorPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.colorPanel.Controls.Add(this.label15, 0, 0); + this.colorPanel.Controls.Add(this.keyFrameIntervalNumericUpDown, 2, 0); + this.colorPanel.Controls.Add(this.noiseValueIntervalNumericUpDown, 2, 1); + this.colorPanel.Controls.Add(this.keyFrameIntervalTrackBar, 1, 0); + this.colorPanel.Controls.Add(this.noiseValueIntervalTrackBar, 1, 1); + this.colorPanel.Controls.Add(this.keyShiftNoiseNumericUpDown, 2, 2); + this.colorPanel.Controls.Add(this.keyShiftNoiseTrackBar, 1, 2); + this.colorPanel.Controls.Add(this.label16, 0, 2); + this.colorPanel.Controls.Add(this.label10, 0, 1); + this.colorPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.colorPanel.Location = new System.Drawing.Point(8, 8); + this.colorPanel.Margin = new System.Windows.Forms.Padding(0); + this.colorPanel.Name = "colorPanel"; + this.colorPanel.RowCount = 3; + this.colorPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.colorPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.colorPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.colorPanel.Size = new System.Drawing.Size(268, 105); + this.colorPanel.TabIndex = 0; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label15.Location = new System.Drawing.Point(0, 5); + this.label15.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(63, 12); + this.label15.TabIndex = 0; + this.label15.Text = "キー化間隔:"; + // + // keyFrameIntervalNumericUpDown + // + this.keyFrameIntervalNumericUpDown.Location = new System.Drawing.Point(204, 2); + this.keyFrameIntervalNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.keyFrameIntervalNumericUpDown.Maximum = new decimal(new int[] { 10000, 0, 0, 0}); - this.keyFrameIntervalNumericUpDown.Name = "keyFrameIntervalNumericUpDown"; - this.keyFrameIntervalNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.keyFrameIntervalNumericUpDown.TabIndex = 2; - this.keyFrameIntervalNumericUpDown.Value = new decimal(new int[] { + this.keyFrameIntervalNumericUpDown.Name = "keyFrameIntervalNumericUpDown"; + this.keyFrameIntervalNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.keyFrameIntervalNumericUpDown.TabIndex = 2; + this.keyFrameIntervalNumericUpDown.Value = new decimal(new int[] { 5, 0, 0, 0}); - // - // noiseValueIntervalNumericUpDown - // - this.noiseValueIntervalNumericUpDown.Location = new System.Drawing.Point(204, 37); - this.noiseValueIntervalNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.noiseValueIntervalNumericUpDown.Maximum = new decimal(new int[] { + // + // noiseValueIntervalNumericUpDown + // + this.noiseValueIntervalNumericUpDown.Location = new System.Drawing.Point(204, 37); + this.noiseValueIntervalNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.noiseValueIntervalNumericUpDown.Maximum = new decimal(new int[] { 10000, 0, 0, 0}); - this.noiseValueIntervalNumericUpDown.Name = "noiseValueIntervalNumericUpDown"; - this.noiseValueIntervalNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.noiseValueIntervalNumericUpDown.TabIndex = 5; - this.noiseValueIntervalNumericUpDown.Value = new decimal(new int[] { + this.noiseValueIntervalNumericUpDown.Name = "noiseValueIntervalNumericUpDown"; + this.noiseValueIntervalNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.noiseValueIntervalNumericUpDown.TabIndex = 5; + this.noiseValueIntervalNumericUpDown.Value = new decimal(new int[] { 5, 0, 0, 0}); - // - // keyFrameIntervalTrackBar - // - this.keyFrameIntervalTrackBar.AutoSize = false; - this.keyFrameIntervalTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.keyFrameIntervalTrackBar.Location = new System.Drawing.Point(64, 0); - this.keyFrameIntervalTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.keyFrameIntervalTrackBar.Maximum = 60; - this.keyFrameIntervalTrackBar.Name = "keyFrameIntervalTrackBar"; - this.keyFrameIntervalTrackBar.Size = new System.Drawing.Size(140, 27); - this.keyFrameIntervalTrackBar.TabIndex = 1; - this.keyFrameIntervalTrackBar.TickFrequency = 12; - this.keyFrameIntervalTrackBar.Value = 5; - // - // noiseValueIntervalTrackBar - // - this.noiseValueIntervalTrackBar.AutoSize = false; - this.noiseValueIntervalTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.noiseValueIntervalTrackBar.Location = new System.Drawing.Point(64, 35); - this.noiseValueIntervalTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.noiseValueIntervalTrackBar.Maximum = 60; - this.noiseValueIntervalTrackBar.Name = "noiseValueIntervalTrackBar"; - this.noiseValueIntervalTrackBar.Size = new System.Drawing.Size(140, 27); - this.noiseValueIntervalTrackBar.TabIndex = 4; - this.noiseValueIntervalTrackBar.TickFrequency = 12; - this.noiseValueIntervalTrackBar.Value = 5; - // - // keyShiftNoiseNumericUpDown - // - this.keyShiftNoiseNumericUpDown.Location = new System.Drawing.Point(204, 72); - this.keyShiftNoiseNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); - this.keyShiftNoiseNumericUpDown.Name = "keyShiftNoiseNumericUpDown"; - this.keyShiftNoiseNumericUpDown.Size = new System.Drawing.Size(64, 19); - this.keyShiftNoiseNumericUpDown.TabIndex = 8; - this.keyShiftNoiseNumericUpDown.Value = new decimal(new int[] { + // + // keyFrameIntervalTrackBar + // + this.keyFrameIntervalTrackBar.AutoSize = false; + this.keyFrameIntervalTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.keyFrameIntervalTrackBar.Location = new System.Drawing.Point(64, 0); + this.keyFrameIntervalTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.keyFrameIntervalTrackBar.Maximum = 60; + this.keyFrameIntervalTrackBar.Name = "keyFrameIntervalTrackBar"; + this.keyFrameIntervalTrackBar.Size = new System.Drawing.Size(140, 27); + this.keyFrameIntervalTrackBar.TabIndex = 1; + this.keyFrameIntervalTrackBar.TickFrequency = 12; + this.keyFrameIntervalTrackBar.Value = 5; + // + // noiseValueIntervalTrackBar + // + this.noiseValueIntervalTrackBar.AutoSize = false; + this.noiseValueIntervalTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.noiseValueIntervalTrackBar.Location = new System.Drawing.Point(64, 35); + this.noiseValueIntervalTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.noiseValueIntervalTrackBar.Maximum = 60; + this.noiseValueIntervalTrackBar.Name = "noiseValueIntervalTrackBar"; + this.noiseValueIntervalTrackBar.Size = new System.Drawing.Size(140, 27); + this.noiseValueIntervalTrackBar.TabIndex = 4; + this.noiseValueIntervalTrackBar.TickFrequency = 12; + this.noiseValueIntervalTrackBar.Value = 5; + // + // keyShiftNoiseNumericUpDown + // + this.keyShiftNoiseNumericUpDown.Location = new System.Drawing.Point(204, 72); + this.keyShiftNoiseNumericUpDown.Margin = new System.Windows.Forms.Padding(0, 2, 0, 8); + this.keyShiftNoiseNumericUpDown.Name = "keyShiftNoiseNumericUpDown"; + this.keyShiftNoiseNumericUpDown.Size = new System.Drawing.Size(64, 19); + this.keyShiftNoiseNumericUpDown.TabIndex = 8; + this.keyShiftNoiseNumericUpDown.Value = new decimal(new int[] { 1, 0, 0, 0}); - // - // keyShiftNoiseTrackBar - // - this.keyShiftNoiseTrackBar.AutoSize = false; - this.keyShiftNoiseTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; - this.keyShiftNoiseTrackBar.Location = new System.Drawing.Point(64, 70); - this.keyShiftNoiseTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); - this.keyShiftNoiseTrackBar.Name = "keyShiftNoiseTrackBar"; - this.keyShiftNoiseTrackBar.Size = new System.Drawing.Size(140, 27); - this.keyShiftNoiseTrackBar.TabIndex = 7; - this.keyShiftNoiseTrackBar.TickFrequency = 2; - this.keyShiftNoiseTrackBar.Value = 1; - // - // label16 - // - this.label16.AutoSize = true; - this.label16.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label16.Location = new System.Drawing.Point(0, 75); - this.label16.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(39, 12); - this.label16.TabIndex = 6; - this.label16.Text = "キー幅:"; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label10.Location = new System.Drawing.Point(0, 40); - this.label10.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(58, 12); - this.label10.TabIndex = 3; - this.label10.Text = "ノイズ間隔:"; - // - // ApplyNoiseForm - // - this.AcceptButton = this.okButton; - this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; - this.AutoSize = true; - this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.CancelButton = this.cancelButton; - this.ClientSize = new System.Drawing.Size(284, 640); - this.Controls.Add(this.outerContainerPanel); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "ApplyNoiseForm"; - this.ShowIcon = false; - this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "ノイズ付加"; - ((System.ComponentModel.ISupportInitialize)(this.positionZNumericUpDown)).EndInit(); - this.rotationPanel.ResumeLayout(false); - this.rotationPanel.PerformLayout(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.rotationXNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.rotationYNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.rotationZNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.rotationXTrackBar)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.rotationYTrackBar)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.rotationZTrackBar)).EndInit(); - this.positionPanel.ResumeLayout(false); - this.positionPanel.PerformLayout(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.positionXNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.positionYNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.positionXTrackBar)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.positionYTrackBar)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.positionZTrackBar)).EndInit(); - this.outerContainerPanel.ResumeLayout(false); - this.outerContainerPanel.PerformLayout(); - this.flowLayoutPanel1.ResumeLayout(false); - this.innerContainerPanel.ResumeLayout(false); - this.innerContainerPanel.PerformLayout(); - this.environmentPanel.ResumeLayout(false); - this.environmentPanel.PerformLayout(); - this.panel4.ResumeLayout(false); - this.panel4.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gravityNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityTrackBar)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityXNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityYNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityZNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityXTrackBar)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityYTrackBar)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.gravityZTrackBar)).EndInit(); - this.colorPanel.ResumeLayout(false); - this.colorPanel.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.keyFrameIntervalNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.noiseValueIntervalNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.keyFrameIntervalTrackBar)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.noiseValueIntervalTrackBar)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.keyShiftNoiseNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.keyShiftNoiseTrackBar)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); + // + // keyShiftNoiseTrackBar + // + this.keyShiftNoiseTrackBar.AutoSize = false; + this.keyShiftNoiseTrackBar.Dock = System.Windows.Forms.DockStyle.Fill; + this.keyShiftNoiseTrackBar.Location = new System.Drawing.Point(64, 70); + this.keyShiftNoiseTrackBar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8); + this.keyShiftNoiseTrackBar.Name = "keyShiftNoiseTrackBar"; + this.keyShiftNoiseTrackBar.Size = new System.Drawing.Size(140, 27); + this.keyShiftNoiseTrackBar.TabIndex = 7; + this.keyShiftNoiseTrackBar.TickFrequency = 2; + this.keyShiftNoiseTrackBar.Value = 1; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label16.Location = new System.Drawing.Point(0, 75); + this.label16.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(39, 12); + this.label16.TabIndex = 6; + this.label16.Text = "キー幅:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.label10.Location = new System.Drawing.Point(0, 40); + this.label10.Margin = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(58, 12); + this.label10.TabIndex = 3; + this.label10.Text = "ノイズ間隔:"; + // + // ApplyNoiseForm + // + this.AcceptButton = this.okButton; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.AutoSize = true; + this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.CancelButton = this.cancelButton; + this.ClientSize = new System.Drawing.Size(284, 778); + this.Controls.Add(this.outerContainerPanel); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "ApplyNoiseForm"; + this.ShowIcon = false; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "ノイズ付加"; + ((System.ComponentModel.ISupportInitialize)(this.positionZNumericUpDown)).EndInit(); + this.rotationPanel.ResumeLayout(false); + this.rotationPanel.PerformLayout(); + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.rotationXNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.rotationYNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.rotationZNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.rotationXTrackBar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.rotationYTrackBar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.rotationZTrackBar)).EndInit(); + this.positionPanel.ResumeLayout(false); + this.positionPanel.PerformLayout(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.positionXNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.positionYNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.positionXTrackBar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.positionYTrackBar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.positionZTrackBar)).EndInit(); + this.outerContainerPanel.ResumeLayout(false); + this.outerContainerPanel.PerformLayout(); + this.flowLayoutPanel1.ResumeLayout(false); + this.innerContainerPanel.ResumeLayout(false); + this.innerContainerPanel.PerformLayout(); + this.environmentPanel.ResumeLayout(false); + this.environmentPanel.PerformLayout(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gravityNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityTrackBar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityXNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityYNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityZNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityXTrackBar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityYTrackBar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gravityZTrackBar)).EndInit(); + this.weightPanel.ResumeLayout(false); + this.weightPanel.PerformLayout(); + this.panel3.ResumeLayout(false); + this.panel3.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.weightNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.weightTrackBar)).EndInit(); + this.colorPanel.ResumeLayout(false); + this.colorPanel.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.keyFrameIntervalNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.noiseValueIntervalNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.keyFrameIntervalTrackBar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.noiseValueIntervalTrackBar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.keyShiftNoiseNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.keyShiftNoiseTrackBar)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); } @@ -1121,5 +1252,13 @@ private void InitializeComponent() private System.Windows.Forms.TrackBar gravityXTrackBar; private System.Windows.Forms.TrackBar gravityYTrackBar; private System.Windows.Forms.TrackBar gravityZTrackBar; - } + private System.Windows.Forms.TableLayoutPanel weightPanel; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.NumericUpDown weightNumericUpDown; + private System.Windows.Forms.TrackBar weightTrackBar; + private System.Windows.Forms.CheckBox normalizeWeightCheckBox; + } } \ No newline at end of file diff --git a/ApplyNoisePlugin/ApplyNoiseForm.cs b/ApplyNoisePlugin/ApplyNoiseForm.cs index 443b046..7af74b3 100644 --- a/ApplyNoisePlugin/ApplyNoiseForm.cs +++ b/ApplyNoisePlugin/ApplyNoiseForm.cs @@ -24,6 +24,12 @@ public bool IsRotationEnabled set => rotationPanel.Visible = value; } + public bool IsWeightEnabled + { + get => weightPanel.Visible; + set => weightPanel.Visible = value; + } + public bool IsEnvironmentEnabled { get => environmentPanel.Visible; @@ -42,6 +48,12 @@ public int NoiseValueInterval set => noiseValueIntervalNumericUpDown.Value = value; } + public bool NormalizeWeight + { + get => normalizeWeightCheckBox.Checked; + set => normalizeWeightCheckBox.Checked = value; + } + public int KeyShiftWidth { get => (int)keyShiftNoiseNumericUpDown.Value; @@ -54,6 +66,7 @@ public NoiseValue NoiseValue new( new((float)positionXNumericUpDown.Value, (float)positionYNumericUpDown.Value, (float)positionZNumericUpDown.Value), MathHelper.ToRadians(new Vector3((float)rotationXNumericUpDown.Value, (float)rotationYNumericUpDown.Value, (float)rotationZNumericUpDown.Value)), + (float)weightNumericUpDown.Value, (float)gravityNumericUpDown.Value, new((float)gravityXNumericUpDown.Value, (float)gravityYNumericUpDown.Value, (float)gravityZNumericUpDown.Value) ); @@ -66,6 +79,7 @@ public NoiseValue NoiseValue rotationXNumericUpDown.Value = (decimal)degrees.X; rotationYNumericUpDown.Value = (decimal)degrees.Y; rotationZNumericUpDown.Value = (decimal)degrees.Z; + weightNumericUpDown.Value = (decimal)value.Weight; gravityNumericUpDown.Value = (decimal)value.Gravity; gravityXNumericUpDown.Value = (decimal)value.GravityDirection.X; gravityYNumericUpDown.Value = (decimal)value.GravityDirection.Y; @@ -119,7 +133,7 @@ public ApplyNoiseForm() foreach (var i in controls) { var changing = false; - var isPercentage = new[] { "gravityXTrackBar", "gravityYTrackBar", "gravityZTrackBar" }.Contains(i.TrackBar.Name); + var isPercentage = new[] { "weightTrackBar", "gravityXTrackBar", "gravityYTrackBar", "gravityZTrackBar" }.Contains(i.TrackBar.Name); i.TrackBar.ValueChanged += (sender, e) => { diff --git a/ApplyNoisePlugin/ApplyNoiseForm.resx b/ApplyNoisePlugin/ApplyNoiseForm.resx index 5ea0895..29dcb1b 100644 --- a/ApplyNoisePlugin/ApplyNoiseForm.resx +++ b/ApplyNoisePlugin/ApplyNoiseForm.resx @@ -112,9 +112,9 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 \ No newline at end of file diff --git a/ApplyNoisePlugin/ApplyNoisePlugin.txt b/ApplyNoisePlugin/ApplyNoisePlugin.txt index 8a41aeb..12ad89d 100644 --- a/ApplyNoisePlugin/ApplyNoisePlugin.txt +++ b/ApplyNoisePlugin/ApplyNoisePlugin.txt @@ -48,6 +48,7 @@ MikuMikuMoving.exe のあるフォルダの Plugins フォルダに本 dll を Version 0.5, Sat, 31 Dec 2022 アンドゥ処理の安定性向上 + モーフへのノイズ付加に対応 Version 0.4, Thu, 29 Dec 2022 diff --git a/ApplyNoisePlugin/Transform/CameraLayerTransformer.cs b/ApplyNoisePlugin/Transform/CameraLayerTransformer.cs index b00cad5..3407ec3 100644 --- a/ApplyNoisePlugin/Transform/CameraLayerTransformer.cs +++ b/ApplyNoisePlugin/Transform/CameraLayerTransformer.cs @@ -11,6 +11,8 @@ public class CameraLayerTransformer : KeyFrameTransformer public override bool CanTranslateByLocal => false; public override bool CanRotateByLocal => false; + + public override bool CanApplyWeight => false; CameraLayerTransformer(CameraLayer layer) : base(layer.Frames.GetKeyFrames()) => @@ -28,7 +30,7 @@ protected override void ReplaceAllKeyFrames(IEnumerable keyFram protected override CameraFrameData GetFrame(long frameNumber) => layer.Frames.GetFrame(frameNumber); - protected override void ApplyNoiseToKeyFrame(CameraFrameData keyFrame, NoiseValue value, bool translateByLocal, bool rotateByLocal) + protected override void ApplyNoiseToKeyFrame(CameraFrameData keyFrame, NoiseValue value, bool translateByLocal, bool rotateByLocal, bool applyWeight) { keyFrame.Position += value.Position; keyFrame.Angle += value.Rotation; diff --git a/ApplyNoisePlugin/Transform/CompositeTransformer.cs b/ApplyNoisePlugin/Transform/CompositeTransformer.cs index 6cfded2..b16e4eb 100644 --- a/ApplyNoisePlugin/Transform/CompositeTransformer.cs +++ b/ApplyNoisePlugin/Transform/CompositeTransformer.cs @@ -24,6 +24,9 @@ public class CompositeTransformer : ITransformer public bool CanRotateByLocal => transformers.Any(x => x.CanRotateByLocal); + + public bool CanApplyWeight => + transformers.Any(x => x.CanApplyWeight); CompositeTransformer(IReadOnlyCollection transformers) => this.transformers = transformers; @@ -31,9 +34,9 @@ public class CompositeTransformer : ITransformer public static ITransformer? Create(IReadOnlyCollection transformers) => transformers.Any() ? new CompositeTransformer(transformers) : null; - public void ApplyNoise(NoiseContext context, bool translateByLocal, bool rotateByLocal) + public void ApplyNoise(NoiseContext context, bool translateByLocal, bool rotateByLocal, bool normalizeWeight) { foreach (var transformer in transformers) - transformer.ApplyNoise(context, translateByLocal, rotateByLocal); + transformer.ApplyNoise(context, translateByLocal, rotateByLocal, normalizeWeight); } } \ No newline at end of file diff --git a/ApplyNoisePlugin/Transform/ITransformer.cs b/ApplyNoisePlugin/Transform/ITransformer.cs index f4cf1fc..0345662 100644 --- a/ApplyNoisePlugin/Transform/ITransformer.cs +++ b/ApplyNoisePlugin/Transform/ITransformer.cs @@ -8,5 +8,6 @@ public interface ITransformer bool CanTranslateByLocal { get; } bool CanApplyRotation { get; } bool CanRotateByLocal { get; } - void ApplyNoise(NoiseContext context, bool translateByLocal, bool rotateByLocal); + bool CanApplyWeight { get; } + void ApplyNoise(NoiseContext context, bool translateByLocal, bool rotateByLocal, bool normalizeWeight); } \ No newline at end of file diff --git a/ApplyNoisePlugin/Transform/KeyFrameTransformer.cs b/ApplyNoisePlugin/Transform/KeyFrameTransformer.cs index df09e2e..8665cb2 100644 --- a/ApplyNoisePlugin/Transform/KeyFrameTransformer.cs +++ b/ApplyNoisePlugin/Transform/KeyFrameTransformer.cs @@ -16,13 +16,15 @@ public abstract class KeyFrameTransformer : ITransformer public long? SelectedMaximumFrameNumber => selectedKeyFrames.Any() ? selectedKeyFrames.Max(x => x.FrameNumber) : null; - public bool CanApplyTranslation => true; + public virtual bool CanApplyTranslation => true; public abstract bool CanTranslateByLocal { get; } - public bool CanApplyRotation => true; + public virtual bool CanApplyRotation => true; public abstract bool CanRotateByLocal { get; } + + public abstract bool CanApplyWeight { get; } protected KeyFrameTransformer(IReadOnlyCollection keyFrames) { @@ -32,9 +34,9 @@ protected KeyFrameTransformer(IReadOnlyCollection keyFrames) protected abstract void ReplaceAllKeyFrames(IEnumerable keyFrames); protected abstract T GetFrame(long frameNumber); - protected abstract void ApplyNoiseToKeyFrame(T keyFrame, NoiseValue value, bool translateByLocal, bool rotateByLocal); + protected abstract void ApplyNoiseToKeyFrame(T keyFrame, NoiseValue value, bool translateByLocal, bool rotateByLocal, bool normalizeWeight); - IEnumerable GetAppliedKeyFrames(NoiseContext context, bool translateByLocal, bool rotateByLocal) + IEnumerable GetAppliedKeyFrames(NoiseContext context, bool translateByLocal, bool rotateByLocal, bool normalizeWeight) { // 時折フレーム番号が重複していることがあるので ToLookup してから最初に出現したもののみ取り扱う var existingKeyFrames = keyFrames.ToLookup(x => x.FrameNumber).ToDictionary(x => x.Key, x => x.First()); @@ -47,7 +49,7 @@ IEnumerable GetAppliedKeyFrames(NoiseContext context, bool translateByLocal, ? existingKeyFrame : GetFrame(value.FrameNumber); - ApplyNoiseToKeyFrame(newKeyFrame, value.Value, translateByLocal, rotateByLocal); + ApplyNoiseToKeyFrame(newKeyFrame, value.Value, translateByLocal, rotateByLocal, normalizeWeight); newKeyFrame.FrameNumber = value.ShiftedFrameNumber; newKeyFrame.Selected = true; @@ -62,6 +64,6 @@ IEnumerable GetAppliedKeyFrames(NoiseContext context, bool translateByLocal, return newKeyFrames.Values; } - public void ApplyNoise(NoiseContext context, bool translateByLocal, bool rotateByLocal) => - ReplaceAllKeyFrames(GetAppliedKeyFrames(context, translateByLocal, rotateByLocal)); + public void ApplyNoise(NoiseContext context, bool translateByLocal, bool rotateByLocal, bool normalizeWeight) => + ReplaceAllKeyFrames(GetAppliedKeyFrames(context, translateByLocal, rotateByLocal, normalizeWeight)); } \ No newline at end of file diff --git a/ApplyNoisePlugin/Transform/MorphTransformer.cs b/ApplyNoisePlugin/Transform/MorphTransformer.cs new file mode 100644 index 0000000..11bd226 --- /dev/null +++ b/ApplyNoisePlugin/Transform/MorphTransformer.cs @@ -0,0 +1,43 @@ +using System.Collections.Generic; +using System.Linq; +using Linearstar.MikuMikuMoving.Framework; +using MikuMikuPlugin; + +namespace Linearstar.MikuMikuMoving.ApplyNoisePlugin.Transform; + +public class MorphTransformer : KeyFrameTransformer +{ + readonly Morph morph; + + public override bool CanApplyTranslation => false; + + public override bool CanTranslateByLocal => false; + + public override bool CanApplyRotation => false; + + public override bool CanRotateByLocal => false; + + public override bool CanApplyWeight => true; + + MorphTransformer(Morph morph) + : base(morph.Frames.GetKeyFrames()) => + this.morph = morph; + + public static IEnumerable FromModel(Model model) => + model.Morphs + .Where(morph => morph.SelectedFrames.Any()) + .Select(morph => new MorphTransformer(morph)); + + protected override void ReplaceAllKeyFrames(IEnumerable keyFrames) => + morph.Frames.ReplaceAllKeyFrames(keyFrames.ToList()); + + protected override MorphFrameData GetFrame(long frameNumber) => + morph.Frames.GetFrame(frameNumber); + + protected override void ApplyNoiseToKeyFrame(MorphFrameData keyFrame, NoiseValue value, bool translateByLocal, bool rotateByLocal, bool normalizeWeight) + { + var newWeight = keyFrame.Weight + value.Weight; + + keyFrame.Weight = normalizeWeight ? MathHelper.Clamp(newWeight, 0, 1) : newWeight; + } +} \ No newline at end of file diff --git a/ApplyNoisePlugin/Transform/MotionLayerTransformer.cs b/ApplyNoisePlugin/Transform/MotionLayerTransformer.cs index 5a958c2..41c3178 100644 --- a/ApplyNoisePlugin/Transform/MotionLayerTransformer.cs +++ b/ApplyNoisePlugin/Transform/MotionLayerTransformer.cs @@ -11,8 +11,10 @@ public class MotionLayerTransformer : MotionTransformer public override bool CanTranslateByLocal => true; - public override bool CanRotateByLocal => bone?.BoneFlags.HasFlag(BoneType.Rotate) ?? false; - + public override bool CanRotateByLocal => bone?.BoneFlags.HasFlag(BoneType.Rotate) ?? false; + + public override bool CanApplyWeight => false; + MotionLayerTransformer(Bone? bone, MotionLayer motionLayer) : base(bone, motionLayer.Frames.GetKeyFrames()) { diff --git a/ApplyNoisePlugin/Transform/MotionTransformer.cs b/ApplyNoisePlugin/Transform/MotionTransformer.cs index b0eed38..6a2fcfe 100644 --- a/ApplyNoisePlugin/Transform/MotionTransformer.cs +++ b/ApplyNoisePlugin/Transform/MotionTransformer.cs @@ -8,13 +8,15 @@ public abstract class MotionTransformer : KeyFrameTransformer { readonly Bone? bone; + public override bool CanApplyWeight => false; + public MotionTransformer(Bone? bone, IReadOnlyCollection keyFrames) : base(keyFrames) => this.bone = bone; protected abstract override void ReplaceAllKeyFrames(IEnumerable keyFrames); - protected override void ApplyNoiseToKeyFrame(MotionFrameData keyFrame, NoiseValue value, bool translateByLocal, bool rotateByLocal) + protected override void ApplyNoiseToKeyFrame(MotionFrameData keyFrame, NoiseValue value, bool translateByLocal, bool rotateByLocal, bool applyWeight) { if (bone?.BoneFlags.HasFlag(BoneType.Rotate) != false) keyFrame.Quaternion = ApplyRotation(bone, keyFrame.Quaternion, value.Rotation, rotateByLocal); diff --git a/ApplyNoisePlugin/Transform/NoiseValue.cs b/ApplyNoisePlugin/Transform/NoiseValue.cs index 8828550..d265ba7 100644 --- a/ApplyNoisePlugin/Transform/NoiseValue.cs +++ b/ApplyNoisePlugin/Transform/NoiseValue.cs @@ -7,6 +7,7 @@ namespace Linearstar.MikuMikuMoving.ApplyNoisePlugin.Transform; public record NoiseValue( Vector3 Position, Vector3 Rotation, + float Weight, float Gravity, Vector3 GravityDirection ) @@ -15,6 +16,7 @@ Vector3 GravityDirection new( new(5), MathHelper.ToRadians(new Vector3(5)), + 0.5f, 10, new(1) ); @@ -33,6 +35,7 @@ public static NoiseValue Create(Random random, NoiseValue width) => new( Random3(random, width.Position), Random3(random, width.Rotation), + Random(random, width.Weight), Random(random, width.Gravity), Random3(random, width.GravityDirection) ); @@ -41,6 +44,7 @@ public static NoiseValue Interpolate(NoiseValue a, NoiseValue b, float amount) = new( Vector3.Lerp(a.Position, b.Position, amount), Vector3.Lerp(a.Rotation, b.Rotation, amount), + MathHelper.Lerp(a.Weight, b.Weight, amount), MathHelper.Lerp(a.Gravity, b.Gravity, amount), Vector3.Lerp(a.GravityDirection, b.GravityDirection, amount) ); diff --git a/ApplyNoisePlugin/Transform/Transformer.cs b/ApplyNoisePlugin/Transform/Transformer.cs index aaa50d6..c364f48 100644 --- a/ApplyNoisePlugin/Transform/Transformer.cs +++ b/ApplyNoisePlugin/Transform/Transformer.cs @@ -12,6 +12,8 @@ public static class Transformer case EditMode.ModelMode when scene.ActiveModel is { } activeModel: return CompositeTransformer.Create(activeModel.Bones .SelectMany(MotionLayerTransformer.FromBone) + .Cast() + .Concat(MorphTransformer.FromModel(activeModel)) .ToArray()); case EditMode.AccessoryMode: return CompositeTransformer.Create(scene.Accessories diff --git a/PluginFramework/Framework/SceneExtensions.cs b/PluginFramework/Framework/SceneExtensions.cs index 3912497..2576844 100644 --- a/PluginFramework/Framework/SceneExtensions.cs +++ b/PluginFramework/Framework/SceneExtensions.cs @@ -50,17 +50,31 @@ public void Dispose() IEnumerable GetKeyFrameBuffers() { foreach (var model in scene.Models) - foreach (var layer in model.Bones.SelectMany(x => x.Layers)) - yield return KeyFrameBuffer.Create( - layer.Frames.GetKeyFrames(), - layer.Frames.ReplaceAllKeyFrames, - layer.Selected, - x => - { - if (layer.Selected == x) return; - layer.Selected = x; - } - ); + { + foreach (var morph in model.Morphs) + yield return KeyFrameBuffer.Create( + morph.Frames.GetKeyFrames(), + morph.Frames.ReplaceAllKeyFrames, + morph.Selected, + x => + { + if (morph.Selected == x) return; + morph.Selected = x; + } + ); + + foreach (var layer in model.Bones.SelectMany(x => x.Layers)) + yield return KeyFrameBuffer.Create( + layer.Frames.GetKeyFrames(), + layer.Frames.ReplaceAllKeyFrames, + layer.Selected, + x => + { + if (layer.Selected == x) return; + layer.Selected = x; + } + ); + } foreach (var layer in scene.Accessories.SelectMany(x => x.Layers)) yield return KeyFrameBuffer.Create(