Changeset View
Changeset View
Standalone View
Standalone View
source/blender/alembic/intern/abc_util.h
| Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Lines | |||||
| /* Names are given in (dst, src) order, just like | /* Names are given in (dst, src) order, just like | ||||
| * the parameters of copy_m44_axis_swap() */ | * the parameters of copy_m44_axis_swap() */ | ||||
| typedef enum { | typedef enum { | ||||
| ABC_ZUP_FROM_YUP = 1, | ABC_ZUP_FROM_YUP = 1, | ||||
| ABC_YUP_FROM_ZUP = 2, | ABC_YUP_FROM_ZUP = 2, | ||||
| } AbcAxisSwapMode; | } AbcAxisSwapMode; | ||||
| /* Create a rotation matrix for each axis from euler angles. | /* Create a rotation matrix for each axis from euler angles. | ||||
| * Euler angles are swaped to change coordinate system. */ | * Euler angles are swapped to change coordinate system. */ | ||||
| void create_swapped_rotation_matrix( | void create_swapped_rotation_matrix( | ||||
| float rot_x_mat[3][3], float rot_y_mat[3][3], | float rot_x_mat[3][3], float rot_y_mat[3][3], | ||||
| float rot_z_mat[3][3], const float euler[3], | float rot_z_mat[3][3], const float euler[3], | ||||
| AbcAxisSwapMode mode); | AbcAxisSwapMode mode); | ||||
| void copy_m44_axis_swap(float dst_mat[4][4], float src_mat[4][4], AbcAxisSwapMode mode); | void copy_m44_axis_swap(float dst_mat[4][4], float src_mat[4][4], AbcAxisSwapMode mode); | ||||
| /* *************************** */ | /* *************************** */ | ||||
| Show All 13 Lines | |||||
| # define SCOPE_TIMER(message) ScopeTimer prof(message) | # define SCOPE_TIMER(message) ScopeTimer prof(message) | ||||
| #else | #else | ||||
| # define SCOPE_TIMER(message) | # define SCOPE_TIMER(message) | ||||
| #endif | #endif | ||||
| /* *************************** */ | /* *************************** */ | ||||
| /** | /** | ||||
| * Utility class whose purpose is to more easily log related informations. An | * Utility class whose purpose is to more easily log related information. An | ||||
| * instance of the SimpleLogger can be created in any context, and will hold a | * instance of the SimpleLogger can be created in any context, and will hold a | ||||
| * copy of all the strings passed to its output stream. | * copy of all the strings passed to its output stream. | ||||
| * | * | ||||
| * Different instances of the class may be accessed from different threads, | * Different instances of the class may be accessed from different threads, | ||||
| * although accessing the same instance from different threads will lead to race | * although accessing the same instance from different threads will lead to race | ||||
| * conditions. | * conditions. | ||||
| */ | */ | ||||
| class SimpleLogger { | class SimpleLogger { | ||||
| Show All 33 Lines | |||||