[chronojump] Force sensor graph analyze general shows force, rfd max of selected AB. nice for png export
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Force sensor graph analyze general shows force, rfd max of selected AB. nice for png export
- Date: Fri, 13 Nov 2020 12:17:34 +0000 (UTC)
commit 6277ed46fc199221430ddf6213b3d6175017caa1
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Nov 13 13:16:52 2020 +0100
Force sensor graph analyze general shows force, rfd max of selected AB. nice for png export
src/gui/app1/forceSensorAnalyze.cs | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
---
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index 7a1ea87a..efbdd45e 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -1137,6 +1137,29 @@ public partial class ChronoJumpWindow
int textWidth = 1;
int textHeight = 1;
+ //this is nice in order to save the image having the most relevant of the set
+ //note max force is of all the set, BUT maxRFD is of last calculation done (moving the A or
B) in order to update fsAI.LastRFDMax
+ //so decide if use maxForce also of the AB interval
+ bool writeForceAndRFD = true;
+ if(writeForceAndRFD)
+ {
+ if(label_force_sensor_ai_force_max.Text != "")
+ {
+ layout_force_ai_text.SetMarkup("Max force: " +
label_force_sensor_ai_force_max.Text);
+ layout_force_ai_text.GetPixelSize(out textWidth, out textHeight);
+ force_sensor_ai_pixmap.DrawLayout (pen_black_force_ai,
+ xPxEnd - textWidth, 2, layout_force_ai_text);
+ }
+
+ if(label_force_sensor_ai_rfd_max.Text != "")
+ {
+ layout_force_ai_text.SetMarkup("Max RFD: " +
label_force_sensor_ai_rfd_max.Text);
+ layout_force_ai_text.GetPixelSize(out textWidth, out textHeight);
+ force_sensor_ai_pixmap.DrawLayout (pen_red_force_ai,
+ xPxEnd - textWidth, 2 + textHeight, layout_force_ai_text);
+ }
+ }
+
// 2b) draw horizontal 0 line on elastic, and Y right axis
if(fsAI.CalculedElasticPSAP)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]