Skip to content

Conversation

@keithel-qt
Copy link
Contributor

This optimizes drawing of the skyplot chart, and the tab in general.

Populate SkyPlot series data from Python

  • Populate the SkyPlot series data from Python, reducing round trip
    calls from QML into Python, back into QML again.
  • Make point labels show and hide synchronized with the enabling and
    disabling of the labels, as well as when series are hidden and shown.
  • Now just about all elements in the tab that reference series data are
    referencing that data directly from the series via all_series series
    list.

Small improvements to the Tracking Signals tab

  • Bound tab visibility to series length
  • Set the constant things in the series from QML instead of python.
    (width and use OpenGL)
  • Have timer triggered on start so there's less time before data is
    populated.

Use small checkboxes, improve check layout in skyplot

  • This improves the styling of the control checkboxes at the bottom of
    the Sky Plot tab, using the newer small checkboxes, and centering
    them.
  • This also does a little bit of improvement to when the labels and
    lagend are shown, by restarting the timer.

Define common rounded rect radius for legends

  • This defines a common rounded rectangle radius for chart legends in
    QML Constants, and makes SkyPlot chart legend use it for improved
    look.

* This defines a common rounded rectangle radius for chart legends in
  QML Constants, and makes SkyPlot chart legend use it for improved
  look.
* This improves the styling of the control checkboxes at the bottom of
  the Sky Plot tab, using the newer small checkboxes, and centering
  them.
* This also does a little bit of improvement to when the labels and
  lagend are shown, by restarting the timer.
* Bound tab visibility to series length
* Set the constant things in the series from QML instead of python.
  (width and use OpenGL)
* Have timer triggered on start so there's less time before data is
  populated.
* Populate the SkyPlot series data from Python, reducing round trip
  calls from QML into Python, back into QML again.
* Make point labels show and hide synchronized with the enabling and
  disabling of the labels, as well as when series are hidden and shown.
* Now just about all elements in the tab that reference series data are
  referencing that data directly from the series via all_series series
  list.
series.axisYRight = trackingSignalsYAxis;
series.width = Constants.commonChart.lineWidth;
// Color and useOpenGL will be set in Python with fill_all_series call.
series.useOpenGL = Globals.useOpenGL;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I decided it was silly I was pushing this down into Python to set.

id: trackingSignalsCheckboxes

Layout.fillWidth: true
Layout.preferredHeight: Constants.trackingSkyPlot.checkboxHeight
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this hardcoded space is too large now with the reduction of the size of the checkboxes. Either need to set to the anticipated size of the checkmarks or remove this line so it just uses the minimum necessary height.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed! Looks even better. Good catch.

@john-michaelburke
Copy link
Collaborator

That CI test that failed is flaky "realtime delay" so feel free to just rerun if you see this

* Remove extra explicit height specified in the TrackingSkyPlotTab
  checkbox row.
* Remove unused trackingSkyPlot constants from Constants.qml
@keithel-qt
Copy link
Contributor Author

That CI test that failed is flaky "realtime delay" so feel free to just rerun if you see this
Yeah - I looked at it and figured it was a flaky test.

@john-michaelburke john-michaelburke merged commit 66d1a90 into main Nov 10, 2021
@john-michaelburke john-michaelburke deleted the keithel-qt/tracking-skyplot-optimization branch November 10, 2021 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants