-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rois from omero2 #190
Rois from omero2 #190
Conversation
Great stuff @will-moore. I like the drawing and rotation abilities. That seems to all work as you described it, tried a rotated ellipse as well. After changing stroke width and color, I wanted more and change the fill color. Maybe another follow-up idea... |
To test the upgrade of Shapes json format from 5.2.x format to 5.3.x (ellipse.cx -> ellipse.x etc) we need to:
Then I will Open this PR again...
|
Created figure without this PR on eel.merge, Lots of ellipses and I have a copy of the JSON file as well : yes it is "version":1:
|
After upgrade, we also need to test that figure export script works, as TIFF and PDF. |
|
|
Let's discuss |
After discussion with @jburel, TODOs:
|
Tried exporting, A figure file which was created before this PR was opened. And got the following exceptions when I tried to export as pdf,
And for conversion to tiff,
|
Same errors, looks like an issue with getting the panel coordinates! Is this related to/caused by my width and height PR (we handled the page-wise x,y coordinate management in that PR)? #169 |
@bramalingam I'm trying to understand the bug you found.
I just tried this:
Does this sound feasible? |
To try reproduce the upgrade issue above, closing this PR so we can create figures without it merged. |
This simplifies the code a lot and now we don't have to worry about loading too many planes or not loading planes for some shapes etc
We do this so that any transform matrix that is in the shape json can be resolved to correct coordinates first, before comparing with existing shapes.
…ing: Also handles selection of new shapes
Recent changes to test:
|
@bramalingam Can you try testing the upgrade of shapes again? |
Rechecked the following scenario,
Can no longer see the exception seen in : #190 (comment) and can see version 2 in the json as well. |
Looking at http://web-dev-merge.openmicroscopy.org/figure/file/17602/
|
RFE: A "undo" the copy paste for example will be nice (not in this PR) |
Open the "ROI dialog", the tooltip of the |
@jburel - I can't reproduce the tooltip bug #190 (comment) |
As discussed with @bramalingam, when you "OK" the ROI dialog, the Z and T position of the dialog get saved to your figure. |
The above functionality works as expected. 2 separate points to consider:
Also, an edge case workflow where an ellipse ROI/shape has its centre outside the bounds of the viewport, throws a not so informative dialog box. Maybe update the text in the dialog box or handle ellipse's better when there are near the edges of the image? (Can be ignored as well, because in a user workflow I wouldn't expect the ROI's around the edges to be useful in many ways) |
Added IDs to the ROI/Shapes table to look more like iViewer cc @waxenegger |
similar to iviewer: I am not sure about the shape/roi ID. |
Few comments:
|
@will-moore I cannot reproduce the roi count issue, I don't think it was ever a problem |
Previously opened as #165
Ported to new code layout by squashing commits etc.
This allows loading of ROIs from OMERO to add to figure panels as new Shapes.
To test:
Follow up ideas: