Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

image_buttons.c File Reference

#include <string.h>
#include <stdio.h>
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_node_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_customdata.h"
#include "BKE_image.h"
#include "BKE_mesh.h"
#include "BKE_node.h"
#include "BKE_screen.h"
#include "RE_pipeline.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "ED_gpencil.h"
#include "ED_image.h"
#include "ED_screen.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "image_intern.h"

Go to the source code of this file.

Classes

struct  RNAUpdateCb

Defines

#define B_REDR   1
#define B_IMAGECHANGED   2
#define B_NOP   0
#define B_TWINANIM   5
#define B_SIMAGETILE   6
#define B_IDNAME   10
#define B_FACESEL_PAINT_TEST   11
#define B_SIMA_RECORD   12
#define B_SIMA_PLAY   13
#define B_SIMANOTHING   16
#define B_SIMABRUSHCHANGE   17
#define B_SIMABRUSHBROWSE   18
#define B_SIMABRUSHLOCAL   19
#define B_SIMABRUSHDELETE   20
#define B_KEEPDATA   21
#define B_SIMABTEXBROWSE   22
#define B_SIMABTEXDELETE   23
#define B_VPCOLSLI   24
#define B_SIMACLONEBROWSE   25
#define B_SIMACLONEDELETE   26

Typedefs

typedef struct RNAUpdateCb RNAUpdateCb

Functions

static void image_info (Scene *scene, ImageUser *iuser, Image *ima, ImBuf *ibuf, char *str)
struct ImageUserntree_get_active_iuser (bNodeTree *ntree)
static int image_panel_poll (const bContext *C, PanelType *UNUSED(pt))
static void image_panel_curves (const bContext *C, Panel *pa)
static char * slot_menu (void)
static char * layer_menu (RenderResult *rr, short *UNUSED(curlay))
static char * pass_menu (RenderLayer *rl, short *curpass)
static void set_frames_cb (bContext *C, void *ima_v, void *iuser_v)
static void image_multi_cb (bContext *C, void *rr_v, void *iuser_v)
static void image_multi_inclay_cb (bContext *C, void *rr_v, void *iuser_v)
static void image_multi_declay_cb (bContext *C, void *rr_v, void *iuser_v)
static void image_multi_incpass_cb (bContext *C, void *rr_v, void *iuser_v)
static void image_multi_decpass_cb (bContext *C, void *rr_v, void *iuser_v)
static void uiblock_layer_pass_buttons (uiLayout *layout, RenderResult *rr, ImageUser *iuser, int w, short *render_slot)
static void uiblock_layer_pass_arrow_buttons (uiLayout *layout, RenderResult *rr, ImageUser *iuser, short *render_slot)
static void rna_update_cb (bContext *C, void *arg_cb, void *UNUSED(arg))
void uiTemplateImage (uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, PointerRNA *userptr, int compact)
void uiTemplateImageSettings (uiLayout *layout, PointerRNA *imfptr)
void uiTemplateImageLayers (uiLayout *layout, bContext *C, Image *ima, ImageUser *iuser)
void image_buttons_register (ARegionType *art)
static int image_properties (bContext *C, wmOperator *UNUSED(op))
void IMAGE_OT_properties (wmOperatorType *ot)
static int image_scopes (bContext *C, wmOperator *UNUSED(op))
void IMAGE_OT_scopes (wmOperatorType *ot)

Detailed Description

Definition in file image_buttons.c.


Define Documentation

#define B_FACESEL_PAINT_TEST   11

Definition at line 81 of file image_buttons.c.

#define B_IDNAME   10

Definition at line 80 of file image_buttons.c.

#define B_IMAGECHANGED   2

Definition at line 76 of file image_buttons.c.

Referenced by uiTemplateImage().

#define B_KEEPDATA   21

Definition at line 90 of file image_buttons.c.

#define B_NOP   0

Definition at line 77 of file image_buttons.c.

#define B_REDR   1

Definition at line 75 of file image_buttons.c.

#define B_SIMA_PLAY   13

