dive icon indicating copy to clipboard operation
dive copied to clipboard

useModeManager updates

Open BryonLewis opened this issue 3 years ago • 0 comments

A simple refactoring of useModeManager to break out useTrackEditor.

useTrackEditor just breaks out all of the function that are specifically used for track modification/ useTrackEditor has it's own internal state dependent on the following:

  • selected Annotation mode (Rectangle/polygon/head-tail)
  • If an annotation for that mode exists. This determines differences between editing/creating
  • Current Frame - used for interpolation

I tried to minimize the ingoing/outfoing for this file to make it as encapsulated as possible. There may be a few more things that could be done to improve it.

20220714 - placed a possible fix to #1272 in this PR. Could easily be done in main as well.

Possible TODOs:

  • Break out Group Editor
  • Break out Camera track/linking
  • Determine if the state transferred between the two can be reduced further

BryonLewis avatar Jul 04 '22 14:07 BryonLewis