mirror of
https://github.com/bvanroll/cs-map-project.git
synced 2025-08-29 11:52:44 +00:00
canvas moe nog geflipped worden, en scaling shit. kga stoppe voor vandaag
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -27,6 +27,12 @@ namespace Globals
|
|||||||
PolygonPunten.Add(new PolygonPunten(polygon, naam));
|
PolygonPunten.Add(new PolygonPunten(polygon, naam));
|
||||||
}
|
}
|
||||||
VindMaximumEnMinimum(PolygonPunten);
|
VindMaximumEnMinimum(PolygonPunten);
|
||||||
|
bool sw = false;
|
||||||
|
foreach (PolygonPunten p in PolygonPunten)
|
||||||
|
{
|
||||||
|
if (sw) p.Punten.Reverse();
|
||||||
|
sw = !sw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void VindMaximumEnMinimum(List<PolygonPunten> polygonPunten)
|
private void VindMaximumEnMinimum(List<PolygonPunten> polygonPunten)
|
||||||
@@ -35,6 +41,7 @@ namespace Globals
|
|||||||
MaximumY = polygonPunten.Max(p => p.MaximumY);
|
MaximumY = polygonPunten.Max(p => p.MaximumY);
|
||||||
MinimumX = polygonPunten.Max(p => p.MinimumX);
|
MinimumX = polygonPunten.Max(p => p.MinimumX);
|
||||||
MinimumY = polygonPunten.Max(p => p.MinimumY);
|
MinimumY = polygonPunten.Max(p => p.MinimumY);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -42,6 +42,7 @@ namespace Globals
|
|||||||
Punten.Add(new Punt(pos.Longitude, pos.Latitude, naam));
|
Punten.Add(new Punt(pos.Longitude, pos.Latitude, naam));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Punten.Reverse();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -43,7 +43,7 @@ namespace Logica
|
|||||||
return TriangulatePolygon(polygon);
|
return TriangulatePolygon(polygon);
|
||||||
}
|
}
|
||||||
|
|
||||||
public PolygonPunten ScalePolygon(PolygonPunten polygon, double scaleX, double scaleY)
|
public PolygonPunten ScalePolygon(PolygonPunten polygon, double scaleX, double scaleY, double offsetX = 0, double offsetY = 0)
|
||||||
{
|
{
|
||||||
double maxX = polygon.MaximumX;
|
double maxX = polygon.MaximumX;
|
||||||
double maxY = polygon.MaximumY;
|
double maxY = polygon.MaximumY;
|
||||||
@@ -57,16 +57,18 @@ namespace Logica
|
|||||||
double x = punt.X - minX;
|
double x = punt.X - minX;
|
||||||
x /= maxX;
|
x /= maxX;
|
||||||
x *= scaleX;
|
x *= scaleX;
|
||||||
|
x += offsetX;
|
||||||
double y = punt.Y - minY;
|
double y = punt.Y - minY;
|
||||||
y /= maxY;
|
y /= maxY;
|
||||||
y *= scaleY;
|
y *= scaleY;
|
||||||
|
y += offsetY;
|
||||||
returnWaarde.Add(new Punt(x, y, punt.Naam));
|
returnWaarde.Add(new Punt(x, y, punt.Naam));
|
||||||
|
|
||||||
}
|
}
|
||||||
return new PolygonPunten(returnWaarde, polygon.Naam);
|
return new PolygonPunten(returnWaarde, polygon.Naam);
|
||||||
}
|
}
|
||||||
|
|
||||||
public MultiPolygonPunten ScaleMultiPolygon(MultiPolygonPunten multiPolygon, double scaleX, double scaleY)
|
public MultiPolygonPunten ScaleMultiPolygon(MultiPolygonPunten multiPolygon, double scaleX, double scaleY, double offsetX = 0, double offsetY = 0)
|
||||||
{
|
{
|
||||||
double maxX = multiPolygon.MaximumX;
|
double maxX = multiPolygon.MaximumX;
|
||||||
double maxY = multiPolygon.MaximumY;
|
double maxY = multiPolygon.MaximumY;
|
||||||
@@ -83,9 +85,11 @@ namespace Logica
|
|||||||
double x = punt.X - minX;
|
double x = punt.X - minX;
|
||||||
x /= maxX;
|
x /= maxX;
|
||||||
x *= scaleX;
|
x *= scaleX;
|
||||||
|
x += offsetX;
|
||||||
double y = punt.Y - minY;
|
double y = punt.Y - minY;
|
||||||
y /= maxY;
|
y /= maxY;
|
||||||
y *= scaleY;
|
y *= scaleY;
|
||||||
|
y += offsetY;
|
||||||
returnWaarde.Add(new Punt(x, y, punt.Naam));
|
returnWaarde.Add(new Punt(x, y, punt.Naam));
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -95,7 +99,8 @@ namespace Logica
|
|||||||
return new MultiPolygonPunten(pp, multiPolygon.Naam);
|
return new MultiPolygonPunten(pp, multiPolygon.Naam);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<MultiPolygonPunten> ScaleMultiPolygons(List<MultiPolygonPunten> multiPolygons, double scaleX, double scaleY)
|
//todo (offset var voor center op canvas, vree ambetant)
|
||||||
|
public List<MultiPolygonPunten> ScaleMultiPolygons(List<MultiPolygonPunten> multiPolygons, double scaleX, double scaleY, double offsetX = 0, double offsetY = 0)
|
||||||
{
|
{
|
||||||
double maxX = multiPolygons.Max(m => m.MaximumX);
|
double maxX = multiPolygons.Max(m => m.MaximumX);
|
||||||
double maxY = multiPolygons.Max(m => m.MaximumY);
|
double maxY = multiPolygons.Max(m => m.MaximumY);
|
||||||
@@ -114,9 +119,11 @@ namespace Logica
|
|||||||
double x = punt.X - minX;
|
double x = punt.X - minX;
|
||||||
x /= maxX;
|
x /= maxX;
|
||||||
x *= scaleX;
|
x *= scaleX;
|
||||||
|
x += offsetX;
|
||||||
double y = punt.Y - minY;
|
double y = punt.Y - minY;
|
||||||
y /= maxY;
|
y /= maxY;
|
||||||
y *= scaleY;
|
y *= scaleY;
|
||||||
|
y += offsetY;
|
||||||
punten.Add(new Punt(x, y, punt.Naam));
|
punten.Add(new Punt(x, y, punt.Naam));
|
||||||
}
|
}
|
||||||
pp.Add(new PolygonPunten(punten, poly.Naam));
|
pp.Add(new PolygonPunten(punten, poly.Naam));
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -9,7 +9,7 @@
|
|||||||
<Grid>
|
<Grid>
|
||||||
<Canvas x:Name="someCanvas" RenderTransformOrigin="0.5,0.5" Margin="436,114,128,113">
|
<Canvas x:Name="someCanvas" RenderTransformOrigin="0.5,0.5" Margin="436,114,128,113">
|
||||||
<Canvas.RenderTransform>
|
<Canvas.RenderTransform>
|
||||||
<TransformGroup>
|
<TransformGroup x:Name="someTransformGroup">
|
||||||
<ScaleTransform ScaleY="-1" ScaleX="-1"/>
|
<ScaleTransform ScaleY="-1" ScaleX="-1"/>
|
||||||
<SkewTransform/>
|
<SkewTransform/>
|
||||||
<RotateTransform/>
|
<RotateTransform/>
|
||||||
@@ -17,11 +17,12 @@
|
|||||||
</TransformGroup>
|
</TransformGroup>
|
||||||
</Canvas.RenderTransform>
|
</Canvas.RenderTransform>
|
||||||
</Canvas>
|
</Canvas>
|
||||||
<ListBox x:Name="lb" Margin="10,94,568,93" SelectionChanged="lb_SelectionChanged"/>
|
<ListBox x:Name="lb" Margin="10,94,568,93" SelectionChanged="lb_SelectionChanged" SelectionMode="Multiple"/>
|
||||||
<Button x:Name="LoadFile" Content="LoadFile" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="27" Width="65" Click="LoadFile_Click"/>
|
<Button x:Name="LoadFile" Content="LoadFile" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="27" Width="65" Click="LoadFile_Click"/>
|
||||||
<Slider HorizontalAlignment="Left" Margin="10,406,0,0" VerticalAlignment="Top" Width="120" Maximum="100" SmallChange="1"/>
|
<Slider HorizontalAlignment="Left" Margin="10,406,0,0" VerticalAlignment="Top" Width="120" Maximum="100" SmallChange="1"/>
|
||||||
<Label Content="Epsilon (0.001 - 0.1%)" HorizontalAlignment="Left" Margin="8,375,0,0" VerticalAlignment="Top"/>
|
<Label Content="Epsilon (0.001 - 0.1%)" HorizontalAlignment="Left" Margin="8,375,0,0" VerticalAlignment="Top"/>
|
||||||
<CheckBox x:Name="Triangulate" Content="Triangulate" HorizontalAlignment="Left" Margin="10,346,0,0" VerticalAlignment="Top"/>
|
<CheckBox x:Name="Triangulate" Content="Triangulate" HorizontalAlignment="Left" Margin="10,346,0,0" VerticalAlignment="Top"/>
|
||||||
|
<CheckBox x:Name="Scale" Content="Scale" HorizontalAlignment="Left" Margin="107,349,0,0" VerticalAlignment="Top"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
@@ -39,6 +39,7 @@ namespace opdracht2
|
|||||||
List<Polygon> buffer;
|
List<Polygon> buffer;
|
||||||
ListBox l;
|
ListBox l;
|
||||||
CheckBox triangulate;
|
CheckBox triangulate;
|
||||||
|
CheckBox scale;
|
||||||
PolygonManipulatie pm;
|
PolygonManipulatie pm;
|
||||||
JsonReader j;
|
JsonReader j;
|
||||||
public MainWindow()
|
public MainWindow()
|
||||||
@@ -53,7 +54,8 @@ namespace opdracht2
|
|||||||
c = (Canvas)this.FindName("someCanvas");
|
c = (Canvas)this.FindName("someCanvas");
|
||||||
CompositionTarget.Rendering += DoUpdates;
|
CompositionTarget.Rendering += DoUpdates;
|
||||||
l = (ListBox)this.FindName("lb");
|
l = (ListBox)this.FindName("lb");
|
||||||
triangulate = (CheckBox)this.FindName("triangulate");
|
triangulate = (CheckBox)this.FindName("Triangulate");
|
||||||
|
scale = (CheckBox)this.FindName("Scale");
|
||||||
Debug.Write("done");
|
Debug.Write("done");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,7 +161,7 @@ namespace opdracht2
|
|||||||
List<MultiPolygonPunten> mpps = new List<MultiPolygonPunten>();
|
List<MultiPolygonPunten> mpps = new List<MultiPolygonPunten>();
|
||||||
foreach (Object o in lb.SelectedItems)
|
foreach (Object o in lb.SelectedItems)
|
||||||
{
|
{
|
||||||
if (o.GetType().ToString() == "PolygonPunten") {
|
if (o.GetType().Name == "PolygonPunten" ) {
|
||||||
PolygonPunten p = (PolygonPunten)o;
|
PolygonPunten p = (PolygonPunten)o;
|
||||||
mpps.Add(p.ToMultiPolygonPunten());
|
mpps.Add(p.ToMultiPolygonPunten());
|
||||||
} else
|
} else
|
||||||
@@ -168,7 +170,8 @@ namespace opdracht2
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//peuker implementatie moet ook nog gebeuren, code is er al, maar wanneer moet deze aangeroepen worden
|
//peuker implementatie moet ook nog gebeuren, code is er al, maar wanneer moet deze aangeroepen worden
|
||||||
mpps = pm.ScaleMultiPolygons(mpps, 100, 100);
|
if (scale.IsChecked == true) mpps = pm.ScaleMultiPolygons(mpps, c.Width/2, c.Height/2, c.Width/2, c.Height/2);
|
||||||
|
|
||||||
foreach(MultiPolygonPunten mp in mpps)
|
foreach(MultiPolygonPunten mp in mpps)
|
||||||
{
|
{
|
||||||
if (triangulate.IsChecked == true) //kan blkbr ook null zijn, raar
|
if (triangulate.IsChecked == true) //kan blkbr ook null zijn, raar
|
||||||
@@ -190,36 +193,56 @@ namespace opdracht2
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (lb.SelectedItems.Count == 1)
|
||||||
{
|
{
|
||||||
switch (lb.SelectedItem.GetType().Name)
|
switch (lb.SelectedItem.GetType().Name)
|
||||||
{
|
{
|
||||||
case "MultiPolygonPunten":
|
case "MultiPolygonPunten":
|
||||||
Debug.WriteLine(lb.SelectedItem.GetType().Name);
|
Debug.WriteLine(lb.SelectedItem.GetType().Name);
|
||||||
c.Children.Clear();
|
c.Children.Clear();
|
||||||
MultiPolygonPunten mp = pm.ScaleMultiPolygon((MultiPolygonPunten)lb.SelectedItem, 100, 100);
|
MultiPolygonPunten mp = (MultiPolygonPunten)lb.SelectedItem;
|
||||||
|
if (scale.IsChecked == true) mp = pm.ScaleMultiPolygon(mp, c.Width / 2, c.Height / 2, c.Width / 2, c.Height / 2);
|
||||||
//hier ervoor zorgen dat scaling, triangulation etc gebeurt door gebruik van logica layer functies te callen
|
//hier ervoor zorgen dat scaling, triangulation etc gebeurt door gebruik van logica layer functies te callen
|
||||||
foreach (PolygonPunten pp in mp.PolygonPunten)
|
foreach (PolygonPunten pp in mp.PolygonPunten)
|
||||||
{
|
{
|
||||||
foreach (PolygonPunten ppd in pm.TriangulatePolygon(pp))
|
if(triangulate.IsChecked == true)
|
||||||
{
|
{
|
||||||
c.Children.Add(getPolygon(ppd));
|
foreach (PolygonPunten ppd in pm.TriangulatePolygon(pp))
|
||||||
|
{
|
||||||
|
c.Children.Add(getPolygon(ppd));
|
||||||
|
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
c.Children.Add(getPolygon(pp));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
foreach (Polygon po in getPolygon(mp))
|
|
||||||
{
|
|
||||||
//c.Children.Add(po);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "PolygonPunten":
|
case "PolygonPunten":
|
||||||
Debug.WriteLine(lb.SelectedItem.GetType().Name);
|
Debug.WriteLine(lb.SelectedItem.GetType().Name);
|
||||||
c.Children.Clear();
|
c.Children.Clear();
|
||||||
PolygonPunten p = pm.ScalePolygon((PolygonPunten)lb.SelectedItem, 100, 100);
|
PolygonPunten p = (PolygonPunten)lb.SelectedItem;
|
||||||
c.Children.Add(getPolygon(p));
|
if (scale.IsChecked == true) p = pm.ScalePolygon(p, c.Width / 2, c.Height / 2, c.Width / 2, c.Height / 2);
|
||||||
|
if (triangulate.IsChecked == true)
|
||||||
|
{
|
||||||
|
foreach(PolygonPunten pp in pm.TriangulatePolygon(p))
|
||||||
|
{
|
||||||
|
c.Children.Add(getPolygon(pp));
|
||||||
|
}
|
||||||
|
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
c.Children.Add(getPolygon(p));
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
c.Children.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "05D515F609A8E8D2AFAF26E4ADD6AF1BBA9D6ED8"
|
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E92F073CEE6714AF0A5CB02DB34D14A9EC5D8B57"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
@@ -50,6 +50,14 @@ namespace opdracht2 {
|
|||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 12 "..\..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Media.TransformGroup someTransformGroup;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 20 "..\..\..\MainWindow.xaml"
|
#line 20 "..\..\..\MainWindow.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.ListBox lb;
|
internal System.Windows.Controls.ListBox lb;
|
||||||
@@ -65,6 +73,22 @@ namespace opdracht2 {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 24 "..\..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.CheckBox Triangulate;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 25 "..\..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.CheckBox Scale;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
private bool _contentLoaded;
|
private bool _contentLoaded;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -99,6 +123,9 @@ namespace opdracht2 {
|
|||||||
this.someCanvas = ((System.Windows.Controls.Canvas)(target));
|
this.someCanvas = ((System.Windows.Controls.Canvas)(target));
|
||||||
return;
|
return;
|
||||||
case 2:
|
case 2:
|
||||||
|
this.someTransformGroup = ((System.Windows.Media.TransformGroup)(target));
|
||||||
|
return;
|
||||||
|
case 3:
|
||||||
this.lb = ((System.Windows.Controls.ListBox)(target));
|
this.lb = ((System.Windows.Controls.ListBox)(target));
|
||||||
|
|
||||||
#line 20 "..\..\..\MainWindow.xaml"
|
#line 20 "..\..\..\MainWindow.xaml"
|
||||||
@@ -107,7 +134,7 @@ namespace opdracht2 {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 3:
|
case 4:
|
||||||
this.LoadFile = ((System.Windows.Controls.Button)(target));
|
this.LoadFile = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 21 "..\..\..\MainWindow.xaml"
|
#line 21 "..\..\..\MainWindow.xaml"
|
||||||
@@ -116,6 +143,12 @@ namespace opdracht2 {
|
|||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
|
case 5:
|
||||||
|
this.Triangulate = ((System.Windows.Controls.CheckBox)(target));
|
||||||
|
return;
|
||||||
|
case 6:
|
||||||
|
this.Scale = ((System.Windows.Controls.CheckBox)(target));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
this._contentLoaded = true;
|
this._contentLoaded = true;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
// Updated by XamlIntelliSenseFileGenerator 7/30/2020 9:49:33 AM
|
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E92F073CEE6714AF0A5CB02DB34D14A9EC5D8B57"
|
||||||
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "05D515F609A8E8D2AFAF26E4ADD6AF1BBA9D6ED8"
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
@@ -34,39 +33,61 @@ using System.Windows.Shell;
|
|||||||
using opdracht2;
|
using opdracht2;
|
||||||
|
|
||||||
|
|
||||||
namespace opdracht2
|
namespace opdracht2 {
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// MainWindow
|
/// MainWindow
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector
|
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
#line 10 "..\..\..\MainWindow.xaml"
|
#line 10 "..\..\..\MainWindow.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.Canvas someCanvas;
|
internal System.Windows.Controls.Canvas someCanvas;
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 20 "..\..\..\MainWindow.xaml"
|
#line 12 "..\..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Media.TransformGroup someTransformGroup;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 20 "..\..\..\MainWindow.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.ListBox lb;
|
internal System.Windows.Controls.ListBox lb;
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
#line 21 "..\..\..\MainWindow.xaml"
|
#line 21 "..\..\..\MainWindow.xaml"
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
internal System.Windows.Controls.Button LoadFile;
|
internal System.Windows.Controls.Button LoadFile;
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 24 "..\..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.CheckBox Triangulate;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
|
||||||
|
#line 25 "..\..\..\MainWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.CheckBox Scale;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
private bool _contentLoaded;
|
private bool _contentLoaded;
|
||||||
|
|
||||||
@@ -75,20 +96,18 @@ namespace opdracht2
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.8.1.0")]
|
||||||
public void InitializeComponent()
|
public void InitializeComponent() {
|
||||||
{
|
if (_contentLoaded) {
|
||||||
if (_contentLoaded)
|
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_contentLoaded = true;
|
_contentLoaded = true;
|
||||||
System.Uri resourceLocater = new System.Uri("/opdracht2;component/mainwindow.xaml", System.UriKind.Relative);
|
System.Uri resourceLocater = new System.Uri("/opdracht2;component/mainwindow.xaml", System.UriKind.Relative);
|
||||||
|
|
||||||
#line 1 "..\..\..\MainWindow.xaml"
|
#line 1 "..\..\..\MainWindow.xaml"
|
||||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
}
|
}
|
||||||
|
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
@@ -97,36 +116,42 @@ namespace opdracht2
|
|||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
||||||
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
|
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
||||||
{
|
|
||||||
switch (connectionId)
|
switch (connectionId)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
this.someCanvas = ((System.Windows.Controls.Canvas)(target));
|
this.someCanvas = ((System.Windows.Controls.Canvas)(target));
|
||||||
return;
|
return;
|
||||||
case 2:
|
case 2:
|
||||||
this.lb = ((System.Windows.Controls.ListBox)(target));
|
this.someTransformGroup = ((System.Windows.Media.TransformGroup)(target));
|
||||||
|
return;
|
||||||
|
case 3:
|
||||||
|
this.lb = ((System.Windows.Controls.ListBox)(target));
|
||||||
|
|
||||||
#line 20 "..\..\..\MainWindow.xaml"
|
#line 20 "..\..\..\MainWindow.xaml"
|
||||||
this.lb.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lb_SelectionChanged);
|
this.lb.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lb_SelectionChanged);
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
case 3:
|
case 4:
|
||||||
this.LoadFile = ((System.Windows.Controls.Button)(target));
|
this.LoadFile = ((System.Windows.Controls.Button)(target));
|
||||||
|
|
||||||
#line 21 "..\..\..\MainWindow.xaml"
|
#line 21 "..\..\..\MainWindow.xaml"
|
||||||
this.LoadFile.Click += new System.Windows.RoutedEventHandler(this.LoadFile_Click);
|
this.LoadFile.Click += new System.Windows.RoutedEventHandler(this.LoadFile_Click);
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
#line hidden
|
#line hidden
|
||||||
return;
|
return;
|
||||||
|
case 5:
|
||||||
|
this.Triangulate = ((System.Windows.Controls.CheckBox)(target));
|
||||||
|
return;
|
||||||
|
case 6:
|
||||||
|
this.Scale = ((System.Windows.Controls.CheckBox)(target));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
this._contentLoaded = true;
|
this._contentLoaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal System.Windows.Controls.CheckBox Triangulate;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user