Definition at line 83 of file image_buttons.c.

Referenced by uiTemplateImage().

#define B_SIMA_RECORD   12

Definition at line 82 of file image_buttons.c.

Referenced by uiTemplateImage().

#define B_SIMABRUSHBROWSE   18

Definition at line 87 of file image_buttons.c.

#define B_SIMABRUSHCHANGE   17

Definition at line 86 of file image_buttons.c.

#define B_SIMABRUSHDELETE   20

Definition at line 89 of file image_buttons.c.

#define B_SIMABRUSHLOCAL   19

Definition at line 88 of file image_buttons.c.

#define B_SIMABTEXBROWSE   22

Definition at line 91 of file image_buttons.c.

#define B_SIMABTEXDELETE   23

Definition at line 92 of file image_buttons.c.

#define B_SIMACLONEBROWSE   25

Definition at line 94 of file image_buttons.c.

#define B_SIMACLONEDELETE   26

Definition at line 95 of file image_buttons.c.

#define B_SIMAGETILE   6

Definition at line 79 of file image_buttons.c.

#define B_SIMANOTHING   16

Definition at line 85 of file image_buttons.c.

#define B_TWINANIM   5

Definition at line 78 of file image_buttons.c.

#define B_VPCOLSLI   24

Definition at line 93 of file image_buttons.c.


Typedef Documentation

typedef struct RNAUpdateCb RNAUpdateCb

Function Documentation

void image_buttons_register ( ARegionType art)
static void image_info ( Scene scene,
ImageUser iuser,
Image ima,
ImBuf ibuf,
char *  str 
) [static]
static void image_multi_cb ( bContext C,
void *  rr_v,
void *  iuser_v 
) [static]
static void image_multi_declay_cb ( bContext C,
void *  rr_v,
void *  iuser_v 
) [static]
static void image_multi_decpass_cb ( bContext C,
void *  rr_v,
void *  iuser_v 
) [static]
static void image_multi_inclay_cb ( bContext C,
void *  rr_v,
void *  iuser_v 
) [static]
static void image_multi_incpass_cb ( bContext C,
void *  rr_v,
void *  iuser_v 
) [static]
void IMAGE_OT_properties ( wmOperatorType ot)
void IMAGE_OT_scopes ( wmOperatorType ot)
static void image_panel_curves ( const bContext C,
Panel pa 
) [static]
static int image_panel_poll ( const bContext C,
PanelType UNUSEDpt 
) [static]
static int image_properties ( bContext C,
wmOperator UNUSEDop 
) [static]
static int image_scopes ( bContext C,
wmOperator UNUSEDop 
) [static]
static char* layer_menu ( RenderResult rr,
short *  UNUSEDcurlay 
) [static]
struct ImageUser* ntree_get_active_iuser ( bNodeTree ntree) [read]
static char* pass_menu ( RenderLayer rl,
short *  curpass 
) [static]
static void rna_update_cb ( bContext C,
void *  arg_cb,
void *  UNUSEDarg 
) [static]
static void set_frames_cb ( bContext C,
void *  ima_v,
void *  iuser_v 
) [static]
static char* slot_menu ( void  ) [static]

Definition at line 354 of file image_buttons.c.

References IMA_MAX_RENDER_SLOT, MEM_callocN(), str, and strlen().

Referenced by uiblock_layer_pass_buttons().

static void uiblock_layer_pass_arrow_buttons ( uiLayout layout,
RenderResult rr,
ImageUser iuser,
short *  render_slot 
) [static]
static void uiblock_layer_pass_buttons ( uiLayout layout,
RenderResult rr,
ImageUser iuser,
int  w,
short *  render_slot 
) [static]
void uiTemplateImage ( uiLayout layout,
bContext C,
PointerRNA ptr,
const char *  propname,
PointerRNA userptr,
int  compact 
)
void uiTemplateImageLayers ( uiLayout layout,
bContext C,
Image ima,
ImageUser iuser 
)
void uiTemplateImageSettings ( uiLayout layout,
PointerRNA imfptr 
)