Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_uvedit.h
| Show All 40 Lines | |||||
| struct SpaceImage; | struct SpaceImage; | ||||
| struct ToolSettings; | struct ToolSettings; | ||||
| struct ViewLayer; | struct ViewLayer; | ||||
| struct bNode; | struct bNode; | ||||
| struct bNodeTree; | struct bNodeTree; | ||||
| struct wmKeyConfig; | struct wmKeyConfig; | ||||
| /* uvedit_ops.c */ | /* uvedit_ops.c */ | ||||
| void ED_operatortypes_uvedit(void); | void ED_operatortypes_uvedit(void); | ||||
| void ED_operatormacros_uvedit(void); | void ED_operatormacros_uvedit(void); | ||||
| void ED_keymap_uvedit(struct wmKeyConfig *keyconf); | void ED_keymap_uvedit(struct wmKeyConfig *keyconf); | ||||
| bool ED_uvedit_minmax(const struct Scene *scene, | bool ED_uvedit_minmax(const struct Scene *scene, | ||||
| struct Object *obedit, | struct Object *obedit, | ||||
| float min[2], | float min[2], | ||||
| float max[2]); | float max[2]); | ||||
| /** | |||||
| * Be careful when using this, it bypasses all synchronization options. | |||||
| */ | |||||
| void ED_uvedit_select_all(struct BMesh *bm); | void ED_uvedit_select_all(struct BMesh *bm); | ||||
| bool ED_uvedit_minmax_multi(const struct Scene *scene, | bool ED_uvedit_minmax_multi(const struct Scene *scene, | ||||
| struct Object **objects_edit, | struct Object **objects_edit, | ||||
| uint objects_len, | uint objects_len, | ||||
| float r_min[2], | float r_min[2], | ||||
| float r_max[2]); | float r_max[2]); | ||||
| bool ED_uvedit_center_multi(const struct Scene *scene, | bool ED_uvedit_center_multi(const struct Scene *scene, | ||||
| ▲ Show 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | |||||
| void ED_uvedit_get_aspect(struct Object *obedit, float *r_aspx, float *r_aspy); | void ED_uvedit_get_aspect(struct Object *obedit, float *r_aspx, float *r_aspy); | ||||
| void ED_uvedit_active_vert_loop_set(struct BMesh *bm, struct BMLoop *l); | void ED_uvedit_active_vert_loop_set(struct BMesh *bm, struct BMLoop *l); | ||||
| struct BMLoop *ED_uvedit_active_vert_loop_get(struct BMesh *bm); | struct BMLoop *ED_uvedit_active_vert_loop_get(struct BMesh *bm); | ||||
| void ED_uvedit_active_edge_loop_set(struct BMesh *bm, struct BMLoop *l); | void ED_uvedit_active_edge_loop_set(struct BMesh *bm, struct BMLoop *l); | ||||
| struct BMLoop *ED_uvedit_active_edge_loop_get(struct BMesh *bm); | struct BMLoop *ED_uvedit_active_edge_loop_get(struct BMesh *bm); | ||||
| /** | |||||
| * Intentionally don't return #UV_SELECT_ISLAND as it's not an element type. | |||||
| * In this case return #UV_SELECT_VERTEX as a fallback. | |||||
| */ | |||||
| char ED_uvedit_select_mode_get(const struct Scene *scene); | char ED_uvedit_select_mode_get(const struct Scene *scene); | ||||
| void ED_uvedit_select_sync_flush(const struct ToolSettings *ts, | void ED_uvedit_select_sync_flush(const struct ToolSettings *ts, | ||||
| struct BMEditMesh *em, | struct BMEditMesh *em, | ||||
| const bool select); | const bool select); | ||||
| /* uvedit_unwrap_ops.c */ | /* uvedit_unwrap_ops.c */ | ||||
| void ED_uvedit_live_unwrap_begin(struct Scene *scene, struct Object *obedit); | void ED_uvedit_live_unwrap_begin(struct Scene *scene, struct Object *obedit); | ||||
| void ED_uvedit_live_unwrap_re_solve(void); | void ED_uvedit_live_unwrap_re_solve(void); | ||||
| void ED_uvedit_live_unwrap_end(short cancel); | void ED_uvedit_live_unwrap_end(short cancel); | ||||
| void ED_uvedit_live_unwrap(const struct Scene *scene, struct Object **objects, int objects_len); | void ED_uvedit_live_unwrap(const struct Scene *scene, struct Object **objects, int objects_len); | ||||
| void ED_uvedit_add_simple_uvs(struct Main *bmain, const struct Scene *scene, struct Object *ob); | void ED_uvedit_add_simple_uvs(struct Main *bmain, const struct Scene *scene, struct Object *ob); | ||||
| /* uvedit_draw.c */ | /* uvedit_draw.c */ | ||||
| void ED_image_draw_cursor(struct ARegion *region, const float cursor[2]); | void ED_image_draw_cursor(struct ARegion *region, const float cursor[2]); | ||||
| /* uvedit_buttons.c */ | /* uvedit_buttons.c */ | ||||
| void ED_uvedit_buttons_register(struct ARegionType *art); | void ED_uvedit_buttons_register(struct ARegionType *art); | ||||
| /* uvedit_islands.c */ | /* uvedit_islands.c */ | ||||
| struct UVMapUDIM_Params { | struct UVMapUDIM_Params { | ||||
| const struct Image *image; | const struct Image *image; | ||||
| /** Copied from #SpaceImage.tile_grid_shape */ | /** Copied from #SpaceImage.tile_grid_shape */ | ||||
| int grid_shape[2]; | int grid_shape[2]; | ||||
| Show All 9 Lines | struct UVPackIsland_Params { | ||||
| /** -1 not to align to axis, otherwise 0,1 for X,Y. */ | /** -1 not to align to axis, otherwise 0,1 for X,Y. */ | ||||
| int rotate_align_axis : 2; | int rotate_align_axis : 2; | ||||
| uint only_selected_uvs : 1; | uint only_selected_uvs : 1; | ||||
| uint only_selected_faces : 1; | uint only_selected_faces : 1; | ||||
| uint use_seams : 1; | uint use_seams : 1; | ||||
| uint correct_aspect : 1; | uint correct_aspect : 1; | ||||
| }; | }; | ||||
| /** | |||||
| * Returns true if UV coordinates lie on a valid tile in UDIM grid or tiled image. | |||||
| */ | |||||
| bool uv_coords_isect_udim(const struct Image *image, | bool uv_coords_isect_udim(const struct Image *image, | ||||
| const int udim_grid[2], | const int udim_grid[2], | ||||
| const float coords[2]); | const float coords[2]); | ||||
| void ED_uvedit_pack_islands_multi(const struct Scene *scene, | void ED_uvedit_pack_islands_multi(const struct Scene *scene, | ||||
| Object **objects, | Object **objects, | ||||
| const uint objects_len, | const uint objects_len, | ||||
| const struct UVMapUDIM_Params *udim_params, | const struct UVMapUDIM_Params *udim_params, | ||||
| const struct UVPackIsland_Params *params); | const struct UVPackIsland_Params *params); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||