Blender V2.61 - r43446
Functions | Variables

space_image.c File Reference

#include <string.h>
#include <stdio.h>
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_editVert.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "BKE_colortools.h"
#include "BKE_context.h"
#include "BKE_image.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "IMB_imbuf_types.h"
#include "ED_image.h"
#include "ED_mesh.h"
#include "ED_space_api.h"
#include "ED_screen.h"
#include "ED_uvedit.h"
#include "BIF_gl.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "image_intern.h"

Go to the source code of this file.

Functions

ImageED_space_image (SpaceImage *sima)
void ED_space_image_set (SpaceImage *sima, Scene *scene, Object *obedit, Image *ima)
ImBufED_space_image_acquire_buffer (SpaceImage *sima, void **lock_r)
void ED_space_image_release_buffer (SpaceImage *sima, void *lock)
int ED_space_image_has_buffer (SpaceImage *sima)
void ED_image_size (Image *ima, int *width, int *height)
void ED_space_image_size (SpaceImage *sima, int *width, int *height)
void ED_image_aspect (Image *ima, float *aspx, float *aspy)
void ED_space_image_aspect (SpaceImage *sima, float *aspx, float *aspy)
void ED_space_image_zoom (SpaceImage *sima, ARegion *ar, float *zoomx, float *zoomy)
void ED_space_image_uv_aspect (SpaceImage *sima, float *aspx, float *aspy)
void ED_image_uv_aspect (Image *ima, float *aspx, float *aspy)
int ED_space_image_show_render (SpaceImage *sima)
int ED_space_image_show_paint (SpaceImage *sima)
int ED_space_image_show_uvedit (SpaceImage *sima, Object *obedit)
int ED_space_image_show_uvshadow (SpaceImage *sima, Object *obedit)
static void image_scopes_tag_refresh (ScrArea *sa)
ARegionimage_has_buttons_region (ScrArea *sa)
ARegionimage_has_scope_region (ScrArea *sa)
static SpaceLinkimage_new (const bContext *UNUSED(C))
static void image_free (SpaceLink *sl)
static void image_init (struct wmWindowManager *UNUSED(wm), ScrArea *sa)
static SpaceLinkimage_duplicate (SpaceLink *sl)
static void image_operatortypes (void)
static void image_keymap (struct wmKeyConfig *keyconf)
static int image_drop_poll (bContext *UNUSED(C), wmDrag *drag, wmEvent *UNUSED(event))
static void image_drop_copy (wmDrag *drag, wmDropBox *drop)
static void image_dropboxes (void)
static void image_refresh (const bContext *C, ScrArea *UNUSED(sa))
static void image_listener (ScrArea *sa, wmNotifier *wmn)
static int image_context (const bContext *C, const char *member, bContextDataResult *result)
static void image_main_area_set_view2d (SpaceImage *sima, ARegion *ar)
static void image_main_area_init (wmWindowManager *wm, ARegion *ar)
static void image_main_area_draw (const bContext *C, ARegion *ar)
static void image_main_area_listener (ARegion *ar, wmNotifier *wmn)
static void image_buttons_area_init (wmWindowManager *wm, ARegion *ar)
static void image_buttons_area_draw (const bContext *C, ARegion *ar)
static void image_buttons_area_listener (ARegion *ar, wmNotifier *wmn)
static void image_scope_area_init (wmWindowManager *wm, ARegion *ar)
static void image_scope_area_draw (const bContext *C, ARegion *ar)
static void image_scope_area_listener (ARegion *ar, wmNotifier *wmn)
static void image_header_area_init (wmWindowManager *UNUSED(wm), ARegion *ar)
static void image_header_area_draw (const bContext *C, ARegion *ar)
static void image_header_area_listener (ARegion *ar, wmNotifier *wmn)
void ED_spacetype_image (void)

Variables

const char * image_context_dir [] = {"edit_image", NULL}

Detailed Description

Definition in file space_image.c.


Function Documentation

void ED_image_aspect ( Image ima,
float *  aspx,
float *  aspy 
)
void ED_image_size ( Image ima,
int *  width,
int *  height 
)

Definition at line 147 of file space_image.c.

References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), NULL, ImBuf::x, and ImBuf::y.

Referenced by ED_image_uv_aspect().

void ED_image_uv_aspect ( Image ima,
float *  aspx,
float *  aspy 
)

Definition at line 248 of file space_image.c.

References ED_image_aspect(), ED_image_size(), and simple_enum_gen::w.

Referenced by construct_param_handle(), and correct_uv_aspect().

