|
Blender V5.3
|
Public Member Functions | |
| KeyframeIterator (Span< const FCurve * > fcurves, const Bounds< float > range) | |
| bool | can_advance () const |
| void | advance () |
| float | get_frame () const |
| animrig::KeyframeSettings | get_keyframe_settings () const |
Iterates all frames with keys on the given FCurves in the given range. Every frame is visited in ascending order only once.
Definition at line 101 of file anim_convert.cc.
|
inline |
| fcurves | Allowed to have nullptr entries. |
| range | Interpreted as inclusive/exclusive. |
Definition at line 130 of file anim_convert.cc.
References blender::Span< T >::index_range().
|
inline |
Definition at line 165 of file anim_convert.cc.
References blender::FCurve::bezt, FLT_MAX, blender::FCurve::totvert, and blender::BezTriple::vec.
Referenced by blender::convert_rotation_mode_range().
|
inline |
Definition at line 149 of file anim_convert.cc.
References blender::FCurve::bezt, blender::FCurve::totvert, and blender::BezTriple::vec.
Referenced by blender::convert_rotation_mode_range().
|
inline |
Returns the frame of the current iteration step. If the iterator has completed it will always return 0.
Definition at line 191 of file anim_convert.cc.
References FLT_MAX.
Referenced by blender::convert_rotation_mode_range().
|
inline |
Returns the keyframe settings of the current step. The first FCurve with a key at the current frame is used for this.
Definition at line 206 of file anim_convert.cc.
References BEZKEYTYPE, blender::FCurve::bezt, blender::BEZT_IPO_BEZ, blender::BEZT_KEYTYPE_KEYFRAME, blender::BezTriple::h1, blender::animrig::KeyframeSettings::handle, blender::HD_AUTO, blender::animrig::KeyframeSettings::interpolation, blender::BezTriple::ipo, blender::animrig::KeyframeSettings::keyframe_type, blender::FCurve::totvert, and blender::BezTriple::vec.
Referenced by blender::convert_rotation_mode_range().