NeuroPAL_ID Rotation GUI¶
GUI Controller¶
- class Program.rotation_gui¶
ROTATION_GUI This class is responsible for handling all functionality related to the crop/rotate GUI triggered by the preprocessing tab.
Note that it relies on the rotation stack property of the visualize_light app instance, which keeps track of relevant handles as well as caching of values between volumes.
This class is very outdated and needs to be reworked once time permits.
- Property Summary
- settings¶
Default settings for drawing the rotation gui.
- symbols¶
The symbols featured in the rotation GUI.
- Method Summary
- static apply_mask(app, img)¶
- static close(app)¶
CLOSE Closes the rotation gui and clears any related properties.
Inputs: - app: Running app instance.
- static draw(app, roi)¶
DRAW Creates the in-axes rotation gui.
Inputs: - app: Running app instance. - roi: An freehand ROI object.
- static get_corners(app, pos_array)¶
- static get_edges(app, pos_array)¶
Retrieve edges based on input position array or ROI position
- static preview_output(app)¶
- static trigger(app, event)¶
TRIGGER This function handles callbacks for each symbol.
Inputs: - app: Running app instance. - event: Event info generated by callback.
- static update(app, event, mode)¶
UPDATE Handles manipulation of the rotation gui. Note that this needs to be refactored into three separate functions (move, scale, and rotate) once time allows.
Inputs: - app: Running app instance. - event: An event struct retrieved from a rotation gui
callback.
mode: One of ‘move’, ‘scale’, or ‘rotate’.