Skip to content

Rotation variant for axis widget

Valentin Valls requested to merge rotation-motor-widget into master

Here is a MR to add 2 new widget to Daiquiri.

Features

The integrated knob widget provides the following features

  • Allow to move the motor by dragging the knob
  • The dragging can be aborted with right click (to cancel the move request)
  • Multi rotation are available
  • Snapping (every 45deg)
    • When the mouse is close to the scales
    • When CTRL is pressed
  • During motor move
    • The widget is disabled
    • The target of the motor is displayed

Changelog

  • Introduce an highly modified version of rc-knob
    • For now as github pinpoint, but this could be merged in a project as a lib
    • I prefer a pinpoint for now as it is not yet stabilized
  • Added generic InfiniteKnob360 from rc-knob to design common use cases and style
  • Added a basic MotorRotation with just a knob for rotation axis
  • Added a custom MotorTomoRotation for specialized tomo use case (this will be improved later)
  • Added MotorMock to have interactive widget in the documentation
  • Update MotorDefault and MotorSmall documentation to use MotorMock

Screenshot_from_2021-07-20_11-57-28

Edited by Valentin Valls

Merge request reports

Loading