Blender V2.61 - r43446
Defines | Functions | Variables

uvedit_buttons.c File Reference

#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]

Detailed Description

Definition in file uvedit_buttons.c.


Define Documentation

#define B_UVEDIT_VERTEX   3

Definition at line 60 of file uvedit_buttons.c.

Referenced by do_uvedit_vertex(), and uvedit_vertex_buttons().


Function Documentation

static void do_uvedit_vertex ( bContext C,
void *  UNUSEDarg,
int  event 
) [static]
void ED_uvedit_buttons_register ( ARegionType art)
static void image_panel_uv ( const bContext C,
Panel pa 
) [static]
static int image_panel_uv_poll ( const bContext C,
PanelType UNUSEDpt 
) [static]

Definition at line 204 of file uvedit_buttons.c.

References CTX_data_edit_object(), and ED_uvedit_test().

Referenced by ED_uvedit_buttons_register().

static int uvedit_center ( Scene scene,
EditMesh em,
Image ima,
float  center[2] 
) [static]
static void uvedit_translate ( Scene scene,
EditMesh em,
Image ima,
float  delta[2] 
) [static]
static void uvedit_vertex_buttons ( const bContext C,
uiBlock block 
) [static]

Variable Documentation

float uvedit_old_center[2] [static]

Definition at line 126 of file uvedit_buttons.c.

Referenced by do_uvedit_vertex(), and uvedit_vertex_buttons().