nion-software / nionswift-usim

STEM microscope simulator
GNU General Public License v3.0
6 stars 13 forks source link

Allow adding controls to existing instrument. Implemented 2d controls. #13

Closed Brow71189 closed 5 years ago

Brow71189 commented 5 years ago

These are quite big changes but they actually make the implementation of Instrument simpler and cleaner. You can now add new controls to an existing Instrument instance and connect them to built-in controls. There is also support for 2D controls and an axis manager that can convert between different coordinate systems. The current implementation of AxisManager does not do any conversions, but everything is prepared for it to do so which should make implementing it straightforward if we need it. I also added some tests for the new Control/2DControl/AxisManager system.

cmeyer commented 5 years ago

Merged. 7fe978a009e835e45344ccd25e8ccde61ae818d2 d5fb2276d1c9c13d73740aeb87706f2a6114b05e