private void Create3DViewPort() { var hvp3d = new HelixViewport3D(); Viewport3D vp3d = new Viewport3D(); var lights = new DefaultLights(); var tp = new Teapot(); hvp3d.Children.Add(lights); hvp3d.Children.Add(tp); vp3d = hvp3d.Viewport; tata.Children.Add(vp3d); // comenter ca pour test /* MEGA TEST DE L'ESPACE SUBSAHARIEN */ RenderTargetBitmap bmp = new RenderTargetBitmap(800, 800, 96, 96, PixelFormats.Pbgra32); var rect = new Rect(0, 0, 800, 800); vp3d.Measure(new Size(800, 800)); vp3d.Arrange(rect); vp3d.InvalidateVisual(); bmp.Render(vp3d); PngBitmapEncoder png = new PngBitmapEncoder(); png.Frames.Add(BitmapFrame.Create(bmp)); String filepath = "C:\\Users\\Remi\\Desktop\\canardmasque.png"; using (Stream stm = File.Create(filepath)) { png.Save(stm); } }
public JuegoPiano(Viewport3D viewport3D) { Jugadores = new Dictionary<int,Jugador>(); //Se inicializa el teclado con el número de octavas Teclado = new Teclado(2); Teclado.Draw3D(viewport3D); this.Viewport3D = viewport3D; //init WS pianoWSDuplexClient = new PianoWSDuplexClient(); pianoWSDuplexClient.SetEjecutarNotaAction(delegate(string nota) { Tecla tecla = Teclado.Teclas[nota]; tecla.UpdatePosition(new Point3D(0, - tecla.Dimensiones.Alto, 0)); tecla.Sonar(); //Timer para regresar la tecla a su lugar original DispatcherTimer dispatcherTimer = new DispatcherTimer(); dispatcherTimer.Tick += new EventHandler((Action<object, EventArgs>)delegate(object sender, EventArgs e) { tecla.UpdatePosition(new Point3D(0, 0, 0)); (sender as DispatcherTimer).Stop(); }); dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 1); dispatcherTimer.Start(); }); }
public void Export_SimpleModel_ValidOutput() { string path = "temp.x3d"; var runner = new CrossThreadTestRunner(); runner.RunInSTA( delegate { Console.WriteLine(Thread.CurrentThread.GetApartmentState()); var vp = new Viewport3D(); vp.Camera = CameraHelper.CreateDefaultCamera(); vp.Width = 1280; vp.Height = 720; vp.Children.Add(new DefaultLightsVisual3D()); var box = new BoxVisual3D(); box.UpdateModel(); vp.Children.Add(box); using (var e = new X3DExporter(path)) { e.Export(vp); } }); var result = Validate(path); Assert.IsNull(result, result); }
/// <summary> /// Code adapted from HelixToolkit.Wpf.Viewport3DHelper.Point3DtoPoint2D obtained from http://github.com/helix-toolkit/helix-toolkit /// License: helix-toolkit.LICENSE.txt /// </summary> /// <param name="viewport"></param> /// <param name="point"></param> /// <returns></returns> public static Point Point3DtoPoint2D(Viewport3D viewport, Point3D point) { var matrix = GetTotalTransform(viewport); var pointTransformed = matrix.Transform(point); var pt = new Point(pointTransformed.X, pointTransformed.Y); return pt; }
public GeometryModel3D[] render() { Model3DGroup modelGroup = new Model3DGroup(); Viewport3D visualisation = new Viewport3D(); ModelVisual3D modelsVisual = new ModelVisual3D(); int depthPoint = 0; //Setup viewport environment init = new ViewportCalibrator(this.cp); visualisation = init.setupViewport(init.setupCamera(), this.cp.ActualHeight, this.cp.ActualWidth); //Create triangle mesh for (int y = 0; y < 480; y += pos) { for (int x = 0; x < 640; x += pos) { pts[depthPoint] = Triangle(x, y, pos); pts[depthPoint].Transform = new TranslateTransform3D(0, 0, 0); modelGroup.Children.Add(pts[depthPoint]); depthPoint++; } } //Add mesh to visualisation and viewport/canvas modelGroup.Children.Add(init.setupDirectionalLights(Colors.White)); modelsVisual.Content = modelGroup; visualisation.Children.Add(modelsVisual); cp.Children.Add(visualisation); Canvas.SetTop(visualisation, 0); Canvas.SetLeft(visualisation, 0); return pts; }
public Window1() { InitializeComponent(); CompositionTarget.Rendering += this.OnCompositionTargetRendering; DataContext = _viewModel; _viewModel.PropertyChanged += ModelChanged; foreach (string m in models) { var uri = new Uri(String.Format("pack://application:,,/Expressions/{0}.txt", m)); AddToMenu(m, uri); } SearchForSurfaces("Expressions"); view2.LeftViewport.Children.Add(new DefaultLights()); view2.RightViewport.Children.Add(new DefaultLights()); view3.LeftViewport.Children.Add(new DefaultLights()); view3.RightViewport.Children.Add(new DefaultLights()); surface2 = new ClonedVisual3D(); patternBrush = CreateDrawingBrush(0.02, 0.05); _viewModel.Brush = GradientBrushes.Hue; // normal mode v1 = view1.Viewport; v2 = null; currentView = view1; Loaded += Window1_Loaded; }
private ScreenSpaceLines3D AddVehiclePoints(Viewport3D mainViewport, Point3D[] pointsArray) { ScreenSpaceLines3D wireVehicle=new ScreenSpaceLines3D(); Color color = Colors.Red; const int width = 1; wireVehicle.Thickness = width; wireVehicle.Color = color; wireVehicle.Points.Add(pointsArray[0]); wireVehicle.Points.Add(pointsArray[1]); wireVehicle.Points.Add(pointsArray[1]); wireVehicle.Points.Add(pointsArray[2]); wireVehicle.Points.Add(pointsArray[2]); wireVehicle.Points.Add(pointsArray[3]); wireVehicle.Points.Add(pointsArray[3]); wireVehicle.Points.Add(pointsArray[0]); wireVehicle.Points.Add(pointsArray[4]); wireVehicle.Points.Add(pointsArray[5]); wireVehicle.Points.Add(pointsArray[5]); wireVehicle.Points.Add(pointsArray[6]); wireVehicle.Points.Add(pointsArray[6]); wireVehicle.Points.Add(pointsArray[7]); wireVehicle.Points.Add(pointsArray[7]); wireVehicle.Points.Add(pointsArray[4]); wireVehicle.Points.Add(pointsArray[0]); wireVehicle.Points.Add(pointsArray[4]); wireVehicle.Points.Add(pointsArray[1]); wireVehicle.Points.Add(pointsArray[5]); wireVehicle.Points.Add(pointsArray[2]); wireVehicle.Points.Add(pointsArray[6]); wireVehicle.Points.Add(pointsArray[3]); wireVehicle.Points.Add(pointsArray[7]); return wireVehicle; }
// These are used by the 2 constructor overloads that don't take int //private ModelVisual3D _dotModel = null; //private ModelVisual3D _velocityModel = null; //private ModelVisual3D _accelerationModel = null; #endregion #region Constructor public PointVisualizer(Viewport3D viewport, SharedVisuals sharedVisuals) { _viewport = viewport; _sharedVisuals = sharedVisuals; _items = new ItemProperties[3]; // Position _items[INDEX_POSITION] = new ItemProperties(); _items[INDEX_POSITION].IsPoint = true; _items[INDEX_POSITION].Color = Colors.Magenta; _items[INDEX_POSITION].SizeMultiplier = 1d; // Velocity _items[INDEX_VELOCITY] = new ItemProperties(); _items[INDEX_VELOCITY].IsPoint = false; _items[INDEX_VELOCITY].Color = Colors.Chartreuse; _items[INDEX_VELOCITY].SizeMultiplier = 1d; // Acceleration _items[INDEX_ACCELERATION] = new ItemProperties(); _items[INDEX_ACCELERATION].IsPoint = false; _items[INDEX_ACCELERATION].Color = Colors.Gold; _items[INDEX_ACCELERATION].SizeMultiplier = 1d; }
/// <summary> /// Exports a simple model in a STA. /// </summary> /// <param name="e">The exporter.</param> /// <param name="stream">The stream.</param> protected void ExportSimpleModel(IExporter e, Stream stream) { Exception exception = null; CrossThreadTestRunner.RunInSTA( () => { var vp = new Viewport3D { Camera = CameraHelper.CreateDefaultCamera(), Width = 1280, Height = 720 }; vp.Children.Add(new DefaultLights()); var box = new BoxVisual3D(); box.UpdateModel(); vp.Children.Add(box); try { e.Export(vp, stream); } catch (Exception ex) { exception = ex; } }); if (exception != null) { throw exception; } }
public void Draw(Viewport3D mainViewport) { foreach (PianoKey pk in _PianoKeys) { pk.Draw(mainViewport); } }
// TODO: Separate logic for Window public static void Initialize(MainWindow window) { grid = window.grid; viewport = window.viewport; fade = window.fade; subtitle = window.subtitle; }
public ItemSelectDragLogic(Map map, PerspectiveCamera camera, Viewport3D viewport, UIElement visual) { _map = map; _camera = camera; _viewport = viewport; _visual = visual; }
public StereoControl() { viewport = new Viewport3D(); Camera = CameraHelper.CreateDefaultCamera(); Camera.Changed += Camera_Changed; Children = new ObservableCollection<Visual3D>(); }
public static void drawTor(Point3D center, double R, double r, int N, int n, Color color, Viewport3D mainViewport) { if (n < 2 || N < 2) { return; } Model3DGroup tor = new Model3DGroup(); Point3D[,] points = new Point3D[N, n]; for (int i = 0; i < N; i++) { for (int j = 0; j < n; j++) { points[i, j] = getPositionTor(R, r, i * 360 / (N - 1), j * 360 / (n - 1)); points[i, j] += (Vector3D)center; } } Point3D[] p = new Point3D[4]; for (int i = 0; i < N - 1; i++) { for (int j = 0; j < n - 1; j++) { p[0] = points[i, j]; p[1] = points[i + 1, j]; p[2] = points[i + 1, j + 1]; p[3] = points[i, j + 1]; drawTriangle(p[0], p[1], p[2], color, mainViewport); drawTriangle(p[2], p[3], p[0], color, mainViewport); } } }
public ExplosionWithVisual(Point3D centerPoint, double waveSpeed, double forceAtCenter, double maxRadius, Viewport3D viewport, double visualStartRadius) : base(centerPoint, waveSpeed, forceAtCenter, maxRadius) { _viewport = viewport; _visualStartRadius = visualStartRadius; CreateVisual(); }
/// <summary> /// Exports the specified viewport. /// </summary> /// <param name="viewport"> /// The viewport. /// </param> public void Export(Viewport3D viewport) { int m = this.OversamplingMultiplier; var background = this.Background; if (background == null) { background = Brushes.Transparent; } var bmp = Viewport3DHelper.RenderBitmap(viewport, background, m); BitmapEncoder encoder; string ext = Path.GetExtension(this.FileName); switch (ext.ToLower()) { case ".jpg": var jpg = new JpegBitmapEncoder(); jpg.Frames.Add(BitmapFrame.Create(bmp)); encoder = jpg; break; case ".png": var png = new PngBitmapEncoder(); png.Frames.Add(BitmapFrame.Create(bmp)); encoder = png; break; default: throw new InvalidOperationException("Not supported file format."); } using (Stream stm = File.Create(this.FileName)) { encoder.Save(stm); } }
public FlipTransition() { _viewport = TransitionResources["3DCube"] as Viewport3D; _rootModel = (_viewport.Children[0] as ModelVisual3D).Content as Model3DGroup; _cubeModelContainer = _rootModel.Children[1] as Model3DGroup; }
/// <summary> /// Initializes a new instance of the <see cref="StructureControl"/> class and sets up visual elements for rendering. /// </summary> /// <param name="pdbViewer">The PDB viewer.</param> internal StructureControl(PdbViewer pdbViewer) { this.pdbViewer = pdbViewer; NameScope.SetNameScope(this, new NameScope()); this.viewport = new Viewport3D(); this.viewport.ClipToBounds = true; this.Children.Add(this.viewport); this.camera = new PerspectiveCamera(); this.camera.Position = new Point3D(0, 0, cameraOffset); this.viewport.Camera = this.camera; ModelVisual3D lightingVisual = new ModelVisual3D(); this.viewport.Children.Add(lightingVisual); Model3DGroup lightingModel = new Model3DGroup(); lightingVisual.Content = lightingModel; PointLight pointLight = new PointLight(Colors.White, new Point3D(-4, 4, 8)); lightingModel.Children.Add(pointLight); AmbientLight ambientLight = new AmbientLight(Color.FromRgb(32, 32, 32)); lightingModel.Children.Add(ambientLight); this.moleculeVisual = new ModelVisual3D(); viewport.Children.Add(this.moleculeVisual); Transform3DGroup transformGroup = new Transform3DGroup(); this.moleculeVisual.Transform = transformGroup; this.translateTransform = new TranslateTransform3D(); transformGroup.Children.Add(this.translateTransform); this.scaleTransform = new ScaleTransform3D(); transformGroup.Children.Add(this.scaleTransform); this.rotateTransform = new RotateTransform3D(); this.rotateTransform.Rotation = new QuaternionRotation3D(); transformGroup.Children.Add(this.rotateTransform); this.selectionRectangle = new Rectangle(); this.selectionRectangle.Stroke = Brushes.White; this.selectionRectangle.Fill = new SolidColorBrush(Color.FromArgb(32, 255, 255, 255)); this.selectionRectangle.Visibility = Visibility.Hidden; this.Children.Add(this.selectionRectangle); this.testLabel = new Label(); this.testLabel.Foreground = Brushes.White; this.testLabel.FontSize = 20; this.testLabel.HorizontalAlignment = HorizontalAlignment.Left; this.testLabel.VerticalAlignment = VerticalAlignment.Center; this.Children.Add(this.testLabel); this.clip = 1; this.slab = 0; this.UpdateClipping(); }
public void Export(Viewport3D viewport) { object obj = viewport; if (CreateResourceDictionary) obj = WrapInResourceDictionary(obj); XamlWriter.Save(obj, xw); }
public GenieTransition() { _viewport = Application.LoadComponent(new Uri("/FluidKit;component/Controls/Transition/Genie/Genie.xaml", UriKind.Relative)) as Viewport3D; _slidingScreen = _viewport.FindName("SlidingScreen") as GeometryModel3D; NameScope.GetNameScope(_viewport).UnregisterName("SlidingScreen"); }
protected override void BeginTransition3D(TransitionElement transitionElement, ContentPresenter oldContent, ContentPresenter newContent, Viewport3D viewport) { Brush clone = CreateBrush(oldContent); Size size = transitionElement.RenderSize; MeshGeometry3D leftDoor = CreateMesh(new Point3D(), new Vector3D(size.Width / 2, 0, 0), new Vector3D(0, size.Height, 0), 1, 1, new Rect(0, 0, 0.5, 1)); GeometryModel3D leftDoorGeometry = new GeometryModel3D(); leftDoorGeometry.Geometry = leftDoor; leftDoorGeometry.Material = new DiffuseMaterial(clone); AxisAngleRotation3D leftRotation = new AxisAngleRotation3D(new Vector3D(0, 1, 0), 0); leftDoorGeometry.Transform = new RotateTransform3D(leftRotation); GeometryModel3D rightDoorGeometry = new GeometryModel3D(); MeshGeometry3D rightDoor = CreateMesh(new Point3D(size.Width / 2, 0, 0), new Vector3D(size.Width / 2, 0, 0), new Vector3D(0, size.Height, 0), 1, 1, new Rect(0.5, 0, 0.5, 1)); rightDoorGeometry.Geometry = rightDoor; rightDoorGeometry.Material = new DiffuseMaterial(clone); AxisAngleRotation3D rightRotation = new AxisAngleRotation3D(new Vector3D(0, 1, 0), 0); rightDoorGeometry.Transform = new RotateTransform3D(rightRotation, size.Width, 0, 0); Model3DGroup doors = new Model3DGroup(); doors.Children.Add(leftDoorGeometry); doors.Children.Add(rightDoorGeometry); ModelVisual3D model = new ModelVisual3D(); model.Content = doors; // Replace old content in visual tree with new 3d model transitionElement.HideContent(oldContent); viewport.Children.Add(model); DoubleAnimation da = new DoubleAnimation(90 - 0.5 * FieldOfView, Duration); leftRotation.BeginAnimation(AxisAngleRotation3D.AngleProperty, da); da = new DoubleAnimation(-(90 - 0.5 * FieldOfView), Duration); rightRotation.BeginAnimation(AxisAngleRotation3D.AngleProperty, da); da = new DoubleAnimation(0, Duration); da.Completed += delegate { EndTransition(transitionElement, oldContent, newContent); }; clone.BeginAnimation(Brush.OpacityProperty, da); }
public static void Draw(Teclado teclado, Viewport3D viewport3D, Dimensiones dimTeclaBlanca, Dimensiones dimTeclaNegra) { Dictionary<string, Tecla> teclas = teclado.Teclas; int numTeclas = teclas.Count; double separacionTeclas = 0.02; double offsetX = -calcularAnchoTeclado(teclado, dimTeclaBlanca.Ancho, separacionTeclas)/2; //Dimensiones auxiliares con margen Dimensiones dimTeclaNegraConMargen = new Dimensiones(); dimTeclaNegraConMargen.Ancho = dimTeclaNegra.Ancho + separacionTeclas * 2; dimTeclaNegraConMargen.Profundidad = dimTeclaNegra.Profundidad + separacionTeclas; dimTeclaNegraConMargen.Alto = dimTeclaNegra.Alto; for (int i = 0, iTeclaBlanca = 0; i < numTeclas; i++) { Tecla tecla = teclas.ElementAt(i).Value; Tecla teclaAnterior = (i == 0) ? null : teclas.ElementAt(i - 1).Value; Tecla teclaSiguiente = (i == numTeclas - 1) ? null : teclas.ElementAt(i + 1).Value; double posicionX = offsetX + iTeclaBlanca * dimTeclaBlanca.Ancho; posicionX += iTeclaBlanca * separacionTeclas; ModelVisual3D model = null; // tecla blanca if (typeof(TeclaBlanca3D) == tecla.GetType()) { if (isTeclaBlanca(teclaAnterior)) { if (isTeclaBlanca(teclaSiguiente)) { //blanca con anterior blanca y siguiente blanca model = DrawTeclaBlancaTipoA(tecla, dimTeclaBlanca, posicionX, BrushesTeclas.Blanco); } else { //blanca con anterior blanca y siguiente negra; model = DrawTeclaBlancaTipoB(tecla, dimTeclaBlanca, dimTeclaNegraConMargen, posicionX, BrushesTeclas.Blanco); } } else { if (isTeclaBlanca(teclaSiguiente)) { //blanca con anterior negra y siguiente blanca model = DrawTeclaBlancaTipoC(tecla, dimTeclaBlanca, dimTeclaNegraConMargen, posicionX, BrushesTeclas.Blanco); } else { //blanca con anterior negra y siguiente negra; model = DrawTeclaBlancaTipoD(tecla, dimTeclaBlanca, dimTeclaNegraConMargen, posicionX, BrushesTeclas.Blanco); } } iTeclaBlanca++; } else //tecla negra { posicionX += separacionTeclas; model = DrawTeclaNegra(tecla, dimTeclaNegra, posicionX, BrushesTeclas.Negro); } viewport3D.Children.Add(model); } }
public MainWindow() { _memory = null; _lastAnswer = new ConstantExpression(0.0); _trackball = null; _viewport = null; VariableExpression.Define(AnswerKey, 0.0); Focusable = true; }
//Create a linker with a key handler, enabling you to move the camera with the WASDEFZX keys. //If you pass null, it will not link the keys. public Linker(I_Observable<I_KeyListener> keyHandler,Viewport3D viewport) : this(viewport) { if (keyHandler != null) { keyHandler.addListener(keyController); keyHandler.addListener(platform); //let the view port listen to my key events } }
public TrackballGrabber(FrameworkElement eventSource, Viewport3D viewport, double sphereRadius, Color hoverLightColor) { if (viewport.Camera == null || !(viewport.Camera is PerspectiveCamera)) { throw new ArgumentException("This class requires a perspective camera to be tied to the viewport"); } _eventSource = eventSource; _viewport = viewport; _camera = (PerspectiveCamera)viewport.Camera; this.SyncedLights = new List<Model3D>(); this.HoverVisuals = new ObservableCollection<Visual3D>(); this.HoverVisuals.CollectionChanged += HoverVisuals_CollectionChanged; _eventSource.MouseEnter += new System.Windows.Input.MouseEventHandler(EventSource_MouseEnter); _eventSource.MouseLeave += new System.Windows.Input.MouseEventHandler(EventSource_MouseLeave); _eventSource.MouseDown += new System.Windows.Input.MouseButtonEventHandler(EventSource_MouseDown); _eventSource.MouseUp += new System.Windows.Input.MouseButtonEventHandler(EventSource_MouseUp); _eventSource.MouseMove += new System.Windows.Input.MouseEventHandler(EventSource_MouseMove); #region Sphere // Material _sphereMaterials = new MaterialGroup(); _sphereMaterials.Children.Add(new DiffuseMaterial(new SolidColorBrush(Color.FromArgb(25, 255, 255, 255)))); // This gets added/removed on mouse enter/leave _sphereMaterialHover = new SpecularMaterial(new SolidColorBrush(Color.FromArgb(64, 128, 128, 128)), 33d); // Geometry Model GeometryModel3D geometry = new GeometryModel3D(); geometry.Material = _sphereMaterials; geometry.BackMaterial = _sphereMaterials; geometry.Geometry = UtilityWPF.GetSphere_LatLon(20, sphereRadius); // Model Visual _sphereModel = new ModelVisual3D(); _sphereModel.Content = geometry; // Add it _viewport.Children.Add(_sphereModel); #endregion #region Hover Light // Light PointLight hoverLight = new PointLight(); hoverLight.Color = hoverLightColor; hoverLight.Range = sphereRadius * 10; _hoverLight = new ModelVisual3D(); _hoverLight.Content = hoverLight; #endregion }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); return; } this._contentLoaded = true; }
public Linker(Viewport3D viewport) { //Now initialise the display! motorManager = new MotorManager(); Robot robot = new Robot(); platform = new ViewPlatform(viewport, motorManager, robot); positionCalculator = new PositionCalculator(robot, motorManager); keyController = new KeyInputController(motorManager, positionCalculator); }
public ThrustLine(Viewport3D viewport, SharedVisuals sharedVisuals, Vector3D forceDirection, Vector3D localOffset) { this.Viewport = viewport; _forceDirection = forceDirection; _forceStrength = forceDirection.Length; // this way they don't have to set this if they don't want this.BodyOffset = new TranslateTransform3D(localOffset); // just setting it to something so it's not null #region Create Visual // I'll create the visual, but won't add it until they fire the thruster // Material MaterialGroup materials = new MaterialGroup(); materials.Children.Add(new DiffuseMaterial(Brushes.Coral)); materials.Children.Add(new SpecularMaterial(Brushes.Gold, 100d)); // Geometry Model // Create a skinny 3D rectangle along the x axis GeometryModel3D geometry = new GeometryModel3D(); geometry.Material = materials; geometry.BackMaterial = materials; geometry.Geometry = sharedVisuals.ThrustLineMesh; // Figure out how much to rotate the cube to be along the opposite of the force line. I do the opposite, because // thruster flames shoot in the opposite direction that they're pushing Vector3D flameLine = forceDirection; flameLine.Negate(); Vector3D axis; double radians; Math3D.GetRotation(out axis, out radians, new Vector3D(1, 0, 0), flameLine); if (radians == 0d) { _initialRotate = null; } else { _initialRotate = new RotateTransform3D(new AxisAngleRotation3D(axis, Math1D.RadiansToDegrees(radians))); } //// Transform //Transform3DGroup transform = new Transform3DGroup(); // rotate needs to be added before translate //transform.Children.Add(new RotateTransform3D(new AxisAngleRotation3D(axis, Math3D.RadiansToDegrees(radians)))); //transform.Children.Add(new TranslateTransform3D(from)); // Model Visual _model = new ModelVisual3D(); _model.Content = geometry; _model.Transform = new TranslateTransform3D(); // I won't do anything with this right now #endregion }
/// <summary> /// Create a new Portable object. This class is designed specifically to be imported by other solutions. By calling this constructor, /// the class will provide you with a robot which appears on the screen. Calling the methods in this class will change the appearance /// of the robot on screen as well. You can use methods for setting degrees in this class with the normal 360 fashion too. /// Note: you must call "setCameraToListenToKeys" to be able to move the camera with the keyboard. Otherwise the camera /// can't know when to move. /// </summary> /// <param name="viewport">The viewport to use for displaying the robot.</param> public Portable(Viewport3D viewport) { //Now initialise the display! motorManager = new MotorManager(); robot = new Robot(); platform = new ViewPlatform(viewport, motorManager, robot); positionCalculator = new PositionCalculator(robot, motorManager); updateMotors(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.addserver = ((GloryView.RFID.DeviceMigrations.Addserver)(target)); return; case 2: this.viewport2 = ((System.Windows.Controls.Viewport3D)(target)); return; case 3: this.myPerspectiveCamera = ((System.Windows.Media.Media3D.PerspectiveCamera)(target)); return; case 4: this.FurnitureContainer3 = ((System.Windows.Media.Media3D.ContainerUIElement3D)(target)); return; case 5: this.viewportLightsModelVisual3D = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 6: this.ambientLight = ((System.Windows.Media.Media3D.AmbientLight)(target)); return; case 7: this.directionalLight = ((System.Windows.Media.Media3D.DirectionalLight)(target)); return; case 8: this.spotLight = ((System.Windows.Media.Media3D.SpotLight)(target)); return; case 9: this.canvas = ((System.Windows.Controls.Canvas)(target)); return; case 10: this.label2 = ((System.Windows.Controls.Label)(target)); #line 61 "..\..\..\..\DeviceMigrations\Addserver.xaml" this.label2.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.upclick); #line default #line hidden return; case 11: this.label3 = ((System.Windows.Controls.Label)(target)); #line 66 "..\..\..\..\DeviceMigrations\Addserver.xaml" this.label3.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.downclick); #line default #line hidden return; case 12: this.button1 = ((System.Windows.Controls.Button)(target)); #line 74 "..\..\..\..\DeviceMigrations\Addserver.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click_1); #line default #line hidden return; case 13: this.button2 = ((System.Windows.Controls.Button)(target)); #line 75 "..\..\..\..\DeviceMigrations\Addserver.xaml" this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click); #line default #line hidden return; case 14: this.textBox1 = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.textBox2 = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.textBox3 = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 21 "..\..\Trackport3D.xaml" ((Ajubaa.XamlModelViewer._3DTools.Trackport3D)(target)).Loaded += new System.Windows.RoutedEventHandler(this.OnLoaded); #line default #line hidden return; case 2: this.ParentGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.BorderWithBackgrndColor = ((System.Windows.Controls.Border)(target)); return; case 4: this.Viewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 5: this.Camera = ((System.Windows.Media.Media3D.PerspectiveCamera)(target)); return; case 6: this.AmbientLight = ((System.Windows.Media.Media3D.AmbientLight)(target)); return; case 7: this.Headlight = ((System.Windows.Media.Media3D.DirectionalLight)(target)); return; case 8: this.Root = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 9: this.CaptureBorder = ((System.Windows.Controls.Border)(target)); return; case 10: this.WireFrameOrSolidButton = ((System.Windows.Controls.Button)(target)); #line 83 "..\..\Trackport3D.xaml" this.WireFrameOrSolidButton.Click += new System.Windows.RoutedEventHandler(this.WireFrameOrSolid); #line default #line hidden return; case 11: #line 126 "..\..\Trackport3D.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MovingView); #line default #line hidden return; case 12: #line 135 "..\..\Trackport3D.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Disappear); #line default #line hidden return; case 13: this.CreateButton = ((System.Windows.Controls.Button)(target)); #line 144 "..\..\Trackport3D.xaml" this.CreateButton.Click += new System.Windows.RoutedEventHandler(this.SlowGeneration); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 5 "..\..\MainWindow.xaml" ((Microsoft.Samples.Kinect.KinectFusionExplorer.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.WindowLoaded); #line default #line hidden #line 5 "..\..\MainWindow.xaml" ((Microsoft.Samples.Kinect.KinectFusionExplorer.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.WindowClosing); #line default #line hidden return; case 2: this.CompositeHost = ((System.Windows.Controls.Grid)(target)); return; case 3: this.shadedSurfaceImage = ((System.Windows.Controls.Image)(target)); return; case 4: this.GraphicsViewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 5: this.depthFloatImage = ((System.Windows.Controls.Image)(target)); return; case 6: this.deltaFromReferenceImage = ((System.Windows.Controls.Image)(target)); return; case 7: #line 279 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CreateMeshButtonClick); #line default #line hidden return; case 8: this.stlFormat = ((System.Windows.Controls.RadioButton)(target)); return; case 9: this.objFormat = ((System.Windows.Controls.RadioButton)(target)); return; case 10: this.plyFormat = ((System.Windows.Controls.RadioButton)(target)); return; case 11: #line 287 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetReconstructionButtonClick); #line default #line hidden return; case 12: #line 291 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetCameraButtonClick); #line default #line hidden return; case 13: #line 387 "..\..\MainWindow.xaml" ((System.Windows.Controls.Slider)(target)).ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.VolumeSettingsChanged); #line default #line hidden return; case 14: this.VoxelsXSlider = ((System.Windows.Controls.Slider)(target)); #line 404 "..\..\MainWindow.xaml" this.VoxelsXSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.VolumeSettingsChanged); #line default #line hidden return; case 15: this.VoxelsYSlider = ((System.Windows.Controls.Slider)(target)); #line 415 "..\..\MainWindow.xaml" this.VoxelsYSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.VolumeSettingsChanged); #line default #line hidden return; case 16: this.VoxelsZSlider = ((System.Windows.Controls.Slider)(target)); #line 426 "..\..\MainWindow.xaml" this.VoxelsZSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.VolumeSettingsChanged); #line default #line hidden return; case 17: #line 455 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CreateMeshButtonClick); #line default #line hidden return; case 18: this.stlFormat1 = ((System.Windows.Controls.RadioButton)(target)); return; case 19: this.objFormat1 = ((System.Windows.Controls.RadioButton)(target)); return; case 20: this.plyFormat1 = ((System.Windows.Controls.RadioButton)(target)); return; case 21: #line 463 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetReconstructionButtonClick); #line default #line hidden return; case 22: #line 467 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetCameraButtonClick); #line default #line hidden return; case 23: this.fpsText = ((System.Windows.Controls.TextBlock)(target)); return; case 24: this.statusBarText = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\MainWindow.xaml" ((linearAlgebra.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.OnKeyDown); #line default #line hidden return; case 2: this.viewport3D = ((System.Windows.Controls.Viewport3D)(target)); return; case 3: this.camMain = ((System.Windows.Media.Media3D.PerspectiveCamera)(target)); return; case 4: this.dirLightMain = ((System.Windows.Media.Media3D.DirectionalLight)(target)); return; case 5: this.MyModel = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 6: this.cube = ((System.Windows.Media.Media3D.MeshGeometry3D)(target)); return; case 7: this.matDiffuseMain = ((System.Windows.Media.Media3D.DiffuseMaterial)(target)); return; case 8: this.Color = ((System.Windows.Media.SolidColorBrush)(target)); return; case 9: this.Model2 = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 10: this.cone = ((System.Windows.Media.Media3D.MeshGeometry3D)(target)); return; case 11: this.matDiffuseMain2 = ((System.Windows.Media.Media3D.DiffuseMaterial)(target)); return; case 12: this.Color2 = ((System.Windows.Media.SolidColorBrush)(target)); return; case 13: this.textBox = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 5 "..\..\..\MainWindow.xaml" ((WpfApplication1.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.mainmenu = ((System.Windows.Controls.Grid)(target)); return; case 3: this.Yaw = ((System.Windows.Controls.Slider)(target)); #line 27 "..\..\..\MainWindow.xaml" this.Yaw.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slider1_ValueChanged); #line default #line hidden return; case 4: this.Pitch = ((System.Windows.Controls.Slider)(target)); #line 28 "..\..\..\MainWindow.xaml" this.Pitch.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slider2_ValueChanged); #line default #line hidden return; case 5: this.Roll = ((System.Windows.Controls.Slider)(target)); #line 29 "..\..\..\MainWindow.xaml" this.Roll.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slider3_ValueChanged); #line default #line hidden return; case 6: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 7: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 8: this.label3 = ((System.Windows.Controls.Label)(target)); return; case 9: this.chartbox = ((System.Windows.Controls.GroupBox)(target)); return; case 10: this.display = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 11: this.test = ((System.Windows.Controls.Viewport3D)(target)); return; case 12: this.MyCamera = ((System.Windows.Media.Media3D.PerspectiveCamera)(target)); return; case 13: this.my = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 14: this.rotate = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.trackball = ((Quixo3D.UI.Quixo3DTrackballDecorator)(target)); return; case 2: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 3: this.lightVisual = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 4: this.boardVisual = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 5: this.turnTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.infoTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.moveHistory = ((Quixo3D.UI.MoveHistory)(target)); return; case 8: #line 156 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NewMenuItem_Click); #line default #line hidden return; case 9: #line 157 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenMenuItem_Click); #line default #line hidden return; case 10: #line 158 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveMenuItem_Click); #line default #line hidden return; case 11: #line 159 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExitMenuItem_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 6 "..\..\Window1.xaml" ((Reversi.Window1)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden #line 7 "..\..\Window1.xaml" ((Reversi.Window1)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); #line 11 "..\..\Window1.xaml" this.mainViewport.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.mainViewport_MouseUp); #line default #line hidden return; case 3: this.mainCamera = ((System.Windows.Media.Media3D.PerspectiveCamera)(target)); return; case 4: this.m_gameBoard = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 5: this.theGrid = ((System.Windows.Controls.Grid)(target)); return; case 6: this.seqPlayerViewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 7: this.ui_seqPlayerLabel = ((System.Windows.Controls.Label)(target)); return; case 8: this.ui_seqLabel = ((System.Windows.Controls.Label)(target)); return; case 9: this.ui_seqProgBar = ((System.Windows.Controls.ProgressBar)(target)); return; case 10: this.parPlayerViewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 11: this.ui_parLabel = ((System.Windows.Controls.Label)(target)); return; case 12: this.ui_parProgBar = ((System.Windows.Controls.ProgressBar)(target)); return; case 13: this.ui_startStopButton = ((System.Windows.Controls.Button)(target)); #line 121 "..\..\Window1.xaml" this.ui_startStopButton.Click += new System.Windows.RoutedEventHandler(this.ui_startStopButton_Click); #line default #line hidden return; case 14: this.ui_settings = ((System.Windows.Controls.Expander)(target)); return; case 15: this.ui_dopLabel = ((System.Windows.Controls.Label)(target)); return; case 16: this.ui_dopSlider = ((System.Windows.Controls.Slider)(target)); return; case 17: this.ui_depthLabel = ((System.Windows.Controls.Label)(target)); return; case 18: this.ui_depthSlider = ((System.Windows.Controls.Slider)(target)); return; case 19: this.ui_timeoutLabel = ((System.Windows.Controls.Label)(target)); return; case 20: this.ui_timeoutSlider = ((System.Windows.Controls.Slider)(target)); return; case 21: this.m_animationCheckBox = ((System.Windows.Controls.CheckBox)(target)); #line 139 "..\..\Window1.xaml" this.m_animationCheckBox.Checked += new System.Windows.RoutedEventHandler(this.Animation_Toggled); #line default #line hidden #line 139 "..\..\Window1.xaml" this.m_animationCheckBox.Unchecked += new System.Windows.RoutedEventHandler(this.Animation_Toggled); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 4 "..\..\MainWindow.xaml" ((Room_Creator.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown_1); #line default #line hidden return; case 2: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 3: this.FurnituresCombobox = ((System.Windows.Controls.ComboBox)(target)); #line 40 "..\..\MainWindow.xaml" this.FurnituresCombobox.Loaded += new System.Windows.RoutedEventHandler(this.FurnituresListbox_Loaded); #line default #line hidden #line 40 "..\..\MainWindow.xaml" this.FurnituresCombobox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FurnituresListbox_SelectionChanged); #line default #line hidden return; case 4: this.CamRot = ((System.Windows.Controls.Slider)(target)); #line 43 "..\..\MainWindow.xaml" this.CamRot.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.CamRot_ValueChanged); #line default #line hidden return; case 5: this.ZTranzition = ((System.Windows.Controls.Slider)(target)); #line 46 "..\..\MainWindow.xaml" this.ZTranzition.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZTranzition_ValueChanged); #line default #line hidden return; case 6: this.YTranzition = ((System.Windows.Controls.Slider)(target)); #line 48 "..\..\MainWindow.xaml" this.YTranzition.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZTranzition_ValueChanged); #line default #line hidden return; case 7: this.XTranzition = ((System.Windows.Controls.Slider)(target)); #line 50 "..\..\MainWindow.xaml" this.XTranzition.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZTranzition_ValueChanged); #line default #line hidden return; case 8: this.Rotation = ((System.Windows.Controls.Slider)(target)); #line 54 "..\..\MainWindow.xaml" this.Rotation.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZTranzition_ValueChanged); #line default #line hidden return; case 9: this.Scale = ((System.Windows.Controls.Slider)(target)); #line 56 "..\..\MainWindow.xaml" this.Scale.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZTranzition_ValueChanged); #line default #line hidden return; case 10: this.FurnituresLoaded = ((System.Windows.Controls.ListBox)(target)); #line 61 "..\..\MainWindow.xaml" this.FurnituresLoaded.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FurnituresLoaded_SelectionChanged); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.menu = ((System.Windows.Controls.Menu)(target)); return; case 2: #line 12 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Checked += new System.Windows.RoutedEventHandler(this.MenuItem_Checked); #line default #line hidden #line 12 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.MenuItem_Unchecked); #line default #line hidden return; case 3: #line 13 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Checked += new System.Windows.RoutedEventHandler(this.MenuItem_Checked_1); #line default #line hidden #line 13 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.MenuItem_Unchecked_1); #line default #line hidden return; case 4: #line 14 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Checked += new System.Windows.RoutedEventHandler(this.MenuItem_Checked_2); #line default #line hidden #line 14 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.MenuItem_Unchecked_2); #line default #line hidden return; case 5: this.viewport1 = ((System.Windows.Controls.Viewport3D)(target)); #line 20 "..\..\MainWindow.xaml" this.viewport1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.viewport1_MouseLeftButtonDown); #line default #line hidden #line 20 "..\..\MainWindow.xaml" this.viewport1.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.viewport1_MouseRightButtonDown); #line default #line hidden #line 20 "..\..\MainWindow.xaml" this.viewport1.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.viewport1_MouseRightButtonUp); #line default #line hidden #line 20 "..\..\MainWindow.xaml" this.viewport1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDown); #line default #line hidden #line 20 "..\..\MainWindow.xaml" this.viewport1.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.viewport1_MouseWheel); #line default #line hidden #line 20 "..\..\MainWindow.xaml" this.viewport1.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.viewport1_MouseLeftButtonUp); #line default #line hidden #line 20 "..\..\MainWindow.xaml" this.viewport1.MouseMove += new System.Windows.Input.MouseEventHandler(this.viewport1_MouseMove); #line default #line hidden return; case 6: this.map = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 7: this.Bottom = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 8: this.Front = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 9: this.translacija = ((System.Windows.Media.Media3D.TranslateTransform3D)(target)); return; case 10: this.skaliranje = ((System.Windows.Media.Media3D.ScaleTransform3D)(target)); return; case 11: this.myHorizontalRTransform = ((System.Windows.Media.Media3D.RotateTransform3D)(target)); return; case 12: this.myHorizontalRotation = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target)); return; case 13: this.myVerticalRTransform = ((System.Windows.Media.Media3D.RotateTransform3D)(target)); return; case 14: this.myVerticalRotation = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target)); return; case 15: this.myHorizontalRTransform2 = ((System.Windows.Media.Media3D.RotateTransform3D)(target)); return; case 16: this.myHorizontalRotation2 = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 4 "..\..\..\Rafal_Rogoda\WindowSide.xaml" ((rafal_rogoda.RRwindow)(target)).Closed += new System.EventHandler(this.Window_Closed_1); #line default #line hidden return; case 2: this.SizeX1 = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.SizeY1 = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.SizeZ1 = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.SizeX2 = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.SizeY2 = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.SizeZ2 = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.Light = ((System.Windows.Controls.CheckBox)(target)); return; case 9: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 10: this.Lighting = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 11: this.SliderOffsetX = ((System.Windows.Controls.Slider)(target)); #line 60 "..\..\..\Rafal_Rogoda\WindowSide.xaml" this.SliderOffsetX.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.rotate); #line default #line hidden return; case 12: this.SliderOffsetY = ((System.Windows.Controls.Slider)(target)); #line 62 "..\..\..\Rafal_Rogoda\WindowSide.xaml" this.SliderOffsetY.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.rotate); #line default #line hidden return; case 13: this.SliderOffsetZ = ((System.Windows.Controls.Slider)(target)); #line 64 "..\..\..\Rafal_Rogoda\WindowSide.xaml" this.SliderOffsetZ.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.rotate); #line default #line hidden return; case 14: this.SliderRotateX = ((System.Windows.Controls.Slider)(target)); #line 66 "..\..\..\Rafal_Rogoda\WindowSide.xaml" this.SliderRotateX.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.rotate); #line default #line hidden return; case 15: this.SliderRotateY = ((System.Windows.Controls.Slider)(target)); #line 68 "..\..\..\Rafal_Rogoda\WindowSide.xaml" this.SliderRotateY.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.rotate); #line default #line hidden return; case 16: this.SliderRotateZ = ((System.Windows.Controls.Slider)(target)); #line 70 "..\..\..\Rafal_Rogoda\WindowSide.xaml" this.SliderRotateZ.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.rotate); #line default #line hidden return; case 17: #line 71 "..\..\..\Rafal_Rogoda\WindowSide.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Reload); #line default #line hidden return; case 18: #line 72 "..\..\..\Rafal_Rogoda\WindowSide.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Save); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ZAM3DViewport3D = ((System.Windows.Controls.Viewport3D)(target)); return; case 2: this.FrontOR19 = ((System.Windows.Media.Media3D.PerspectiveCamera)(target)); return; case 3: this.Scene = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 4: this.Group_of_1_ObjectsOR22 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 5: this.PelvisOR24 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 6: this.BeltOR26 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 7: this.BeltOR26GR27 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 8: this.TorsoOR29 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 9: this.TubesOR31 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 10: this.TubesOR31GR32 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 11: this.ArmULOR34 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 12: this.ArmLLOR36 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 13: this.PalmLOR38 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 14: this.ThumbTOR40 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 15: this.ThumbBOR42 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 16: this.ThumbBOR42GR43 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 17: this.ThumbTOR40GR41 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 18: this.IndexTOR46 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 19: this.IndexBOR48 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 20: this.IndexBOR48GR49 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 21: this.IndexTOR46GR47 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 22: this.MidTOR52 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 23: this.MidBOR54 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 24: this.MidBOR54GR55 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 25: this.MidTOR52GR53 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 26: this.PinkyTOR58 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 27: this.PinkyBOR60 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 28: this.PinkyBOR60GR61 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 29: this.PinkyTOR58GR59 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 30: this.HammerOR64 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 31: this.EndOR66 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 32: this.EndOR66GR67 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 33: this.HeadOR69 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 34: this.HeadOR69GR70 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 35: this.HeadOR69GR71 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 36: this.HeadOR69GR72 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 37: this.Mesh01OR74 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 38: this.Mesh01OR74GR75 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 39: this.Mesh01OR74GR76 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 40: this.HammerOR64GR65 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 41: this.PalmLOR38GR39 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 42: this.ArmLLOR36GR37 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 43: this.ArmULOR34GR35 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 44: this.ArmUROR82 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 45: this.ArmLROR84 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 46: this.PalmROR86 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 47: this.PinkyTOR88 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 48: this.PinkyBOR90 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 49: this.PinkyBOR90GR91 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 50: this.PinkyTOR88GR89 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 51: this.ThumbTOR94 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 52: this.ThumbBOR96 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 53: this.ThumbBOR96GR97 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 54: this.ThumbTOR94GR95 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 55: this.IndexTOR100 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 56: this.IndexBOR102 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 57: this.IndexBOR102GR103 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 58: this.IndexTOR100GR101 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 59: this.MidTOR106 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 60: this.MidBOR108 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 61: this.MidBOR108GR109 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 62: this.MidTOR106GR107 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 63: this.PalmROR86GR87 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 64: this.ArmLROR84GR85 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 65: this.ArmUROR82GR83 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 66: this.HeadOR115 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 67: this.EyeLOR117 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 68: this.EyeLOR117GR118 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 69: this.EyeLOR117GR119 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 70: this.EyeROR121 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 71: this.EyeROR121GR122 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 72: this.EyeROR121GR123 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 73: this.GogglesOR125 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 74: this.GogglesOR125GR126 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 75: this.GogglesOR125GR127 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 76: this.HeadOR115GR116 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 77: this.TorsoOR29GR30 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 78: this.TorsoOR29GR31 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 79: this.TorsoOR29GR32 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 80: this.TorsoOR29GR33 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 81: this.LegUROR134 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 82: this.LegLROR136 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 83: this.FootROR138 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 84: this.FootROR138GR139 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 85: this.FootROR138GR140 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 86: this.FootROR138GR141 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 87: this.LegLROR136GR137 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 88: this.LegUROR134GR135 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 89: this.LegULOR145 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 90: this.LegLLOR147 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 91: this.FootLOR149 = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 92: this.FootLOR149GR150 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 93: this.FootLOR149GR151 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 94: this.FootLOR149GR152 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 95: this.LegLLOR147GR148 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 96: this.LegULOR145GR146 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 97: this.PelvisOR24GR25 = ((System.Windows.Media.Media3D.GeometryModel3D)(target)); return; case 98: this.rotate = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 4 "..\..\..\MainWindow.xaml" ((magic_cube.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 4 "..\..\..\MainWindow.xaml" ((magic_cube.MainWindow)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Window_MouseMove); #line default #line hidden #line 4 "..\..\..\MainWindow.xaml" ((magic_cube.MainWindow)(target)).MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseRightButtonDown); #line default #line hidden #line 4 "..\..\..\MainWindow.xaml" ((magic_cube.MainWindow)(target)).MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseRightButtonUp); #line default #line hidden #line 4 "..\..\..\MainWindow.xaml" ((magic_cube.MainWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown); #line default #line hidden #line 4 "..\..\..\MainWindow.xaml" ((magic_cube.MainWindow)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonUp); #line default #line hidden #line 4 "..\..\..\MainWindow.xaml" ((magic_cube.MainWindow)(target)).ContentRendered += new System.EventHandler(this.Window_ContentRendered); #line default #line hidden #line 4 "..\..\..\MainWindow.xaml" ((magic_cube.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp); #line default #line hidden return; case 2: this.enableAnimations = ((System.Windows.Controls.MenuItem)(target)); #line 8 "..\..\..\MainWindow.xaml" this.enableAnimations.Checked += new System.Windows.RoutedEventHandler(this.enableAnimations_Checked); #line default #line hidden #line 8 "..\..\..\MainWindow.xaml" this.enableAnimations.Unchecked += new System.Windows.RoutedEventHandler(this.enableAnimations_Unchecked); #line default #line hidden return; case 3: this.saveMenu = ((System.Windows.Controls.MenuItem)(target)); #line 10 "..\..\..\MainWindow.xaml" this.saveMenu.Click += new System.Windows.RoutedEventHandler(this.saveMenu_Click); #line default #line hidden return; case 4: this.loadMenu = ((System.Windows.Controls.MenuItem)(target)); #line 11 "..\..\..\MainWindow.xaml" this.loadMenu.Click += new System.Windows.RoutedEventHandler(this.loadMenu_Click); #line default #line hidden return; case 5: this.newGame = ((System.Windows.Controls.MenuItem)(target)); #line 13 "..\..\..\MainWindow.xaml" this.newGame.Click += new System.Windows.RoutedEventHandler(this.newGame_Click); #line default #line hidden return; case 6: this.nor = ((System.Windows.Controls.MenuItem)(target)); #line 16 "..\..\..\MainWindow.xaml" this.nor.Click += new System.Windows.RoutedEventHandler(this.Nor_Click); #line default #line hidden return; case 7: this.solveMenu = ((System.Windows.Controls.MenuItem)(target)); #line 17 "..\..\..\MainWindow.xaml" this.solveMenu.Click += new System.Windows.RoutedEventHandler(this.jack_Click); #line default #line hidden return; case 8: this.textbox1 = ((System.Windows.Controls.TextBox)(target)); return; case 9: #line 22 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.about_Click); #line default #line hidden return; case 10: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.HeightSlider = ((System.Windows.Controls.Slider)(target)); return; case 2: this.WidthSlider = ((System.Windows.Controls.Slider)(target)); return; case 3: this.LengthSlider = ((System.Windows.Controls.Slider)(target)); return; case 4: this.LabelOfAmount = ((System.Windows.Controls.Label)(target)); return; case 5: this.SliderOfRibs = ((System.Windows.Controls.Slider)(target)); return; case 6: this.comboBoxOfTexture = ((System.Windows.Controls.ComboBox)(target)); return; case 7: #line 35 "..\..\..\Adam_Jasiolek\AJ_ChairModel.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 8: #line 36 "..\..\..\Adam_Jasiolek\AJ_ChairModel.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; case 9: this.mainViewPort = ((System.Windows.Controls.Viewport3D)(target)); return; case 10: this.light = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 11: this.SliderX = ((System.Windows.Controls.Slider)(target)); #line 56 "..\..\..\Adam_Jasiolek\AJ_ChairModel.xaml" this.SliderX.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_2); #line default #line hidden return; case 12: this.SliderY = ((System.Windows.Controls.Slider)(target)); #line 58 "..\..\..\Adam_Jasiolek\AJ_ChairModel.xaml" this.SliderY.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_2); #line default #line hidden return; case 13: this.SliderZ = ((System.Windows.Controls.Slider)(target)); #line 60 "..\..\..\Adam_Jasiolek\AJ_ChairModel.xaml" this.SliderZ.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_2); #line default #line hidden return; case 14: this.Rot_X = ((System.Windows.Controls.Slider)(target)); #line 62 "..\..\..\Adam_Jasiolek\AJ_ChairModel.xaml" this.Rot_X.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_2); #line default #line hidden return; case 15: this.Rot_Y = ((System.Windows.Controls.Slider)(target)); #line 64 "..\..\..\Adam_Jasiolek\AJ_ChairModel.xaml" this.Rot_Y.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_2); #line default #line hidden return; case 16: this.Rot_Z = ((System.Windows.Controls.Slider)(target)); #line 66 "..\..\..\Adam_Jasiolek\AJ_ChairModel.xaml" this.Rot_Z.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_2); #line default #line hidden return; case 17: #line 67 "..\..\..\Adam_Jasiolek\AJ_ChairModel.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 2: this.camera = ((System.Windows.Media.Media3D.OrthographicCamera)(target)); return; case 3: this.Light1 = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 4: this.Light2 = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 5: this.Light3 = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 6: this.canvasOn3D = ((System.Windows.Controls.Canvas)(target)); #line 55 "..\..\3DWindow.xaml" this.canvasOn3D.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.OnViewportMouseUp); #line default #line hidden #line 56 "..\..\3DWindow.xaml" this.canvasOn3D.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnViewportMouseDown); #line default #line hidden #line 57 "..\..\3DWindow.xaml" this.canvasOn3D.MouseMove += new System.Windows.Input.MouseEventHandler(this.OnViewportMouseMove); #line default #line hidden return; case 7: this.controlPane = ((System.Windows.Controls.Canvas)(target)); return; case 8: this.comboBoxX = ((System.Windows.Controls.ComboBox)(target)); return; case 9: this.comboBoxY = ((System.Windows.Controls.ComboBox)(target)); return; case 10: this.comboBoxZ = ((System.Windows.Controls.ComboBox)(target)); return; case 11: this.draw3DButton = ((System.Windows.Controls.Button)(target)); #line 82 "..\..\3DWindow.xaml" this.draw3DButton.Click += new System.Windows.RoutedEventHandler(this.Draw3DButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((Opdracht2.MainWindow)(target)); #line 9 "..\..\MainWindow.xaml" this.Window.KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden return; case 2: this.Slider1 = ((System.Windows.Controls.Slider)(target)); #line 19 "..\..\MainWindow.xaml" this.Slider1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider1_ValueChanged); #line default #line hidden return; case 3: this.Slider2 = ((System.Windows.Controls.Slider)(target)); #line 22 "..\..\MainWindow.xaml" this.Slider2.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider2_ValueChanged); #line default #line hidden return; case 4: this.viewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 5: this.Camera = ((System.Windows.Media.Media3D.PerspectiveCamera)(target)); return; case 6: this.Board = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 7: this.WallContainer = ((System.Windows.Media.Media3D.ContainerUIElement3D)(target)); return; case 8: this.SphereContainer = ((System.Windows.Media.Media3D.ContainerUIElement3D)(target)); return; case 9: this.Light = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 10: #line 76 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StartButton_Click); #line default #line hidden return; case 11: #line 77 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StopButton_Click); #line default #line hidden return; case 12: #line 78 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MazeButton_Click); #line default #line hidden return; case 13: #line 79 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetButton_Click); #line default #line hidden return; case 14: this.CellsTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.BallRadiusTextBox = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ligthsComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 2: this.drl = ((System.Windows.Controls.ComboBoxItem)(target)); #line 47 "..\..\..\Views\MainWindow.xaml" this.drl.Selected += new System.Windows.RoutedEventHandler(this.LightSelected); #line default #line hidden return; case 3: this.aml = ((System.Windows.Controls.ComboBoxItem)(target)); #line 48 "..\..\..\Views\MainWindow.xaml" this.aml.Selected += new System.Windows.RoutedEventHandler(this.LightSelected); #line default #line hidden return; case 4: this.ptl = ((System.Windows.Controls.ComboBoxItem)(target)); #line 49 "..\..\..\Views\MainWindow.xaml" this.ptl.Selected += new System.Windows.RoutedEventHandler(this.LightSelected); #line default #line hidden return; case 5: this.spl = ((System.Windows.Controls.ComboBoxItem)(target)); #line 50 "..\..\..\Views\MainWindow.xaml" this.spl.Selected += new System.Windows.RoutedEventHandler(this.LightSelected); #line default #line hidden return; case 6: #line 52 "..\..\..\Views\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 7: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 8: this.perspectiveCameraEditor = ((System.Windows.Media.Media3D.PerspectiveCamera)(target)); return; case 9: this.LightGroup = ((System.Windows.Media.Media3D.Model3DGroup)(target)); return; case 10: this.MaterialGroup = ((System.Windows.Media.Media3D.MaterialGroup)(target)); return; case 11: this.DiffuseMaterial = ((System.Windows.Media.Media3D.DiffuseMaterial)(target)); return; case 12: this.transformGroup = ((System.Windows.Media.Media3D.Transform3DGroup)(target)); return; case 13: this.figureRotateTransformationX = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target)); return; case 14: this.figureRotateTransformationY = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target)); return; case 15: this.figureRotateTransformationZ = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target)); return; case 16: this.gridSliderX = ((System.Windows.Controls.Slider)(target)); return; case 17: this.gridSliderY = ((System.Windows.Controls.Slider)(target)); return; case 18: this.gridSliderZ = ((System.Windows.Controls.Slider)(target)); return; case 19: this.objectSliderX = ((System.Windows.Controls.Slider)(target)); #line 129 "..\..\..\Views\MainWindow.xaml" this.objectSliderX.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ObjectSliderValueChanged); #line default #line hidden return; case 20: this.objectSliderY = ((System.Windows.Controls.Slider)(target)); #line 130 "..\..\..\Views\MainWindow.xaml" this.objectSliderY.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ObjectSliderValueChanged); #line default #line hidden return; case 21: this.objectSliderZ = ((System.Windows.Controls.Slider)(target)); #line 131 "..\..\..\Views\MainWindow.xaml" this.objectSliderZ.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ObjectSliderValueChanged); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); return; case 2: this.Light = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 3: this.OffX = ((System.Windows.Controls.Slider)(target)); #line 32 "..\..\..\Jan_dudek\JDWindow.xaml" this.OffX.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_1); #line default #line hidden return; case 4: this.OffY = ((System.Windows.Controls.Slider)(target)); #line 34 "..\..\..\Jan_dudek\JDWindow.xaml" this.OffY.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_1); #line default #line hidden return; case 5: this.OffZ = ((System.Windows.Controls.Slider)(target)); #line 36 "..\..\..\Jan_dudek\JDWindow.xaml" this.OffZ.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_1); #line default #line hidden return; case 6: this.RotX = ((System.Windows.Controls.Slider)(target)); #line 39 "..\..\..\Jan_dudek\JDWindow.xaml" this.RotX.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_1); #line default #line hidden return; case 7: this.RotY = ((System.Windows.Controls.Slider)(target)); #line 41 "..\..\..\Jan_dudek\JDWindow.xaml" this.RotY.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_1); #line default #line hidden return; case 8: this.RotZ = ((System.Windows.Controls.Slider)(target)); #line 43 "..\..\..\Jan_dudek\JDWindow.xaml" this.RotZ.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged_1); #line default #line hidden return; case 9: this.Length = ((System.Windows.Controls.Slider)(target)); #line 46 "..\..\..\Jan_dudek\JDWindow.xaml" this.Length.ContextMenuClosing += new System.Windows.Controls.ContextMenuEventHandler(this.Length_ContextMenuClosing); #line default #line hidden #line 46 "..\..\..\Jan_dudek\JDWindow.xaml" this.Length.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Length_ValueChanged); #line default #line hidden #line 46 "..\..\..\Jan_dudek\JDWindow.xaml" this.Length.TouchUp += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.Length_TouchUp); #line default #line hidden return; case 10: this.Width1 = ((System.Windows.Controls.Slider)(target)); #line 48 "..\..\..\Jan_dudek\JDWindow.xaml" this.Width1.ContextMenuClosing += new System.Windows.Controls.ContextMenuEventHandler(this.Width1_ContextMenuClosing); #line default #line hidden #line 48 "..\..\..\Jan_dudek\JDWindow.xaml" this.Width1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Width1_ValueChanged); #line default #line hidden return; case 11: this.SegmentsCount = ((System.Windows.Controls.Slider)(target)); #line 50 "..\..\..\Jan_dudek\JDWindow.xaml" this.SegmentsCount.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SegmentsCount_ValueChanged); #line default #line hidden return; case 12: this.ComboColor = ((System.Windows.Controls.ComboBox)(target)); #line 51 "..\..\..\Jan_dudek\JDWindow.xaml" this.ComboColor.DataContextChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.ComboColor_DataContextChanged); #line default #line hidden #line 51 "..\..\..\Jan_dudek\JDWindow.xaml" this.ComboColor.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboColor_SelectionChanged); #line default #line hidden return; case 13: this.red0 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 14: this.blue = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 15: this.green = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 16: #line 57 "..\..\..\Jan_dudek\JDWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; case 17: #line 59 "..\..\..\Jan_dudek\JDWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 4 "..\..\..\MainWindow.xaml" ((ComputerGraphics.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp); #line default #line hidden return; case 2: this.simpleButton = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\..\MainWindow.xaml" this.simpleButton.Click += new System.Windows.RoutedEventHandler(this.simpleButtonClick); #line default #line hidden return; case 3: this.cubeButton = ((System.Windows.Controls.Button)(target)); #line 22 "..\..\..\MainWindow.xaml" this.cubeButton.Click += new System.Windows.RoutedEventHandler(this.cubeButtonClick); #line default #line hidden return; case 4: this.cameraButton = ((System.Windows.Controls.Button)(target)); #line 25 "..\..\..\MainWindow.xaml" this.cameraButton.Click += new System.Windows.RoutedEventHandler(this.cameraButton_Click); #line default #line hidden return; case 5: this.blenderButton = ((System.Windows.Controls.Button)(target)); #line 28 "..\..\..\MainWindow.xaml" this.blenderButton.Click += new System.Windows.RoutedEventHandler(this.blenderButton_Click); #line default #line hidden return; case 6: this.separator1 = ((System.Windows.Controls.Separator)(target)); return; case 7: this.cameraPositionXTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.cameraPositionYTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.cameraPositionZTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.lookAtXTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.lookAtYTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.lookAtZTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.mainViewport = ((System.Windows.Controls.Viewport3D)(target)); #line 58 "..\..\..\MainWindow.xaml" this.mainViewport.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.mainViewport_MouseLeftButtonDown); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.oldgrid = ((System.Windows.Controls.Grid)(target)); return; case 2: this.grid1 = ((System.Windows.Controls.Grid)(target)); return; case 3: this.roomName = ((System.Windows.Controls.Label)(target)); return; case 4: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 5: this.comboBox1 = ((System.Windows.Controls.ComboBox)(target)); #line 27 "..\..\..\..\DeviceMigrations\addposition.xaml" this.comboBox1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox1_SelectionChanged); #line default #line hidden return; case 6: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 7: this.label3 = ((System.Windows.Controls.Label)(target)); return; case 8: this.button3 = ((System.Windows.Controls.Button)(target)); #line 38 "..\..\..\..\DeviceMigrations\addposition.xaml" this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click); #line default #line hidden return; case 9: this.viewport1 = ((System.Windows.Controls.Viewport3D)(target)); #line 41 "..\..\..\..\DeviceMigrations\addposition.xaml" this.viewport1.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.rightleftdown); #line default #line hidden return; case 10: this.myPerspectiveCamera = ((System.Windows.Media.Media3D.PerspectiveCamera)(target)); return; case 11: this.FurnitureContainer2 = ((System.Windows.Media.Media3D.ContainerUIElement3D)(target)); return; case 12: this.viewportLightsModelVisual3D = ((System.Windows.Media.Media3D.ModelVisual3D)(target)); return; case 13: this.ambientLight = ((System.Windows.Media.Media3D.AmbientLight)(target)); return; case 14: this.directionalLight = ((System.Windows.Media.Media3D.DirectionalLight)(target)); return; case 15: this.spotLight = ((System.Windows.Media.Media3D.SpotLight)(target)); return; } this._contentLoaded = true; }
private Robot robot; //the robot to display! #endregion Fields #region Constructors public ViewPlatform(Viewport3D viewport, MotorManager motorManager, Robot robot) { this.robot = robot; robot.intialise(viewport); this.motorManager = motorManager; //Add myself as a listener for the motor manager: this.motorManager.addListener(this); //Create a focussed camera to watch the origin: focussedCamera = new FocussedCamera(200, 0, 0); //Create the perspective camera! camera = getCamera(focussedCamera.Location, focussedCamera.Direction); viewport.Camera = camera; //Now to construct the light: light = getLight(Colors.White,focussedCamera.Direction); ModelVisual3D visual = new ModelVisual3D(); visual.Content = light; viewport.Children.Add(visual); ModelVisual3D visual2 = new ModelVisual3D(); //Now add in the robot too! updateMotors(); outerModel = new Model3DGroup(); outerModel.Children.Add(robot.getRobot()); currentMatTransform = (MatrixTransform3D)MatrixTransform3D.Identity; TranslateTransform3D trans = new TranslateTransform3D(); outerModel.Children[0] = Transforms.applyTransform((Model3DGroup)outerModel.Children[0],currentMatTransform); visual2.Content = outerModel; viewport.Children.Add(visual2); //Phew! That should be it... viewport.ClipToBounds = true; }