Bug 1457 - GraphUI: Add AnimGroup, providing sets of custom animated Shapes
Summary: GraphUI: Add AnimGroup, providing sets of custom animated Shapes
Status: RESOLVED FIXED
Alias: None
Product: GraphUI
Classification: JogAmp
Component: Core (show other bugs)
Version: 2.6.0
Hardware: All all
: P4 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2023-09-24 01:19 CEST by Sven Gothel
Modified: 2023-09-24 01:20 CEST (History)
0 users

See Also:
Type: FEATURE
SCM Refs:
4448010d8d787c73d48f54b296c3a8c2499aeaa0
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2023-09-24 01:19:40 CEST
AnimGroup.ShapeData holds the actual Shape and its start- and target position
as well as its active animation state and an optional user object attachment.
    
AnimGroup.Set holds a list of AnimGroup.ShapeData as well as the animation properties
and states like acceleration and velocity for translation and angular operations.
It also contains the AnimGroup.LerpFunc for linear interpolation of the next position
as called via AnimGroup.tick() over all sets.
    
AnimGroup.LerpFunc is intended to perform the linear interpolation for the next position,
either user provided or one of the provided may be used, i.e. TargetLerp, ScrollLerp and SineLerp.
    
To setup the start- and target position for each AnimGroup.ShapeData,
a AnimGroup.ShapeSetup is used - user implementated or one of the build-in
of AnimGroup.addGlyphSetHorizScroll01(..), AnimGroup.assGlyphSetRandom01(..).
    
+++
    
UISceneDemo03 consolidated UISceneDemo03 + UISceneDemo03b (deleted)
and shows the following AnimGroup capabilities:
    
- Two repetitive scrolling text lines. One text shorter than the line-width and one longer.
    
- One line of animated rectangles, rotating around their z-axis
    
- A text animation assembling one line of text,
  each glyph coming from from a random 3D point moving to its destination all at once including rotation.
    
- One line of text with sine wave animation
Comment 1 Sven Gothel 2023-09-24 01:20:11 CEST
added w/ commit 4448010d8d787c73d48f54b296c3a8c2499aeaa0