public Room(MainWindow mainWindow)
        {
            this.mainWindow = mainWindow;
            mainDictionairy = new BlenderResourceDictionary(Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + @"\Spielraumblend15.xaml");
            BlenderModel roomModel = new BlenderModel(mainDictionairy, "Raum");
            roomModel.rotate(-90, 0, 0);
            roomModel.rotate(0, -90, 0);
            roomModel.translate(0, -0.5, 3);
            roomModel.scale(-0.2, 0, 0);

            BlenderModel wallModel = new BlenderModel(mainDictionairy, "Wand");
            wallModel.rotate(0, -90, 0);
            wallModel.rotate(0, 0, -90);
            wallModel.scale(-0.75, -0.75, -0.75);
            wallModel.translate(0, 0, 1.9);

            BlenderModel wallPartModel = new BlenderModel(mainDictionairy, "Wand_Teil");
            wallPartModel.rotate(0, -90, 0);
            wallPartModel.rotate(0, 0, -90);
            wallPartModel.scale(-0.75, -0.75, -0.75);
            wallPartModel.translate(0, 0, 1.9);
            wallPartModel.translate(-0.5, 0.788, 0);

            roomModel.addToViewport(mainWindow.mainViewPort);
            wallModel.addToViewport(mainWindow.mainViewPort);
            wallPartModel.addToViewport(mainWindow.mainViewPort);

            populateElementList();
        }
 public ChooseModus(MainWindow mainWindow)
 {
     InitializeComponent();
     this.Left = mainWindow.Left + mainWindow.Width / 2 - this.Width / 2;
     this.Top = mainWindow.Top + mainWindow.Height / 2 - this.Height / 2;
 }
 public KinectHandler(MainWindow mainWindow, Room room)
 {
     this.mainWindow = mainWindow;
     this.room = room;
     initializeKinectSensor();
 }