public KinectFunctionalities(ref DepthMasterControl depthMasterControl, ref ColorMasterConrol colorMasterControl, ref GesturesMasterControl gestureMasterControl) { this.depthMasterControl = depthMasterControl; this.colorMasterControl = colorMasterControl; this.gestureMasterControl = gestureMasterControl; }
// Create the scene. // MainViewport is the Viewport3D defined // in the XAML code that displays everything. private void Window_Loaded(object sender, RoutedEventArgs e) { informationTextBlock = InformationTextBlock; cubeInformationTextBox = CubeInformationTextBox; mainViewport = MainViewport; depthMasterControl = new DepthMasterControl(512, 424, 512 / 1, 424 / 1, false, null); renderViewFunctionalities = new RenderViewFunctionalities(); kinectFunctionalities = new KinectFunctionalities(ref depthMasterControl, ref colorMasterControl, ref gestureMasterControl); kinectFunctionalities.initializeKinect(ref depthViewImage, ref colorViewImage); kinect3DOperations = new Kinect3DOperations(ref depthMasterControl, ref renderViewFunctionalities, ref InformationTextBlock, ref cubeInformationTextBox); renderViewFunctionalities.initialize3DRenderView(ref MainViewport, ref informationTextBlock, ref kinect3DOperations); //kinectFunctionalities.assignListeners(); }