protected RecognizerXMLGenerator(string name, MainWindow window, XMLGenerator.RecognizerType recType) { GestureName = name; Type = recType; Doc = new XmlDocument(); MainWindow = window; }
public XMLGenRecognizerOptionsWindow(XMLGenerator.RecognizerType type) { HideInsteadOfClosing = true; InitializeComponent(); measuringUnit.Items.Add("millimeter"); // No actual body measurement measuringUnit.SelectedIndex = 0; foreach (FubiUtils.BodyMeasurement measure in Enum.GetValues(typeof(FubiUtils.BodyMeasurement))) { if (measure != FubiUtils.BodyMeasurement.NUM_MEASUREMENTS) { measuringUnit.Items.Add(FubiUtils.getBodyMeasureName(measure)); } } foreach (var measureName in Enum.GetNames(typeof(FubiUtils.DistanceMeasure))) { distanceMeasure.Items.Add(measureName); } distanceMeasure.SelectedIndex = (int)FubiUtils.DistanceMeasure.Euclidean; foreach (var typeName in XMLGenerator.ToleranceTypeString) { toleranceXType.Items.Add(typeName); toleranceYType.Items.Add(typeName); toleranceZType.Items.Add(typeName); toleranceDistType.Items.Add(typeName); toleranceSpeedType.Items.Add(typeName); toleranceFingerCountType.Items.Add(typeName); } toleranceXType.SelectedIndex = (int)XMLGenerator.ToleranceType.PlusMinus; toleranceYType.SelectedIndex = (int)XMLGenerator.ToleranceType.PlusMinus; toleranceZType.SelectedIndex = (int)XMLGenerator.ToleranceType.PlusMinus; toleranceDistType.SelectedIndex = (int)XMLGenerator.ToleranceType.PlusMinus; toleranceSpeedType.SelectedIndex = (int)XMLGenerator.ToleranceType.PlusMinus; toleranceFingerCountType.SelectedIndex = (int)XMLGenerator.ToleranceType.PlusMinus; Type = type; }
public FingerCountXmlGenerator(string name, MainWindow window, XMLGenerator.RecognizerOptions options, XMLGenerator.RecognizerType type) : base(name, window, options, type) { }
public AngularMovementXmlGenerator(string name, MainWindow window, XMLGenerator.RecognizerOptions options, XMLGenerator.RecognizerType type) : base(name, window, options, type) { }
protected BasicRecognizerXmlGenerator(string name, MainWindow window, XMLGenerator.RecognizerOptions recOptions, XMLGenerator.RecognizerType recType) : base(name, window, recType) { Options = recOptions; RecordedJointValues.Add(new Vector3D()); if (Options.SelectedJoints[0].Relative != FubiUtils.SkeletonJoint.NUM_JOINTS) { RecordedJointValues.Add(new Vector3D()); } }
public StaticPostureXmlGenerator(string name, MainWindow window, XMLGenerator.RecognizerOptions options, XMLGenerator.RecognizerType type) : base(name, window, options, type) { }