GRIP icon indicating copy to clipboard operation
GRIP copied to clipboard

Should previews be interactive?

Open SamCarlberg opened this issue 6 years ago • 6 comments
trafficstars

Thinking this would be useful mostly for filtering operations where the parameters aren't obvious.

Like hovering over a previewed contour could show its bounding box properties (cx, cy, w, h), area, solidity, etc.

@JLLeitschuh Thoughts?

SamCarlberg avatar Jan 22 '19 17:01 SamCarlberg

Can you elaborate on the question with more information or perhaps a drawing/sketch of what you're thinking here?

JLLeitschuh avatar Jan 22 '19 17:01 JLLeitschuh

Here's a gif of a quick implementation of showing a bounding box for a contour that's hovered over: grip-contour-boundingbox-preview

grip-contour-boundingbox-zoom

Imagine it also displaying the properties of the contour (size, center, area, etc) that I mentioned

SamCarlberg avatar Jan 22 '19 18:01 SamCarlberg

Would this information also be available as an output from the operation or would it be purely visual in the preview?

JLLeitschuh avatar Jan 22 '19 18:01 JLLeitschuh

It would only preview the operation's output. The GIFs above use the width, height, and center point of the contour, all of which are included in the ContoursReport output of the operation

SamCarlberg avatar Jan 22 '19 19:01 SamCarlberg

Okay, this sounds like a good idea, go for it if you want.

JLLeitschuh avatar Jan 22 '19 19:01 JLLeitschuh

Dumping info into a tooltip:

grip-contour-with-info

SamCarlberg avatar Jan 22 '19 21:01 SamCarlberg