public GenerateDispAngerExpressionsMorphs() { this.menu = new GenerateDispAngerExpressionsMorphsControl(); this.ignoreList = new List<int>(); this.weights = new Dictionary<Expression, Dictionary<Morph, double>>(); this.expressions = new Dictionary<Expression, MeshBase>(); this.menu.openOBJFileButton.Click += new EventHandler(openOBJFileButton_Click); this.menu.openIgnoreListButton.Click += new EventHandler(openIgnoreListButton_Click); this.menu.applyButton.Click += new EventHandler(applyButton_Click); this.menu.clearIgnoreListButton.Click += new EventHandler(clearIgnoreListButton_Click); this.menu.openWeightsButton.Click += new EventHandler(openWeightsButton_Click); this.menu.accuracyNumericUpDown.ValueChanged += new EventHandler(accuracyNumericUpDown_ValueChanged); this.menu.absoluteRadioButton.CheckedChanged += new EventHandler(absoluteRadioButton_CheckedChanged); this.menu.relativeRadiobutton.CheckedChanged += new EventHandler(relativeRadiobutton_CheckedChanged); this.menu.expressionsListView.MouseDoubleClick += new MouseEventHandler(expressionsListView_MouseDoubleClick); for (int i = 0; i < 5; i++) { Expression exp = (Expression)i; ListViewItem item = new ListViewItem(exp.ToString()); item.SubItems.Add("None"); item.SubItems.Add("None"); this.menu.expressionsListView.Items.Add(item); } this.applied = false; this.accuracy = (double)this.menu.accuracyNumericUpDown.Value; this.mode = Mode.Relative; this.menu.relativeRadiobutton.Checked = true; this.LoadWeights(Environment.CurrentDirectory + "\\Defaults\\DispAnger.txt"); }
public GenerateDispHappyExpressionsMorphs() { this.menu = new GenerateDispAngerExpressionsMorphsControl(); this.ignoreList = new List <int>(); this.weights = new Dictionary <Expression, Dictionary <Morph, double> >(); this.expressions = new Dictionary <Expression, MeshBase>(); this.menu.openOBJFileButton.Click += new EventHandler(openOBJFileButton_Click); this.menu.openIgnoreListButton.Click += new EventHandler(openIgnoreListButton_Click); this.menu.applyButton.Click += new EventHandler(applyButton_Click); this.menu.clearIgnoreListButton.Click += new EventHandler(clearIgnoreListButton_Click); this.menu.openWeightsButton.Click += new EventHandler(openWeightsButton_Click); this.menu.accuracyNumericUpDown.ValueChanged += new EventHandler(accuracyNumericUpDown_ValueChanged); this.menu.absoluteRadioButton.CheckedChanged += new EventHandler(absoluteRadioButton_CheckedChanged); this.menu.relativeRadiobutton.CheckedChanged += new EventHandler(relativeRadiobutton_CheckedChanged); this.menu.expressionsListView.MouseDoubleClick += new MouseEventHandler(expressionsListView_MouseDoubleClick); for (int i = 0; i < 5; i++) { Expression exp = (Expression)i; ListViewItem item = new ListViewItem(exp.ToString()); item.SubItems.Add("None"); item.SubItems.Add("None"); this.menu.expressionsListView.Items.Add(item); } this.applied = false; this.accuracy = (double)this.menu.accuracyNumericUpDown.Value; this.mode = Mode.Relative; this.menu.relativeRadiobutton.Checked = true; this.LoadWeights(Environment.CurrentDirectory + "\\Defaults\\DispHappy.txt"); }