Blender V4.3
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 158 of file MOD_grease_pencil_time.cc.

Constructor & Destructor Documentation

◆ TimeMapping()

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

Definition at line 165 of file MOD_grease_pencil_time.cc.

Member Function Documentation

◆ local_frame_after_scene_frame()

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

Definition at line 211 of file MOD_grease_pencil_time.cc.

References blender::math::ceil(), int, and to_local_time().

◆ local_frame_before_scene_frame()

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

Definition at line 206 of file MOD_grease_pencil_time.cc.

References blender::math::floor(), int, and to_local_time().

◆ offset()

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

Definition at line 172 of file MOD_grease_pencil_time.cc.

◆ scale()

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

Definition at line 176 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

Definition at line 200 of file MOD_grease_pencil_time.cc.

References blender::math::ceil(), int, and to_scene_time().

◆ scene_frame_before_local_frame()

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

Definition at line 195 of file MOD_grease_pencil_time.cc.

References blender::math::floor(), int, 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 185 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 180 of file MOD_grease_pencil_time.cc.


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