From 08b42e79421aaa9a6c4ca918a02df26d434093eb Mon Sep 17 00:00:00 2001 From: wienkop <uwe.wienkop@th-nuernberg.de> Date: Mon, 20 Mar 2017 09:07:24 +0100 Subject: [PATCH] =?UTF-8?q?RouteLength=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01GPS-Auswertung/CodeMap1.dgml | 376 +++++++++++++++++++++++++++++++++ 01GPS-Auswertung/Program.cs | 25 ++- 2 files changed, 400 insertions(+), 1 deletion(-) create mode 100644 01GPS-Auswertung/CodeMap1.dgml diff --git a/01GPS-Auswertung/CodeMap1.dgml b/01GPS-Auswertung/CodeMap1.dgml new file mode 100644 index 0000000..52edf47 --- /dev/null +++ b/01GPS-Auswertung/CodeMap1.dgml @@ -0,0 +1,376 @@ +<?xml version="1.0" encoding="utf-8"?> +<DirectedGraph DataVirtualized="True" Layout="Sugiyama" ZoomLevel="2" xmlns="http://schemas.microsoft.com/vs/2009/dgml"> + <Nodes> + <Node Id="(@1 @3 @7 Member=dist)" Category="CodeSchema_Field" Bounds="-181.128119569265,112.06905426501,56.1333333333333,25.96" CodeSchemaProperty_IsPrivate="True" DelayedCrossGroupLinksState="Fetched" Label="dist" /> + <Node Id="(@1 Namespace=::)" Category="CodeSchema_Namespace" Bounds="310.913943497402,-366.71493259879,62.1999999999999,25" DelayedChildNodesState="NotFetched" DelayedCrossGroupLinksState="Fetched" Group="Collapsed" Label="::" /> + <Node Id="@11" Category="CodeSchema_Method" Bounds="76.1602137640681,-201.71493259879,103.676666666667,25.96" CodeSchemaProperty_IsConstructor="True" CodeSchemaProperty_IsPublic="True" CodeSchemaProperty_IsSpecialName="True" DelayedCrossGroupLinksState="Fetched" Label="GpsManager" /> + <Node Id="@12" Category="CodeSchema_Method" Bounds="-3.40795936259826,0.186936571809682,86.71,25.96" CodeSchemaProperty_IsConstructor="True" CodeSchemaProperty_IsPublic="True" CodeSchemaProperty_IsSpecialName="True" DelayedCrossGroupLinksState="Fetched" Label="GpsPunkt" /> + <Node Id="@13" Category="CodeSchema_Method" Bounds="113.621504637402,0.186936571809682,56.48,25.96" CodeSchemaProperty_IsPublic="True" CodeSchemaProperty_IsStatic="True" DelayedCrossGroupLinksState="Fetched" Label="Dist" /> + <Node Id="@14" Category="CodeSchema_Method" Bounds="0.408707304068432,56.1106744918097,79.0766666666667,25.96" CodeSchemaProperty_IsPrivate="True" CodeSchemaProperty_IsStatic="True" DelayedCrossGroupLinksState="Fetched" Label="LL2UTM" /> + <Node Id="@15" Category="CodeSchema_Field" Bounds="-13.863119569265,-115.75493251779,73.7233333333333,25.96" CodeSchemaProperty_IsPrivate="True" DelayedCrossGroupLinksState="Fetched" Label="anzPos" /> + <Node Id="@16" Category="CodeSchema_Field" Bounds="-79.9913993625982,56.1106744918097,50,25.96" CodeSchemaProperty_IsPrivate="True" DelayedCrossGroupLinksState="Fetched" Label="dt" /> + <Node Id="@17" Category="CodeSchema_Method" Bounds="-100.011452902598,-191.71493264739,126.02,25.96" CodeSchemaProperty_IsPublic="True" DelayedCrossGroupLinksState="Fetched" Label="get_RouteLength" /> + <Node Id="@18" Category="CodeSchema_Field" Bounds="90.3035470974016,-115.75493259879,75.39,25.96" CodeSchemaProperty_IsPrivate="True" DelayedCrossGroupLinksState="Fetched" Label="gpspos" /> + <Node Id="@19" Category="CodeSchema_Field" Bounds="-181.128119569265,56.1090542650097,70.1633333333333,25.96" CodeSchemaProperty_IsPrivate="True" DelayedCrossGroupLinksState="Fetched" Label="hoehe" /> + <Node Id="@2" Category="CodeSchema_Assembly" Bounds="-241.088515969265,-406.71493297139,634.202459466666,604.6879744728" CodeSchemaProperty_StrongName="01GPS-Auswertung, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" DelayedChildNodesState="Fetched" DelayedCrossGroupLinksState="Fetched" FetchedChildrenCount="2" FilePath="$(3d918937-8f3e-4fcb-acf1-876729256e13.OutputPath)" Group="Expanded" Label="01GPS-Auswertung.exe" UseManualLocation="True" /> + <Node Id="@20" Category="CodeSchema_Property" Bounds="-120.011452902598,-231.71493271219,166.02,85.9600001296" DelayedChildNodesState="Fetched" DelayedCrossGroupLinksState="Fetched" FetchedChildrenCount="1" Group="Expanded" Label="RouteLength" /> + <Node Id="@21" Category="CodeSchema_Field" Bounds="109.885480637402,56.1106744918097,50,25.96" CodeSchemaProperty_IsPrivate="True" DelayedCrossGroupLinksState="Fetched" Label="x" /> + <Node Id="@22" Category="CodeSchema_Field" Bounds="190.953547097402,56.1090542650097,50,25.96" CodeSchemaProperty_IsPrivate="True" DelayedCrossGroupLinksState="Fetched" Label="y" /> + <Node Id="@4" Category="CodeSchema_Namespace" Bounds="-221.088515969265,-366.71493290659,502.002459466667,544.6879743432" DelayedChildNodesState="Fetched" DelayedCrossGroupLinksState="Fetched" FetchedChildrenCount="3" Group="Expanded" Label="_01GPS_Auswertung" /> + <Node Id="@6" Category="CodeSchema_Class" Bounds="-140.011452902598,-271.71493277699,339.848333333333,201.920000324" CodeSchemaProperty_IsInternal="True" DelayedChildNodesState="Fetched" DelayedCrossGroupLinksState="Fetched" FetchedChildrenCount="4" Group="Expanded" Label="GpsManager" /> + <Node Id="@8" Category="CodeSchema_Class" Bounds="-201.128119569265,-39.8509457349903,462.081666666667,197.88" CodeSchemaProperty_IsInternal="True" DelayedChildNodesState="Fetched" DelayedCrossGroupLinksState="Fetched" FetchedChildrenCount="8" Group="Expanded" Label="GpsPunkt" /> + <Node Id="@9" Category="CodeSchema_Class" Bounds="-23.3906195692651,-326.71493284179,106.606666666667,25" CodeSchemaProperty_IsInternal="True" DelayedChildNodesState="NotFetched" DelayedCrossGroupLinksState="Fetched" Group="Collapsed" Label="Program" /> + </Nodes> + <Links> + <Link Source="@11" Target="@12" Category="CodeSchema_Calls" Weight="1" /> + <Link Source="@11" Target="@15" Category="CodeSchema_FieldRead" Bounds="45.8175582885742,-175.754928588867,66.3259429931641,54.2988357543945" Weight="4"> + <Category Ref="CodeSchema_FieldWrite" /> + </Link> + <Link Source="@11" Target="@18" Category="CodeSchema_FieldRead" Bounds="127.998550415039,-175.754928588867,0,50.9999923706055" Weight="2"> + <Category Ref="CodeSchema_FieldWrite" /> + </Link> + <Link Source="@12" Target="@14" Category="CodeSchema_Calls" Bounds="39.9535484313965,26.1090545654297,0,21" Weight="1" /> + <Link Source="@12" Target="@16" Category="CodeSchema_FieldWrite" Bounds="-25.2567806243896,26.1090545654297,43.1749458312988,25.432315826416" Weight="1" /> + <Link Source="@12" Target="@19" Category="CodeSchema_FieldWrite" Bounds="-102.398910522461,25.7165927886963,100.513965964317,30.2406520843506" Weight="1" /> + <Link Source="@12" Target="@21" Category="CodeSchema_FieldRead" Bounds="61.9889297485352,26.1090545654297,43.1749420166016,25.432315826416" Weight="1" /> + <Link Source="@12" Target="@22" Category="CodeSchema_FieldRead" Bounds="80.697395324707,26.0837459564209,101.679252624512,32.329381942749" Weight="1" /> + <Link Source="@13" Target="@21" Category="CodeSchema_FieldRead" Bounds="137.694305419922,26.1090545654297,2.63557434082031,21.0695953369141" Weight="2" /> + <Link Source="@13" Target="@22" Category="CodeSchema_FieldRead" Bounds="159.117950439453,26.1090545654297,32.49267578125,24.5714836120605" Weight="2" /> + <Link Source="@13" Target="@8" Category="References" Bounds="141.953552246094,-53.350944519043,12.322265625,53.4999987781048" Weight="2" /> + <Link Source="@17" Target="@13" Category="CodeSchema_Calls" Bounds="-30.052476261861,11.7111257202335,43.8525032260457,357.88809737776" Weight="1" /> + <Link Source="@17" Target="@15" Category="CodeSchema_FieldRead" Bounds="32.747061330588,304.989077072485,86.3953022362636,64.610146025508" Weight="1" /> + <Link Source="@17" Target="@18" Category="CodeSchema_FieldRead" Bounds="18.6042504242308,308.335229422257,15.1685817931712,61.2639936757369" Weight="2" /> + <Link Source="@18" Target="@8" Category="References" Bounds="94.5102524706218,-89.8511149656217,25.625452700693,42.3025642867693" Weight="1" /> + <Link Source="@2" Target="(@1 Namespace=::)" Category="Contains" FetchingParent="@2" /> + <Link Source="@2" Target="@4" Category="Contains" FetchingParent="@2" /> + <Link Source="@20" Target="@17" Category="Contains" FetchingParent="@20" /> + <Link Source="@4" Target="@6" Category="Contains" FetchingParent="@4" /> + <Link Source="@4" Target="@8" Category="Contains" FetchingParent="@4" /> + <Link Source="@4" Target="@9" Category="Contains" FetchingParent="@4" /> + <Link Source="@6" Target="@11" Category="Contains" FetchingParent="@6" /> + <Link Source="@6" Target="@15" Category="Contains" FetchingParent="@6" /> + <Link Source="@6" Target="@18" Category="Contains" FetchingParent="@6" /> + <Link Source="@6" Target="@20" Category="Contains" FetchingParent="@6" /> + <Link Source="@8" Target="(@1 @3 @7 Member=dist)" Category="Contains" FetchingParent="@8" /> + <Link Source="@8" Target="@12" Category="Contains" FetchingParent="@8" /> + <Link Source="@8" Target="@13" Category="Contains" FetchingParent="@8" /> + <Link Source="@8" Target="@14" Category="Contains" FetchingParent="@8" /> + <Link Source="@8" Target="@16" Category="Contains" FetchingParent="@8" /> + <Link Source="@8" Target="@19" Category="Contains" FetchingParent="@8" /> + <Link Source="@8" Target="@21" Category="Contains" FetchingParent="@8" /> + <Link Source="@8" Target="@22" Category="Contains" FetchingParent="@8" /> + <Link Source="@9" Target="@11" Category="CodeSchema_Calls" Bounds="39.683747016616,-215.33129573499,72.6258578758178,92.9096442498563" IsSourceVirtualized="True" Weight="1" /> + <Link Source="@9" Target="@17" Category="CodeSchema_Calls" Bounds="-26.6050714025601,-215.33129573499,50.3439939709097,101.930872730643" IsSourceVirtualized="True" Weight="1" /> + </Links> + <Categories> + <Category Id="CodeSchema_Assembly" Label="Assembly" BasedOn="File" CanBeDataDriven="True" DefaultAction="Microsoft.Contains" Icon="CodeSchema_Assembly" NavigationActionLabel="Assemblies" /> + <Category Id="CodeSchema_Calls" Label="Calls" CanBeDataDriven="True" CanLinkedNodesBeDataDriven="True" IncomingActionLabel="Called By" OutgoingActionLabel="Calls" /> + <Category Id="CodeSchema_Class" Label="Class" BasedOn="CodeSchema_Type" CanBeDataDriven="True" DefaultAction="Node:Both:CodeSchema_Member" Icon="CodeSchema_Class" NavigationActionLabel="Classes" /> + <Category Id="CodeSchema_Field" Label="Field" BasedOn="CodeSchema_Member" CanBeDataDriven="True" DefaultAction="Microsoft.Contains" Icon="CodeSchema_Field" NavigationActionLabel="Fields" /> + <Category Id="CodeSchema_FieldRead" Label="Field Read" BasedOn="CodeSchema_FieldReference" CanBeDataDriven="True" CanLinkedNodesBeDataDriven="True" IncomingActionLabel="Read By" OutgoingActionLabel="Reads Fields" /> + <Category Id="CodeSchema_FieldReference" Label="Field Reference" CanBeDataDriven="True" CanLinkedNodesBeDataDriven="True" IncomingActionLabel="Referenced By" OutgoingActionLabel="References Fields" /> + <Category Id="CodeSchema_FieldWrite" Label="Field Write" BasedOn="CodeSchema_FieldReference" CanBeDataDriven="True" CanLinkedNodesBeDataDriven="True" IncomingActionLabel="Written By" OutgoingActionLabel="Writes Fields" /> + <Category Id="CodeSchema_Member" Label="Member" CanBeDataDriven="True" DefaultAction="Microsoft.Contains" Icon="CodeSchema_Field" NavigationActionLabel="Members" /> + <Category Id="CodeSchema_Method" Label="Method" BasedOn="CodeSchema_Member" CanBeDataDriven="True" DefaultAction="Link:Forward:CodeSchema_Calls" Icon="CodeSchema_Method" NavigationActionLabel="Methods" /> + <Category Id="CodeSchema_Namespace" Label="Namespace" CanBeDataDriven="True" DefaultAction="Node:Both:CodeSchema_Type" Icon="CodeSchema_Namespace" NavigationActionLabel="Namespaces" /> + <Category Id="CodeSchema_Property" Label="Property" BasedOn="CodeSchema_Member" CanBeDataDriven="True" DefaultAction="Microsoft.Contains" Icon="CodeSchema_Property" NavigationActionLabel="Properties" /> + <Category Id="CodeSchema_Type" Label="Type" CanBeDataDriven="True" DefaultAction="Node:Both:CodeSchema_Member" Icon="CodeSchema_Class" NavigationActionLabel="Types" /> + <Category Id="Contains" Label="Contains" Description="Whether the source of the link contains the target object" CanBeDataDriven="False" CanLinkedNodesBeDataDriven="True" IncomingActionLabel="Contained By" IsContainment="True" OutgoingActionLabel="Contains" /> + <Category Id="File" Label="File" CanBeDataDriven="True" DefaultAction="Microsoft.Contains" Icon="File" NavigationActionLabel="Files" /> + <Category Id="References" Label="References" CanBeDataDriven="True" CanLinkedNodesBeDataDriven="True" IncomingActionLabel="Referenced By" OutgoingActionLabel="References" /> + </Categories> + <Properties> + <Property Id="Bounds" DataType="System.Windows.Rect" /> + <Property Id="CanBeDataDriven" Label="CanBeDataDriven" Description="CanBeDataDriven" DataType="System.Boolean" /> + <Property Id="CanLinkedNodesBeDataDriven" Label="CanLinkedNodesBeDataDriven" Description="CanLinkedNodesBeDataDriven" DataType="System.Boolean" /> + <Property Id="CodeSchemaProperty_IsConstructor" Label="Is Constructor" Description="Flag to indicate the method is a constructor" DataType="System.Boolean" /> + <Property Id="CodeSchemaProperty_IsInternal" Label="Is Internal" Description="Flag to indicate the method is 'Internal'" DataType="System.Boolean" /> + <Property Id="CodeSchemaProperty_IsPrivate" Label="Is Private" Description="Flag to indicate the scope is Private" DataType="System.Boolean" /> + <Property Id="CodeSchemaProperty_IsPublic" Label="Is Public" Description="Flag to indicate the scope is Public" DataType="System.Boolean" /> + <Property Id="CodeSchemaProperty_IsSpecialName" Label="Is Special Name" Description="Flag to indicate the method is treated in a special way by some compilers" DataType="System.Boolean" /> + <Property Id="CodeSchemaProperty_IsStatic" Label="Is Static" Description="Flag to indicate the member is a static member" DataType="System.Boolean" /> + <Property Id="CodeSchemaProperty_StrongName" Label="StrongName" Description="StrongName" DataType="System.String" /> + <Property Id="DataVirtualized" Label="Data Virtualized" Description="If true, the graph can contain nodes and links that represent data for virtualized nodes/links (i.e. not actually created in the graph)." DataType="System.Boolean" /> + <Property Id="DefaultAction" Label="DefaultAction" Description="DefaultAction" DataType="System.String" /> + <Property Id="DelayedChildNodesState" Label="Delayed Child Nodes State" Description="Unspecified if the delayed child nodes state is not specified. NotFetched if the group contains child nodes that are not fetched into the graph yet. Fetched if the group has all its delayed child nodes already fetched." DataType="Microsoft.VisualStudio.GraphModel.DelayedDataState" /> + <Property Id="DelayedCrossGroupLinksState" Label="Delayed Cross-Group Links State" Description="Unspecified if the delayed cross-group links state is not specified. NotFetched if delayed cross-group links on this node are not fetched into the graph yet. Fetched if all delayed cross-group links have already fetched." DataType="Microsoft.VisualStudio.GraphModel.DelayedDataState" /> + <Property Id="Expression" DataType="System.String" /> + <Property Id="FetchedChildrenCount" DataType="System.Int32" /> + <Property Id="FetchingParent" DataType="Microsoft.VisualStudio.GraphModel.GraphNodeId" /> + <Property Id="FilePath" Label="File Path" Description="File Path" DataType="System.String" /> + <Property Id="Group" Label="Group" Description="Display the node as a group" DataType="Microsoft.VisualStudio.GraphModel.GraphGroupStyle" /> + <Property Id="GroupLabel" DataType="System.String" /> + <Property Id="Icon" Label="Icon" Description="Icon" DataType="System.String" /> + <Property Id="IncomingActionLabel" Label="IncomingActionLabel" Description="IncomingActionLabel" DataType="System.String" /> + <Property Id="IsContainment" DataType="System.Boolean" /> + <Property Id="IsEnabled" DataType="System.Boolean" /> + <Property Id="IsSourceVirtualized" Label="Link Source Virtualized" Description="If true, the link source end contains data for virtualized nodes/links (i.e. not actually created in the graph)." DataType="System.Boolean" /> + <Property Id="Label" Label="Label" Description="Displayable label of an Annotatable object" DataType="System.String" /> + <Property Id="Layout" DataType="System.String" /> + <Property Id="NavigationActionLabel" Label="NavigationActionLabel" Description="NavigationActionLabel" DataType="System.String" /> + <Property Id="OutgoingActionLabel" Label="OutgoingActionLabel" Description="OutgoingActionLabel" DataType="System.String" /> + <Property Id="TargetType" DataType="System.Type" /> + <Property Id="UseManualLocation" DataType="System.Boolean" /> + <Property Id="Value" DataType="System.String" /> + <Property Id="ValueLabel" DataType="System.String" /> + <Property Id="Visibility" Label="Visibility" Description="Defines whether a node in the graph is visible or not" DataType="System.Windows.Visibility" /> + <Property Id="Weight" Label="Weight" Description="Weight" DataType="System.Double" /> + <Property Id="ZoomLevel" DataType="System.String" /> + </Properties> + <QualifiedNames> + <Name Id="Assembly" Label="Assembly" ValueType="Uri" /> + <Name Id="Member" Label="Member" ValueType="System.Object" /> + <Name Id="Name" Label="Name" ValueType="System.String" /> + <Name Id="Namespace" Label="Namespace" ValueType="System.String" /> + <Name Id="OverloadingParameters" Label="Parameter" ValueType="Microsoft.VisualStudio.GraphModel.GraphNodeIdCollection" Formatter="NameValueNoEscape" /> + <Name Id="ParamKind" Label="Parameter Kind" ValueType="Microsoft.VisualStudio.GraphModel.CodeSchema.ParamKind" /> + <Name Id="Type" Label="Type" ValueType="System.Object" /> + </QualifiedNames> + <IdentifierAliases> + <Alias n="1" Uri="Assembly=$(3d918937-8f3e-4fcb-acf1-876729256e13.OutputPathUri)" /> + <Alias n="2" Id="(@1)" /> + <Alias n="3" Id="Namespace=_01GPS_Auswertung" /> + <Alias n="4" Id="(@1 @3)" /> + <Alias n="5" Id="Type=GpsManager" /> + <Alias n="6" Id="(@1 @3 @5)" /> + <Alias n="7" Id="Type=GpsPunkt" /> + <Alias n="8" Id="(@1 @3 @7)" /> + <Alias n="9" Id="(@1 @3 Type=Program)" /> + <Alias n="10" Uri="Assembly=$(FxReferenceAssembliesUri)/.NETFramework/v4.5.2/mscorlib.dll" /> + <Alias n="11" Id="(@1 @3 @5 Member=(Name=.ctor OverloadingParameters=[(@10 Namespace=System Type=String)]))" /> + <Alias n="12" Id="(@1 @3 @7 Member=(Name=.ctor OverloadingParameters=[(@10 Namespace=System Type=String)]))" /> + <Alias n="13" Id="(@1 @3 @7 Member=(Name=Dist OverloadingParameters=[@8,@8]))" /> + <Alias n="14" Id="(@1 @3 @7 Member=(Name=LL2UTM OverloadingParameters=[(@10 Namespace=System Type=Double),(@10 Namespace=System Type=Double),(@10 Namespace=System Type=Double ParamKind=Ref),(@10 Namespace=System Type=Double ParamKind=Ref)]))" /> + <Alias n="15" Id="(@1 @3 @5 Member=anzPos)" /> + <Alias n="16" Id="(@1 @3 @7 Member=dt)" /> + <Alias n="17" Id="(@1 @3 @5 Member=get_RouteLength)" /> + <Alias n="18" Id="(@1 @3 @5 Member=gpspos)" /> + <Alias n="19" Id="(@1 @3 @7 Member=hoehe)" /> + <Alias n="20" Id="(@1 @3 @5 Member=RouteLength)" /> + <Alias n="21" Id="(@1 @3 @7 Member=x)" /> + <Alias n="22" Id="(@1 @3 @7 Member=y)" /> + </IdentifierAliases> + <Styles> + <Style TargetType="Node" GroupLabel="Results" ValueLabel="True"> + <Condition Expression="HasCategory('QueryResult')" /> + <Setter Property="Background" Value="#FFBCFFBE" /> + </Style> + <Style TargetType="Node" GroupLabel="Test Project" ValueLabel="Test Project"> + <Condition Expression="HasCategory('CodeMap_TestProject')" /> + <Setter Property="Icon" Value="CodeMap_TestProject" /> + <Setter Property="Background" Value="#FF307A69" /> + </Style> + <Style TargetType="Node" GroupLabel="Web Project" ValueLabel="Web Project"> + <Condition Expression="HasCategory('CodeMap_WebProject')" /> + <Setter Property="Icon" Value="CodeMap_WebProject" /> + </Style> + <Style TargetType="Node" GroupLabel="Windows Store Project" ValueLabel="Windows Store Project"> + <Condition Expression="HasCategory('CodeMap_WindowsStoreProject')" /> + <Setter Property="Icon" Value="CodeMap_WindowsStoreProject" /> + </Style> + <Style TargetType="Node" GroupLabel="Phone Project" ValueLabel="Phone Project"> + <Condition Expression="HasCategory('CodeMap_PhoneProject')" /> + <Setter Property="Icon" Value="CodeMap_PhoneProject" /> + </Style> + <Style TargetType="Node" GroupLabel="Portable Library" ValueLabel="Portable Library"> + <Condition Expression="HasCategory('CodeMap_PortableLibraryProject')" /> + <Setter Property="Icon" Value="CodeMap_PortableLibraryProject" /> + </Style> + <Style TargetType="Node" GroupLabel="WPF Project" ValueLabel="WPF Project"> + <Condition Expression="HasCategory('CodeMap_WpfProject')" /> + <Setter Property="Icon" Value="CodeMap_WpfProject" /> + </Style> + <Style TargetType="Node" GroupLabel="VSIX Project" ValueLabel="VSIX Project"> + <Condition Expression="HasCategory('CodeMap_VsixProject')" /> + <Setter Property="Icon" Value="CodeMap_VsixProject" /> + </Style> + <Style TargetType="Node" GroupLabel="Modeling Project" ValueLabel="Modeling Project"> + <Condition Expression="HasCategory('CodeMap_ModelingProject')" /> + <Setter Property="Icon" Value="CodeMap_ModelingProject" /> + </Style> + <Style TargetType="Node" GroupLabel="Assembly" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Assembly')" /> + <Setter Property="Background" Value="#FF094167" /> + <Setter Property="Stroke" Value="#FF094167" /> + <Setter Property="Icon" Value="CodeSchema_Assembly" /> + </Style> + <Style TargetType="Node" GroupLabel="Namespace" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Namespace')" /> + <Setter Property="Background" Value="#FF0E619A" /> + <Setter Property="Stroke" Value="#FF0E619A" /> + <Setter Property="Icon" Value="CodeSchema_Namespace" /> + </Style> + <Style TargetType="Node" GroupLabel="Interface" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Interface')" /> + <Setter Property="Background" Value="#FF1382CE" /> + <Setter Property="Stroke" Value="#FF1382CE" /> + <Setter Property="Icon" Value="CodeSchema_Interface" /> + </Style> + <Style TargetType="Node" GroupLabel="Struct" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Struct')" /> + <Setter Property="Background" Value="#FF1382CE" /> + <Setter Property="Stroke" Value="#FF1382CE" /> + <Setter Property="Icon" Value="CodeSchema_Struct" /> + </Style> + <Style TargetType="Node" GroupLabel="Enumeration" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Enum')" /> + <Setter Property="Background" Value="#FF1382CE" /> + <Setter Property="Stroke" Value="#FF1382CE" /> + <Setter Property="Icon" Value="CodeSchema_Enum" /> + <Setter Property="LayoutSettings" Value="List" /> + </Style> + <Style TargetType="Node" GroupLabel="Delegate" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Delegate')" /> + <Setter Property="Background" Value="#FF1382CE" /> + <Setter Property="Stroke" Value="#FF1382CE" /> + <Setter Property="Icon" Value="CodeSchema_Delegate" /> + </Style> + <Style TargetType="Node" GroupLabel="Class" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Type')" /> + <Setter Property="Background" Value="#FF1382CE" /> + <Setter Property="Stroke" Value="#FF1382CE" /> + <Setter Property="Icon" Value="CodeSchema_Class" /> + </Style> + <Style TargetType="Node" GroupLabel="Property" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Property')" /> + <Setter Property="Background" Value="#FFE0E0E0" /> + <Setter Property="Stroke" Value="#FFE0E0E0" /> + <Setter Property="Icon" Value="CodeSchema_Property" /> + </Style> + <Style TargetType="Node" GroupLabel="Method" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Method') Or HasCategory('CodeSchema_CallStackUnresolvedMethod')" /> + <Setter Property="Background" Value="#FFE0E0E0" /> + <Setter Property="Stroke" Value="#FFE0E0E0" /> + <Setter Property="Icon" Value="CodeSchema_Method" /> + <Setter Property="LayoutSettings" Value="List" /> + </Style> + <Style TargetType="Node" GroupLabel="Event" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Event')" /> + <Setter Property="Background" Value="#FFE0E0E0" /> + <Setter Property="Stroke" Value="#FFE0E0E0" /> + <Setter Property="Icon" Value="CodeSchema_Event" /> + </Style> + <Style TargetType="Node" GroupLabel="Field" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Field')" /> + <Setter Property="Background" Value="#FFE0E0E0" /> + <Setter Property="Stroke" Value="#FFE0E0E0" /> + <Setter Property="Icon" Value="CodeSchema_Field" /> + </Style> + <Style TargetType="Node" GroupLabel="Out Parameter" ValueLabel="Has category"> + <Condition Expression="CodeSchemaProperty_IsOut = 'True'" /> + <Setter Property="Icon" Value="CodeSchema_OutParameter" /> + </Style> + <Style TargetType="Node" GroupLabel="Parameter" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_Parameter')" /> + <Setter Property="Icon" Value="CodeSchema_Parameter" /> + </Style> + <Style TargetType="Node" GroupLabel="Local Variable" ValueLabel="Has category"> + <Condition Expression="HasCategory('CodeSchema_LocalExpression')" /> + <Setter Property="Icon" Value="CodeSchema_LocalExpression" /> + </Style> + <Style TargetType="Node" GroupLabel="Externals" ValueLabel="Has category"> + <Condition Expression="HasCategory('Externals')" /> + <Setter Property="Background" Value="#FF424242" /> + <Setter Property="Stroke" Value="#FF424242" /> + </Style> + <Style TargetType="Link" GroupLabel="Inherits From" ValueLabel="True"> + <Condition Expression="HasCategory('InheritsFrom')" /> + <Setter Property="Stroke" Value="#FF00A600" /> + <Setter Property="StrokeDashArray" Value="2 0" /> + <Setter Property="DrawArrow" Value="true" /> + </Style> + <Style TargetType="Link" GroupLabel="Implements" ValueLabel="True"> + <Condition Expression="HasCategory('Implements')" /> + <Setter Property="Stroke" Value="#8000A600" /> + <Setter Property="StrokeDashArray" Value="2 2" /> + <Setter Property="DrawArrow" Value="true" /> + </Style> + <Style TargetType="Link" GroupLabel="Calls" ValueLabel="True"> + <Condition Expression="HasCategory('CodeSchema_Calls')" /> + <Setter Property="Stroke" Value="#FFFF00FF" /> + <Setter Property="StrokeDashArray" Value="2 0" /> + <Setter Property="DrawArrow" Value="true" /> + </Style> + <Style TargetType="Link" GroupLabel="Function Pointer" ValueLabel="True"> + <Condition Expression="HasCategory('CodeSchema_FunctionPointer')" /> + <Setter Property="Stroke" Value="#FFFF00FF" /> + <Setter Property="StrokeDashArray" Value="2 2" /> + <Setter Property="DrawArrow" Value="true" /> + </Style> + <Style TargetType="Link" GroupLabel="Field Read" ValueLabel="True"> + <Condition Expression="HasCategory('CodeSchema_FieldRead')" /> + <Setter Property="Stroke" Value="#FF00AEEF" /> + <Setter Property="StrokeDashArray" Value="2 2" /> + <Setter Property="DrawArrow" Value="true" /> + </Style> + <Style TargetType="Link" GroupLabel="Field Write" ValueLabel="True"> + <Condition Expression="HasCategory('CodeSchema_FieldWrite')" /> + <Setter Property="Stroke" Value="#FF00AEEF" /> + <Setter Property="DrawArrow" Value="true" /> + <Setter Property="IsHidden" Value="false" /> + </Style> + <Style TargetType="Link" GroupLabel="Inherits From" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="HasCategory('InheritsFrom') And Target.HasCategory('CodeSchema_Class')" /> + <Setter Property="TargetDecorator" Value="OpenArrow" /> + </Style> + <Style TargetType="Link" GroupLabel="Implements" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="HasCategory('Implements') And Target.HasCategory('CodeSchema_Interface')" /> + <Setter Property="TargetDecorator" Value="OpenArrow" /> + </Style> + <Style TargetType="Link" GroupLabel="Comment Link" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="Source.HasCategory('Comment')" /> + <Setter Property="Stroke" Value="#FFE5C365" /> + </Style> + <Style TargetType="Node" GroupLabel="Cursor Location Changed" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="IsCursorLocation" /> + <Setter Property="IndicatorWest" Value="WestIndicator" /> + </Style> + <Style TargetType="Node" GroupLabel="Disabled Breakpoint Location Changed" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="DisabledBreakpointCount" /> + <Setter Property="IndicatorWest" Value="WestIndicator" /> + </Style> + <Style TargetType="Node" GroupLabel="Enabled Breakpoint Location Changed" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="EnabledBreakpointCount" /> + <Setter Property="IndicatorWest" Value="WestIndicator" /> + </Style> + <Style TargetType="Node" GroupLabel="Instruction Pointer Location Changed" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="IsInstructionPointerLocation" /> + <Setter Property="IndicatorWest" Value="WestIndicator" /> + </Style> + <Style TargetType="Node" GroupLabel="Current Callstack Changed" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="IsCurrentCallstackFrame" /> + <Setter Property="IndicatorWest" Value="WestIndicator" /> + </Style> + <Style TargetType="Link" GroupLabel="Return" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="HasCategory('CodeSchema_ReturnTypeLink')" /> + </Style> + <Style TargetType="Link" GroupLabel="References" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="HasCategory('References')" /> + </Style> + <Style TargetType="Link" GroupLabel="Uses Attribute" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="HasCategory('CodeSchema_AttributeUse')" /> + </Style> + <Style TargetType="Node" GroupLabel="Solution Folder" ValueLabel="True" Visibility="Hidden"> + <Condition Expression="HasCategory('CodeMap_SolutionFolder')" /> + <Setter Property="Background" Value="#FFDEBA83" /> + </Style> + <Style TargetType="Link" GroupLabel="Project Reference" ValueLabel="Project Reference"> + <Condition Expression="HasCategory('CodeMap_ProjectReference')" /> + <Setter Property="Stroke" Value="#9A9A9A" /> + <Setter Property="StrokeDashArray" Value="2 2" /> + <Setter Property="DrawArrow" Value="true" /> + </Style> + <Style TargetType="Link" GroupLabel="External Reference" ValueLabel="External Reference"> + <Condition Expression="HasCategory('CodeMap_ExternalReference')" /> + <Setter Property="Stroke" Value="#9A9A9A" /> + <Setter Property="StrokeDashArray" Value="2 2" /> + <Setter Property="DrawArrow" Value="true" /> + </Style> + </Styles> + <Paths> + <Path Id="3d918937-8f3e-4fcb-acf1-876729256e13.OutputPath" Value="D:\Dokumente\Visual Studio Projects\Repos\Prog2-SS2017-Wienkop\01GPS-Auswertung\01GPS-Auswertung\bin\Debug\01GPS-Auswertung.exe" /> + <Path Id="3d918937-8f3e-4fcb-acf1-876729256e13.OutputPathUri" Value="file:///D:/Dokumente/Visual Studio Projects/Repos/Prog2-SS2017-Wienkop/01GPS-Auswertung/01GPS-Auswertung/bin/Debug/01GPS-Auswertung.exe" /> + <Path Id="FxReferenceAssemblies" Value="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework" /> + <Path Id="FxReferenceAssembliesUri" Value="file:///C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework" /> + </Paths> +</DirectedGraph> \ No newline at end of file diff --git a/01GPS-Auswertung/Program.cs b/01GPS-Auswertung/Program.cs index e06f8ac..f0f437d 100644 --- a/01GPS-Auswertung/Program.cs +++ b/01GPS-Auswertung/Program.cs @@ -11,7 +11,7 @@ namespace _01GPS_Auswertung { private double x, y, hoehe; private DateTime dt; - private double dist; + //private double dist; public GpsPunkt(string log) { @@ -88,6 +88,19 @@ namespace _01GPS_Auswertung if (Lat < 0) UTMNorthing += 10000000.0; //10000000 meter offset for southern hemisphere } + + public static double GpsDistance(GpsPunkt p1, GpsPunkt p2) + { + double dx = p1.x - p2.x; + double dy = p1.y - p2.y; + return Math.Sqrt(dx * dx + dy * dy); + } + public double GpsDistance2(GpsPunkt p2) + { + double dx = x - p2.x; + double dy = y - p2.y; + return Math.Sqrt(dx * dx + dy * dy); + } } class GpsManager @@ -95,6 +108,14 @@ namespace _01GPS_Auswertung GpsPunkt[] gpspos = new GpsPunkt[1000]; int anzPos = 0; + public double RouteLength { + get + { + return GpsPunkt.GpsDistance(gpspos[0], gpspos[anzPos - 1]); + //return gpspos[0].GpsDistance(gpspos[anzPos - 1]); + } + } + public GpsManager(string name) { StreamReader sr = new StreamReader(name); @@ -109,6 +130,7 @@ namespace _01GPS_Auswertung gpspos[anzPos] = new GpsPunkt(zeile); anzPos++; } + sr.Close(); } } @@ -117,6 +139,7 @@ namespace _01GPS_Auswertung static void Main(string[] args) { GpsManager NReg = new GpsManager(@"..\..\GPS_Daten.txt"); + Console.WriteLine(NReg.RouteLength); } } } -- GitLab