HomePhabricator
Diffusion MITK fe35a091a085

Add option to visualize point sets as fixed-size markers

Description

Add option to visualize point sets as fixed-size markers

Summary:

NOTE: This is a contribution by @Lafebre with an additional commit by me to fix a few things.
  • Added an option to render point set markers as fixed-size glyphs on the screen to improve visualization at very high zoom levels. When this option is turned on, marker sizes are interpreted in screen pixels rather than world coordinates.
  • Fix glyph scaling when switching back to non-fixed point sizes
    • Add the "Pointset.2D.fixed size on screen" property by default
    • Improve encapsulation by making GetScreenResolution() a local function
    • Add nullptr check to GetScreenResolution()

Fixes T28616.

Test Plan:
Tested manually with various point set shapes and sizes, zooming, panning, and resizing the windows.

If this Differential was accepted, we can add a reference screenshot to the MITK-Data repository and extent the rendering unit test.

Reviewers: O1 MITK Reviewer Group I, floca

Reviewed By: O1 MITK Reviewer Group I, floca

Subscribers: floca, Lafebre

Maniphest Tasks: T28616

Differential Revision: https://phabricator.mitk.org/D521

Details

Provenance
kislinskAuthored on Jul 20 2021, 4:23 AM
kislinskPushed on Jul 20 2021, 9:42 AM
Reviewer
O1: MITK Reviewer Group I
Differential Revision
Restricted Differential Revision
Parents
rMITK461a2db73b4e: Fix glyph scaling of selected glyphs
rMITK649973ed18dd: T28267 set colorbar placement to correct height
Branches
Unknown
Tags
Unknown
Tasks
T28616: Allow fixed-size point set markers in VTK mapper