MCPcopy Create free account
hub / github.com/dalboris/vpaint / temporalDragMaxTime

Method temporalDragMaxTime

src/Gui/VectorAnimationComplex/KeyCell.cpp:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61Time KeyCell::temporalDragMaxTime() const
62{
63 //Time res(std::numeric_limits<int>::max()); // Caution: can overflow if compute deltas
64 Time res(1000); // TODO
65
66
67 InbetweenCellSet afterStar = temporalStarAfter();
68 foreach(InbetweenCell * scell, afterStar)
69 {
70 Time t = scell->afterTime();
71 if(t < res)
72 res = t;
73 }
74
75 return res;
76}
77
78void KeyCell::setTime(Time time)
79{

Callers 1

foreachFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected