Blender V2.61 - r43446
|
#include <string.h>
#include <stdio.h>
#include "MEM_guardedalloc.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_editVert.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_customdata.h"
#include "BKE_mesh.h"
#include "BKE_screen.h"
#include "ED_image.h"
#include "ED_uvedit.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "WM_api.h"
#include "WM_types.h"
Go to the source code of this file.
Defines | |
#define | B_UVEDIT_VERTEX 3 |
Functions | |
static int | uvedit_center (Scene *scene, EditMesh *em, Image *ima, float center[2]) |
static void | uvedit_translate (Scene *scene, EditMesh *em, Image *ima, float delta[2]) |
static void | uvedit_vertex_buttons (const bContext *C, uiBlock *block) |
static void | do_uvedit_vertex (bContext *C, void *UNUSED(arg), int event) |
static int | image_panel_uv_poll (const bContext *C, PanelType *UNUSED(pt)) |
static void | image_panel_uv (const bContext *C, Panel *pa) |
void | ED_uvedit_buttons_register (ARegionType *art) |
Variables | |
static float | uvedit_old_center [2] |
Definition in file uvedit_buttons.c.
#define B_UVEDIT_VERTEX 3 |
Definition at line 60 of file uvedit_buttons.c.
Referenced by do_uvedit_vertex(), and uvedit_vertex_buttons().
static void do_uvedit_vertex | ( | bContext * | C, |
void * | UNUSEDarg, | ||
int | event | ||
) | [static] |
Definition at line 168 of file uvedit_buttons.c.
References B_UVEDIT_VERTEX, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_space_image(), Object::data, ED_space_image_size(), SpaceImage::flag, SpaceImage::image, NC_IMAGE, SI_COORDFLOATS, uvedit_center(), uvedit_old_center, uvedit_translate(), and WM_event_add_notifier().
Referenced by image_panel_uv().
void ED_uvedit_buttons_register | ( | 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 210 of file uvedit_buttons.c.
References do_uvedit_vertex(), Panel::layout, NULL, uiBlockSetHandleFunc(), uiLayoutAbsoluteBlock(), and uvedit_vertex_buttons().
Referenced by ED_uvedit_buttons_register().
Definition at line 204 of file uvedit_buttons.c.
References CTX_data_edit_object(), and ED_uvedit_test().
Referenced by ED_uvedit_buttons_register().
Definition at line 64 of file uvedit_buttons.c.
References add_v2_v2(), CD_MTFACE, CustomData_em_get(), EditFace::data, EditMesh::faces, EditMesh::fdata, ListBase::first, EditFace::next, MTFace::uv, uvedit_face_visible(), uvedit_uv_selected(), EditFace::v4, and zero_v2().
Referenced by do_uvedit_vertex(), and uvedit_vertex_buttons().
Definition at line 103 of file uvedit_buttons.c.
References add_v2_v2(), CD_MTFACE, CustomData_em_get(), EditFace::data, EditMesh::faces, EditMesh::fdata, ListBase::first, EditFace::next, MTFace::uv, uvedit_face_visible(), uvedit_uv_selected(), and EditFace::v4.
Referenced by do_uvedit_vertex().
Definition at line 128 of file uvedit_buttons.c.
References B_UVEDIT_VERTEX, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), copy_v2_v2(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_space_image(), Object::data, ED_space_image_size(), SpaceImage::flag, SpaceImage::image, NUM, SI_COORDFLOATS, step(), uiBlockBeginAlign(), uiBlockEndAlign(), uiDefButF(), uvedit_center(), and uvedit_old_center.
Referenced by image_panel_uv().
float uvedit_old_center[2] [static] |
Definition at line 126 of file uvedit_buttons.c.
Referenced by do_uvedit_vertex(), and uvedit_vertex_buttons().