Blender V2.61 - r43446
|
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_object_types.h"
#include "DNA_material_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_customdata.h"
#include "BKE_depsgraph.h"
#include "BKE_image.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_mesh.h"
#include "BKE_node.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "ED_image.h"
#include "ED_mesh.h"
#include "ED_node.h"
#include "ED_uvedit.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_view2d.h"
#include "uvedit_intern.h"
Go to the source code of this file.
Classes | |
struct | NearestHit |
struct | UVVertAverage |
Typedefs | |
typedef struct NearestHit | NearestHit |
typedef struct UVVertAverage | UVVertAverage |
Functions | |
int | ED_uvedit_test (Object *obedit) |
static int | is_image_texture_node (bNode *node) |
int | ED_object_get_active_image (Object *ob, int mat_nr, Image **ima, ImageUser **iuser, bNode **node_r) |
void | ED_object_assign_active_image (Main *bmain, Object *ob, int mat_nr, Image *ima) |
void | ED_uvedit_assign_image (Main *bmain, Scene *scene, Object *obedit, Image *ima, Image *previma) |
static int | uvedit_set_tile (Object *obedit, Image *ima, int curtile) |
static void | uvedit_pixel_to_float (SpaceImage *sima, float *dist, float pixeldist) |
int | uvedit_face_visible_nolocal (Scene *scene, EditFace *efa) |
int | uvedit_face_visible (Scene *scene, Image *ima, EditFace *efa, MTFace *tf) |
int | uvedit_face_selected (Scene *scene, EditFace *efa, MTFace *tf) |
void | uvedit_face_select (Scene *scene, EditFace *efa, MTFace *tf) |
void | uvedit_face_deselect (Scene *scene, EditFace *efa, MTFace *tf) |
int | uvedit_edge_selected (Scene *scene, EditFace *efa, MTFace *tf, int i) |
void | uvedit_edge_select (Scene *scene, EditFace *efa, MTFace *tf, int i) |
void | uvedit_edge_deselect (Scene *scene, EditFace *efa, MTFace *tf, int i) |
int | uvedit_uv_selected (Scene *scene, EditFace *efa, MTFace *tf, int i) |
void | uvedit_uv_select (Scene *scene, EditFace *efa, MTFace *tf, int i) |
void | uvedit_uv_deselect (Scene *scene, EditFace *efa, MTFace *tf, int i) |
static void | uvedit_live_unwrap_update (SpaceImage *sima, Scene *scene, Object *obedit) |
void | uv_center (float uv[][2], float cent[2], int quad) |
float | uv_area (float uv[][2], int quad) |
void | uv_copy_aspect (float uv_orig[][2], float uv[][2], float aspx, float aspy) |
int | ED_uvedit_minmax (Scene *scene, Image *ima, Object *obedit, float *min, float *max) |
static int | ED_uvedit_median (Scene *scene, Image *ima, Object *obedit, float co[3]) |
static int | uvedit_center (Scene *scene, Image *ima, Object *obedit, float *cent, char mode) |
static void | find_nearest_uv_edge (Scene *scene, Image *ima, EditMesh *em, float co[2], NearestHit *hit) |
static void | find_nearest_uv_face (Scene *scene, Image *ima, EditMesh *em, float co[2], NearestHit *hit) |
static int | nearest_uv_between (MTFace *tf, int nverts, int id, float co[2], float uv[2]) |
static void | find_nearest_uv_vert (Scene *scene, Image *ima, EditMesh *em, float co[2], float penalty[2], NearestHit *hit) |
int | ED_uvedit_nearest_uv (Scene *scene, Object *obedit, Image *ima, float co[2], float uv[2]) |
static void | uv_vertex_loop_flag (UvMapVert *first) |
static UvMapVert * | uv_vertex_map_get (UvVertMap *vmap, EditFace *efa, int a) |
static int | uv_edge_tag_faces (UvMapVert *first1, UvMapVert *first2, int *totface) |
static int | select_edgeloop (Scene *scene, Image *ima, EditMesh *em, NearestHit *hit, float limit[2], int extend) |
static void | select_linked (Scene *scene, Image *ima, EditMesh *em, float limit[2], NearestHit *hit, int extend) |
static void | weld_align_uv (bContext *C, int tool) |
static int | align_exec (bContext *C, wmOperator *op) |
static void | UV_OT_align (wmOperatorType *ot) |
static int | weld_exec (bContext *C, wmOperator *UNUSED(op)) |
static void | UV_OT_weld (wmOperatorType *ot) |
static int | stitch_exec (bContext *C, wmOperator *op) |
static void | UV_OT_stitch (wmOperatorType *ot) |
static void | select_all_perform (bContext *C, int action) |
static int | select_all_exec (bContext *C, wmOperator *op) |
static void | UV_OT_select_all (wmOperatorType *ot) |
static int | sticky_select (float *limit, int hitv[4], int v, float *hituv[4], float *uv, int sticky) |
static int | mouse_select (bContext *C, float co[2], int extend, int loop) |
static int | select_exec (bContext *C, wmOperator *op) |
static int | select_invoke (bContext *C, wmOperator *op, wmEvent *event) |
static void | UV_OT_select (wmOperatorType *ot) |
static int | select_loop_exec (bContext *C, wmOperator *op) |
static int | select_loop_invoke (bContext *C, wmOperator *op, wmEvent *event) |
static void | UV_OT_select_loop (wmOperatorType *ot) |
static int | select_linked_internal (bContext *C, wmOperator *op, wmEvent *event, int pick) |
static int | select_linked_exec (bContext *C, wmOperator *op) |
static void | UV_OT_select_linked (wmOperatorType *ot) |
static int | select_linked_pick_invoke (bContext *C, wmOperator *op, wmEvent *event) |
static int | select_linked_pick_exec (bContext *C, wmOperator *op) |
static void | UV_OT_select_linked_pick (wmOperatorType *ot) |
static int | unlink_selection_exec (bContext *C, wmOperator *op) |
static void | UV_OT_unlink_selected (wmOperatorType *ot) |
static void | uv_faces_do_sticky (bContext *C, SpaceImage *sima, Scene *scene, Object *obedit, short select) |
static int | border_select_exec (bContext *C, wmOperator *op) |
static void | UV_OT_select_border (wmOperatorType *ot) |
static void | select_uv_inside_ellipse (Scene *scene, int select, EditFace *efa, MTFace *tface, int index, float *offset, float *ell, int select_index) |
static int | circle_select_exec (bContext *C, wmOperator *op) |
static void | UV_OT_circle_select (wmOperatorType *ot) |
static void | snap_uv_to_pixel (float *uvco, float w, float h) |
static void | snap_cursor_to_pixels (SpaceImage *sima) |
static int | snap_cursor_to_selection (Scene *scene, Image *ima, Object *obedit, SpaceImage *sima) |
static int | snap_cursor_exec (bContext *C, wmOperator *op) |
static void | UV_OT_snap_cursor (wmOperatorType *ot) |
static int | snap_uvs_to_cursor (Scene *scene, Image *ima, Object *obedit, SpaceImage *sima) |
static int | snap_uvs_to_adjacent_unselected (Scene *scene, Image *ima, Object *obedit) |
static int | snap_uvs_to_pixels (SpaceImage *sima, Scene *scene, Object *obedit) |
static int | snap_selection_exec (bContext *C, wmOperator *op) |
static void | UV_OT_snap_selected (wmOperatorType *ot) |
static int | pin_exec (bContext *C, wmOperator *op) |
static void | UV_OT_pin (wmOperatorType *ot) |
static int | select_pinned_exec (bContext *C, wmOperator *UNUSED(op)) |
static void | UV_OT_select_pinned (wmOperatorType *ot) |
static int | hide_exec (bContext *C, wmOperator *op) |
static void | UV_OT_hide (wmOperatorType *ot) |
static int | reveal_exec (bContext *C, wmOperator *UNUSED(op)) |
static void | UV_OT_reveal (wmOperatorType *ot) |
static int | set_2d_cursor_exec (bContext *C, wmOperator *op) |
static int | set_2d_cursor_invoke (bContext *C, wmOperator *op, wmEvent *event) |
static void | UV_OT_cursor_set (wmOperatorType *ot) |
static int | set_tile_exec (bContext *C, wmOperator *op) |
static int | set_tile_invoke (bContext *C, wmOperator *op, wmEvent *event) |
static void | UV_OT_tile_set (wmOperatorType *ot) |
void | ED_operatortypes_uvedit (void) |
void | ED_keymap_uvedit (wmKeyConfig *keyconf) |
Definition in file uvedit_ops.c.
typedef struct NearestHit NearestHit |
typedef struct UVVertAverage UVVertAverage |
static int align_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1245 of file uvedit_ops.c.
References OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and weld_align_uv().
Referenced by UV_OT_align().
static int border_select_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 2272 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BLI_in_rctf(), CD_MTFACE, CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_region(), CTX_wm_space_image(), CustomData_em_get(), EditFace::data, Object::data, EM_deselect_flush(), EM_select_flush(), EditMesh::faces, EditMesh::fdata, ListBase::first, GESTURE_MODAL_SELECT, EditFace::l, NC_GEOM, ND_SELECT, EditFace::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_int_get(), SCE_SELECT_FACE, SEL_DESELECT, select_all_perform(), ToolSettings::selectmode, TF_PIN1, TF_PIN2, TF_PIN3, TF_PIN4, EditFace::tmp, UI_view2d_region_to_view(), MTFace::unwrap, MTFace::uv, uv_center(), uv_faces_do_sticky(), ToolSettings::uv_flag, UV_SELECT_FACE, ToolSettings::uv_selectmode, UV_SYNC_SELECTION, uvedit_face_visible(), uvedit_uv_deselect(), uvedit_uv_select(), ARegion::v2d, EditFace::v4, WM_event_add_notifier(), rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by UV_OT_select_border().
static int circle_select_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 2447 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CTX_data_edit_object(), CTX_data_scene(), CTX_wm_region(), CTX_wm_space_image(), CustomData_em_get(), EditFace::data, Object::data, ED_space_image_size(), ED_space_image_zoom(), EM_deselect_flush(), EM_select_flush(), EditMesh::faces, EditMesh::fdata, ListBase::first, GESTURE_MODAL_SELECT, NC_GEOM, ND_SELECT, EditFace::next, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), select_uv_inside_ellipse(), UI_view2d_region_to_view(), ARegion::v2d, EditFace::v4, and WM_event_add_notifier().
Referenced by UV_OT_circle_select().
void ED_keymap_uvedit | ( | 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().
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 | ( | Object * | ob, |
int | mat_nr, | ||
Image ** | ima, | ||
ImageUser ** | iuser, | ||
bNode ** | node_r | ||
) |
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().
void ED_uvedit_assign_image | ( | Main * | bmain, |
Scene * | scene, | ||
Object * | obedit, | ||
Image * | ima, | ||
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().
Definition at line 473 of file uvedit_ops.c.
References add_v3_v3(), BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CustomData_em_get(), EditFace::data, Object::data, EditMesh::faces, EditMesh::fdata, ListBase::first, mul_v3_fl(), EditFace::next, MTFace::uv, uvedit_face_visible(), uvedit_uv_selected(), EditFace::v4, and zero_v3().
Referenced by uvedit_center().
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().
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 | ( | 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().
static void find_nearest_uv_edge | ( | Scene * | scene, |
Image * | ima, | ||
EditMesh * | em, | ||
float | co[2], | ||
NearestHit * | hit | ||
) | [static] |
Definition at line 538 of file uvedit_ops.c.
References CD_MTFACE, CustomData_em_get(), EditFace::data, dist_to_line_segment_v2(), NearestHit::edge, NearestHit::efa, EditMesh::faces, EditMesh::fdata, ListBase::first, i, EditVert::l, EditFace::next, EditVert::next, NearestHit::tf, EditVert::tmp, MTFace::uv, uvedit_face_visible(), EditFace::v1, EditFace::v4, NearestHit::vert, NearestHit::vert2, and EditMesh::verts.
Referenced by mouse_select().
static void find_nearest_uv_face | ( | Scene * | scene, |
Image * | ima, | ||
EditMesh * | em, | ||
float | co[2], | ||
NearestHit * | hit | ||
) | [static] |
Definition at line 575 of file uvedit_ops.c.
References add_v2_v2(), CD_MTFACE, CustomData_em_get(), EditFace::data, NearestHit::efa, EditVert::f, fabs(), EditMesh::faces, EditMesh::fdata, ListBase::first, i, EditFace::next, NearestHit::tf, MTFace::uv, uvedit_face_visible(), and EditFace::v4.
Referenced by mouse_select().
static void find_nearest_uv_vert | ( | Scene * | scene, |
Image * | ima, | ||
EditMesh * | em, | ||
float | co[2], | ||
float | penalty[2], | ||
NearestHit * | hit | ||
) | [static] |
Definition at line 636 of file uvedit_ops.c.
References CD_MTFACE, CustomData_em_get(), EditFace::data, NearestHit::efa, fabsf, EditMesh::faces, EditMesh::fdata, ListBase::first, i, EditVert::l, nearest_uv_between(), EditFace::next, EditVert::next, NearestHit::tf, EditVert::tmp, NearestHit::uv, MTFace::uv, uvedit_face_visible(), uvedit_uv_selected(), EditFace::v1, EditFace::v4, NearestHit::vert, and EditMesh::verts.
Referenced by mouse_select(), and select_linked_internal().
static int hide_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 2929 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CTX_data_edit_object(), CTX_data_tool_settings(), CTX_wm_space_image(), CustomData_em_get(), EditFace::data, Object::data, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EM_deselect_flush(), EM_hide_mesh(), EM_select_face(), EM_validate_selections(), EditVert::f, EditEdge::f, EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, MTFace::flag, SpaceImage::flag, NC_GEOM, ND_SELECT, EditFace::next, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, SELECT, EditMesh::selectmode, SI_SELACTFACE, swap(), TF_SEL1, TF_SEL2, TF_SEL3, TF_SEL4, ToolSettings::uv_flag, UV_SYNC_SELECTION, EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, and WM_event_add_notifier().
Referenced by UV_OT_hide().
static int is_image_texture_node | ( | bNode * | node | ) | [static] |
Definition at line 99 of file uvedit_ops.c.
References ELEM, SH_NODE_TEX_ENVIRONMENT, SH_NODE_TEX_IMAGE, and bNode::type.
Referenced by ED_object_assign_active_image(), and ED_object_get_active_image().
static int mouse_select | ( | bContext * | C, |
float | co[2], | ||
int | extend, | ||
int | loop | ||
) | [static] |
Definition at line 1617 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_space_image(), CustomData_em_get(), DAG_id_tag_update(), EditFace::data, Object::data, NearestHit::edge, NearestHit::efa, EM_deselect_flush(), EM_select_flush(), EM_set_actFace(), EditMesh::faces, EditMesh::fdata, find_nearest_uv_edge(), find_nearest_uv_face(), find_nearest_uv_vert(), ListBase::first, i, EditVert::l, NC_GEOM, ND_SELECT, EditFace::next, EditVert::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, SCE_SELECT_EDGE, SCE_SELECT_FACE, select_edgeloop(), select_linked(), ToolSettings::selectmode, SI_STICKY_DISABLE, SpaceImage::sticky, sticky_select(), NearestHit::tf, EditVert::tmp, MTFace::uv, NearestHit::uv, ToolSettings::uv_flag, UV_SELECT_EDGE, UV_SELECT_FACE, UV_SELECT_ISLAND, UV_SELECT_VERTEX, ToolSettings::uv_selectmode, UV_SYNC_SELECTION, uvedit_edge_deselect(), uvedit_edge_select(), uvedit_edge_selected(), uvedit_face_deselect(), uvedit_face_select(), uvedit_face_selected(), uvedit_face_visible(), uvedit_pixel_to_float(), uvedit_uv_deselect(), uvedit_uv_select(), uvedit_uv_selected(), EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, NearestHit::vert, NearestHit::vert2, EditMesh::verts, WM_event_add_notifier(), and SpaceImage::zoom.
Referenced by select_exec(), and select_loop_exec().
static int nearest_uv_between | ( | MTFace * | tf, |
int | nverts, | ||
int | id, | ||
float | co[2], | ||
float | uv[2] | ||
) | [static] |
Definition at line 609 of file uvedit_ops.c.
References sub_v2_v2v2(), and MTFace::uv.
Referenced by find_nearest_uv_vert().
static int pin_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 2831 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, clear(), CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CustomData_em_get(), EditFace::data, Object::data, EditMesh::faces, EditMesh::fdata, ListBase::first, NC_GEOM, ND_DATA, EditFace::next, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), TF_PIN1, TF_PIN2, TF_PIN3, TF_PIN4, MTFace::unwrap, uvedit_face_visible(), uvedit_uv_selected(), EditFace::v4, and WM_event_add_notifier().
Referenced by UV_OT_pin().
static int reveal_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 3071 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CTX_data_edit_object(), CTX_data_tool_settings(), CTX_wm_space_image(), CustomData_em_get(), EditFace::data, Object::data, EM_reveal_mesh(), EM_select_face(), EM_select_flush(), EditVert::f, EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, MTFace::flag, SpaceImage::flag, EditFace::h, NC_GEOM, ND_SELECT, EditFace::next, NULL, OPERATOR_FINISHED, SCE_SELECT_FACE, SELECT, EditMesh::selectmode, SI_SELACTFACE, SI_STICKY_DISABLE, SpaceImage::sticky, TF_SEL1, TF_SEL2, TF_SEL3, TF_SEL4, ToolSettings::uv_flag, UV_SYNC_SELECTION, EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, and WM_event_add_notifier().
Referenced by UV_OT_reveal().
static int select_all_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1563 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), Object::data, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), select_all_perform(), and WM_event_add_notifier().
Referenced by UV_OT_select_all().
static void select_all_perform | ( | bContext * | C, |
int | action | ||
) | [static] |
Definition at line 1492 of file uvedit_ops.c.
References BKE_mesh_get_editmesh(), CD_MTFACE, CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_tool_settings(), CustomData_em_get(), EditFace::data, Object::data, EM_deselect_all(), EM_select_all(), EM_select_swap(), EM_toggle_select_all(), EditMesh::faces, EditMesh::fdata, ListBase::first, MTFace::flag, EditFace::next, SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, TF_SEL1, TF_SEL2, TF_SEL3, TF_SEL4, ToolSettings::uv_flag, UV_SYNC_SELECTION, uvedit_face_visible(), and EditFace::v4.
Referenced by border_select_exec(), and select_all_exec().
static int select_edgeloop | ( | Scene * | scene, |
Image * | ima, | ||
EditMesh * | em, | ||
NearestHit * | hit, | ||
float | limit[2], | ||
int | extend | ||
) | [static] |
Definition at line 805 of file uvedit_ops.c.
References CD_MTFACE, CustomData_em_get(), EditFace::data, NearestHit::edge, NearestHit::efa, EM_free_index_arrays(), EM_free_uv_vert_map(), EM_init_index_arrays(), EM_make_uv_vert_map(), EditFace::f1, EditMesh::faces, EditMesh::fdata, ListBase::first, UvMapVert::flag, EditFace::l, EditVert::l, EditFace::next, EditVert::next, EditFace::tmp, EditVert::tmp, uv_edge_tag_faces(), uv_vertex_loop_flag(), uv_vertex_map_get(), uvedit_face_deselect(), uvedit_face_visible(), uvedit_uv_deselect(), uvedit_uv_select(), uvedit_uv_selected(), EditFace::v4, and EditMesh::verts.
Referenced by mouse_select().
static int select_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1891 of file uvedit_ops.c.
References co, mouse_select(), wmOperator::ptr, RNA_boolean_get(), and RNA_float_get_array().
Referenced by select_invoke(), and UV_OT_select().
static int select_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 1903 of file uvedit_ops.c.
References co, CTX_wm_region(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), select_exec(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by UV_OT_select().
static void select_linked | ( | Scene * | scene, |
Image * | ima, | ||
EditMesh * | em, | ||
float | limit[2], | ||
NearestHit * | hit, | ||
int | extend | ||
) | [static] |
Definition at line 917 of file uvedit_ops.c.
References CD_MTFACE, CustomData_em_get(), EditFace::data, NearestHit::efa, EM_free_index_arrays(), EM_free_uv_vert_map(), EM_get_face_for_index(), EM_get_uv_map_vert(), EM_init_index_arrays(), EM_make_uv_vert_map(), UvMapVert::f, EditMesh::faces, EditMesh::fdata, ListBase::first, MTFace::flag, i, MEM_callocN(), MEM_freeN(), MEM_mallocN(), UvMapVert::next, EditFace::next, NULL, UvMapVert::separate, stack, TF_SEL1, TF_SEL2, TF_SEL3, TF_SEL4, EditMesh::totface, uvedit_face_visible(), EditFace::v1, and EditFace::v4.
Referenced by mouse_select(), and select_linked_internal().
static int select_linked_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 2031 of file uvedit_ops.c.
References NULL, and select_linked_internal().
Referenced by UV_OT_select_linked().
static int select_linked_internal | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event, | ||
int | pick | ||
) | [static] |
Definition at line 1981 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), co, CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_region(), CTX_wm_space_image(), DAG_id_tag_update(), Object::data, find_nearest_uv_vert(), wmEvent::mval, NC_GEOM, ND_SELECT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_float_get_array(), RNA_float_set_array(), RPT_ERROR, select_linked(), UI_view2d_region_to_view(), ToolSettings::uv_flag, UV_SYNC_SELECTION, uvedit_pixel_to_float(), ARegion::v2d, and WM_event_add_notifier().
Referenced by select_linked_exec(), select_linked_pick_exec(), and select_linked_pick_invoke().
static int select_linked_pick_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 2058 of file uvedit_ops.c.
References NULL, and select_linked_internal().
Referenced by UV_OT_select_linked_pick().
static int select_linked_pick_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 2053 of file uvedit_ops.c.
References select_linked_internal().
Referenced by UV_OT_select_linked_pick().
static int select_loop_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1936 of file uvedit_ops.c.
References co, mouse_select(), wmOperator::ptr, RNA_boolean_get(), and RNA_float_get_array().
Referenced by select_loop_invoke(), and UV_OT_select_loop().
static int select_loop_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 1948 of file uvedit_ops.c.
References co, CTX_wm_region(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), select_loop_exec(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by UV_OT_select_loop().
static int select_pinned_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 2886 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CustomData_em_get(), EditFace::data, Object::data, EditMesh::faces, EditMesh::fdata, ListBase::first, NC_GEOM, ND_SELECT, EditFace::next, OPERATOR_FINISHED, TF_PIN1, TF_PIN2, TF_PIN3, TF_PIN4, MTFace::unwrap, uvedit_face_visible(), uvedit_uv_select(), EditFace::v4, and WM_event_add_notifier().
Referenced by UV_OT_select_pinned().
static void select_uv_inside_ellipse | ( | Scene * | scene, |
int | select, | ||
EditFace * | efa, | ||
MTFace * | tface, | ||
int | index, | ||
float * | offset, | ||
float * | ell, | ||
int | select_index | ||
) | [static] |
Definition at line 2430 of file uvedit_ops.c.
References MTFace::uv, uvedit_uv_deselect(), and uvedit_uv_select().
Referenced by circle_select_exec().
static int set_2d_cursor_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 3202 of file uvedit_ops.c.
References CTX_wm_space_image(), SpaceImage::cursor, NC_SPACE, ND_SPACE_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get_array(), and WM_event_add_notifier().
Referenced by set_2d_cursor_invoke(), and UV_OT_cursor_set().
static int set_2d_cursor_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 3219 of file uvedit_ops.c.
References CTX_wm_region(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), set_2d_cursor_exec(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by UV_OT_cursor_set().
static int set_tile_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 3251 of file uvedit_ops.c.
References CTX_data_edit_image(), CTX_data_edit_object(), Object::data, NC_GEOM, NC_SPACE, ND_DATA, ND_SPACE_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get_array(), uvedit_set_tile(), WM_event_add_notifier(), and Image::xrep.
Referenced by set_tile_invoke(), and UV_OT_tile_set().
static int set_tile_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 3269 of file uvedit_ops.c.
References CTX_data_edit_image(), CTX_wm_region(), CTX_wm_space_image(), SpaceImage::curtile, IMA_TILES, wmEvent::mval, OPERATOR_CANCELLED, wmOperator::ptr, RNA_int_set_array(), set_tile_exec(), Image::tpageflag, UI_view2d_region_to_view(), ARegion::v2d, Image::xrep, and Image::yrep.
Referenced by UV_OT_tile_set().
static int snap_cursor_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 2540 of file uvedit_ops.c.
References CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_space_image(), NC_SPACE, ND_SPACE_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), snap_cursor_to_pixels(), snap_cursor_to_selection(), and WM_event_add_notifier().
Referenced by UV_OT_snap_cursor().
static void snap_cursor_to_pixels | ( | SpaceImage * | sima | ) | [static] |
Definition at line 2527 of file uvedit_ops.c.
References SpaceImage::cursor, ED_space_image_size(), and snap_uv_to_pixel().
Referenced by snap_cursor_exec().
static int snap_cursor_to_selection | ( | Scene * | scene, |
Image * | ima, | ||
Object * | obedit, | ||
SpaceImage * | sima | ||
) | [static] |
Definition at line 2535 of file uvedit_ops.c.
References SpaceImage::around, SpaceImage::cursor, and uvedit_center().
Referenced by snap_cursor_exec().
static int snap_selection_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 2777 of file uvedit_ops.c.
References CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_space_image(), DAG_id_tag_update(), Object::data, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), snap_uvs_to_adjacent_unselected(), snap_uvs_to_cursor(), snap_uvs_to_pixels(), uvedit_live_unwrap_update(), and WM_event_add_notifier().
Referenced by UV_OT_snap_selected().
static void snap_uv_to_pixel | ( | float * | uvco, |
float | w, | ||
float | h | ||
) | [static] |
Definition at line 2521 of file uvedit_ops.c.
References simple_enum_gen::w.
Referenced by snap_cursor_to_pixels(), and snap_uvs_to_pixels().
Definition at line 2613 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CustomData_em_get(), EditFace::data, Object::data, EditMesh::faces, EditMesh::fdata, ListBase::first, EditVert::l, MEM_callocN(), MEM_freeN(), EditFace::next, EditVert::next, NULL, EditFace::p, EditFace::tmp, EditVert::tmp, MTFace::uv, uvedit_face_visible(), uvedit_uv_selected(), EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, and EditMesh::verts.
Referenced by snap_selection_exec().
static int snap_uvs_to_cursor | ( | Scene * | scene, |
Image * | ima, | ||
Object * | obedit, | ||
SpaceImage * | sima | ||
) | [static] |
Definition at line 2589 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, copy_v2_v2(), SpaceImage::cursor, CustomData_em_get(), EditFace::data, Object::data, EditMesh::faces, EditMesh::fdata, ListBase::first, EditFace::next, MTFace::uv, uvedit_face_visible(), uvedit_uv_selected(), and EditFace::v4.
Referenced by snap_selection_exec().
static int snap_uvs_to_pixels | ( | SpaceImage * | sima, |
Scene * | scene, | ||
Object * | obedit | ||
) | [static] |
Definition at line 2741 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CustomData_em_get(), EditFace::data, Object::data, ED_space_image_size(), EditMesh::faces, EditMesh::fdata, ListBase::first, SpaceImage::image, EditFace::next, snap_uv_to_pixel(), MTFace::uv, uvedit_face_visible(), uvedit_uv_selected(), EditFace::v4, and simple_enum_gen::w.
Referenced by snap_selection_exec().
static int sticky_select | ( | float * | limit, |
int | hitv[4], | ||
int | v, | ||
float * | hituv[4], | ||
float * | uv, | ||
int | sticky | ||
) | [static] |
Definition at line 1594 of file uvedit_ops.c.
References fabsf, i, SI_STICKY_DISABLE, SI_STICKY_LOC, and SI_STICKY_VERTEX.
Referenced by mouse_select().
static int stitch_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1307 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, UVVertAverage::count, CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_space_image(), CustomData_em_get(), DAG_id_tag_update(), EditFace::data, Object::data, EM_free_index_arrays(), EM_free_uv_vert_map(), EM_get_face_for_index(), EM_get_uv_map_vert(), EM_init_index_arrays(), EM_make_uv_vert_map(), UvMapVert::f, EditMesh::faces, EditMesh::fdata, ListBase::first, EditVert::l, MEM_callocN(), MEM_freeN(), NC_GEOM, ND_DATA, EditFace::next, UvMapVert::next, EditVert::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), UvMapVert::separate, UvMapVert::tfindex, EditVert::tmp, UVVertAverage::uv, MTFace::uv, uvedit_face_visible(), uvedit_live_unwrap_update(), uvedit_uv_selected(), EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, EditMesh::verts, and WM_event_add_notifier().
Referenced by UV_OT_stitch().
static int unlink_selection_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 2086 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BKE_report(), CD_MTFACE, CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_tool_settings(), CustomData_em_get(), DAG_id_tag_update(), EditFace::data, Object::data, EditMesh::faces, EditMesh::fdata, ListBase::first, MTFace::flag, NC_GEOM, ND_SELECT, EditFace::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, TF_SEL1, TF_SEL2, TF_SEL3, TF_SEL4, ToolSettings::uv_flag, UV_SYNC_SELECTION, uvedit_face_visible(), EditFace::v4, and WM_event_add_notifier().
Referenced by UV_OT_unlink_selected().
float uv_area | ( | float | uv[][2], |
int | quad | ||
) |
Definition at line 426 of file uvedit_ops.c.
References area_tri_v2().
Referenced by draw_uvs_stretch().
void uv_center | ( | float | uv[][2], |
float | cent[2], | ||
int | quad | ||
) |
Definition at line 414 of file uvedit_ops.c.
Referenced by border_select_exec(), and draw_uvs().
void uv_copy_aspect | ( | float | uv_orig[][2], |
float | uv[][2], | ||
float | aspx, | ||
float | aspy | ||
) |
Definition at line 434 of file uvedit_ops.c.
Referenced by draw_uvs_stretch().
Definition at line 753 of file uvedit_ops.c.
References EM_get_face_for_index(), UvMapVert::f, EditFace::f1, UvMapVert::next, and UvMapVert::separate.
Referenced by select_edgeloop().
static void uv_faces_do_sticky | ( | bContext * | C, |
SpaceImage * | sima, | ||
Scene * | scene, | ||
Object * | obedit, | ||
short | select | ||
) | [static] |
Definition at line 2142 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CTX_data_tool_settings(), CustomData_em_get(), EditFace::data, Object::data, EM_free_index_arrays(), EM_free_uv_vert_map(), EM_get_face_for_index(), EM_get_uv_map_vert(), EM_init_index_arrays(), EM_make_uv_vert_map(), EditMesh::faces, EditMesh::fdata, ListBase::first, i, EditFace::l, EditVert::l, UvMapVert::next, EditFace::next, EditVert::next, NULL, UvMapVert::separate, SI_STICKY_LOC, SI_STICKY_VERTEX, SpaceImage::sticky, EditFace::tmp, EditVert::tmp, ToolSettings::uv_flag, UV_SYNC_SELECTION, uvedit_face_deselect(), uvedit_face_select(), uvedit_pixel_to_float(), uvedit_uv_deselect(), uvedit_uv_select(), EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, and EditMesh::verts.
Referenced by border_select_exec().
static void UV_OT_align | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 1252 of file uvedit_ops.c.
References align_exec(), wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_circle_select | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 2495 of file uvedit_ops.c.
References wmOperatorType::cancel, circle_select_exec(), wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, WM_gesture_circle_cancel(), WM_gesture_circle_invoke(), and WM_gesture_circle_modal().
Referenced by ED_operatortypes_uvedit().
static void UV_OT_cursor_set | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 3230 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_float_vector(), set_2d_cursor_exec(), set_2d_cursor_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_hide | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 3053 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, hide_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_pin | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 2868 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, pin_exec(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_reveal | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 3187 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and reveal_exec().
Referenced by ED_operatortypes_uvedit().
static void UV_OT_select | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 1914 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float_vector(), select_exec(), select_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_select_all | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 1577 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, select_all_exec(), and WM_operator_properties_select_all().
Referenced by ED_operatortypes_uvedit().
static void UV_OT_select_border | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 2405 of file uvedit_ops.c.
References border_select_exec(), wmOperatorType::cancel, wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, TRUE, WM_border_select_cancel(), WM_border_select_invoke(), WM_border_select_modal(), and WM_operator_properties_gesture_border().
Referenced by ED_operatortypes_uvedit().
static void UV_OT_select_linked | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 2036 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), select_linked_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_select_linked_pick | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 2063 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float_vector(), select_linked_pick_exec(), select_linked_pick_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_select_loop | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 1959 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float_vector(), select_loop_exec(), select_loop_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_select_pinned | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 2914 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and select_pinned_exec().
Referenced by ED_operatortypes_uvedit().
static void UV_OT_snap_cursor | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 2566 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), snap_cursor_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_snap_selected | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 2807 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), snap_selection_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_stitch | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 1473 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float(), wmOperatorType::srna, and stitch_exec().
Referenced by ED_operatortypes_uvedit().
static void UV_OT_tile_set | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 3296 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_image_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_int_vector(), set_tile_exec(), set_tile_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
static void UV_OT_unlink_selected | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 2120 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and unlink_selection_exec().
Referenced by ED_operatortypes_uvedit().
static void UV_OT_weld | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 1286 of file uvedit_ops.c.
References wmOperatorType::description, ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and weld_exec().
Referenced by ED_operatortypes_uvedit().
static void uv_vertex_loop_flag | ( | UvMapVert * | first | ) | [static] |
Definition at line 721 of file uvedit_ops.c.
References UvMapVert::flag, UvMapVert::next, and UvMapVert::separate.
Referenced by select_edgeloop().
Definition at line 737 of file uvedit_ops.c.
References EM_get_uv_map_vert(), UvMapVert::f, EditFace::l, UvMapVert::next, NULL, UvMapVert::separate, EditFace::tmp, and EditFace::v1.
Referenced by select_edgeloop().
static int uvedit_center | ( | Scene * | scene, |
Image * | ima, | ||
Object * | obedit, | ||
float * | cent, | ||
char | mode | ||
) | [static] |
Definition at line 498 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), Object::data, ED_uvedit_median(), ED_uvedit_minmax(), max, min, and V3D_CENTER.
Referenced by snap_cursor_to_selection(), and weld_align_uv().
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().
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().
static void uvedit_live_unwrap_update | ( | SpaceImage * | sima, |
Scene * | scene, | ||
Object * | obedit | ||
) | [static] |
Definition at line 403 of file uvedit_ops.c.
References ED_uvedit_live_unwrap_begin(), ED_uvedit_live_unwrap_end(), ED_uvedit_live_unwrap_re_solve(), SpaceImage::flag, and SI_LIVE_UNWRAP.
Referenced by snap_selection_exec(), stitch_exec(), and weld_align_uv().
static void uvedit_pixel_to_float | ( | SpaceImage * | sima, |
float * | dist, | ||
float | pixeldist | ||
) | [static] |
Definition at line 236 of file uvedit_ops.c.
References ED_space_image_size().
Referenced by mouse_select(), select_linked_internal(), and uv_faces_do_sticky().
Definition at line 202 of file uvedit_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CustomData_em_get(), DAG_id_tag_update(), EditFace::data, Object::data, ED_uvedit_test(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, EditFace::h, IMA_TILES, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, EditFace::next, SELECT, MTFace::tile, Image::tpageflag, and Image::type.
Referenced by set_tile_exec().
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().
static void weld_align_uv | ( | bContext * | C, |
int | tool | ||
) | [static] |
Definition at line 1038 of file uvedit_ops.c.
References ABS, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CTX_data_edit_image(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_space_image(), CustomData_em_get(), DAG_id_tag_update(), EditFace::data, Object::data, DO_MINMAX2, EditMesh::faces, EditMesh::fdata, ListBase::first, i, INIT_MINMAX2, EditVert::l, max, min, NC_GEOM, ND_DATA, EditVert::next, EditFace::next, NULL, EditVert::tmp, MTFace::uv, uvedit_center(), uvedit_face_selected(), uvedit_face_visible(), uvedit_live_unwrap_update(), uvedit_uv_selected(), EditFace::v1, EditFace::v4, EditMesh::verts, and WM_event_add_notifier().
Referenced by align_exec(), and weld_exec().
static int weld_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 1279 of file uvedit_ops.c.
References OPERATOR_FINISHED, and weld_align_uv().
Referenced by UV_OT_weld().