示例#1
0
        private void RegisterGestures()
        {
            // Word: Merhaba
            IGesturesSegment[] helloSegments = new IGesturesSegment[2];
            HelloSegment1      helloSegment1 = new HelloSegment1();
            HelloSegment2      helloSegment2 = new HelloSegment2();

            helloSegments[0] = helloSegment1;
            helloSegments[1] = helloSegment2;
            gestureController.AddGesture("Merhaba", helloSegments);



            // Word: Yiyecek
            IGesturesSegment[] foodSegments = new IGesturesSegment[4];
            FoodSegment1       foodSegment1 = new FoodSegment1();

            foodSegments[0] = foodSegment1;
            foodSegments[1] = foodSegment1;
            foodSegments[2] = foodSegment1;
            foodSegments[3] = foodSegment1;
            gestureController.AddGesture("Yiyecek", foodSegments);

            // Word: yaş
            IGesturesSegment[] ageSegments = new IGesturesSegment[2];
            AgeSegment1        ageSegment1 = new AgeSegment1();
            AgeSegment2        ageSegment2 = new AgeSegment2();

            ageSegments[0] = ageSegment1;
            ageSegments[1] = ageSegment2;
            gestureController.AddGesture("Yaş", ageSegments);
        }
示例#2
0
        private void RegisterGestures()
        {
            // Word: Hello
            IGesturesSegment[] helloSegments = new IGesturesSegment[2];
            HelloSegment1      helloSegment1 = new HelloSegment1();
            HelloSegment2      helloSegment2 = new HelloSegment2();

            helloSegments[0] = helloSegment1;
            helloSegments[1] = helloSegment2;
            gestureController.AddGesture("Hello", helloSegments);

            // Word: Goodbye
            IGesturesSegment[] goodbyeSegments = new IGesturesSegment[4];
            GoodbyeSegment1    goodbyeSegment1 = new GoodbyeSegment1();
            GoodbyeSegment2    goodbyeSegment2 = new GoodbyeSegment2();

            goodbyeSegments[0] = goodbyeSegment1;
            goodbyeSegments[1] = goodbyeSegment2;
            goodbyeSegments[2] = goodbyeSegment1;
            goodbyeSegments[3] = goodbyeSegment2;
            gestureController.AddGesture("Goodbye", goodbyeSegments);

            // Word: You / Your / You're
            IGesturesSegment[] youSegments = new IGesturesSegment[2];
            YouSegment1        youSegment1 = new YouSegment1();
            YouSegment2        youSegment2 = new YouSegment2();

            youSegments[0] = youSegment1;
            youSegments[1] = youSegment2;
            gestureController.AddGesture("You", youSegments);

            // Word: Name
            IGesturesSegment[] nameSegments = new IGesturesSegment[4];
            NameSegment1       nameSegment1 = new NameSegment1();
            NameSegment2       nameSegment2 = new NameSegment2();

            nameSegments[0] = nameSegment1;
            nameSegments[1] = nameSegment2;
            nameSegments[2] = nameSegment1;
            nameSegments[3] = nameSegment2;
            gestureController.AddGesture("Name", nameSegments);

            // Word: City
            IGesturesSegment[] citySegments = new IGesturesSegment[2];
            CitySegment1       citySegment1 = new CitySegment1();
            CitySegment2       citySegment2 = new CitySegment2();

            citySegments[0] = citySegment1;
            citySegments[1] = citySegment2;
            gestureController.AddGesture("City", citySegments);

            // Word: Live
            IGesturesSegment[] liveSegments = new IGesturesSegment[3];
            LiveSegment1       liveSegment1 = new LiveSegment1();
            LiveSegment2       liveSegment2 = new LiveSegment2();
            LiveSegment3       liveSegment3 = new LiveSegment3();

            liveSegments[0] = liveSegment1;
            liveSegments[1] = liveSegment2;
            liveSegments[2] = liveSegment3;
            gestureController.AddGesture("Live", liveSegments);

            // Word: Drive
            IGesturesSegment[] driveSegments = new IGesturesSegment[4];
            DriveSegment1      driveSegment1 = new DriveSegment1();
            DriveSegment2      driveSegment2 = new DriveSegment2();

            driveSegments[0] = driveSegment1;
            driveSegments[1] = driveSegment2;
            driveSegments[2] = driveSegment1;
            driveSegments[3] = driveSegment2;
            gestureController.AddGesture("Drive", driveSegments);

            // Word: Food
            IGesturesSegment[] foodSegments = new IGesturesSegment[4];
            FoodSegment1       foodSegment1 = new FoodSegment1();

            foodSegments[0] = foodSegment1;
            foodSegments[1] = foodSegment1;
            foodSegments[2] = foodSegment1;
            foodSegments[3] = foodSegment1;
            gestureController.AddGesture("Food", foodSegments);

            // Word: What
            IGesturesSegment[] whatSegments = new IGesturesSegment[10];
            WhatSegment1       whatSegment1 = new WhatSegment1();

            whatSegments[0] = whatSegment1;
            whatSegments[1] = whatSegment1;
            whatSegments[2] = whatSegment1;
            whatSegments[3] = whatSegment1;
            whatSegments[4] = whatSegment1;
            whatSegments[5] = whatSegment1;
            whatSegments[6] = whatSegment1;
            whatSegments[7] = whatSegment1;
            whatSegments[8] = whatSegment1;
            whatSegments[9] = whatSegment1;
            gestureController.AddGesture("What", whatSegments);

            // Word: Hungry
            IGesturesSegment[] hungrySegments = new IGesturesSegment[3];
            HungrySegment1     hungrySegment1 = new HungrySegment1();
            HungrySegment2     hungrySegment2 = new HungrySegment2();
            HungrySegment3     hungrySegment3 = new HungrySegment3();

            hungrySegments[0] = hungrySegment1;
            hungrySegments[1] = hungrySegment2;
            hungrySegments[2] = hungrySegment3;
            gestureController.AddGesture("Hungry", hungrySegments);

            // Word: Age / Old
            IGesturesSegment[] ageSegments = new IGesturesSegment[2];
            AgeSegment1        ageSegment1 = new AgeSegment1();
            AgeSegment2        ageSegment2 = new AgeSegment2();

            ageSegments[0] = ageSegment1;
            ageSegments[1] = ageSegment2;
            gestureController.AddGesture("Age", ageSegments);

            // Word: Reset
            IGesturesSegment[] resetSegments = new IGesturesSegment[3];
            ResetSegment1      resetSegment1 = new ResetSegment1();
            ResetSegment2      resetSegment2 = new ResetSegment2();
            ResetSegment3      resetSegment3 = new ResetSegment3();

            resetSegments[0] = resetSegment1;
            resetSegments[1] = resetSegment2;
            resetSegments[2] = resetSegment3;
            gestureController.AddGesture("Reset", resetSegments);
        }