-
Notifications
You must be signed in to change notification settings - Fork 16
DM-6516-footprint footprint tool implementation. Integrating with the implementation of marker tool. Both are made in consistent style. #117
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
Conversation
… implementation of marker tool. Both are made in consistent style.
Note for compiling: there are some changes made on Java codes. Please make full compilation before running it. |
First comment i have: WOW!!! Impressive! This is way better from before migration! It is now very useful! There are a couple of issues:
|
…ly. Fixed the bug for editing the rotate angle in drawing layer panel. Showing all handles (rotate or resize) while moving the footprint or marker.
Additional feature
|
Notes:
|
A second review after last commit revealed the following problem:
|
POLYGON -0.13901084 -0.09011910 -0.14103860 -0.08987188 -0.14059694 -0.08768578 -0.13863306 -0.08800800 -0.13901084 -0.09011910 # color=yellow tag={MIRI} | ||
POLYGON -0.13901917 -0.09009966 -0.14104138 -0.08985798 -0.14057749 -0.08767189 -0.13861639 -0.08798856 -0.13901917 -0.09009966 # color=yellow tag={MIRI} | ||
POLYGON -0.13902472 -0.09008299 -0.14099972 -0.08982187 -0.14058027 -0.08765244 -0.13862751 -0.08797467 -0.13902472 -0.09008299 # color=yellow tag={MIRI} | ||
POLYGON 360.00148056 -0.00349167 359.98601112 -0.01929166 359.97019723 -0.00381111 359.98566389 0.01199167 360.00148056 -0.00349167 # color=yellow tag={MIRI} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those 3 polygon belongs to WFPC2. remove them and check that MIRI and WFPC2 is correctly defined.
…ayer. update the text display for marker. fixed JWST MIRI footprint content.
Fire Impressions. I agree with Immanuel. It looks really good. UI Issues:
|
var idCnt=0; | ||
|
||
export function footprintCreateLayerActionCreator(rawAction) { | ||
return (dispatcher) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could break this function up a little. It is pretty big.
The code looks good. However, it is so much it is hard to evaluate. This is a problem with code reviews. I have notice in the last couple of months. In May I, @loitly, @tgoldina and @ejoliet all had really big commits. How do we look at large commits? I think we should bring it up for ideas in our Wednesday meeting. |
You are right. And i would add that i am also concerned that we are changing the server too. Java classes are changing in dev but we are not testing for IFE app as well in those cases. Emmanuel Joliet
|
…irefly into DM-6516-footprint
…footprint description file. Update footprint and marker label display. Add methods to add and get footprint into the a footprint map in the server.
Notes:
|
Please Note: |
Implementation: (both footprint tool and marker tool are made in consistent style)
Notes for operation:
Rotate handle, resize handle and outline box are provided for the user to rotate, resize and relocate the footprint or marker on the U if any of the operations is applied.
a) encloses all footprint regions or
b) is around the center of the footprint (marked by a cross symbol on the UI) or the marker if a) is not visible or
c) is around the plot center if none of a) and b) is visible.
The outline box becomes slanted as the footprint is rotated.
Testing example,
get image from image search panel (Images), target: m51, select WISE and click search button
click icon for "overlay marker and instrument footprints"
and select "add marker" or any item for adding footprint from the dropdown list
=> a marker or the footprint will appear in the middle of the plot
click the mouse at the place where you want to locate the footprint
When the mouse hovers over the footprint, the cursor will change to be 'pointer'.
Once 'pointer' is clicked down, an outline box with either resize or rotate handle will appear for 3 seconds after the mouse is up.
Click the resize handle and drag to resize the marker, or
click the rotate handle and drag to rotate the footprint or
click on the pointer and drag to move the marker or footprint.
If the outline box is moved out of the plot area while operating the footprint or marker, the outline box of other kind will continue to appear.