Blender V2.61 - r43446
|
Go to the source code of this file.
Functions | |
void | ED_operatortypes_uvedit (void) |
void | ED_keymap_uvedit (struct wmKeyConfig *keyconf) |
void | ED_uvedit_assign_image (struct Main *bmain, struct Scene *scene, struct Object *obedit, struct Image *ima, struct Image *previma) |
int | ED_uvedit_minmax (struct Scene *scene, struct Image *ima, struct Object *obedit, float *min, float *max) |
int | ED_object_get_active_image (struct Object *ob, int mat_nr, struct Image **ima, struct ImageUser **iuser, struct bNode **node) |
void | ED_object_assign_active_image (struct Main *bmain, struct Object *ob, int mat_nr, struct Image *ima) |
int | ED_uvedit_test_silent (struct Object *obedit) |
int | ED_uvedit_test (struct Object *obedit) |
int | uvedit_edge_selected (struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i) |
int | uvedit_face_selected (struct Scene *scene, struct EditFace *efa, struct MTFace *tf) |
int | uvedit_face_visible_nolocal (struct Scene *scene, struct EditFace *efa) |
int | uvedit_face_visible (struct Scene *scene, struct Image *ima, struct EditFace *efa, struct MTFace *tf) |
int | uvedit_uv_selected (struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i) |
void | uvedit_edge_deselect (struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i) |
void | uvedit_edge_select (struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i) |
void | uvedit_face_deselect (struct Scene *scene, struct EditFace *efa, struct MTFace *tf) |
void | uvedit_face_select (struct Scene *scene, struct EditFace *efa, struct MTFace *tf) |
void | uvedit_uv_deselect (struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i) |
void | uvedit_uv_select (struct Scene *scene, struct EditFace *efa, struct MTFace *tf, int i) |
int | ED_uvedit_nearest_uv (struct Scene *scene, struct Object *obedit, struct Image *ima, float co[2], float uv[2]) |
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_end (short cancel) |
void | ED_unwrap_lscm (struct Scene *scene, struct Object *obedit, const short sel) |
void | draw_uvedit_main (struct SpaceImage *sima, struct ARegion *ar, struct Scene *scene, struct Object *obedit) |
void | ED_uvedit_buttons_register (struct ARegionType *art) |
Definition in file ED_uvedit.h.
void draw_uvedit_main | ( | struct SpaceImage * | sima, |
struct ARegion * | ar, | ||
struct Scene * | scene, | ||
struct Object * | obedit | ||
) |
Definition at line 838 of file uvedit_draw.c.
References draw_uvs(), draw_uvs_shadow(), drawcursor_sima(), ED_space_image_show_uvedit(), and ED_space_image_show_uvshadow().
Referenced by image_main_area_draw().
void ED_keymap_uvedit | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 3354 of file uvedit_ops.c.
References ACTIONMOUSE, AKEY, BKEY, CKEY, COMMAKEY, ED_object_generic_keymap(), ED_operator_uvedit(), EKEY, FALSE, HKEY, IKEY, KM_ALT, KM_CTRL, KM_PRESS, KM_SHIFT, LKEY, PERIODKEY, PKEY, wmKeyMap::poll, wmKeyMapItem::ptr, RNA_boolean_set(), RNA_enum_set(), RNA_string_set(), SEL_INVERT, SEL_TOGGLE, SELECTMOUSE, SKEY, SPACE_IMAGE, TABKEY, transform_keymap_for_space(), TRUE, VKEY, WKEY, WM_keymap_add_item(), WM_keymap_add_menu(), and WM_keymap_find().
Referenced by ED_spacetypes_keymap().
void ED_object_assign_active_image | ( | struct Main * | bmain, |
struct Object * | ob, | ||
int | mat_nr, | ||
struct Image * | ima | ||
) |
Definition at line 123 of file uvedit_ops.c.
References ED_node_generic_update(), give_current_material(), Image::id, bNode::id, is_image_texture_node(), nodeGetActiveTexture(), Material::nodetree, NULL, and Material::use_nodes.
Referenced by ED_uvedit_assign_image().
int ED_object_get_active_image | ( | struct Object * | ob, |
int | mat_nr, | ||
struct Image ** | ima, | ||
struct ImageUser ** | iuser, | ||
struct bNode ** | node | ||
) |
Definition at line 104 of file uvedit_ops.c.
References FALSE, give_current_material(), bNode::id, is_image_texture_node(), nodeGetActiveTexture(), Material::nodetree, NULL, TRUE, and Material::use_nodes.
Referenced by image_refresh(), imapaint_face_image(), project_paint_face_image(), and tex_mat_set_texture_cb().
void ED_operatortypes_uvedit | ( | void | ) |
Definition at line 3317 of file uvedit_ops.c.
References UV_OT_align(), UV_OT_average_islands_scale(), UV_OT_circle_select(), UV_OT_cube_project(), UV_OT_cursor_set(), UV_OT_cylinder_project(), UV_OT_from_view(), UV_OT_hide(), UV_OT_minimize_stretch(), UV_OT_pack_islands(), UV_OT_pin(), UV_OT_reset(), UV_OT_reveal(), UV_OT_select(), UV_OT_select_all(), UV_OT_select_border(), UV_OT_select_linked(), UV_OT_select_linked_pick(), UV_OT_select_loop(), UV_OT_select_pinned(), UV_OT_snap_cursor(), UV_OT_snap_selected(), UV_OT_sphere_project(), UV_OT_stitch(), UV_OT_tile_set(), UV_OT_unlink_selected(), UV_OT_unwrap(), UV_OT_weld(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Definition at line 901 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), construct_param_handle(), Object::data, param_delete(), PARAM_FALSE, param_flush(), param_lscm_begin(), param_lscm_end(), param_lscm_solve(), param_pack(), Scene::toolsettings, ToolSettings::unwrapper, UVCALC_FILLHOLES, ToolSettings::uvcalc_flag, ToolSettings::uvcalc_margin, and UVCALC_NO_ASPECT_CORRECT.
Referenced by editmesh_mark_seam(), mouse_mesh_shortest_path(), and unwrap_exec().
void ED_uvedit_assign_image | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct Object * | obedit, | ||
struct Image * | ima, | ||
struct Image * | previma | ||
) |
Definition at line 136 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CustomData_em_get(), CustomData_has_layer(), DAG_id_tag_update(), EditFace::data, Object::data, ED_object_assign_active_image(), EM_add_data_layer(), EM_get_actFace(), EditMesh::faces, EditMesh::fdata, ListBase::first, Image::id, id_lib_extern(), id_us_plus(), IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, EditFace::mat_nr, EditFace::next, NULL, OB_MESH, scene_use_new_shading_nodes(), MTFace::tpage, Object::type, Image::type, update(), ID::us, and uvedit_face_visible().
Referenced by drop_named_image_invoke(), ED_space_image_set(), and ED_uvedit_ensure_uvs().
void ED_uvedit_buttons_register | ( | struct ARegionType * | art | ) |
Definition at line 220 of file uvedit_buttons.c.
References BLI_addtail(), PanelType::draw, PanelType::idname, image_panel_uv(), image_panel_uv_poll(), PanelType::label, MEM_callocN(), ARegionType::paneltypes, and PanelType::poll.
Referenced by ED_spacetype_image().
Definition at line 580 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), construct_param_handle(), Object::data, ED_uvedit_test(), param_lscm_begin(), PARAM_TRUE, Scene::toolsettings, ToolSettings::unwrapper, UVCALC_FILLHOLES, and ToolSettings::uvcalc_flag.
Referenced by createTransUVs(), and uvedit_live_unwrap_update().
void ED_uvedit_live_unwrap_end | ( | short | cancel | ) |
Definition at line 605 of file uvedit_unwrap_ops.c.
References NULL, param_delete(), param_flush_restore(), and param_lscm_end().
Referenced by postTrans(), and uvedit_live_unwrap_update().
void ED_uvedit_live_unwrap_re_solve | ( | void | ) |
Definition at line 597 of file uvedit_unwrap_ops.c.
References param_flush(), and param_lscm_solve().
Referenced by recalcData_image(), and uvedit_live_unwrap_update().
int ED_uvedit_minmax | ( | struct Scene * | scene, |
struct Image * | ima, | ||
struct Object * | obedit, | ||
float * | min, | ||
float * | max | ||
) |
Definition at line 449 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CustomData_em_get(), EditFace::data, Object::data, DO_MINMAX2, EditMesh::faces, EditMesh::fdata, ListBase::first, INIT_MINMAX2, EditFace::next, MTFace::uv, uvedit_face_visible(), uvedit_uv_selected(), and EditFace::v4.
Referenced by image_view_selected_exec(), and uvedit_center().
int ED_uvedit_nearest_uv | ( | struct Scene * | scene, |
struct Object * | obedit, | ||
struct Image * | ima, | ||
float | co[2], | ||
float | uv[2] | ||
) |
Definition at line 680 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CustomData_em_get(), EditFace::data, Object::data, fabs(), EditMesh::faces, EditMesh::fdata, ListBase::first, i, EditFace::next, MTFace::uv, uvedit_face_visible(), uvedit_uv_selected(), and EditFace::v4.
Referenced by CalcSnapGeometry().
int ED_uvedit_test | ( | struct Object * | obedit | ) |
Definition at line 82 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), Object::data, EM_texFaceCheck(), OB_MESH, and Object::type.
Referenced by ED_uvedit_ensure_uvs(), ED_uvedit_live_unwrap_begin(), image_panel_uv_poll(), and uvedit_set_tile().
int ED_uvedit_test_silent | ( | struct Object * | obedit | ) |
void uvedit_edge_deselect | ( | struct Scene * | scene, |
struct EditFace * | efa, | ||
struct MTFace * | tf, | ||
int | i | ||
) |
Definition at line 340 of file uvedit_ops.c.
References EditFace::e1, EM_select_edge(), EM_select_face(), MTFace::flag, i, SCE_SELECT_EDGE, SCE_SELECT_FACE, SELECT, ToolSettings::selectmode, TF_SEL_MASK, Scene::toolsettings, ToolSettings::uv_flag, UV_SYNC_SELECTION, EditFace::v1, and EditFace::v4.
Referenced by mouse_select().
Definition at line 321 of file uvedit_ops.c.
References EditFace::e1, EM_select_edge(), EM_select_face(), MTFace::flag, i, SCE_SELECT_EDGE, SCE_SELECT_FACE, SELECT, ToolSettings::selectmode, TF_SEL_MASK, Scene::toolsettings, ToolSettings::uv_flag, UV_SYNC_SELECTION, EditFace::v1, and EditFace::v4.
Referenced by mouse_select().
Definition at line 304 of file uvedit_ops.c.
References EditFace::e1, EditFace::f, MTFace::flag, SCE_SELECT_EDGE, SCE_SELECT_FACE, SELECT, ToolSettings::selectmode, TF_SEL_MASK, Scene::toolsettings, ToolSettings::uv_flag, UV_SYNC_SELECTION, EditFace::v1, and EditFace::v4.
Referenced by draw_uvs(), and mouse_select().
Definition at line 294 of file uvedit_ops.c.
References EM_select_face(), MTFace::flag, TF_SEL1, TF_SEL2, TF_SEL3, TF_SEL4, Scene::toolsettings, ToolSettings::uv_flag, and UV_SYNC_SELECTION.
Referenced by mouse_select(), select_edgeloop(), and uv_faces_do_sticky().
Definition at line 284 of file uvedit_ops.c.
References EM_select_face(), MTFace::flag, TF_SEL1, TF_SEL2, TF_SEL3, TF_SEL4, Scene::toolsettings, ToolSettings::uv_flag, and UV_SYNC_SELECTION.
Referenced by ED_uvedit_ensure_uvs(), mouse_select(), and uv_faces_do_sticky().
Definition at line 274 of file uvedit_ops.c.
References EditFace::f, MTFace::flag, SELECT, TF_SEL1, TF_SEL2, TF_SEL3, TF_SEL4, Scene::toolsettings, ToolSettings::uv_flag, UV_SYNC_SELECTION, and EditFace::v4.
Referenced by draw_uvs(), mouse_select(), and weld_align_uv().
int uvedit_face_visible | ( | struct Scene * | scene, |
struct Image * | ima, | ||
struct EditFace * | efa, | ||
struct MTFace * | tf | ||
) |
Definition at line 264 of file uvedit_ops.c.
References Scene::toolsettings, MTFace::tpage, ToolSettings::uv_flag, UV_SHOW_SAME_IMAGE, and uvedit_face_visible_nolocal().
Referenced by border_select_exec(), createTransUVs(), draw_uvs(), draw_uvs_stretch(), ED_uvedit_assign_image(), ED_uvedit_median(), ED_uvedit_minmax(), ED_uvedit_nearest_uv(), find_nearest_uv_edge(), find_nearest_uv_face(), find_nearest_uv_vert(), mouse_select(), pin_exec(), select_all_perform(), select_edgeloop(), select_linked(), select_pinned_exec(), snap_uvs_to_adjacent_unselected(), snap_uvs_to_cursor(), snap_uvs_to_pixels(), stitch_exec(), unlink_selection_exec(), uvedit_center(), uvedit_translate(), and weld_align_uv().
Definition at line 254 of file uvedit_ops.c.
References EditFace::f, EditFace::h, SELECT, Scene::toolsettings, ToolSettings::uv_flag, and UV_SYNC_SELECTION.
Referenced by uvedit_face_visible().
Definition at line 387 of file uvedit_ops.c.
References EM_select_face(), MTFace::flag, SCE_SELECT_FACE, SELECT, ToolSettings::selectmode, TF_SEL_MASK, Scene::toolsettings, ToolSettings::uv_flag, UV_SYNC_SELECTION, and EditFace::v1.
Referenced by border_select_exec(), mouse_select(), select_edgeloop(), select_uv_inside_ellipse(), and uv_faces_do_sticky().
Definition at line 373 of file uvedit_ops.c.
References EM_select_face(), MTFace::flag, SCE_SELECT_FACE, SELECT, ToolSettings::selectmode, TF_SEL_MASK, Scene::toolsettings, ToolSettings::uv_flag, UV_SYNC_SELECTION, and EditFace::v1.
Referenced by border_select_exec(), mouse_select(), select_edgeloop(), select_pinned_exec(), select_uv_inside_ellipse(), and uv_faces_do_sticky().
Definition at line 359 of file uvedit_ops.c.
References EditFace::f, MTFace::flag, SCE_SELECT_FACE, SELECT, ToolSettings::selectmode, TF_SEL_MASK, Scene::toolsettings, ToolSettings::uv_flag, UV_SYNC_SELECTION, and EditFace::v1.
Referenced by construct_param_handle(), createTransUVs(), draw_uvs(), ED_uvedit_median(), ED_uvedit_minmax(), ED_uvedit_nearest_uv(), find_nearest_uv_vert(), mouse_select(), pin_exec(), select_edgeloop(), snap_uvs_to_adjacent_unselected(), snap_uvs_to_cursor(), snap_uvs_to_pixels(), stitch_exec(), uvedit_center(), uvedit_have_selection(), uvedit_translate(), and weld_align_uv().