From 18f80a89db969a608870e1ec2ff4e8623bef4a03 Mon Sep 17 00:00:00 2001 From: David Shoemaker Date: Fri, 4 Oct 2019 12:24:43 -0700 Subject: [PATCH] Passive & Active tracing (#638) * Plumebd with data transfer * Getting mainpage to talk to getbitmap. moving share callbacks from mainpage to graphingcalculator * Trying to get bitmap from renderer. * work * Share worked * cleanups * Cleanups progressing * Share working, need loc for title string and user notification incase of a failure. Then add the equations key. * More cleanup, now using share icon image and resources for strings. Still need to do the graph equation key. * Change share to html based start. * Key working, with UL but going to try changing to table. * Fix a html formating error, generating a new UL for each equation. * Switched over to a table for equation key and have color block formating * Updates from PR feedback, using Graphing::IBitmap abstraction. * Update src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.h Fixed Co-Authored-By: Pepe Rivera * PR Updates. * Add variables to the graph key. * eod * Passive graph value tracing working. * Basic active tracing cursor working. * Move active tracing from graphingcalculator to grapher to save some hops. Also block tracking of the active tracing key's when in the EquationTextBox. * Active tracing working, need to put button on screen for activation. * Added active tracing control button (placeholder image) * Eod * Popup trace value now tracks the highlighted point. * Popup skined * PR Updates. * Update certificate thumbnail so VS2019 doesn't have a build error. * PR comments in process. * PR Updates * PR Updates, change tracing value to use tooltip static resource so we automatically change depending on system values. And changed text formatting of the value to be generic (x,y) value. * PR updates, changed how we detect who has focus so we don't eat keys when not in active tracing. * Additional filtering for the Key Up/Down in the grapher. --- .../GraphingCalculator.xaml | 56 +++-- .../GraphingCalculator.xaml.cpp | 97 +++++++-- .../GraphingCalculator.xaml.h | 9 +- .../CalculatorUnitTests.vcxproj | 4 + src/GraphControl/Control/Grapher.cpp | 199 ++++++++++++++++++ src/GraphControl/Control/Grapher.h | 173 +++++++++++---- .../DirectX/ActiveTracingPointRenderer.cpp | 78 +++++++ .../DirectX/ActiveTracingPointRenderer.h | 32 +++ src/GraphControl/DirectX/RenderMain.cpp | 146 ++++++++----- src/GraphControl/DirectX/RenderMain.h | 100 +++++++-- src/GraphControl/GraphControl.vcxproj | 2 + src/GraphControl/GraphControl.vcxproj.filters | 6 + 12 files changed, 742 insertions(+), 160 deletions(-) create mode 100644 src/GraphControl/DirectX/ActiveTracingPointRenderer.cpp create mode 100644 src/GraphControl/DirectX/ActiveTracingPointRenderer.h diff --git a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml index c7776f88..e71e8fa4 100644 --- a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml +++ b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml @@ -9,7 +9,8 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="using:CalculatorApp.ViewModel" DataContextChanged="GraphingCalculator_DataContextChanged" - mc:Ignorable="d"> + mc:Ignorable="d" + >