Skip to content

Fix opacity updates#237

Merged
ChangLi27 merged 3 commits intomasterfrom
feature/fix_opacity_updates
Feb 26, 2026
Merged

Fix opacity updates#237
ChangLi27 merged 3 commits intomasterfrom
feature/fix_opacity_updates

Conversation

@ThomasKroes
Copy link
Contributor

No description provided.

Add a _currentDataset member to ScalarAction and wire up its dataChanged signal when a new source is selected. Previously connections could accumulate; the code now disconnects any existing dataset signal before connecting the new one and forwards updates via a lambda that calls sourceDataChanged(getCurrentDataset()).

Also update several parameter names in comments for clarity (variantMap, sourceSelectionIndex, offset).
Centralize dataset picking for scalar-driven properties by adding a DatasetPickerAction to ScalarAction and removing the separate point-size/opacity pickers from DatasetsAction. DatasetsAction no longer owns point size/opacity picker members; it instead reuses the ScalarAction pickers from the point plot settings and adjusts reset/connect logic accordingly (old filter code was commented out). ScalarAction now manages current dataset selection, connects dataset changes to emit sourceDataChanged and GUI name updates, and includes serialization for the new picker. ScatterplotPlugin was updated to listen to ScalarAction signals (sourceSelectionChanged/sourceDataChanged) for HUD updates and to refresh the scatter plot widget when scalar source data changes. Headers and getters were updated to reflect the new picker location.
@ThomasKroes ThomasKroes self-assigned this Feb 26, 2026
@ThomasKroes ThomasKroes added the bug Something isn't working label Feb 26, 2026
@ThomasKroes ThomasKroes linked an issue Feb 26, 2026 that may be closed by this pull request
Replace direct DatasetPickerAction additions for point size and opacity with LabelProxyAction wrappers (labels "Size" and "Opacity") and include actions/LabelProxyAction.h instead of QMenu. Remove the now-unused setupPointSizeDatasetPickerAction and setupPointOpacityDatasetPickerAction declarations and implementations, and clean up related filter/invalidation code. This simplifies the dataset picker UI wiring and removes dead/commented code in DatasetsAction.cpp/.h.
@ChangLi27 ChangLi27 merged commit 05df957 into master Feb 26, 2026
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opacity values do not update when opacity dataset data changed

2 participants