Image* ED_space_image ( SpaceImage sima) [read]
ImBuf* ED_space_image_acquire_buffer ( SpaceImage sima,
void **  lock_r 
) [read]
void ED_space_image_aspect ( SpaceImage sima,
float *  aspx,
float *  aspy 
)

Definition at line 213 of file space_image.c.

References ED_image_aspect(), and ED_space_image().

Referenced by ED_space_image_uv_aspect(), and image_view_all_exec().

int ED_space_image_has_buffer ( SpaceImage sima)
void ED_space_image_release_buffer ( SpaceImage sima,
void *  lock 
)
void ED_space_image_set ( SpaceImage sima,
Scene scene,
Object obedit,
Image ima 
)
int ED_space_image_show_paint ( SpaceImage sima)
int ED_space_image_show_render ( SpaceImage sima)
int ED_space_image_show_uvedit ( SpaceImage sima,
Object obedit 
)
int ED_space_image_show_uvshadow ( SpaceImage sima,
Object obedit 
)
void ED_space_image_size ( SpaceImage sima,
int *  width,
int *  height 
)
void ED_space_image_uv_aspect ( SpaceImage sima,
float *  aspx,
float *  aspy 
)
void ED_space_image_zoom ( SpaceImage sima,
ARegion ar,
float *  zoomx,
float *  zoomy 
)
void ED_spacetype_image ( void  )
static void image_buttons_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 855 of file space_image.c.

References ED_region_panels(), and NULL.

Referenced by ED_spacetype_image().

static void image_buttons_area_init ( wmWindowManager wm,
ARegion ar 
) [static]
static void image_buttons_area_listener ( ARegion ar,
wmNotifier wmn 
) [static]
static int image_context ( const bContext C,
const char *  member,
bContextDataResult result 
) [static]
static void image_drop_copy ( wmDrag drag,
wmDropBox drop 
) [static]

Definition at line 558 of file space_image.c.

References wmDrag::path, wmDropBox::ptr, and RNA_string_set().

Referenced by image_dropboxes().

static int image_drop_poll ( bContext UNUSEDC,
wmDrag drag,
wmEvent UNUSEDevent 
) [static]

Definition at line 550 of file space_image.c.

References ELEM3, wmDrag::icon, wmDrag::type, and WM_DRAG_PATH.

Referenced by image_dropboxes().

static void image_dropboxes ( void  ) [static]
static SpaceLink* image_duplicate ( SpaceLink sl) [static]
static void image_free ( SpaceLink sl) [static]

Definition at line 429 of file space_image.c.

References SpaceImage::cumap, curvemapping_free(), SpaceImage::scopes, and scopes_free().

Referenced by ED_spacetype_image().

ARegion* image_has_buttons_region ( ScrArea sa) [read]
ARegion* image_has_scope_region ( ScrArea sa) [read]
static void image_header_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 933 of file space_image.c.

References ED_region_header().

Referenced by ED_spacetype_image().

static void image_header_area_init ( wmWindowManager UNUSEDwm,
ARegion ar 
) [static]

Definition at line 928 of file space_image.c.

References ED_region_header_init().

Referenced by ED_spacetype_image().

static void image_header_area_listener ( ARegion ar,
wmNotifier wmn 
) [static]
static void image_init ( struct wmWindowManager UNUSEDwm,
ScrArea sa 
) [static]
static void image_keymap ( struct wmKeyConfig keyconf) [static]
static void image_listener ( ScrArea sa,
wmNotifier wmn 
) [static]
static void image_main_area_draw ( const bContext C,
ARegion ar 
) [static]
static void image_main_area_init ( wmWindowManager wm,
ARegion ar 
) [static]
static void image_main_area_listener ( ARegion ar,
wmNotifier wmn 
) [static]
static void image_main_area_set_view2d ( SpaceImage sima,
ARegion ar 
) [static]
static SpaceLink* image_new ( const bContext UNUSEDC) [static]
static void image_operatortypes ( void  ) [static]
static void image_refresh ( const bContext C,
ScrArea UNUSEDsa 
) [static]
static void image_scope_area_draw ( const bContext C,
ARegion ar 
) [static]
static void image_scope_area_init ( wmWindowManager wm,
ARegion ar 
) [static]
static void image_scope_area_listener ( ARegion ar,
wmNotifier wmn 
) [static]
static void image_scopes_tag_refresh ( ScrArea sa) [static]

Variable Documentation

const char* image_context_dir[] = {"edit_image", NULL}

Definition at line 689 of file space_image.c.