Blender
V3.3
|
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_fileops.h"
#include "BLI_ghash.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "DNA_camera_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BKE_colortools.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_icons.h"
#include "BKE_image.h"
#include "BKE_image_format.h"
#include "BKE_image_save.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_packedFile.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "DEG_depsgraph.h"
#include "GPU_state.h"
#include "IMB_colormanagement.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_moviecache.h"
#include "IMB_openexr.h"
#include "RE_pipeline.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "ED_image.h"
#include "ED_mask.h"
#include "ED_paint.h"
#include "ED_render.h"
#include "ED_screen.h"
#include "ED_space_api.h"
#include "ED_util.h"
#include "ED_util_imbuf.h"
#include "ED_uvedit.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "WM_api.h"
#include "WM_types.h"
#include "PIL_time.h"
#include "RE_engine.h"
#include "image_intern.h"
Go to the source code of this file.
Classes | |
struct | ViewPanData |
struct | ViewZoomData |
struct | ImageOpenData |
struct | ImageSaveData |
struct | ImageNewData |
New Image Operator | |
#define | IMA_DEF_NAME N_("Untitled") |
enum | { GEN_CONTEXT_NONE = 0 , GEN_CONTEXT_PAINT_CANVAS = 1 , GEN_CONTEXT_PAINT_STENCIL = 2 } |
typedef struct ImageNewData | ImageNewData |
static ImageNewData * | image_new_init (bContext *C, wmOperator *op) |
static void | image_new_free (wmOperator *op) |
static int | image_new_exec (bContext *C, wmOperator *op) |
static int | image_new_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) |
static void | image_new_draw (bContext *UNUSED(C), wmOperator *op) |
static void | image_new_cancel (bContext *UNUSED(C), wmOperator *op) |
void | IMAGE_OT_new (wmOperatorType *ot) |
View Zoom Operator | |
enum | { VIEW_PASS = 0 , VIEW_APPLY , VIEW_CONFIRM } |
typedef struct ViewZoomData | ViewZoomData |
static void | image_view_zoom_init (bContext *C, wmOperator *op, const wmEvent *event) |
static void | image_view_zoom_exit (bContext *C, wmOperator *op, bool cancel) |
static int | image_view_zoom_exec (bContext *C, wmOperator *op) |
static int | image_view_zoom_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
static void | image_zoom_apply (ViewZoomData *vpd, wmOperator *op, const int x, const int y, const short viewzoom, const short zoom_invert, const bool zoom_to_pos) |
static int | image_view_zoom_modal (bContext *C, wmOperator *op, const wmEvent *event) |
static void | image_view_zoom_cancel (bContext *C, wmOperator *op) |
void | IMAGE_OT_view_zoom (wmOperatorType *ot) |
View Pan Operator | |
typedef struct ViewPanData | ViewPanData |
static void | image_view_pan_init (bContext *C, wmOperator *op, const wmEvent *event) |
static void | image_view_pan_exit (bContext *C, wmOperator *op, bool cancel) |
static int | image_view_pan_exec (bContext *C, wmOperator *op) |
static int | image_view_pan_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
static int | image_view_pan_modal (bContext *C, wmOperator *op, const wmEvent *event) |
static void | image_view_pan_cancel (bContext *C, wmOperator *op) |
void | IMAGE_OT_view_pan (wmOperatorType *ot) |
Open Image Operator | |
typedef struct ImageOpenData | ImageOpenData |
static void | image_open_init (bContext *C, wmOperator *op) |
static void | image_open_cancel (bContext *UNUSED(C), wmOperator *op) |
static Image * | image_open_single (Main *bmain, wmOperator *op, ImageFrameRange *range, const char *relbase, bool is_relative_path, bool use_multiview) |
static int | image_open_exec (bContext *C, wmOperator *op) |
static int | image_open_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) |
static bool | image_open_draw_check_prop (PointerRNA *UNUSED(ptr), PropertyRNA *prop, void *UNUSED(user_data)) |
static void | image_open_draw (bContext *UNUSED(C), wmOperator *op) |
static void | image_operator_prop_allow_tokens (wmOperatorType *ot) |
void | IMAGE_OT_open (wmOperatorType *ot) |
Save Image As Operator | |
typedef struct ImageSaveData | ImageSaveData |
static void | image_save_options_from_op (Main *bmain, ImageSaveOptions *opts, wmOperator *op) |
static bool | save_image_op (Main *bmain, Image *ima, ImageUser *iuser, wmOperator *op, const ImageSaveOptions *opts) |
static ImageSaveData * | image_save_as_init (bContext *C, wmOperator *op) |
static void | image_save_as_free (wmOperator *op) |
static int | image_save_as_exec (bContext *C, wmOperator *op) |
static bool | image_save_as_check (bContext *C, wmOperator *op) |
static int | image_save_as_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) |
static void | image_save_as_cancel (bContext *UNUSED(C), wmOperator *op) |
static bool | image_save_as_draw_check_prop (PointerRNA *ptr, PropertyRNA *prop, void *UNUSED(user_data)) |
static void | image_save_as_draw (bContext *UNUSED(C), wmOperator *op) |
static bool | image_save_as_poll (bContext *C) |
void | IMAGE_OT_save_as (wmOperatorType *ot) |
Definition at line 2488 of file image_ops.c.
typedef struct ImageNewData ImageNewData |
typedef struct ImageOpenData ImageOpenData |
typedef struct ImageSaveData ImageSaveData |
typedef struct ViewPanData ViewPanData |
typedef struct ViewZoomData ViewZoomData |
anonymous enum |
Enumerator | |
---|---|
VIEW_PASS | |
VIEW_APPLY | |
VIEW_CONFIRM |
Definition at line 580 of file image_ops.c.
anonymous enum |
Enumerator | |
---|---|
GEN_CONTEXT_NONE | |
GEN_CONTEXT_PAINT_CANVAS | |
GEN_CONTEXT_PAINT_STENCIL |
Definition at line 2490 of file image_ops.c.
|
static |
Definition at line 3587 of file image_ops.c.
References C, RenderData::cfra, CTX_data_scene(), DEG_id_tag_update(), FRAMENUMBER_MIN_CLAMP, Scene::id, ID_RECALC_FRAME_CHANGE, NC_SCENE, ND_FRAME, wmOperator::ptr, Scene::r, RNA_int_get(), scene, RenderData::subframe, and WM_event_add_notifier().
Referenced by change_frame_exec(), change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 3601 of file image_ops.c.
References C, change_frame_apply(), and OPERATOR_FINISHED.
Referenced by IMAGE_OT_change_frame().
|
static |
Definition at line 3630 of file image_ops.c.
References C, change_frame_apply(), CTX_wm_region(), CTX_wm_space_image(), ED_space_image_show_cache_and_mval_over(), frame_from_event(), wmEvent::mval, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ARegion::regiontype, RGN_TYPE_WINDOW, RNA_int_set(), and WM_event_add_modal_handler().
Referenced by IMAGE_OT_change_frame().
|
static |
Definition at line 3651 of file image_ops.c.
References C, change_frame_apply(), EVT_ESCKEY, frame_from_event(), KM_RELEASE, LEFTMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RIGHTMOUSE, RNA_int_set(), wmEvent::type, and wmEvent::val.
Referenced by IMAGE_OT_change_frame().
Definition at line 3577 of file image_ops.c.
References C, G, and space_image_main_region_poll().
Referenced by IMAGE_OT_change_frame().
|
static |
Definition at line 3819 of file image_ops.c.
References BLI_rctf_init(), RenderData::border, C, CTX_data_scene(), RenderData::mode, NC_SCENE, ND_RENDER_OPTIONS, NULL, OPERATOR_FINISHED, Scene::r, R_BORDER, scene, and WM_event_add_notifier().
Referenced by IMAGE_OT_clear_render_border().
|
static |
Definition at line 3903 of file image_ops.c.
References IMA_GENTYPE_BLANK, NULL, PROP_COLOR_GAMMA, PROP_PIXEL, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_color(), RNA_def_int(), RNA_def_property_float_array_default(), RNA_def_property_subtype(), and rna_enum_image_generated_type_items.
Referenced by IMAGE_OT_tile_add(), and IMAGE_OT_tile_fill().
|
static |
Definition at line 3849 of file image_ops.c.
References BKE_image_fill_tile(), color, height, ptr, RNA_boolean_get(), RNA_enum_get(), RNA_float_get_array(), RNA_int_get(), tile, and width.
Referenced by tile_add_exec(), and tile_fill_exec().
|
static |
Definition at line 3862 of file image_ops.c.
References col, NULL, ptr, uiItemR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by tile_add_draw(), and tile_fill_draw().
bool ED_image_save_all_modified | ( | const bContext * | C, |
ReportList * | reports | ||
) |
Definition at line 2383 of file image_ops.c.
References BKE_image_has_packedfile(), BKE_image_memorypack(), BKE_image_save(), BKE_image_save_options_free(), BKE_image_save_options_init(), C, CTX_data_main(), CTX_data_scene(), ED_image_save_all_modified_info(), ListBase::first, image_has_valid_path(), image_should_be_saved(), image_should_pack_during_save_all(), Main::images, NULL, and scene.
Referenced by image_save_all_modified_exec().
int ED_image_save_all_modified_info | ( | const Main * | bmain, |
ReportList * | reports | ||
) |
Definition at line 2328 of file image_ops.c.
References BKE_image_has_packedfile(), BKE_reportf(), BLI_gset_free(), BLI_gset_haskey(), BLI_gset_insert(), BLI_gset_str_new(), BLI_strdup(), ListBase::first, ID_IS_LINKED, image_has_valid_path(), image_should_be_saved(), image_should_pack_during_save_all(), Main::images, MEM_freeN, and RPT_WARNING.
Referenced by ED_image_save_all_modified(), ED_image_should_save_modified(), and image_save_all_modified_poll().
Definition at line 2315 of file image_ops.c.
References BKE_reports_clear(), BKE_reports_init(), BLI_listbase_is_empty(), ED_image_save_all_modified_info(), ReportList::list, and RPT_STORE.
bool ED_space_image_color_sample | ( | struct SpaceImage * | sima, |
struct ARegion * | region, | ||
const int | mval[2], | ||
float | r_col[3], | ||
bool * | r_is_data | ||
) |
Returns color in linear space, matching ED_space_node_color_sample().
Definition at line 3215 of file image_ops.c.
References BKE_image_get_tile_from_pos(), ImBuf::channels, CLAMP, ImBuf::colormanage_flag, copy_v3_v3(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), SpaceImage::image, IMB_COLORMANAGE_IS_DATA, IMB_colormanagement_colorspace_to_scene_linear_v3(), lock, NULL, ImBuf::rect, ImBuf::rect_colorspace, ImBuf::rect_float, ret, rgb_uchar_to_float(), tile, UI_view2d_region_to_view(), ARegion::v2d, x, ImBuf::x, y, and ImBuf::y.
Referenced by eyedropper_color_sample_fl(), and paint_sample_color().
bool ED_space_image_get_position | ( | struct SpaceImage * | sima, |
struct ARegion * | region, | ||
int | mval[2], | ||
float | fpos[2] | ||
) |
Returns mouse position in image space.
Definition at line 3196 of file image_ops.c.
References ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), lock, NULL, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by eyedropper_cryptomatte_sample_fl().
Definition at line 3608 of file image_ops.c.
References C, CTX_data_scene(), CTX_wm_region(), RenderData::efra, wmEvent::mval, Scene::r, ARegion::regiontype, RGN_TYPE_WINDOW, round_fl_to_int(), scene, RenderData::sfra, UI_view2d_region_to_view(), ARegion::v2d, and ARegion::winx.
Referenced by change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 3509 of file image_ops.c.
References BKE_image_add_renderslot(), BLI_findindex(), C, image_from_context(), NC_IMAGE, ND_DRAW, NULL, OPERATOR_FINISHED, Image::render_slot, Image::renderslots, and WM_event_add_notifier().
Referenced by IMAGE_OT_add_render_slot().
|
static |
Definition at line 3474 of file image_ops.c.
References BKE_image_clear_renderslot(), C, image_from_context(), image_user_from_context(), NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::render_slot, and WM_event_add_notifier().
Referenced by IMAGE_OT_clear_render_slot().
|
static |
Definition at line 3431 of file image_ops.c.
References BKE_image_get_renderslot(), C, ED_image_slot_cycle(), image_from_context(), Image::last_render_slot, NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RenderSlot::render, Image::render_slot, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by IMAGE_OT_cycle_render_slot().
Definition at line 3424 of file image_ops.c.
References C, IMA_TYPE_R_RESULT, image_from_context(), and Image::type.
Referenced by IMAGE_OT_add_render_slot(), IMAGE_OT_clear_render_border(), IMAGE_OT_clear_render_slot(), IMAGE_OT_cycle_render_slot(), IMAGE_OT_remove_render_slot(), and IMAGE_OT_render_border().
|
static |
Definition at line 1564 of file image_ops.c.
References BKE_image_ensure_tile_token(), BLI_path_basename(), C, wmOperator::customdata, FILE_MAX, Image::id, IMA_SRC_TILED, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_id_pointer_create(), RNA_property_string_set(), RNA_property_update(), RNA_string_get(), RNA_struct_find_property(), and Image::source.
Referenced by IMAGE_OT_file_browse().
|
static |
Definition at line 1591 of file image_ops.c.
References BKE_image_user_file_path(), BLI_path_slash_rfind(), BLI_strncpy(), C, wmOperator::customdata, FILE_MAX, Image::filepath, IMA_SRC_TILED, image_filesel(), image_from_context(), image_user_from_context_and_active_tile(), KM_ALT, KM_SHIFT, wmEvent::modifier, NULL, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, ot, RNA_string_set(), Image::source, WM_OP_EXEC_DEFAULT, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by IMAGE_OT_file_browse().
Definition at line 1635 of file image_ops.c.
References C, image_from_context(), and NULL.
Referenced by IMAGE_OT_file_browse().
iuser | Image user or NULL when called outside the image space. |
Definition at line 2084 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_buffer_format_writable(), BKE_image_release_ibuf(), lock, and ret.
Referenced by image_save_invoke().
|
static |
Definition at line 1223 of file image_ops.c.
References C, wmOperator::ptr, RNA_string_set(), and WM_event_add_fileselect().
Referenced by image_file_browse_invoke(), image_open_invoke(), image_replace_invoke(), and image_save_as_invoke().
|
static |
Definition at line 2706 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_mark_dirty(), BKE_image_partial_update_mark_full_update(), BKE_image_release_ibuf(), C, copy_v4_v4(), copy_v4_v4_char(), CTX_wm_space_image(), ED_image_undo_push_begin_with_image(), ED_image_undo_push_end(), ED_imapaint_clear_partial_redraw(), IB_DISPLAY_BUFFER_INVALID, IB_MIPMAP_INVALID, image_from_context(), image_user_from_context_and_active_tile(), IMB_rect_from_float(), MEM_dupallocN, MEM_freeN, ImBuf::mipmap, SpaceImage::mode, NA_EDITED, wmOperatorType::name, NC_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, ImBuf::rect, ImBuf::rect_float, RNA_boolean_get(), SI_MODE_PAINT, wmOperator::type, ImBuf::userflags, WM_event_add_notifier(), x, ImBuf::x, y, and ImBuf::y.
Referenced by IMAGE_OT_flip().
Definition at line 171 of file image_ops.c.
References C, CTX_data_pointer_get_type(), CTX_wm_space_image(), PointerRNA::data, SpaceImage::image, and NULL.
Referenced by image_add_render_slot_exec(), image_clear_render_slot_exec(), image_cycle_render_slot_exec(), image_cycle_render_slot_poll(), image_file_browse_invoke(), image_file_browse_poll(), image_flip_exec(), image_from_context_has_data_poll(), image_from_context_has_data_poll_active_tile(), image_invert_exec(), image_match_len_exec(), image_not_packed_poll(), image_pack_exec(), image_pack_test(), image_reload_exec(), image_remove_render_slot_exec(), image_save_as_init(), image_save_as_poll(), image_save_exec(), image_save_invoke(), image_save_sequence_exec(), image_scale_exec(), image_scale_invoke(), image_unpack_exec(), and image_unpack_invoke().
Definition at line 222 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), C, image_from_context(), image_user_from_context(), lock, NULL, ImBuf::rect, and ImBuf::rect_float.
Referenced by IMAGE_OT_save_sequence(), image_save_as_poll(), and image_save_poll().
Use this when the image buffer is accessing the active tile without the image user.
Definition at line 241 of file image_ops.c.
References BKE_image_has_ibuf(), C, image_from_context(), and image_user_from_context_and_active_tile().
Referenced by IMAGE_OT_flip(), IMAGE_OT_invert(), and IMAGE_OT_resize().
Definition at line 2302 of file image_ops.c.
References Image::filepath.
Referenced by ED_image_save_all_modified(), and ED_image_save_all_modified_info().
|
static |
Definition at line 2827 of file image_ops.c.
References Freestyle::a, usdtokens::b(), BKE_image_acquire_ibuf(), BKE_image_mark_dirty(), BKE_image_partial_update_mark_full_update(), BKE_image_release_ibuf(), C, CTX_wm_space_image(), ED_image_undo_push_begin_with_image(), ED_image_undo_push_end(), ED_imapaint_clear_partial_redraw(), usdtokens::g(), IB_DISPLAY_BUFFER_INVALID, IB_MIPMAP_INVALID, image_from_context(), image_user_from_context_and_active_tile(), IMB_rect_from_float(), ImBuf::mipmap, SpaceImage::mode, NA_EDITED, wmOperatorType::name, NC_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, r, ImBuf::rect, ImBuf::rect_float, RNA_boolean_get(), SI_MODE_PAINT, wmOperator::type, ImBuf::userflags, WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_invert().
|
static |
Definition at line 1673 of file image_ops.c.
References Image::anims, BKE_image_has_anim(), BKE_image_user_frame_calc(), C, RenderData::cfra, CTX_data_pointer_get_type(), CTX_data_scene(), PointerRNA::data, ListBase::first, ImageUser::frames, Tex::ima, image_from_context(), image_user_from_context(), IMB_anim_get_duration(), IMB_TC_RECORD_RUN, Tex::iuser, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, scene, tex, TEX_IMAGE, and Tex::type.
Referenced by IMAGE_OT_match_movie_length().
|
static |
Definition at line 2647 of file image_ops.c.
References image_new_free().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2615 of file image_ops.c.
References C, col, CTX_data_scene(), wmOperator::layout, NULL, wmOperator::ptr, Scene::r, R_MULTIVIEW, RenderData::scemode, scene, uiItemL(), uiItemR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2517 of file image_ops.c.
References BKE_image_add_generated(), BKE_image_signal(), C, color, CTX_data_main(), CTX_wm_space_image(), data, DATA_, ED_space_image_set(), height, Image::id, id_us_min(), IMA_SIGNAL_USER_NEW_IMAGE, image_new_free(), image_new_init(), SpaceImage::iuser, MAX_ID_NAME, NA_ADDED, NC_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), RNA_float_get_array(), RNA_id_pointer_create(), RNA_int_get(), RNA_property_is_set(), RNA_property_pointer_set(), RNA_property_string_get(), RNA_property_update(), RNA_struct_find_property(), width, and WM_event_add_notifier().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2512 of file image_ops.c.
References wmOperator::customdata, and MEM_SAFE_FREE.
Referenced by image_new_cancel(), and image_new_exec().
|
static |
Definition at line 2500 of file image_ops.c.
References C, wmOperator::customdata, data, MEM_callocN, and UI_context_active_but_prop_get_templateID().
Referenced by image_new_exec().
|
static |
Definition at line 2603 of file image_ops.c.
References C, wmOperator::customdata, data, DATA_, IMA_DEF_NAME, MEM_callocN, wmOperator::ptr, RNA_string_set(), UI_context_active_but_prop_get_templateID(), and WM_operator_props_dialog_popup().
Referenced by IMAGE_OT_new().
Definition at line 249 of file image_ops.c.
References BLI_listbase_is_empty(), C, image_from_context(), and Image::packedfiles.
Referenced by IMAGE_OT_replace().
|
static |
Definition at line 1249 of file image_ops.c.
References wmOperator::customdata, MEM_freeN, and NULL.
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1491 of file image_ops.c.
References wmOperator::customdata, ImageOpenData::im_format, image_open_draw_check_prop(), wmOperator::layout, NULL, wmOperator::ptr, RNA_boolean_get(), RNA_pointer_create(), UI_BUT_LABEL_ALIGN_NONE, uiDefAutoButsRNA(), and uiTemplateImageFormatViews().
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1482 of file image_ops.c.
References RNA_property_identifier(), and STR_ELEM.
Referenced by image_open_draw().
|
static |
Definition at line 1318 of file image_ops.c.
References blender::compositor::area(), Camera::bg_images, BKE_image_init_imageuser(), BKE_image_signal(), BKE_main_blendfile_path(), BLI_freelistN(), C, CTX_data_main(), CTX_data_pointer_get_type(), CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), wmOperator::customdata, PointerRNA::data, ED_image_filesel_detect_sequences(), ED_preview_kill_jobs(), ED_space_image_set(), ImageUser::framenr, ImageUser::frames, Image::id, id_us_min(), IMA_SIGNAL_RELOAD, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, image_open_init(), image_open_single(), ImageOpenData::iuser, SpaceImage::iuser, Tex::iuser, LISTBASE_FOREACH, MEM_freeN, NA_EDITED, NC_IMAGE, NULL, ImageUser::offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, ImageOpenData::pprop, PropertyPointerRNA::prop, wmOperator::ptr, PropertyPointerRNA::ptr, RNA_boolean_get(), RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), scene, ImageUser::scene, ImageUser::sfra, Image::source, SPACE_IMAGE, tex, TEX_IMAGE, Tex::type, and WM_event_add_notifier().
Referenced by image_open_invoke(), and IMAGE_OT_open().
|
static |
Definition at line 1241 of file image_ops.c.
References C, CTX_data_pointer_get_type(), wmOperator::customdata, PointerRNA::data, ImageOpenData::iuser, MEM_callocN, ImageOpenData::pprop, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and UI_context_active_but_prop_get_templateID().
Referenced by image_open_exec(), and image_open_invoke().
|
static |
Definition at line 1424 of file image_ops.c.
References C, CTX_data_pointer_get_type(), CTX_data_scene(), CTX_wm_space_image(), PointerRNA::data, Image::filepath, GS, Image::id, ID_IM, if(), Tex::ima, SpaceImage::image, image_filesel(), image_open_exec(), image_open_init(), ID::name, NULL, OPERATOR_RUNNING_MODAL, PointerRNA::owner_id, wmOperator::ptr, ptr, Scene::r, R_MULTIVIEW, RNA_property_boolean_set(), RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_property_is_set(), RenderData::scemode, scene, tex, TEX_IMAGE, Tex::type, and UI_context_active_but_prop_get_templateID().
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1255 of file image_ops.c.
References BKE_image_add_tile(), BKE_image_free_views(), BKE_image_load_exists_ex(), BKE_reportf(), BLI_path_rel(), wmOperator::customdata, Image::filepath, ImageFrameRange::filepath, ListBase::first, Image::flag, ImageOpenData::im_format, IMA_SRC_FILE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, IMA_USE_VIEWS, ImageFrameRange::length, LISTBASE_FOREACH, MEM_freeN, node, NULL, ImageFrameRange::offset, POINTER_AS_INT, wmOperator::reports, RPT_ERROR, Image::source, Image::stereo3d_format, ImageFormatData::stereo3d_format, ImageTile::tile_number, Image::tiles, TIP_, ImageFrameRange::udim_tiles, ImageFrameRange::udims_detected, Image::views_format, and ImageFormatData::views_format.
Referenced by image_open_exec().
|
static |
Definition at line 1511 of file image_ops.c.
References ot, PROP_HIDDEN, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by IMAGE_OT_open(), and IMAGE_OT_save_as().
void IMAGE_OT_add_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3521 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_add_render_slot_exec(), image_cycle_render_slot_poll(), wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
void IMAGE_OT_change_frame | ( | wmOperatorType * | ot | ) |
Definition at line 3673 of file image_ops.c.
References change_frame_exec(), change_frame_invoke(), change_frame_modal(), change_frame_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAXFRAME, MINAFRAME, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_clear_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 3828 of file image_ops.c.
References clear_render_border_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_cycle_render_slot_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
void IMAGE_OT_clear_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3488 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_clear_render_slot_exec(), image_cycle_render_slot_poll(), wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
void IMAGE_OT_curves_point_set | ( | wmOperatorType * | ot | ) |
Definition at line 3386 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_imbuf_sample_cancel(), ED_imbuf_sample_invoke(), ED_imbuf_sample_modal(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_subtype(), space_image_main_area_not_uv_brush_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_cycle_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3451 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_cycle_render_slot_exec(), image_cycle_render_slot_poll(), wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_file_browse | ( | wmOperatorType * | ot | ) |
Definition at line 1640 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, image_file_browse_exec(), image_file_browse_invoke(), image_file_browse_poll(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
void IMAGE_OT_flip | ( | wmOperatorType * | ot | ) |
Definition at line 2798 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_flip_exec(), image_from_context_has_data_poll_active_tile(), wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_invert | ( | wmOperatorType * | ot | ) |
Definition at line 2918 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_from_context_has_data_poll_active_tile(), image_invert_exec(), wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_match_movie_length | ( | struct wmOperatorType * | ot | ) |
Called by other space types too.
Definition at line 1702 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_match_len_exec(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
void IMAGE_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 2652 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, IMA_DEF_NAME, IMA_GENTYPE_BLANK, image_new_cancel(), image_new_draw(), image_new_exec(), image_new_invoke(), wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, PROP_COLOR_GAMMA, PROP_HIDDEN, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_color(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_float_array_default(), RNA_def_property_subtype(), RNA_def_string(), rna_enum_image_generated_type_items, wmOperatorType::srna, and wmOperatorType::ui.
Referenced by image_operatortypes().
void IMAGE_OT_open | ( | struct wmOperatorType * | ot | ) |
Called by other space types too.
Definition at line 1518 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, image_open_cancel(), image_open_draw(), image_open_exec(), image_open_invoke(), image_operator_prop_allow_tokens(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), wmOperatorType::srna, wmOperatorType::ui, WM_FILESEL_DIRECTORY, WM_FILESEL_FILEPATH, WM_FILESEL_FILES, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
void IMAGE_OT_pack | ( | wmOperatorType * | ot | ) |
Definition at line 3072 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_pack_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by image_operatortypes().
void IMAGE_OT_read_viewlayers | ( | wmOperatorType * | ot | ) |
Definition at line 3713 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_read_viewlayers_exec(), wmOperatorType::name, ot, wmOperatorType::poll, and space_image_main_region_poll().
Referenced by image_operatortypes().
void IMAGE_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 2468 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_reload_exec(), wmOperatorType::name, OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
void IMAGE_OT_remove_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3556 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_cycle_render_slot_poll(), image_remove_render_slot_exec(), wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
void IMAGE_OT_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 3792 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_cycle_render_slot_poll(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, render_border_exec(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by image_operatortypes().
void IMAGE_OT_replace | ( | wmOperatorType * | ot | ) |
Definition at line 1781 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, image_not_packed_poll(), image_replace_exec(), image_replace_invoke(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
void IMAGE_OT_resize | ( | wmOperatorType * | ot | ) |
Definition at line 3010 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_from_context_has_data_poll_active_tile(), image_scale_exec(), image_scale_invoke(), wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, ot, wmOperatorType::poll, RNA_def_int_vector(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_sample | ( | wmOperatorType * | ot | ) |
Definition at line 3266 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_imbuf_sample_cancel(), ED_imbuf_sample_invoke(), ED_imbuf_sample_modal(), ED_imbuf_sample_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, ot, wmOperatorType::poll, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), RNA_def_property_subtype(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_sample_line | ( | wmOperatorType * | ot | ) |
Definition at line 3360 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_sample_line_exec(), image_sample_line_invoke(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, space_image_main_region_poll(), WM_CURSOR_EDIT, WM_gesture_straightline_cancel(), WM_gesture_straightline_modal(), and WM_operator_properties_gesture_straightline().
Referenced by image_operatortypes().
void IMAGE_OT_save | ( | wmOperatorType * | ot | ) |
Definition at line 2170 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_save_exec(), image_save_invoke(), image_save_poll(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
void IMAGE_OT_save_all_modified | ( | wmOperatorType * | ot | ) |
Definition at line 2426 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_save_all_modified_exec(), image_save_all_modified_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
void IMAGE_OT_save_as | ( | wmOperatorType * | ot | ) |
Definition at line 2032 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::check, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, image_operator_prop_allow_tokens(), image_save_as_cancel(), image_save_as_check(), image_save_as_draw(), image_save_as_exec(), image_save_as_invoke(), image_save_as_poll(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, wmOperatorType::ui, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, WM_FILESEL_SHOW_PROPS, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
void IMAGE_OT_save_sequence | ( | wmOperatorType * | ot | ) |
Definition at line 2267 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_from_context_has_data_poll(), image_save_sequence_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
void IMAGE_OT_tile_add | ( | wmOperatorType * | ot | ) |
Definition at line 4021 of file image_ops.c.
References def_fill_tile(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, IMA_UDIM_MAX, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_int(), RNA_def_string(), wmOperatorType::srna, tile_add_draw(), tile_add_exec(), tile_add_invoke(), tile_add_poll(), and wmOperatorType::ui.
Referenced by image_operatortypes().
void IMAGE_OT_tile_fill | ( | wmOperatorType * | ot | ) |
Definition at line 4140 of file image_ops.c.
References def_fill_tile(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::srna, tile_fill_draw(), tile_fill_exec(), tile_fill_invoke(), tile_fill_poll(), and wmOperatorType::ui.
Referenced by image_operatortypes().
void IMAGE_OT_tile_remove | ( | wmOperatorType * | ot | ) |
Definition at line 4082 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, tile_remove_exec(), and tile_remove_poll().
Referenced by image_operatortypes().
void IMAGE_OT_unpack | ( | wmOperatorType * | ot | ) |
Definition at line 3168 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_unpack_exec(), image_unpack_invoke(), wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PF_USE_LOCAL, RNA_def_enum(), RNA_def_string(), rna_enum_unpack_method_items, and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 824 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_all_exec(), wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), space_image_main_region_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_view_center_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 906 of file image_ops.c.
References wmOperatorType::description, ED_space_image_cursor_poll(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view_center_cursor_exec().
Referenced by image_operatortypes().
void IMAGE_OT_view_cursor_center | ( | wmOperatorType * | ot | ) |
Definition at line 870 of file image_ops.c.
References wmOperatorType::description, ED_space_image_cursor_poll(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and view_cursor_center_exec().
Referenced by image_operatortypes().
void IMAGE_OT_view_pan | ( | wmOperatorType * | ot | ) |
Definition at line 461 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_pan_cancel(), image_view_pan_exec(), image_view_pan_invoke(), image_view_pan_modal(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, RNA_def_float_vector(), space_image_main_region_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 978 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, image_view_selected_exec(), image_view_selected_poll(), wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
void IMAGE_OT_view_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 706 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_zoom_cancel(), image_view_zoom_exec(), image_view_zoom_invoke(), image_view_zoom_modal(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float(), RNA_def_property_flag(), space_image_main_region_poll(), wmOperatorType::srna, and WM_operator_properties_use_cursor_init().
Referenced by image_operatortypes().
void IMAGE_OT_view_zoom_border | ( | wmOperatorType * | ot | ) |
Definition at line 1203 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, image_view_zoom_border_exec(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, space_image_main_region_poll(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_gesture_box_zoom().
Referenced by image_operatortypes().
void IMAGE_OT_view_zoom_in | ( | wmOperatorType * | ot | ) |
Definition at line 1024 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_zoom_in_exec(), image_view_zoom_in_invoke(), wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), space_image_main_region_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_view_zoom_out | ( | wmOperatorType * | ot | ) |
Definition at line 1083 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_zoom_out_exec(), image_view_zoom_out_invoke(), wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), space_image_main_region_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
void IMAGE_OT_view_zoom_ratio | ( | wmOperatorType * | ot | ) |
Definition at line 1136 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_view_zoom_ratio_exec(), wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, RNA_def_float(), space_image_main_region_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
|
static |
Definition at line 3051 of file image_ops.c.
References BKE_image_is_dirty(), BKE_image_memorypack(), BKE_image_packfiles(), C, CTX_data_main(), Image::id, ID_BLEND_PATH, image_from_context(), image_pack_test(), NA_EDITED, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_event_add_notifier().
Referenced by IMAGE_OT_pack().
|
static |
Definition at line 3035 of file image_ops.c.
References BKE_report(), C, ELEM, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, image_from_context(), wmOperator::reports, RPT_ERROR, and Image::source.
Referenced by image_pack_exec().
|
static |
Definition at line 3695 of file image_ops.c.
References BKE_image_ensure_viewer(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_space_image(), ED_space_image_set(), IMA_TYPE_R_RESULT, SpaceImage::image, NA_EDITED, NC_IMAGE, NULL, OPERATOR_FINISHED, RE_ReadRenderResult(), scene, and WM_event_add_notifier().
Referenced by IMAGE_OT_read_viewlayers().
|
static |
Definition at line 2447 of file image_ops.c.
References BKE_image_signal(), C, CTX_data_main(), CTX_wm_manager(), DEG_id_tag_update(), ED_preview_kill_jobs(), Image::id, IMA_SIGNAL_RELOAD, image_from_context(), image_user_from_context(), NA_EDITED, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by IMAGE_OT_reload().
|
static |
Definition at line 3542 of file image_ops.c.
References BKE_image_remove_renderslot(), C, image_from_context(), image_user_from_context(), NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::render_slot, and WM_event_add_notifier().
Referenced by IMAGE_OT_remove_render_slot().
|
static |
Definition at line 1723 of file image_ops.c.
References BKE_icon_changed(), BKE_icon_id_ensure(), BKE_image_signal(), BLI_path_extension_check_array(), BLI_strncpy(), C, CTX_data_main(), CTX_wm_manager(), CTX_wm_space_image(), ED_preview_kill_jobs(), FILE_MAX, Image::filepath, Image::id, IMA_SIGNAL_RELOAD, IMA_SIGNAL_SRC_CHANGE, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_SRC_MOVIE, SpaceImage::image, imb_ext_movie, SpaceImage::iuser, NA_EDITED, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), Image::source, str, and WM_event_add_notifier().
Referenced by IMAGE_OT_replace(), and image_replace_invoke().
|
static |
Definition at line 1760 of file image_ops.c.
References BLI_path_is_rel(), C, CTX_wm_space_image(), Image::filepath, SpaceImage::image, image_filesel(), image_replace_exec(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_set(), and RNA_struct_property_is_set().
Referenced by IMAGE_OT_replace().
|
static |
Definition at line 3294 of file image_ops.c.
References BKE_histogram_update_sample_line(), BKE_image_get_tile_from_pos(), C, ImBuf::channels, Histogram::co, copy_v2_v2(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), CTX_wm_space_image(), Scene::display_settings, ED_area_tag_redraw(), ED_space_image(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), Histogram::flag, HISTO_FLAG_SAMPLELINE, lock, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), SpaceImage::sample_line_hist, scene, sub_v2_v2(), tile, UI_view2d_region_to_view(), ARegion::v2d, Scene::view_settings, and Histogram::ymax.
Referenced by IMAGE_OT_sample_line().
|
static |
Definition at line 3346 of file image_ops.c.
References C, CTX_wm_space_image(), ED_space_image_has_buffer(), Histogram::flag, HISTO_FLAG_SAMPLELINE, OPERATOR_CANCELLED, SpaceImage::sample_line_hist, and WM_gesture_straightline_invoke().
Referenced by IMAGE_OT_sample_line().
|
static |
Definition at line 2420 of file image_ops.c.
References C, ED_image_save_all_modified(), OPERATOR_FINISHED, and wmOperator::reports.
Referenced by IMAGE_OT_save_all_modified().
Definition at line 2414 of file image_ops.c.
References C, CTX_data_main(), ED_image_save_all_modified_info(), and NULL.
Referenced by IMAGE_OT_save_all_modified().
|
static |
Definition at line 1962 of file image_ops.c.
References image_save_as_free().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 1935 of file image_ops.c.
References BKE_image_save_options_update(), C, CTX_data_main(), wmOperator::customdata, ImageSaveOptions::im_format, ImageSaveData::image, image_save_options_from_op(), ImageSaveData::opts, and WM_operator_filesel_ensure_ext_imtype().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 1979 of file image_ops.c.
References col, wmOperator::customdata, IFACE_, ImageSaveOptions::im_format, image_save_as_draw_check_prop(), wmOperator::layout, NULL, ImageSaveData::opts, wmOperator::ptr, RNA_boolean_get(), RNA_pointer_create(), RNA_pointer_get(), UI_BUT_LABEL_ALIGN_NONE, uiDefAutoButsRNA(), uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), uiTemplateImageFormatViews(), and uiTemplateImageSettings().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 1967 of file image_ops.c.
References ptr, RNA_boolean_get(), RNA_property_identifier(), and STREQ.
Referenced by image_save_as_draw().
|
static |
Definition at line 1906 of file image_ops.c.
References BKE_image_free_packedfiles(), BKE_image_save_options_update(), C, CTX_data_main(), wmOperator::customdata, ImageSaveData::image, image_save_as_free(), image_save_as_init(), image_save_options_from_op(), ImageSaveData::iuser, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, ImageSaveData::opts, ImageSaveOptions::save_copy, and save_image_op().
Referenced by IMAGE_OT_save_as(), and image_save_as_invoke().
|
static |
Definition at line 1895 of file image_ops.c.
References BKE_image_save_options_free(), wmOperator::customdata, MEM_freeN, NULL, and ImageSaveData::opts.
Referenced by image_save_as_cancel(), and image_save_as_exec().
|
static |
Definition at line 1850 of file image_ops.c.
References BKE_image_is_multiview(), BKE_image_save_options_free(), BKE_image_save_options_init(), C, CTX_data_main(), CTX_data_scene(), wmOperator::customdata, ImageSaveOptions::do_newpath, ELEM, ImageSaveOptions::filepath, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, image(), ImageSaveData::image, image_from_context(), image_user_from_context(), ImageSaveData::iuser, MEM_callocN, MEM_freeN, NULL, ImageSaveData::opts, wmOperator::ptr, RNA_boolean_set(), RNA_property_boolean_set(), RNA_string_set(), RNA_struct_find_property(), RNA_struct_property_is_set(), ImageSaveOptions::save_as_render, and scene.
Referenced by image_save_as_exec(), and image_save_as_invoke().
|
static |
Definition at line 1946 of file image_ops.c.
References C, ImageSaveOptions::filepath, image_filesel(), image_save_as_exec(), image_save_as_init(), NULL, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, ImageSaveData::opts, wmOperator::ptr, and RNA_struct_property_is_set().
Referenced by IMAGE_OT_save_as().
Definition at line 2013 of file image_ops.c.
References C, CTX_wm_operator_poll_msg_set(), G, IMA_SRC_VIEWER, image_from_context(), image_from_context_has_data_poll(), and Image::source.
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 2113 of file image_ops.c.
References BKE_image_has_packedfile(), BKE_image_memorypack(), BKE_image_save_options_free(), BKE_image_save_options_init(), BKE_reportf(), BLI_exists(), BLI_file_is_writable(), C, CTX_data_main(), CTX_data_scene(), ImageSaveOptions::filepath, image(), image_from_context(), image_save_options_from_op(), image_user_from_context(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, save_image_op(), and scene.
Referenced by IMAGE_OT_save(), and image_save_invoke().
|
static |
Definition at line 2156 of file image_ops.c.
References BKE_image_has_filepath(), BKE_image_has_packedfile(), C, image_file_format_writable(), image_from_context(), image_save_exec(), image_user_from_context(), NULL, OPERATOR_CANCELLED, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
Referenced by IMAGE_OT_save().
|
static |
Definition at line 1818 of file image_ops.c.
References BKE_main_blendfile_path(), BLI_path_abs(), ImageSaveOptions::filepath, wmOperator::ptr, ImageSaveOptions::relative, RNA_boolean_get(), RNA_string_get(), RNA_struct_find_property(), RNA_struct_property_is_set(), ImageSaveOptions::save_as_render, and ImageSaveOptions::save_copy.
Referenced by image_save_as_check(), image_save_as_exec(), and image_save_exec().
Definition at line 2098 of file image_ops.c.
References C, and image_from_context_has_data_poll().
Referenced by IMAGE_OT_save().
|
static |
Definition at line 2192 of file image_ops.c.
References BKE_main_blendfile_path(), BKE_report(), BKE_reportf(), BLI_path_abs(), BLI_split_dir_part(), BLI_strncpy(), C, CTX_data_main(), FILE_MAX, IB_BITMAPDIRTY, IB_rect, IB_zbuf, IB_zbuffloat, IMA_SRC_SEQUENCE, IMA_TYPE_MULTILAYER, image(), image_from_context(), IMB_moviecacheIter_done(), IMB_moviecacheIter_free(), IMB_moviecacheIter_getImBuf(), IMB_moviecacheIter_new(), IMB_moviecacheIter_step(), IMB_saveiff(), ImBuf::name, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, RPT_WARNING, and ImBuf::userflags.
Referenced by IMAGE_OT_save_sequence().
|
static |
Definition at line 2965 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_mark_dirty(), BKE_image_partial_update_mark_full_update(), BKE_image_release_ibuf(), C, CTX_wm_space_image(), DEG_id_tag_update(), ED_image_undo_push_begin_with_image(), ED_image_undo_push_end(), ED_imapaint_clear_partial_redraw(), IB_DISPLAY_BUFFER_INVALID, Image::id, image_from_context(), image_user_from_context_and_active_tile(), IMB_scaleImBuf(), SpaceImage::mode, NA_EDITED, wmOperatorType::name, NC_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_property_int_get_array(), RNA_property_int_set_array(), RNA_property_is_set(), RNA_struct_find_property(), SI_MODE_PAINT, size(), wmOperator::type, ImBuf::userflags, WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_resize().
|
static |
Definition at line 2951 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), C, image_from_context(), image_user_from_context_and_active_tile(), NULL, wmOperator::ptr, RNA_property_int_set_array(), RNA_property_is_set(), RNA_struct_find_property(), size(), WM_operator_props_dialog_popup(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_resize().
Definition at line 2293 of file image_ops.c.
References BKE_image_is_dirty_writable(), ELEM, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_SRC_TILED, image_should_be_saved_when_modified(), and Image::source.
Referenced by ED_image_save_all_modified(), and ED_image_save_all_modified_info().
Definition at line 2288 of file image_ops.c.
References ELEM, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, and Image::type.
Referenced by image_should_be_saved().
Definition at line 2307 of file image_ops.c.
References BKE_image_has_filepath(), IMA_SRC_GENERATED, IMA_SRC_TILED, and Image::source.
Referenced by ED_image_save_all_modified(), and ED_image_save_all_modified_info().
|
static |
Definition at line 3092 of file image_ops.c.
References BKE_image_has_packedfile(), BKE_packedfile_unpack_image(), BKE_report(), BLI_findstring(), C, CTX_data_main(), CTX_wm_manager(), ED_preview_kill_jobs(), ELEM, G, G_FILE_AUTOPACK, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, image_from_context(), Main::images, MAX_ID_NAME, NA_EDITED, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_string_get(), RNA_struct_property_is_set(), RPT_ERROR, RPT_WARNING, Image::source, and WM_event_add_notifier().
Referenced by IMAGE_OT_unpack(), and image_unpack_invoke().
|
static |
Definition at line 3133 of file image_ops.c.
References BKE_image_has_packedfile(), BKE_report(), C, ELEM, Image::filepath, ListBase::first, G, G_FILE_AUTOPACK, Image::id, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, image_from_context(), image_unpack_exec(), ID::name, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::packedfiles, wmOperator::ptr, wmOperator::reports, RNA_struct_property_is_set(), RPT_ERROR, RPT_WARNING, Image::source, and unpack_menu().
Referenced by IMAGE_OT_unpack().
Definition at line 186 of file image_ops.c.
References C, CTX_data_pointer_get_type(), CTX_wm_space_image(), PointerRNA::data, SpaceImage::iuser, and NULL.
Referenced by image_clear_render_slot_exec(), image_from_context_has_data_poll(), image_match_len_exec(), image_reload_exec(), image_remove_render_slot_exec(), image_save_as_init(), image_save_exec(), image_save_invoke(), and image_user_from_context_and_active_tile().
Definition at line 201 of file image_ops.c.
References blender::compositor::active, Image::active_tile_index, BKE_imageuser_default(), BLI_findlink(), C, ListBase::first, IMA_SRC_TILED, image_user_from_context(), Image::source, ImageUser::tile, and Image::tiles.
Referenced by image_file_browse_invoke(), image_flip_exec(), image_from_context_has_data_poll_active_tile(), image_invert_exec(), image_scale_exec(), and image_scale_invoke().
|
static |
Definition at line 256 of file image_ops.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), ED_space_image_get_aspect(), ED_space_image_get_size(), float(), height, IMA_SRC_TILED, SpaceImage::image, LISTBASE_FOREACH, max_ii(), min_ff(), NULL, power_of_2(), wmOperator::ptr, RNA_boolean_get(), sima_zoom_set(), Image::source, tile, SpaceImage::tile_grid_shape, Image::tiles, w(), width, ARegion::winrct, SpaceImage::xof, and SpaceImage::yof.
Referenced by image_view_all_exec(), and view_cursor_center_exec().
|
static |
Definition at line 808 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), image_view_all(), and OPERATOR_FINISHED.
Referenced by IMAGE_OT_view_all().
|
static |
Definition at line 456 of file image_ops.c.
References C, and image_view_pan_exit().
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 398 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), offset, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get_array(), SpaceImage::xof, and SpaceImage::yof.
Referenced by IMAGE_OT_view_pan(), image_view_pan_invoke(), and image_view_pan_modal().
|
static |
Definition at line 381 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN, ViewPanData::own_cursor, WM_cursor_modal_restore(), ViewPanData::xof, SpaceImage::xof, ViewPanData::yof, and SpaceImage::yof.
Referenced by image_view_pan_cancel(), and image_view_pan_modal().
|
static |
Definition at line 358 of file image_ops.c.
References C, CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, wmWindow::grabcursor, ViewPanData::launch_event, MEM_callocN, ViewPanData::own_cursor, wmEvent::type, WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_userdef_event_type_from_keymap_type(), ViewPanData::x, ViewPanData::xof, SpaceImage::xof, ViewPanData::y, ViewPanData::yof, and SpaceImage::yof.
Referenced by image_view_pan_invoke().
|
static |
Definition at line 412 of file image_ops.c.
References C, CTX_wm_space_image(), image_view_pan_exec(), image_view_pan_init(), MOUSEPAN, offset, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::prev_xy, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, wmEvent::xy, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 430 of file image_ops.c.
References C, CTX_wm_space_image(), wmOperator::customdata, image_view_pan_exec(), image_view_pan_exit(), KM_RELEASE, ViewPanData::launch_event, MOUSEMOVE, offset, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, wmEvent::val, ViewPanData::x, ViewPanData::xof, SpaceImage::xof, wmEvent::xy, ViewPanData::y, ViewPanData::yof, SpaceImage::yof, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 924 of file image_ops.c.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs, BLI_rctf_scale(), bounds(), C, CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region(), CTX_wm_space_image(), ED_mask_selected_minmax(), ED_region_tag_redraw(), ED_space_image_check_show_maskedit(), ED_space_image_show_uvedit(), ED_uvedit_minmax_multi(), max, MEM_freeN, min, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, and sima_zoom_set_from_bounds().
Referenced by IMAGE_OT_view_selected().
Definition at line 973 of file image_ops.c.
References C, ED_maskedit_poll(), ED_operator_uvedit(), and space_image_main_region_poll().
Referenced by IMAGE_OT_view_selected().
|
static |
Definition at line 1168 of file image_ops.c.
References bounds(), C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), sima_zoom_set_from_bounds(), UI_view2d_region_to_view_rctf(), ARegion::v2d, WM_operator_properties_border_to_rctf(), SpaceImage::xof, SpaceImage::yof, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_zoom_border().
|
static |
Definition at line 701 of file image_ops.c.
References C, and image_view_zoom_exit().
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 568 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and sima_zoom_set_factor().
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 548 of file image_ops.c.
References C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN, ViewZoomData::own_cursor, ViewZoomData::timer, wmTimer::win, WM_cursor_modal_restore(), WM_event_remove_timer(), ViewZoomData::zoom, and SpaceImage::zoom.
Referenced by image_view_zoom_cancel(), and image_view_zoom_modal().
|
static |
Definition at line 996 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), OPERATOR_FINISHED, powf, wmOperator::ptr, RNA_float_get_array(), sima_zoom_set_factor(), and USER_ZOOM_TO_MOUSEPOS.
Referenced by IMAGE_OT_view_zoom_in(), and image_view_zoom_in_invoke().
|
static |
Definition at line 1012 of file image_ops.c.
References C, CTX_wm_region(), image_view_zoom_in_exec(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by IMAGE_OT_view_zoom_in().
|
static |
Definition at line 513 of file image_ops.c.
References C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, wmWindow::grabcursor, ViewZoomData::launch_event, ViewZoomData::location, MEM_callocN, wmEvent::mval, ViewZoomData::origx, ViewZoomData::origy, ViewZoomData::own_cursor, PIL_check_seconds_timer(), ViewZoomData::region, ViewZoomData::sima, ViewZoomData::timer, TIMER, ViewZoomData::timer_lastdraw, wmEvent::type, UI_view2d_region_to_view(), USER_ZOOM_CONTINUE, ARegion::v2d, WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_event_add_timer(), WM_userdef_event_type_from_keymap_type(), ViewZoomData::zoom, and SpaceImage::zoom.
Referenced by image_view_zoom_invoke().
|
static |
Definition at line 586 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), ELEM, image_view_zoom_init(), MOUSEPAN, MOUSEZOOM, wmEvent::mval, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_get(), RNA_float_set(), sima_zoom_set(), wmEvent::type, UI_view2d_region_to_view(), USER_ZOOM_INVERT, USER_ZOOM_TO_MOUSEPOS, ARegion::v2d, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 666 of file image_ops.c.
References C, wmOperator::customdata, wmEvent::customdata, image_view_zoom_exit(), image_zoom_apply(), KM_RELEASE, ViewZoomData::launch_event, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_get(), ViewZoomData::timer, TIMER, wmEvent::type, USER_ZOOM_INVERT, USER_ZOOM_TO_MOUSEPOS, wmEvent::val, VIEW_APPLY, VIEW_CONFIRM, VIEW_PASS, and wmEvent::xy.
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 1055 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), OPERATOR_FINISHED, powf, wmOperator::ptr, RNA_float_get_array(), sima_zoom_set_factor(), and USER_ZOOM_TO_MOUSEPOS.
Referenced by IMAGE_OT_view_zoom_out(), and image_view_zoom_out_invoke().
|
static |
Definition at line 1071 of file image_ops.c.
References C, CTX_wm_region(), image_view_zoom_out_exec(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by IMAGE_OT_view_zoom_out().
|
static |
Definition at line 1120 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), sima_zoom_set(), SpaceImage::xof, and SpaceImage::yof.
Referenced by IMAGE_OT_view_zoom_ratio().
|
static |
Definition at line 619 of file image_ops.c.
References ED_region_tag_redraw(), float(), ViewZoomData::location, ViewZoomData::origx, ViewZoomData::origy, PIL_check_seconds_timer(), wmOperator::ptr, ViewZoomData::region, RNA_float_set(), ViewZoomData::sima, sima_zoom_set(), time, ViewZoomData::timer_lastdraw, USER_ZOOM_CONTINUE, USER_ZOOM_HORIZ, USER_ZOOM_SCALE, x, y, ViewZoomData::zoom, and SpaceImage::zoom.
Referenced by image_view_zoom_modal().
|
static |
Definition at line 3732 of file image_ops.c.
References BKE_render_resolution(), border, RenderData::border, C, ceilf, CLAMP, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_image(), DEG_id_tag_update(), ED_space_image_has_buffer(), floorf, height, Scene::id, ID_RECALC_COPY_ON_WRITE, RenderData::mode, NC_SCENE, ND_RENDER_OPTIONS, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, R_BORDER, R_CROP, RE_engine_get_render_data(), RE_GetSceneRender(), scene, UI_view2d_region_to_view_rctf(), ARegion::v2d, width, WM_event_add_notifier(), WM_operator_properties_border_to_rctf(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by IMAGE_OT_render_border().
|
static |
Definition at line 1833 of file image_ops.c.
References BKE_image_save(), BLI_strncpy(), ImageSaveOptions::filepath, G, NA_EDITED, NC_IMAGE, wmOperator::reports, WM_cursor_wait(), and WM_main_add_notifier().
Referenced by image_save_as_exec(), and image_save_exec().
|
static |
Definition at line 94 of file image_ops.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), ED_space_image_get_aspect(), ED_space_image_get_size(), height, w(), width, ARegion::winrct, SpaceImage::xof, SpaceImage::yof, and SpaceImage::zoom.
Referenced by image_view_all(), image_view_zoom_invoke(), image_view_zoom_ratio_exec(), image_zoom_apply(), sima_zoom_set_factor(), and sima_zoom_set_from_bounds().
|
static |
Definition at line 134 of file image_ops.c.
References sima_zoom_set(), and SpaceImage::zoom.
Referenced by image_view_zoom_exec(), image_view_zoom_in_exec(), and image_view_zoom_out_exec().
|
static |
Fits the view to the bounds exactly, caller should add margin if needed.
Definition at line 146 of file image_ops.c.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), bounds(), CLAMP_MAX, ED_space_image_get_aspect(), ED_space_image_get_size(), min_ff(), NULL, sima_zoom_set(), size(), ARegion::winrct, SpaceImage::xof, and SpaceImage::yof.
Referenced by image_view_selected_exec(), and image_view_zoom_border_exec().
Definition at line 332 of file image_ops.c.
References C, CTX_data_edit_object(), CTX_data_scene(), CTX_wm_space_image(), NULL, scene, Scene::toolsettings, and ToolSettings::uvsculpt.
Referenced by IMAGE_OT_curves_point_set().
Definition at line 320 of file image_ops.c.
References C, and CTX_wm_space_image().
Referenced by change_frame_poll(), IMAGE_OT_read_viewlayers(), IMAGE_OT_sample_line(), IMAGE_OT_view_all(), IMAGE_OT_view_pan(), IMAGE_OT_view_zoom(), IMAGE_OT_view_zoom_border(), IMAGE_OT_view_zoom_in(), IMAGE_OT_view_zoom_out(), IMAGE_OT_view_zoom_ratio(), and image_view_selected_poll().
|
static |
Definition at line 4002 of file image_ops.c.
References col, draw_fill_tile(), wmOperator::layout, NULL, wmOperator::ptr, RNA_boolean_get(), uiItemR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 3935 of file image_ops.c.
References Image::active_tile_index, BKE_image_add_tile(), BKE_image_sort_tiles(), BKE_report(), BLI_findindex(), C, CTX_data_edit_image(), do_fill_tile(), IMA_UDIM_MAX, label, MEM_freeN, NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_int_get(), RNA_string_get_alloc(), RPT_ERROR, RPT_WARNING, tile, Image::tiles, and WM_event_add_notifier().
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 3978 of file image_ops.c.
References Image::active_tile_index, BLI_findlink(), C, CTX_data_edit_image(), LISTBASE_FOREACH, NULL, wmOperator::ptr, RNA_int_set(), RNA_string_set(), tile, tile_fill_init(), Image::tiles, and WM_operator_props_dialog_popup().
Referenced by IMAGE_OT_tile_add().
Definition at line 3928 of file image_ops.c.
References BKE_image_has_ibuf(), C, CTX_data_edit_image(), IMA_SRC_TILED, NULL, and Image::source.
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 4135 of file image_ops.c.
References draw_fill_tile(), wmOperator::layout, and wmOperator::ptr.
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4114 of file image_ops.c.
References Image::active_tile_index, BLI_findlink(), C, CTX_data_edit_image(), do_fill_tile(), NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, tile, Image::tiles, and WM_event_add_notifier().
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 3876 of file image_ops.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_imageuser_default(), ListBase::first, NULL, ImBuf::planes, ptr, ImBuf::rect_float, RNA_boolean_set(), RNA_int_set(), tile, ImageUser::tile, Image::tiles, ImBuf::x, and ImBuf::y.
Referenced by tile_add_invoke(), and tile_fill_invoke().
|
static |
Definition at line 4128 of file image_ops.c.
References C, CTX_data_edit_image(), NULL, wmOperator::ptr, tile_fill_init(), and WM_operator_props_dialog_popup().
Referenced by IMAGE_OT_tile_fill().
Definition at line 4103 of file image_ops.c.
References Image::active_tile_index, BKE_image_has_ibuf(), C, CTX_data_edit_image(), IMA_SRC_TILED, NULL, and Image::source.
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4065 of file image_ops.c.
References Image::active_tile_index, BKE_image_remove_tile(), BLI_findlink(), BLI_listbase_count(), C, CTX_data_edit_image(), min_ii(), NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, tile, Image::tiles, and WM_event_add_notifier().
Referenced by IMAGE_OT_tile_remove().
Definition at line 4058 of file image_ops.c.
References BLI_listbase_is_single(), C, CTX_data_edit_image(), IMA_SRC_TILED, NULL, Image::source, and Image::tiles.
Referenced by IMAGE_OT_tile_remove().
|
static |
Definition at line 894 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), SpaceImage::cursor, ED_image_view_center_to_point(), ED_region_tag_redraw(), and OPERATOR_FINISHED.
Referenced by IMAGE_OT_view_center_cursor().
|
static |
Definition at line 851 of file image_ops.c.
References C, CTX_wm_region(), CTX_wm_space_image(), SpaceImage::cursor, image_view_all(), NC_SPACE, ND_SPACE_IMAGE, NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by IMAGE_OT_view_cursor_center().