Blender V5.3
blender::KeyframeIterator Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ KeyframeIterator()

blender::KeyframeIterator::KeyframeIterator ( Span< const FCurve * > fcurves,
const Bounds< float > range )
inline
Parameters
fcurvesAllowed to have nullptr entries.
rangeInterpreted as inclusive/exclusive.

Definition at line 130 of file anim_convert.cc.

References blender::Span< T >::index_range().

Member Function Documentation

◆ advance()

void blender::KeyframeIterator::advance ( )
inline

◆ can_advance()

bool blender::KeyframeIterator::can_advance ( ) const
inline

◆ get_frame()

float blender::KeyframeIterator::get_frame ( ) const
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().

◆ get_keyframe_settings()


The documentation for this class was generated from the following file: