Skip to content

Add icons to single measurement table#1791

Merged
petebankhead merged 1 commit intoqupath:mainfrom
petebankhead:measurement-table-icons
Mar 10, 2025
Merged

Add icons to single measurement table#1791
petebankhead merged 1 commit intoqupath:mainfrom
petebankhead:measurement-table-icons

Conversation

@petebankhead
Copy link
Copy Markdown
Member

@petebankhead petebankhead commented Mar 10, 2025

The purpose is to:

  • Make classifications stand out more (with color)
  • Make it possible to distinguish measurements from the measurement list, from those calculated dynamically
    • This is important since those in the measurement list don't update automatically, but they are the only ones that can be used with interactive object classifiers at this time
  • Add a visual queue to 'Object type' to help distinguish between annotations, detections & TMA cores

The last of these is done by using the same icons used for show/hide in the toolbar. The hope is that this helps reinforce the association between object type and icon - and that cells/tiles are really subtypes of detection (because the icon is the same).

Note that the implementation is a bit messy because we don't currently have a way to query the type of a measurement from ObservableMeasurementTableData - so we rely on the names (keys). If/when this is refactored to reduce any JavaFX dependency, we should try to improve this; currently, it's not entirely robust, because someone could add measurements or metadata values with duplicate names. But I think that's an acceptable risk for now, because it would already be problematic when working with measurements, and it's not expected to occur in normal use.

Screenshot 2025-03-10 at 12 27 12

The purpose is to:
* Make classifications stand out more (with color)
* Make it possible to distinguish measurements from the measurement list, from those calculated dynamically
* Provide a visual queue to distinguish between annotations, detections & TMA cores

The last of these is done by using the same icons used for show/hide in the toolbar. The hope is that this helps reinforce the association between object type and icon.

Note that the implementation is a bit messy because we don't currently have a way to query the type of a measurement from `ObservableMeasurementTableData`. If/when this is refactored to reduce any JavaFX dependency, we should try to improve this; currently, it's not entirely robust, because someone *could* add measurements or metadata values with duplicate names.
@petebankhead petebankhead merged commit cdd4a18 into qupath:main Mar 10, 2025
@petebankhead petebankhead deleted the measurement-table-icons branch March 10, 2025 14:30
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.

1 participant