1 | <!--
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2016 Joseph Helm and Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see<http://www.gnu.org/licenses/> .
|
---|
19 | */
|
---|
20 | -->
|
---|
21 |
|
---|
22 | <UserControl x:Class="HeuristicLab.Problems.BinPacking.Views.Container3DView"
|
---|
23 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
---|
24 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
---|
25 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
---|
26 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
---|
27 | mc:Ignorable="d"
|
---|
28 | d:DesignHeight="300" d:DesignWidth="300"
|
---|
29 | MouseMove="Container3DView_MouseMove" MouseDown="Container3DView_MouseDown" MouseUp="Container3DView_MouseUp"
|
---|
30 | MouseWheel="Container3DView_OnMouseWheel"
|
---|
31 | MouseEnter="Container3DView_OnMouseEnter"
|
---|
32 | Focusable="true"
|
---|
33 | >
|
---|
34 | <Grid Margin="0,0,-64,-57">
|
---|
35 | <StackPanel>
|
---|
36 | <CheckBox Name="showExtremePointsCheckBox"
|
---|
37 | Content="Show extreme points"
|
---|
38 | VerticalAlignment="Top"
|
---|
39 | HorizontalAlignment="Left"
|
---|
40 | Margin="10,6,0,0"
|
---|
41 | Unchecked="ShowExtremePointsCheckBoxOnUnchecked"
|
---|
42 | Checked="ShowExtremePointsCheckBoxOnChecked"/>
|
---|
43 | <CheckBox Name="showResidualSpaceCheckBox"
|
---|
44 | Content="Show residual spaces"
|
---|
45 | VerticalAlignment="Top"
|
---|
46 | HorizontalAlignment="Left"
|
---|
47 | Margin="10,6,0,0"
|
---|
48 | Unchecked="ShowResidualSpacesCheckBoxOnUnchecked"
|
---|
49 | Checked="ShowResidualSpacesCheckBoxOnChecked"/>
|
---|
50 | <TextBlock Name="selectedItemTextBlock"
|
---|
51 | Margin="10,6,0,0"
|
---|
52 | VerticalAlignment="Top"
|
---|
53 | HorizontalAlignment="Left"
|
---|
54 | Text="Gegenstand:"/>
|
---|
55 | </StackPanel>
|
---|
56 | <Border BorderThickness="1" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" Margin="0,70,0,0">
|
---|
57 | <Viewport3D Name="viewport3D1" Margin="0,-1,0,0" >
|
---|
58 | <Viewport3D.Camera>
|
---|
59 | <PerspectiveCamera x:Name="camMain" Position="0.5 8 8" LookDirection="0 -1 -1">
|
---|
60 | <!-- camera position for design time-->
|
---|
61 | </PerspectiveCamera>
|
---|
62 | </Viewport3D.Camera>
|
---|
63 | <ModelVisual3D>
|
---|
64 | <ModelVisual3D.Content>
|
---|
65 | <DirectionalLight x:Name="dirLightMain" Direction="0,-1,-1"/>
|
---|
66 | </ModelVisual3D.Content>
|
---|
67 | </ModelVisual3D>
|
---|
68 | <ModelVisual3D>
|
---|
69 | </ModelVisual3D>
|
---|
70 | <ModelVisual3D x:Name="MyModel">
|
---|
71 | <ModelVisual3D.Content>
|
---|
72 | <Model3DGroup>
|
---|
73 | </Model3DGroup>
|
---|
74 | </ModelVisual3D.Content>
|
---|
75 | <ModelVisual3D.Transform>
|
---|
76 | <Transform3DGroup>
|
---|
77 | <ScaleTransform3D x:Name="scale" ScaleX="1" ScaleY="1" ScaleZ="1"/>
|
---|
78 | <RotateTransform3D x:Name="rotateX">
|
---|
79 | <RotateTransform3D.Rotation>
|
---|
80 | <AxisAngleRotation3D Axis="0 1 0"/>
|
---|
81 | </RotateTransform3D.Rotation>
|
---|
82 | </RotateTransform3D>
|
---|
83 | <RotateTransform3D x:Name="rotateY">
|
---|
84 | <RotateTransform3D.Rotation>
|
---|
85 | <AxisAngleRotation3D Axis="1 0 0"/>
|
---|
86 | </RotateTransform3D.Rotation>
|
---|
87 | </RotateTransform3D>
|
---|
88 | <ScaleTransform3D x:Name="scaleZoom" ScaleX="1" ScaleY="1" ScaleZ="1"/>
|
---|
89 | </Transform3DGroup>
|
---|
90 | </ModelVisual3D.Transform>
|
---|
91 | </ModelVisual3D>
|
---|
92 | </Viewport3D>
|
---|
93 | </Border>
|
---|
94 | </Grid>
|
---|
95 | </UserControl>
|
---|