diff options
| author | Jacob Palecki <[email protected]> | 2021-09-16 13:07:43 -0700 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-09-23 22:34:51 -0400 |
| commit | 4197e030c5cfeda5592816c8028152d9b7b599e0 (patch) | |
| tree | a1e5489fbaa0e6e4523dfbb31a3c584c6745a710 | |
| parent | Get power cap working (diff) | |
| download | rawaccel-4197e030c5cfeda5592816c8028152d9b7b599e0.tar.xz rawaccel-4197e030c5cfeda5592816c8028152d9b7b599e0.zip | |
Remove weight
| -rw-r--r-- | common/accel-power.hpp | 2 | ||||
| -rw-r--r-- | common/rawaccel-base.hpp | 1 | ||||
| -rw-r--r-- | common/rawaccel-validate.hpp | 4 | ||||
| -rw-r--r-- | grapher/Form1.Designer.cs | 409 | ||||
| -rw-r--r-- | grapher/Form1.cs | 6 | ||||
| -rw-r--r-- | grapher/Layouts/ClassicLayout.cs | 1 | ||||
| -rw-r--r-- | grapher/Layouts/DefaultLayout.cs | 1 | ||||
| -rw-r--r-- | grapher/Layouts/JumpLayout.cs | 1 | ||||
| -rw-r--r-- | grapher/Layouts/LUTLayout.cs | 1 | ||||
| -rw-r--r-- | grapher/Layouts/LayoutBase.cs | 7 | ||||
| -rw-r--r-- | grapher/Layouts/LinearLayout.cs | 1 | ||||
| -rw-r--r-- | grapher/Layouts/MotivityLayout.cs | 1 | ||||
| -rw-r--r-- | grapher/Layouts/NaturalLayout.cs | 1 | ||||
| -rw-r--r-- | grapher/Layouts/OffLayout.cs | 1 | ||||
| -rw-r--r-- | grapher/Layouts/PowerLayout.cs | 1 | ||||
| -rw-r--r-- | grapher/Layouts/UnsupportedLayout.cs | 1 | ||||
| -rw-r--r-- | grapher/Models/AccelGUIFactory.cs | 26 | ||||
| -rw-r--r-- | grapher/Models/Options/AccelTypeOptions.cs | 9 | ||||
| -rw-r--r-- | wrapper/wrapper.cpp | 1 |
19 files changed, 171 insertions, 304 deletions
diff --git a/common/accel-power.hpp b/common/accel-power.hpp index 0b9353d..3baeda0 100644 --- a/common/accel-power.hpp +++ b/common/accel-power.hpp @@ -10,7 +10,7 @@ namespace rawaccel { static double base_fn(double x, double scale, const accel_args& args) { // f(x) = w(mx)^k - return args.weight * pow(scale * x, args.exponent_power); + return pow(scale * x, args.exponent_power); } }; diff --git a/common/rawaccel-base.hpp b/common/rawaccel-base.hpp index 258cfef..d8a089c 100644 --- a/common/rawaccel-base.hpp +++ b/common/rawaccel-base.hpp @@ -49,7 +49,6 @@ namespace rawaccel { double motivity = 1.5; double exponent_classic = 2; double scale = 1; - double weight = 1; double exponent_power = 0.05; double limit = 1.5; double midpoint = 5; diff --git a/common/rawaccel-validate.hpp b/common/rawaccel-validate.hpp index 8b99a56..a88d514 100644 --- a/common/rawaccel-validate.hpp +++ b/common/rawaccel-validate.hpp @@ -94,10 +94,6 @@ namespace rawaccel { error("scale"" must be positive"); } - if (args.weight <= 0) { - error("weight"" must be positive"); - } - if (args.exponent_power <= 0) { error("exponent"" must be positive"); } diff --git a/grapher/Form1.Designer.cs b/grapher/Form1.Designer.cs index f162801..a0b102e 100644 --- a/grapher/Form1.Designer.cs +++ b/grapher/Form1.Designer.cs @@ -71,6 +71,24 @@ namespace grapher System.Windows.Forms.DataVisualization.Charting.Title title6 = new System.Windows.Forms.DataVisualization.Charting.Title(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RawAcceleration)); this.optionsPanel = new System.Windows.Forms.Panel(); + this.OutCapActiveYLabelPower = new System.Windows.Forms.Label(); + this.InCapActiveYLabelPower = new System.Windows.Forms.Label(); + this.OutCapActiveXLabelPower = new System.Windows.Forms.Label(); + this.InCapActiveXLabelPower = new System.Windows.Forms.Label(); + this.CapTypeActiveYLabelPower = new System.Windows.Forms.Label(); + this.CapTypeActiveXLabelPower = new System.Windows.Forms.Label(); + this.outCapLabelYPower = new System.Windows.Forms.Label(); + this.inCapLabelYPower = new System.Windows.Forms.Label(); + this.CapTypeLabelYPower = new System.Windows.Forms.Label(); + this.outCapLabelXPower = new System.Windows.Forms.Label(); + this.inCapLabelXPower = new System.Windows.Forms.Label(); + this.CapTypeLabelXPower = new System.Windows.Forms.Label(); + this.outCapBoxYPower = new System.Windows.Forms.TextBox(); + this.outCapBoxXPower = new System.Windows.Forms.TextBox(); + this.inCapBoxYPower = new System.Windows.Forms.TextBox(); + this.inCapBoxXPower = new System.Windows.Forms.TextBox(); + this.CapTypeDropdownYPower = new System.Windows.Forms.ComboBox(); + this.CapTypeDropdownXPower = new System.Windows.Forms.ComboBox(); this.CapTypeActiveYLabelClassic = new System.Windows.Forms.Label(); this.CapTypeActiveXLabelClassic = new System.Windows.Forms.Label(); this.OutCapActiveYLabelClassic = new System.Windows.Forms.Label(); @@ -165,7 +183,6 @@ namespace grapher this.constantThreeLabelY = new System.Windows.Forms.Label(); this.limitLabelY = new System.Windows.Forms.Label(); this.offsetLabelY = new System.Windows.Forms.Label(); - this.weightLabelY = new System.Windows.Forms.Label(); this.inCapLabelYClassic = new System.Windows.Forms.Label(); this.constantOneLabelY = new System.Windows.Forms.Label(); this.ByComponentXYLock = new System.Windows.Forms.CheckBox(); @@ -182,8 +199,6 @@ namespace grapher this.LimitActiveXLabel = new System.Windows.Forms.Label(); this.OffsetActiveXLabel = new System.Windows.Forms.Label(); this.InCapActiveYLabelClassic = new System.Windows.Forms.Label(); - this.WeightActiveYLabel = new System.Windows.Forms.Label(); - this.WeightActiveXLabel = new System.Windows.Forms.Label(); this.InCapActiveXLabelClassic = new System.Windows.Forms.Label(); this.AccelerationActiveLabelX = new System.Windows.Forms.Label(); this.AccelTypeActiveLabelX = new System.Windows.Forms.Label(); @@ -203,9 +218,6 @@ namespace grapher this.midpointBoxX = new System.Windows.Forms.TextBox(); this.limitLabelX = new System.Windows.Forms.Label(); this.limitBoxX = new System.Windows.Forms.TextBox(); - this.weightBoxY = new System.Windows.Forms.TextBox(); - this.weightLabelX = new System.Windows.Forms.Label(); - this.weightBoxX = new System.Windows.Forms.TextBox(); this.inCapLabelXClassic = new System.Windows.Forms.Label(); this.inCapBoxXClassic = new System.Windows.Forms.TextBox(); this.constantOneLabelX = new System.Windows.Forms.Label(); @@ -236,24 +248,6 @@ namespace grapher this.GainChart = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.VelocityChart = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.AccelerationChart = new System.Windows.Forms.DataVisualization.Charting.Chart(); - this.CapTypeDropdownXPower = new System.Windows.Forms.ComboBox(); - this.CapTypeDropdownYPower = new System.Windows.Forms.ComboBox(); - this.inCapBoxXPower = new System.Windows.Forms.TextBox(); - this.inCapBoxYPower = new System.Windows.Forms.TextBox(); - this.outCapBoxXPower = new System.Windows.Forms.TextBox(); - this.outCapBoxYPower = new System.Windows.Forms.TextBox(); - this.CapTypeLabelXPower = new System.Windows.Forms.Label(); - this.inCapLabelXPower = new System.Windows.Forms.Label(); - this.outCapLabelXPower = new System.Windows.Forms.Label(); - this.CapTypeLabelYPower = new System.Windows.Forms.Label(); - this.inCapLabelYPower = new System.Windows.Forms.Label(); - this.outCapLabelYPower = new System.Windows.Forms.Label(); - this.CapTypeActiveXLabelPower = new System.Windows.Forms.Label(); - this.CapTypeActiveYLabelPower = new System.Windows.Forms.Label(); - this.InCapActiveXLabelPower = new System.Windows.Forms.Label(); - this.OutCapActiveXLabelPower = new System.Windows.Forms.Label(); - this.InCapActiveYLabelPower = new System.Windows.Forms.Label(); - this.OutCapActiveYLabelPower = new System.Windows.Forms.Label(); this.optionsPanel.SuspendLayout(); this.DirectionalityPanel.SuspendLayout(); this.menuStrip1.SuspendLayout(); @@ -362,7 +356,6 @@ namespace grapher this.optionsPanel.Controls.Add(this.constantThreeLabelY); this.optionsPanel.Controls.Add(this.limitLabelY); this.optionsPanel.Controls.Add(this.offsetLabelY); - this.optionsPanel.Controls.Add(this.weightLabelY); this.optionsPanel.Controls.Add(this.inCapLabelYClassic); this.optionsPanel.Controls.Add(this.constantOneLabelY); this.optionsPanel.Controls.Add(this.ByComponentXYLock); @@ -379,8 +372,6 @@ namespace grapher this.optionsPanel.Controls.Add(this.LimitActiveXLabel); this.optionsPanel.Controls.Add(this.OffsetActiveXLabel); this.optionsPanel.Controls.Add(this.InCapActiveYLabelClassic); - this.optionsPanel.Controls.Add(this.WeightActiveYLabel); - this.optionsPanel.Controls.Add(this.WeightActiveXLabel); this.optionsPanel.Controls.Add(this.InCapActiveXLabelClassic); this.optionsPanel.Controls.Add(this.AccelerationActiveLabelX); this.optionsPanel.Controls.Add(this.AccelTypeActiveLabelX); @@ -400,9 +391,6 @@ namespace grapher this.optionsPanel.Controls.Add(this.midpointBoxX); this.optionsPanel.Controls.Add(this.limitLabelX); this.optionsPanel.Controls.Add(this.limitBoxX); - this.optionsPanel.Controls.Add(this.weightBoxY); - this.optionsPanel.Controls.Add(this.weightLabelX); - this.optionsPanel.Controls.Add(this.weightBoxX); this.optionsPanel.Controls.Add(this.inCapLabelXClassic); this.optionsPanel.Controls.Add(this.inCapBoxXClassic); this.optionsPanel.Controls.Add(this.constantOneLabelX); @@ -420,6 +408,158 @@ namespace grapher this.optionsPanel.Size = new System.Drawing.Size(483, 956); this.optionsPanel.TabIndex = 34; // + // OutCapActiveYLabelPower + // + this.OutCapActiveYLabelPower.AutoSize = true; + this.OutCapActiveYLabelPower.Location = new System.Drawing.Point(414, 836); + this.OutCapActiveYLabelPower.Name = "OutCapActiveYLabelPower"; + this.OutCapActiveYLabelPower.Size = new System.Drawing.Size(13, 13); + this.OutCapActiveYLabelPower.TabIndex = 224; + this.OutCapActiveYLabelPower.Text = "0"; + // + // InCapActiveYLabelPower + // + this.InCapActiveYLabelPower.AutoSize = true; + this.InCapActiveYLabelPower.Location = new System.Drawing.Point(417, 810); + this.InCapActiveYLabelPower.Name = "InCapActiveYLabelPower"; + this.InCapActiveYLabelPower.Size = new System.Drawing.Size(13, 13); + this.InCapActiveYLabelPower.TabIndex = 223; + this.InCapActiveYLabelPower.Text = "0"; + // + // OutCapActiveXLabelPower + // + this.OutCapActiveXLabelPower.AutoSize = true; + this.OutCapActiveXLabelPower.Location = new System.Drawing.Point(200, 837); + this.OutCapActiveXLabelPower.Name = "OutCapActiveXLabelPower"; + this.OutCapActiveXLabelPower.Size = new System.Drawing.Size(13, 13); + this.OutCapActiveXLabelPower.TabIndex = 222; + this.OutCapActiveXLabelPower.Text = "0"; + // + // InCapActiveXLabelPower + // + this.InCapActiveXLabelPower.AutoSize = true; + this.InCapActiveXLabelPower.Location = new System.Drawing.Point(200, 810); + this.InCapActiveXLabelPower.Name = "InCapActiveXLabelPower"; + this.InCapActiveXLabelPower.Size = new System.Drawing.Size(13, 13); + this.InCapActiveXLabelPower.TabIndex = 221; + this.InCapActiveXLabelPower.Text = "0"; + // + // CapTypeActiveYLabelPower + // + this.CapTypeActiveYLabelPower.AutoSize = true; + this.CapTypeActiveYLabelPower.Location = new System.Drawing.Point(414, 783); + this.CapTypeActiveYLabelPower.Name = "CapTypeActiveYLabelPower"; + this.CapTypeActiveYLabelPower.Size = new System.Drawing.Size(16, 13); + this.CapTypeActiveYLabelPower.TabIndex = 220; + this.CapTypeActiveYLabelPower.Text = "In"; + // + // CapTypeActiveXLabelPower + // + this.CapTypeActiveXLabelPower.AutoSize = true; + this.CapTypeActiveXLabelPower.Location = new System.Drawing.Point(200, 788); + this.CapTypeActiveXLabelPower.Name = "CapTypeActiveXLabelPower"; + this.CapTypeActiveXLabelPower.Size = new System.Drawing.Size(16, 13); + this.CapTypeActiveXLabelPower.TabIndex = 219; + this.CapTypeActiveXLabelPower.Text = "In"; + // + // outCapLabelYPower + // + this.outCapLabelYPower.AutoSize = true; + this.outCapLabelYPower.Location = new System.Drawing.Point(262, 837); + this.outCapLabelYPower.Name = "outCapLabelYPower"; + this.outCapLabelYPower.Size = new System.Drawing.Size(64, 13); + this.outCapLabelYPower.TabIndex = 218; + this.outCapLabelYPower.Text = "Cap: Output"; + // + // inCapLabelYPower + // + this.inCapLabelYPower.AutoSize = true; + this.inCapLabelYPower.Location = new System.Drawing.Point(262, 810); + this.inCapLabelYPower.Name = "inCapLabelYPower"; + this.inCapLabelYPower.Size = new System.Drawing.Size(56, 13); + this.inCapLabelYPower.TabIndex = 217; + this.inCapLabelYPower.Text = "Cap: Input"; + // + // CapTypeLabelYPower + // + this.CapTypeLabelYPower.AutoSize = true; + this.CapTypeLabelYPower.Location = new System.Drawing.Point(262, 783); + this.CapTypeLabelYPower.Name = "CapTypeLabelYPower"; + this.CapTypeLabelYPower.Size = new System.Drawing.Size(53, 13); + this.CapTypeLabelYPower.TabIndex = 216; + this.CapTypeLabelYPower.Text = "Cap Type"; + // + // outCapLabelXPower + // + this.outCapLabelXPower.AutoSize = true; + this.outCapLabelXPower.Location = new System.Drawing.Point(35, 836); + this.outCapLabelXPower.Name = "outCapLabelXPower"; + this.outCapLabelXPower.Size = new System.Drawing.Size(64, 13); + this.outCapLabelXPower.TabIndex = 215; + this.outCapLabelXPower.Text = "Cap: Output"; + // + // inCapLabelXPower + // + this.inCapLabelXPower.AutoSize = true; + this.inCapLabelXPower.Location = new System.Drawing.Point(38, 810); + this.inCapLabelXPower.Name = "inCapLabelXPower"; + this.inCapLabelXPower.Size = new System.Drawing.Size(56, 13); + this.inCapLabelXPower.TabIndex = 214; + this.inCapLabelXPower.Text = "Cap: Input"; + // + // CapTypeLabelXPower + // + this.CapTypeLabelXPower.AutoSize = true; + this.CapTypeLabelXPower.Location = new System.Drawing.Point(40, 783); + this.CapTypeLabelXPower.Name = "CapTypeLabelXPower"; + this.CapTypeLabelXPower.Size = new System.Drawing.Size(53, 13); + this.CapTypeLabelXPower.TabIndex = 213; + this.CapTypeLabelXPower.Text = "Cap Type"; + // + // outCapBoxYPower + // + this.outCapBoxYPower.Location = new System.Drawing.Point(332, 834); + this.outCapBoxYPower.Name = "outCapBoxYPower"; + this.outCapBoxYPower.Size = new System.Drawing.Size(76, 20); + this.outCapBoxYPower.TabIndex = 212; + // + // outCapBoxXPower + // + this.outCapBoxXPower.Location = new System.Drawing.Point(106, 833); + this.outCapBoxXPower.Name = "outCapBoxXPower"; + this.outCapBoxXPower.Size = new System.Drawing.Size(76, 20); + this.outCapBoxXPower.TabIndex = 211; + // + // inCapBoxYPower + // + this.inCapBoxYPower.Location = new System.Drawing.Point(332, 807); + this.inCapBoxYPower.Name = "inCapBoxYPower"; + this.inCapBoxYPower.Size = new System.Drawing.Size(76, 20); + this.inCapBoxYPower.TabIndex = 210; + // + // inCapBoxXPower + // + this.inCapBoxXPower.Location = new System.Drawing.Point(106, 807); + this.inCapBoxXPower.Name = "inCapBoxXPower"; + this.inCapBoxXPower.Size = new System.Drawing.Size(76, 20); + this.inCapBoxXPower.TabIndex = 209; + // + // CapTypeDropdownYPower + // + this.CapTypeDropdownYPower.FormattingEnabled = true; + this.CapTypeDropdownYPower.Location = new System.Drawing.Point(332, 780); + this.CapTypeDropdownYPower.Name = "CapTypeDropdownYPower"; + this.CapTypeDropdownYPower.Size = new System.Drawing.Size(76, 21); + this.CapTypeDropdownYPower.TabIndex = 208; + // + // CapTypeDropdownXPower + // + this.CapTypeDropdownXPower.FormattingEnabled = true; + this.CapTypeDropdownXPower.Location = new System.Drawing.Point(106, 780); + this.CapTypeDropdownXPower.Name = "CapTypeDropdownXPower"; + this.CapTypeDropdownXPower.Size = new System.Drawing.Size(76, 21); + this.CapTypeDropdownXPower.TabIndex = 207; + // // CapTypeActiveYLabelClassic // this.CapTypeActiveYLabelClassic.AutoSize = true; @@ -1251,15 +1391,6 @@ namespace grapher this.offsetLabelY.TabIndex = 135; this.offsetLabelY.Text = "Offset"; // - // weightLabelY - // - this.weightLabelY.AutoSize = true; - this.weightLabelY.Location = new System.Drawing.Point(263, 222); - this.weightLabelY.Name = "weightLabelY"; - this.weightLabelY.Size = new System.Drawing.Size(41, 13); - this.weightLabelY.TabIndex = 134; - this.weightLabelY.Text = "Weight"; - // // inCapLabelYClassic // this.inCapLabelYClassic.AutoSize = true; @@ -1398,24 +1529,6 @@ namespace grapher this.InCapActiveYLabelClassic.TabIndex = 124; this.InCapActiveYLabelClassic.Text = "0"; // - // WeightActiveYLabel - // - this.WeightActiveYLabel.AutoSize = true; - this.WeightActiveYLabel.Location = new System.Drawing.Point(414, 222); - this.WeightActiveYLabel.Name = "WeightActiveYLabel"; - this.WeightActiveYLabel.Size = new System.Drawing.Size(13, 13); - this.WeightActiveYLabel.TabIndex = 123; - this.WeightActiveYLabel.Text = "0"; - // - // WeightActiveXLabel - // - this.WeightActiveXLabel.AutoSize = true; - this.WeightActiveXLabel.Location = new System.Drawing.Point(197, 222); - this.WeightActiveXLabel.Name = "WeightActiveXLabel"; - this.WeightActiveXLabel.Size = new System.Drawing.Size(13, 13); - this.WeightActiveXLabel.TabIndex = 122; - this.WeightActiveXLabel.Text = "0"; - // // InCapActiveXLabelClassic // this.InCapActiveXLabelClassic.AutoSize = true; @@ -1583,30 +1696,6 @@ namespace grapher this.limitBoxX.Size = new System.Drawing.Size(76, 20); this.limitBoxX.TabIndex = 93; // - // weightBoxY - // - this.weightBoxY.Location = new System.Drawing.Point(332, 219); - this.weightBoxY.Name = "weightBoxY"; - this.weightBoxY.Size = new System.Drawing.Size(76, 20); - this.weightBoxY.TabIndex = 104; - // - // weightLabelX - // - this.weightLabelX.AutoSize = true; - this.weightLabelX.Location = new System.Drawing.Point(37, 222); - this.weightLabelX.Name = "weightLabelX"; - this.weightLabelX.Size = new System.Drawing.Size(41, 13); - this.weightLabelX.TabIndex = 97; - this.weightLabelX.Text = "Weight"; - this.weightLabelX.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // weightBoxX - // - this.weightBoxX.Location = new System.Drawing.Point(106, 219); - this.weightBoxX.Name = "weightBoxX"; - this.weightBoxX.Size = new System.Drawing.Size(76, 20); - this.weightBoxX.TabIndex = 90; - // // inCapLabelXClassic // this.inCapLabelXClassic.AutoSize = true; @@ -2049,158 +2138,6 @@ namespace grapher title6.Text = "Sensitivity"; this.AccelerationChart.Titles.Add(title6); // - // CapTypeDropdownXPower - // - this.CapTypeDropdownXPower.FormattingEnabled = true; - this.CapTypeDropdownXPower.Location = new System.Drawing.Point(106, 780); - this.CapTypeDropdownXPower.Name = "CapTypeDropdownXPower"; - this.CapTypeDropdownXPower.Size = new System.Drawing.Size(76, 21); - this.CapTypeDropdownXPower.TabIndex = 207; - // - // CapTypeDropdownYPower - // - this.CapTypeDropdownYPower.FormattingEnabled = true; - this.CapTypeDropdownYPower.Location = new System.Drawing.Point(332, 780); - this.CapTypeDropdownYPower.Name = "CapTypeDropdownYPower"; - this.CapTypeDropdownYPower.Size = new System.Drawing.Size(76, 21); - this.CapTypeDropdownYPower.TabIndex = 208; - // - // inCapBoxXPower - // - this.inCapBoxXPower.Location = new System.Drawing.Point(106, 807); - this.inCapBoxXPower.Name = "inCapBoxXPower"; - this.inCapBoxXPower.Size = new System.Drawing.Size(76, 20); - this.inCapBoxXPower.TabIndex = 209; - // - // inCapBoxYPower - // - this.inCapBoxYPower.Location = new System.Drawing.Point(332, 807); - this.inCapBoxYPower.Name = "inCapBoxYPower"; - this.inCapBoxYPower.Size = new System.Drawing.Size(76, 20); - this.inCapBoxYPower.TabIndex = 210; - // - // outCapBoxXPower - // - this.outCapBoxXPower.Location = new System.Drawing.Point(106, 833); - this.outCapBoxXPower.Name = "outCapBoxXPower"; - this.outCapBoxXPower.Size = new System.Drawing.Size(76, 20); - this.outCapBoxXPower.TabIndex = 211; - // - // outCapBoxYPower - // - this.outCapBoxYPower.Location = new System.Drawing.Point(332, 834); - this.outCapBoxYPower.Name = "outCapBoxYPower"; - this.outCapBoxYPower.Size = new System.Drawing.Size(76, 20); - this.outCapBoxYPower.TabIndex = 212; - // - // CapTypeLabelXPower - // - this.CapTypeLabelXPower.AutoSize = true; - this.CapTypeLabelXPower.Location = new System.Drawing.Point(40, 783); - this.CapTypeLabelXPower.Name = "CapTypeLabelXPower"; - this.CapTypeLabelXPower.Size = new System.Drawing.Size(53, 13); - this.CapTypeLabelXPower.TabIndex = 213; - this.CapTypeLabelXPower.Text = "Cap Type"; - // - // inCapLabelXPower - // - this.inCapLabelXPower.AutoSize = true; - this.inCapLabelXPower.Location = new System.Drawing.Point(38, 810); - this.inCapLabelXPower.Name = "inCapLabelXPower"; - this.inCapLabelXPower.Size = new System.Drawing.Size(56, 13); - this.inCapLabelXPower.TabIndex = 214; - this.inCapLabelXPower.Text = "Cap: Input"; - // - // outCapLabelXPower - // - this.outCapLabelXPower.AutoSize = true; - this.outCapLabelXPower.Location = new System.Drawing.Point(35, 836); - this.outCapLabelXPower.Name = "outCapLabelXPower"; - this.outCapLabelXPower.Size = new System.Drawing.Size(64, 13); - this.outCapLabelXPower.TabIndex = 215; - this.outCapLabelXPower.Text = "Cap: Output"; - // - // CapTypeLabelYPower - // - this.CapTypeLabelYPower.AutoSize = true; - this.CapTypeLabelYPower.Location = new System.Drawing.Point(262, 783); - this.CapTypeLabelYPower.Name = "CapTypeLabelYPower"; - this.CapTypeLabelYPower.Size = new System.Drawing.Size(53, 13); - this.CapTypeLabelYPower.TabIndex = 216; - this.CapTypeLabelYPower.Text = "Cap Type"; - // - // inCapLabelYPower - // - this.inCapLabelYPower.AutoSize = true; - this.inCapLabelYPower.Location = new System.Drawing.Point(262, 810); - this.inCapLabelYPower.Name = "inCapLabelYPower"; - this.inCapLabelYPower.Size = new System.Drawing.Size(56, 13); - this.inCapLabelYPower.TabIndex = 217; - this.inCapLabelYPower.Text = "Cap: Input"; - // - // outCapLabelYPower - // - this.outCapLabelYPower.AutoSize = true; - this.outCapLabelYPower.Location = new System.Drawing.Point(262, 837); - this.outCapLabelYPower.Name = "outCapLabelYPower"; - this.outCapLabelYPower.Size = new System.Drawing.Size(64, 13); - this.outCapLabelYPower.TabIndex = 218; - this.outCapLabelYPower.Text = "Cap: Output"; - // - // CapTypeActiveXLabelPower - // - this.CapTypeActiveXLabelPower.AutoSize = true; - this.CapTypeActiveXLabelPower.Location = new System.Drawing.Point(200, 788); - this.CapTypeActiveXLabelPower.Name = "CapTypeActiveXLabelPower"; - this.CapTypeActiveXLabelPower.Size = new System.Drawing.Size(16, 13); - this.CapTypeActiveXLabelPower.TabIndex = 219; - this.CapTypeActiveXLabelPower.Text = "In"; - // - // CapTypeActiveYLabelPower - // - this.CapTypeActiveYLabelPower.AutoSize = true; - this.CapTypeActiveYLabelPower.Location = new System.Drawing.Point(414, 783); - this.CapTypeActiveYLabelPower.Name = "CapTypeActiveYLabelPower"; - this.CapTypeActiveYLabelPower.Size = new System.Drawing.Size(16, 13); - this.CapTypeActiveYLabelPower.TabIndex = 220; - this.CapTypeActiveYLabelPower.Text = "In"; - // - // InCapActiveXLabelPower - // - this.InCapActiveXLabelPower.AutoSize = true; - this.InCapActiveXLabelPower.Location = new System.Drawing.Point(200, 810); - this.InCapActiveXLabelPower.Name = "InCapActiveXLabelPower"; - this.InCapActiveXLabelPower.Size = new System.Drawing.Size(13, 13); - this.InCapActiveXLabelPower.TabIndex = 221; - this.InCapActiveXLabelPower.Text = "0"; - // - // OutCapActiveXLabelPower - // - this.OutCapActiveXLabelPower.AutoSize = true; - this.OutCapActiveXLabelPower.Location = new System.Drawing.Point(200, 837); - this.OutCapActiveXLabelPower.Name = "OutCapActiveXLabelPower"; - this.OutCapActiveXLabelPower.Size = new System.Drawing.Size(13, 13); - this.OutCapActiveXLabelPower.TabIndex = 222; - this.OutCapActiveXLabelPower.Text = "0"; - // - // InCapActiveYLabelPower - // - this.InCapActiveYLabelPower.AutoSize = true; - this.InCapActiveYLabelPower.Location = new System.Drawing.Point(417, 810); - this.InCapActiveYLabelPower.Name = "InCapActiveYLabelPower"; - this.InCapActiveYLabelPower.Size = new System.Drawing.Size(13, 13); - this.InCapActiveYLabelPower.TabIndex = 223; - this.InCapActiveYLabelPower.Text = "0"; - // - // OutCapActiveYLabelPower - // - this.OutCapActiveYLabelPower.AutoSize = true; - this.OutCapActiveYLabelPower.Location = new System.Drawing.Point(414, 836); - this.OutCapActiveYLabelPower.Name = "OutCapActiveYLabelPower"; - this.OutCapActiveYLabelPower.Size = new System.Drawing.Size(13, 13); - this.OutCapActiveYLabelPower.TabIndex = 224; - this.OutCapActiveYLabelPower.Text = "0"; - // // RawAcceleration // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -2251,7 +2188,6 @@ namespace grapher private System.Windows.Forms.Label constantThreeLabelY; private System.Windows.Forms.Label limitLabelY; private System.Windows.Forms.Label offsetLabelY; - private System.Windows.Forms.Label weightLabelY; private System.Windows.Forms.Label inCapLabelYClassic; private System.Windows.Forms.Label constantOneLabelY; private System.Windows.Forms.CheckBox ByComponentXYLock; @@ -2268,8 +2204,6 @@ namespace grapher private System.Windows.Forms.Label LimitActiveXLabel; private System.Windows.Forms.Label OffsetActiveXLabel; private System.Windows.Forms.Label InCapActiveYLabelClassic; - private System.Windows.Forms.Label WeightActiveYLabel; - private System.Windows.Forms.Label WeightActiveXLabel; private System.Windows.Forms.Label InCapActiveXLabelClassic; private System.Windows.Forms.Label AccelerationActiveLabelX; private System.Windows.Forms.Label AccelTypeActiveLabelX; @@ -2289,9 +2223,6 @@ namespace grapher private System.Windows.Forms.TextBox midpointBoxX; private System.Windows.Forms.Label limitLabelX; private System.Windows.Forms.TextBox limitBoxX; - private System.Windows.Forms.TextBox weightBoxY; - private System.Windows.Forms.Label weightLabelX; - private System.Windows.Forms.TextBox weightBoxX; private System.Windows.Forms.Label inCapLabelXClassic; private System.Windows.Forms.TextBox inCapBoxXClassic; private System.Windows.Forms.Label constantOneLabelX; diff --git a/grapher/Form1.cs b/grapher/Form1.cs index b5a49c8..4d1e57d 100644 --- a/grapher/Form1.cs +++ b/grapher/Form1.cs @@ -74,8 +74,6 @@ namespace grapher sensitivityBoxX, VertHorzRatioBox, rotationBox, - weightBoxX, - weightBoxY, inCapBoxXClassic, inCapBoxYClassic, outCapBoxXClassic, @@ -124,8 +122,6 @@ namespace grapher sensitivityLabel, VertHorzRatioLabel, rotationLabel, - weightLabelX, - weightLabelY, inCapLabelXClassic, inCapLabelYClassic, outCapLabelXClassic, @@ -165,8 +161,6 @@ namespace grapher SensitivityMultiplierActiveLabel, VertHorzRatioActiveLabel, RotationActiveLabel, - WeightActiveXLabel, - WeightActiveYLabel, InCapActiveXLabelClassic, InCapActiveYLabelClassic, OutCapActiveXLabelClassic, diff --git a/grapher/Layouts/ClassicLayout.cs b/grapher/Layouts/ClassicLayout.cs index f8fb9ef..1248a9c 100644 --- a/grapher/Layouts/ClassicLayout.cs +++ b/grapher/Layouts/ClassicLayout.cs @@ -16,7 +16,6 @@ namespace grapher.Layouts DecayRateLayout = new OptionLayout(false, string.Empty); GrowthRateLayout = new OptionLayout(false, string.Empty); SmoothLayout = new OptionLayout(false, string.Empty); - WeightLayout = new OptionLayout(false, string.Empty); OffsetLayout = new OptionLayout(true, Offset); LimitLayout = new OptionLayout(false, string.Empty); PowerClassicLayout = new OptionLayout(true, PowerClassic); diff --git a/grapher/Layouts/DefaultLayout.cs b/grapher/Layouts/DefaultLayout.cs index 951052a..9ae10b2 100644 --- a/grapher/Layouts/DefaultLayout.cs +++ b/grapher/Layouts/DefaultLayout.cs @@ -17,7 +17,6 @@ namespace grapher.Layouts DecayRateLayout = new OptionLayout(true, DecayRate); GrowthRateLayout = new OptionLayout(true, GrowthRate); SmoothLayout = new OptionLayout(true, Smooth); - WeightLayout = new OptionLayout(true, Weight); OffsetLayout = new OptionLayout(true, Offset); LimitLayout = new OptionLayout(true, Limit); PowerClassicLayout = new OptionLayout(true, PowerClassic); diff --git a/grapher/Layouts/JumpLayout.cs b/grapher/Layouts/JumpLayout.cs index 550e821..ab2bc17 100644 --- a/grapher/Layouts/JumpLayout.cs +++ b/grapher/Layouts/JumpLayout.cs @@ -17,7 +17,6 @@ namespace grapher.Layouts DecayRateLayout = new OptionLayout(false, string.Empty); GrowthRateLayout = new OptionLayout(false, string.Empty); SmoothLayout = new OptionLayout(true, Smooth); - WeightLayout = new OptionLayout(false, Weight); OffsetLayout = new OptionLayout(true, Offset); LimitLayout = new OptionLayout(false, Limit); PowerClassicLayout = new OptionLayout(false, string.Empty); diff --git a/grapher/Layouts/LUTLayout.cs b/grapher/Layouts/LUTLayout.cs index 2a6e70c..86287b1 100644 --- a/grapher/Layouts/LUTLayout.cs +++ b/grapher/Layouts/LUTLayout.cs @@ -25,7 +25,6 @@ namespace grapher.Layouts DecayRateLayout = new OptionLayout(false, string.Empty); GrowthRateLayout = new OptionLayout(false, string.Empty); SmoothLayout = new OptionLayout(false, string.Empty); - WeightLayout = new OptionLayout(false, Weight); OffsetLayout = new OptionLayout(false, Offset); LimitLayout = new OptionLayout(false, string.Empty); PowerClassicLayout = new OptionLayout(false, string.Empty); diff --git a/grapher/Layouts/LayoutBase.cs b/grapher/Layouts/LayoutBase.cs index 4a87504..e7b654f 100644 --- a/grapher/Layouts/LayoutBase.cs +++ b/grapher/Layouts/LayoutBase.cs @@ -26,7 +26,6 @@ namespace grapher.Layouts SmoothLayout = new OptionLayout(false, string.Empty); ClassicCapLayout = new OptionLayout(false, string.Empty); PowerCapLayout = new OptionLayout(false, string.Empty); - WeightLayout = new OptionLayout(false, string.Empty); OffsetLayout = new OptionLayout(false, string.Empty); LimitLayout = new OptionLayout(false, string.Empty); PowerClassicLayout = new OptionLayout(false, string.Empty); @@ -58,8 +57,6 @@ namespace grapher.Layouts protected OptionLayout PowerCapLayout { get; set; } - protected OptionLayout WeightLayout { get; set; } - protected OptionLayout OffsetLayout { get; set; } protected OptionLayout LimitLayout { get; set; } @@ -90,7 +87,6 @@ namespace grapher.Layouts IOption decayRateOption, IOption growthRateOption, IOption smoothOption, - IOption weightOption, IOption offsetOption, IOption limitOption, IOption powerClassicOption, @@ -111,7 +107,6 @@ namespace grapher.Layouts (DecayRateLayout, decayRateOption), (GrowthRateLayout, growthRateOption), (SmoothLayout, smoothOption), - (WeightLayout, weightOption), (OffsetLayout, offsetOption), (LimitLayout, limitOption), (PowerClassicLayout, powerClassicOption), @@ -146,7 +141,6 @@ namespace grapher.Layouts IOption decayRateOption, IOption growthRateOption, IOption smoothOption, - IOption weightOption, IOption offsetOption, IOption limitOption, IOption powerClassicOption, @@ -162,7 +156,6 @@ namespace grapher.Layouts decayRateOption, growthRateOption, smoothOption, - weightOption, offsetOption, limitOption, powerClassicOption, diff --git a/grapher/Layouts/LinearLayout.cs b/grapher/Layouts/LinearLayout.cs index 63c5ff6..7aa0965 100644 --- a/grapher/Layouts/LinearLayout.cs +++ b/grapher/Layouts/LinearLayout.cs @@ -18,7 +18,6 @@ namespace grapher.Layouts DecayRateLayout = new OptionLayout(false, string.Empty); GrowthRateLayout = new OptionLayout(false, string.Empty); SmoothLayout = new OptionLayout(false, string.Empty); - WeightLayout = new OptionLayout(false, Weight); OffsetLayout = new OptionLayout(true, Offset); LimitLayout = new OptionLayout(false, string.Empty); PowerClassicLayout = new OptionLayout(false, string.Empty); diff --git a/grapher/Layouts/MotivityLayout.cs b/grapher/Layouts/MotivityLayout.cs index d47926a..77c20ab 100644 --- a/grapher/Layouts/MotivityLayout.cs +++ b/grapher/Layouts/MotivityLayout.cs @@ -22,7 +22,6 @@ namespace grapher.Layouts DecayRateLayout = new OptionLayout(false, string.Empty); GrowthRateLayout = new OptionLayout(true, GrowthRate); SmoothLayout = new OptionLayout(false, string.Empty); - WeightLayout = new OptionLayout(false, string.Empty); OffsetLayout = new OptionLayout(false, string.Empty); LimitLayout = new OptionLayout(true, Motivity); PowerClassicLayout = new OptionLayout(false, string.Empty); diff --git a/grapher/Layouts/NaturalLayout.cs b/grapher/Layouts/NaturalLayout.cs index d763b3b..452c6aa 100644 --- a/grapher/Layouts/NaturalLayout.cs +++ b/grapher/Layouts/NaturalLayout.cs @@ -17,7 +17,6 @@ namespace grapher.Layouts DecayRateLayout = new OptionLayout(true, DecayRate); GrowthRateLayout = new OptionLayout(false, string.Empty); SmoothLayout = new OptionLayout(false, string.Empty); - WeightLayout = new OptionLayout(false, string.Empty); OffsetLayout = new OptionLayout(true, Offset); LimitLayout = new OptionLayout(true, Limit); PowerClassicLayout = new OptionLayout(false, string.Empty); diff --git a/grapher/Layouts/OffLayout.cs b/grapher/Layouts/OffLayout.cs index b696988..64902a5 100644 --- a/grapher/Layouts/OffLayout.cs +++ b/grapher/Layouts/OffLayout.cs @@ -17,7 +17,6 @@ namespace grapher.Layouts DecayRateLayout = new OptionLayout(false, string.Empty); GrowthRateLayout = new OptionLayout(false, string.Empty); SmoothLayout = new OptionLayout(false, string.Empty); - WeightLayout = new OptionLayout(false, string.Empty); OffsetLayout = new OptionLayout(false, string.Empty); LimitLayout = new OptionLayout(false, string.Empty); PowerClassicLayout = new OptionLayout(false, string.Empty); diff --git a/grapher/Layouts/PowerLayout.cs b/grapher/Layouts/PowerLayout.cs index a1b7e67..cdc9b98 100644 --- a/grapher/Layouts/PowerLayout.cs +++ b/grapher/Layouts/PowerLayout.cs @@ -15,7 +15,6 @@ DecayRateLayout = new OptionLayout(false, string.Empty); GrowthRateLayout = new OptionLayout(false, string.Empty); SmoothLayout = new OptionLayout(false, string.Empty); - WeightLayout = new OptionLayout(true, Weight); OffsetLayout = new OptionLayout(false, string.Empty); LimitLayout = new OptionLayout(false, string.Empty); PowerClassicLayout = new OptionLayout(false, string.Empty); diff --git a/grapher/Layouts/UnsupportedLayout.cs b/grapher/Layouts/UnsupportedLayout.cs index 3cf1d41..87bf5f8 100644 --- a/grapher/Layouts/UnsupportedLayout.cs +++ b/grapher/Layouts/UnsupportedLayout.cs @@ -22,7 +22,6 @@ namespace grapher.Layouts DecayRateLayout = new OptionLayout(false, string.Empty); GrowthRateLayout = new OptionLayout(false, string.Empty); SmoothLayout = new OptionLayout(false, string.Empty); - WeightLayout = new OptionLayout(false, Weight); OffsetLayout = new OptionLayout(false, Offset); LimitLayout = new OptionLayout(false, string.Empty); PowerClassicLayout = new OptionLayout(false, string.Empty); diff --git a/grapher/Models/AccelGUIFactory.cs b/grapher/Models/AccelGUIFactory.cs index 91a649a..d95489b 100644 --- a/grapher/Models/AccelGUIFactory.cs +++ b/grapher/Models/AccelGUIFactory.cs @@ -46,8 +46,6 @@ namespace grapher.Models TextBox sensitivityBoxX, TextBox sensitivityBoxY, TextBox rotationBox, - TextBox weightBoxX, - TextBox weightBoxY, TextBox inCapBoxXClassic, TextBox inCapBoxYClassic, TextBox outCapBoxXClassic, @@ -96,8 +94,6 @@ namespace grapher.Models Label sensitivityLabel, Label yxRatioLabel, Label rotationLabel, - Label weightLabelX, - Label weightLabelY, Label inCapLabelXClassic, Label inCapLabelYClassic, Label outCapLabelXClassic, @@ -137,8 +133,6 @@ namespace grapher.Models Label sensitivityActiveLabel, Label yxRatioActiveLabel, Label rotationActiveLabel, - Label weightActiveXLabel, - Label weightActiveYLabel, Label inCapActiveXLabelClassic, Label inCapActiveYLabelClassic, Label outCapActiveXLabelClassic, @@ -247,24 +241,6 @@ namespace grapher.Models var directionalityLeft = directionalityPanel.Left; - var weightX = new Option( - weightBoxX, - form, - 1, - weightLabelX, - 0, - new ActiveValueLabel(weightActiveXLabel, activeValueTitleX), - "Weight"); - - var weightY = new Option( - weightBoxY, - form, - 1, - weightLabelY, - optionSetYLeft, - new ActiveValueLabel(weightActiveYLabel, activeValueTitleY), - "Weight"); - var offsetX = new Option( offsetBoxX, form, @@ -559,7 +535,6 @@ namespace grapher.Models decayRateX, growthRateX, smoothX, - weightX, offsetX, limitX, powerClassicX, @@ -582,7 +557,6 @@ namespace grapher.Models decayRateY, growthRateY, smoothY, - weightY, offsetY, limitY, powerClassicY, diff --git a/grapher/Models/Options/AccelTypeOptions.cs b/grapher/Models/Options/AccelTypeOptions.cs index b7a7b7b..029a93e 100644 --- a/grapher/Models/Options/AccelTypeOptions.cs +++ b/grapher/Models/Options/AccelTypeOptions.cs @@ -32,7 +32,6 @@ namespace grapher Option decayRate, Option growthRate, Option smooth, - Option weight, Option offset, Option limit, Option powerClassic, @@ -67,7 +66,6 @@ namespace grapher Smooth = smooth; ClassicCap = classicCap; PowerCap = powerCap; - Weight = weight; Offset = offset; Limit = limit; PowerClassic = powerClassic; @@ -114,8 +112,6 @@ namespace grapher public CapOptions PowerCap { get; } - public Option Weight { get; } - public Option Offset { get; } public Option Limit { get; } @@ -227,7 +223,6 @@ namespace grapher Smooth.Hide(); ClassicCap.Hide(); PowerCap.Hide(); - Weight.Hide(); Offset.Hide(); Limit.Hide(); PowerClassic.Hide(); @@ -255,7 +250,6 @@ namespace grapher AccelerationType = AccelTypeFromSettings(ref args); AccelTypeActiveValue.SetValue(AccelerationType.ActiveName); GainSwitch.SetActiveValue(args.gain); - Weight.SetActiveValue(args.weight); ClassicCap.SetActiveValues( args.acceleration, args.cap.x, @@ -343,7 +337,6 @@ namespace grapher if (Exponent.Visible) args.exponentPower = Exponent.Field.Data; if (Offset.Visible) args.offset = Offset.Field.Data; if (Midpoint.Visible) args.midpoint = Midpoint.Field.Data; - if (Weight.Visible) args.weight = Weight.Field.Data; if (LutPanel.Visible) { (var points, var length) = LutPanel.GetPoints(); @@ -370,7 +363,6 @@ namespace grapher ClassicCap.AlignActiveValues(); PowerCap.AlignActiveValues(); Offset.AlignActiveValues(); - Weight.AlignActiveValues(); Limit.AlignActiveValues(); PowerClassic.AlignActiveValues(); Exponent.AlignActiveValues(); @@ -407,7 +399,6 @@ namespace grapher DecayRate, GrowthRate, Smooth, - Weight, Offset, Limit, PowerClassic, diff --git a/wrapper/wrapper.cpp b/wrapper/wrapper.cpp index c0b3b22..2eefb1b 100644 --- a/wrapper/wrapper.cpp +++ b/wrapper/wrapper.cpp @@ -71,7 +71,6 @@ public value struct AccelArgs double motivity; double exponentClassic; double scale; - double weight; double exponentPower; double limit; double midpoint; |