Commit Graph

12 Commits

Author SHA1 Message Date
Rexbas
7e2f8c3056 Gui: Add easing to navigation animations 2024-02-29 13:29:37 -06:00
wmayer
41afcf41e6 MSVC: fix warnings about conversion between float and double 2023-11-21 23:10:03 +01:00
Rexbas
a740632616 Gui: Find bounding sphere before drag or animation 2023-11-10 22:33:41 +01:00
Rexbas
9eee332bb3 Gui: maybe_unused for unused parameters 2023-10-25 11:17:55 +02:00
Rexbas
a10fa294b6 Gui: Fix animation translation 2023-10-25 11:17:55 +02:00
Rexbas
65a4a65553 Gui: Set exact orientation when animation is finished 2023-10-25 11:17:55 +02:00
Rexbas
fdc07dba67 Gui: Split stopAnimation() into onStop() and inherited stop() 2023-10-25 11:17:55 +02:00
Rexbas
b147e78cda Gui: Replace startAnimation() with inherited start() 2023-10-25 11:17:55 +02:00
Rexbas
e2579b7685 Gui: Remove unnecessary 'started' variable member in navigation animation 2023-10-25 11:17:55 +02:00
Rexbas
37e600e766 Gui: Refactor navigation animations
- Animations are played through an Animator
- Standard animations have a fixed duration and inherit from QVariantAnimation
- The animation duration can be changed in the preferences
- Fix animations when using the two arrows above the NaviCube
- Start an animation or start and wait for an animation
- Replaces standard camera animations (e.g. by selecting standard views or NaviCube) with FixedTimeAnimation
- Replace View3DInventorViewer's CameraAnimation with FixedTimeAnimation
- Replace OpenInventor navigation style infinite spin animation with SpinningAnimation
- Stops an active animation when a new animation is started
- Stops an active animation when the user starts dragging, panning or zooming
- Refactor reorientCamera so it can be used in animations
- Enable animations by default
2023-10-25 11:17:55 +02:00
Yorik van Havre
ffd66cf826 Revert "Gui: Refactor navigation animations" 2023-09-26 19:44:16 +02:00
Rexbas
9fed764368 Gui: Refactor navigation animations
- Animations are played through an Animator
- Standard animations have a fixed duration and inherit from QVariantAnimation
- The animation duration can be changed in the preferences
- Fix animations when using the two arrows above the NaviCube
- Start an animation or start and wait for an animation
- Replaces standard camera animations (e.g. by selecting standard views or NaviCube) with FixedTimeAnimation
- Replace View3DInventorViewer's CameraAnimation with FixedTimeAnimation
- Replace OpenInventor navigation style infinite spin animation with SpinningAnimation
- Stops an active animation when a new animation is started
- Stops an active animation when the user starts dragging, panning or zooming
- Refactor reorientCamera so it can be used in animations
- Enable animations by default
2023-09-04 21:43:41 +02:00