Blender V5.0
blender::TimeMapping Struct Reference

Public Member Functions

 TimeMapping (const GreasePencilTimeModifierData &tmd)
float offset () const
float scale () const
bool use_loop () const
float to_scene_time (const float local_frame) const
float to_local_time (const float scene_frame) const
int scene_frame_before_local_frame (const int local_frame) const
int scene_frame_after_local_frame (const int local_frame) const
int local_frame_before_scene_frame (const int scene_frame) const
int local_frame_after_scene_frame (const int scene_frame) const

Detailed Description

Definition at line 156 of file MOD_grease_pencil_time.cc.

Constructor & Destructor Documentation

◆ TimeMapping()

blender::TimeMapping::TimeMapping ( const GreasePencilTimeModifierData & tmd)
inline

Definition at line 163 of file MOD_grease_pencil_time.cc.

References flag, MOD_GREASE_PENCIL_TIME_KEEP_LOOP, and offset().

Member Function Documentation

◆ local_frame_after_scene_frame()

int blender::TimeMapping::local_frame_after_scene_frame ( const int scene_frame) const
inline

◆ local_frame_before_scene_frame()

int blender::TimeMapping::local_frame_before_scene_frame ( const int scene_frame) const
inline

◆ offset()

float blender::TimeMapping::offset ( ) const
inline

Definition at line 170 of file MOD_grease_pencil_time.cc.

Referenced by TimeMapping().

◆ scale()

float blender::TimeMapping::scale ( ) const
inline

Definition at line 174 of file MOD_grease_pencil_time.cc.

◆ scene_frame_after_local_frame()

int blender::TimeMapping::scene_frame_after_local_frame ( const int local_frame) const
inline

◆ scene_frame_before_local_frame()

int blender::TimeMapping::scene_frame_before_local_frame ( const int local_frame) const
inline

Definition at line 193 of file MOD_grease_pencil_time.cc.

References blender::math::floor(), and to_scene_time().

◆ to_local_time()

float blender::TimeMapping::to_local_time ( const float scene_frame) const
inline

◆ to_scene_time()

float blender::TimeMapping::to_scene_time ( const float local_frame) const
inline

Definition at line 183 of file MOD_grease_pencil_time.cc.

References float.

Referenced by scene_frame_after_local_frame(), and scene_frame_before_local_frame().

◆ use_loop()

bool blender::TimeMapping::use_loop ( ) const
inline

Definition at line 178 of file MOD_grease_pencil_time.cc.

Referenced by blender::calculate_repetitions().


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