Array Curve container #1678
Labels
area: util
Utilitis and data structures
lang: c++
Done in C++ code
nice new thing ☺
A new feature that was not there before
We should add a
curve::Array
type to our curve container classes to record changes to a fixed size sequence over time. In comparison to #1677 we can probably optimize a lot more since the size doesn't change over time (i.e. no inserts or erasures).The new array type should implement these methods:
Read
get(t, i)
i
at timet
get(t)
t
size()
frame(t, i)
i
before or att
next_frame(t, i)
i
aftert
There should also be an iterator type to iterate over the array at time
t
.Modify
set_insert(t, i, value)
t
at indexi
set_last(t, i, value)
t
; delete all keyframes after timet
at indexi
set_replace(t, i, value)
t
at indexi
; remove all other keyframes with timet
at indexi
Copy
sync(Curve, t)
t
with keyframes from sourceCurve
after timet
The text was updated successfully, but these errors were encountered: