|
Blender V4.3
|
#include <cerrno>#include <cstddef>#include <cstdlib>#include <cstring>#include <fcntl.h>#include <unistd.h>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_fileops.h"#include "BLI_ghash.h"#include "BLI_string.h"#include "BLI_time.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#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.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_icons.h"#include "BKE_image.hh"#include "BKE_image_save.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_packedFile.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "DEG_depsgraph.hh"#include "IMB_colormanagement.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "IMB_moviecache.hh"#include "RE_pipeline.h"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "RNA_prototypes.hh"#include "ED_image.hh"#include "ED_mask.hh"#include "ED_paint.hh"#include "ED_render.hh"#include "ED_screen.hh"#include "ED_undo.hh"#include "ED_util.hh"#include "ED_util_imbuf.hh"#include "ED_uvedit.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "WM_api.hh"#include "WM_types.hh"#include "RE_engine.h"#include "image_intern.hh"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 } |
| 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 *) |
| static void | image_new_draw (bContext *, wmOperator *op) |
| static void | image_new_cancel (bContext *, wmOperator *op) |
| void | IMAGE_OT_new (wmOperatorType *ot) |
View Zoom Operator | |
| enum | { VIEW_PASS = 0 , VIEW_APPLY , VIEW_CONFIRM } |
| 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) |
Definition at line 2531 of file image_ops.cc.
Referenced by image_new_invoke(), and IMAGE_OT_new().
| anonymous enum |
| Enumerator | |
|---|---|
| VIEW_PASS | |
| VIEW_APPLY | |
| VIEW_CONFIRM | |
Definition at line 584 of file image_ops.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| GEN_CONTEXT_NONE | |
| GEN_CONTEXT_PAINT_CANVAS | |
| GEN_CONTEXT_PAINT_STENCIL | |
Definition at line 2533 of file image_ops.cc.
|
static |
Definition at line 3855 of file image_ops.cc.
References CTX_data_scene(), DEG_id_tag_update(), FRAMENUMBER_MIN_CLAMP, ID_RECALC_FRAME_CHANGE, NC_SCENE, ND_FRAME, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by change_frame_exec(), change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 3869 of file image_ops.cc.
References change_frame_apply(), and OPERATOR_FINISHED.
Referenced by IMAGE_OT_change_frame().
|
static |
Definition at line 3898 of file image_ops.cc.
References 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, RGN_TYPE_WINDOW, RNA_int_set(), and WM_event_add_modal_handler().
Referenced by IMAGE_OT_change_frame().
|
static |
Definition at line 3919 of file image_ops.cc.
References 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().
|
static |
Definition at line 3845 of file image_ops.cc.
References G, and space_image_main_region_poll().
Referenced by IMAGE_OT_change_frame().
|
static |
Definition at line 4088 of file image_ops.cc.
References BLI_rctf_init(), CTX_data_scene(), NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by IMAGE_OT_clear_render_border().
|
static |
Definition at line 4173 of file image_ops.cc.
References FLT_MAX, IMA_GENTYPE_BLANK, 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 4118 of file image_ops.cc.
References BKE_image_fill_tile(), IMA_GEN_FLOAT, ptr, RNA_boolean_get(), RNA_enum_get(), RNA_float_get_array(), RNA_int_get(), and tile.
Referenced by tile_add_exec(), and tile_fill_exec().
|
static |
Definition at line 4132 of file image_ops.cc.
References col, ptr, UI_ITEM_NONE, 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 2424 of file image_ops.cc.
References BKE_image_has_packedfile(), BKE_image_memorypack(), BKE_image_save(), BKE_image_save_options_free(), BKE_image_save_options_init(), 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(), and Main::images.
Referenced by image_save_all_modified_exec(), and wm_block_file_close_save().
| int ED_image_save_all_modified_info | ( | const Main * | bmain, |
| ReportList * | reports ) |
Definition at line 2367 of file image_ops.cc.
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_EDITABLE, image_has_valid_path(), image_should_be_saved(), image_should_pack_during_save_all(), Main::images, MEM_freeN(), and RPT_WARNING.
Referenced by block_create__close_file_dialog(), ED_image_save_all_modified(), ED_image_should_save_modified(), image_save_all_modified_poll(), and wm_block_file_close_save().
| bool ED_image_should_save_modified | ( | const Main * | bmain | ) |
Definition at line 2354 of file image_ops.cc.
References BKE_reports_free(), BKE_reports_init(), BLI_listbase_is_empty(), ED_image_save_all_modified_info(), ReportList::list, and RPT_STORE.
Referenced by wm_block_file_close_save(), wm_file_or_session_data_has_unsaved_changes(), and wm_revert_mainfile_invoke().
| bool ED_space_image_color_sample | ( | SpaceImage * | sima, |
| 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 3483 of file image_ops.cc.
References BKE_image_get_tile_from_pos(), ImBuf::byte_buffer, ImBuf::channels, CLAMP, ImBuf::colormanage_flag, ImBufByteBuffer::colorspace, copy_v3_v3(), ImBufByteBuffer::data, ImBufFloatBuffer::data, ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), ImBuf::float_buffer, SpaceImage::image, IMB_COLORMANAGE_IS_DATA, IMB_colormanagement_colorspace_to_scene_linear_v3(), int, lock, ret, rgb_uchar_to_float(), tile, UI_view2d_region_to_view(), ImBuf::x, x, and ImBuf::y.
Referenced by eyedropper_color_sample_fl(), and paint_sample_color().
| bool ED_space_image_get_position | ( | SpaceImage * | sima, |
| ARegion * | region, | ||
| const int | mval[2], | ||
| float | r_fpos[2] ) |
Returns mouse position in image space.
Definition at line 3464 of file image_ops.cc.
References ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), lock, and UI_view2d_region_to_view().
Referenced by eyedropper_cryptomatte_sample_fl().
Definition at line 3876 of file image_ops.cc.
References CTX_data_scene(), CTX_wm_region(), wmEvent::mval, RGN_TYPE_WINDOW, round_fl_to_int(), and UI_view2d_region_to_view().
Referenced by change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 3777 of file image_ops.cc.
References BKE_image_add_renderslot(), BLI_findindex(), image_from_context(), NC_IMAGE, ND_DRAW, OPERATOR_FINISHED, Image::render_slot, Image::renderslots, and WM_event_add_notifier().
Referenced by IMAGE_OT_add_render_slot().
|
static |
Definition at line 3742 of file image_ops.cc.
References BKE_image_clear_renderslot(), image_from_context(), image_user_from_context(), NC_IMAGE, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::render_slot, and WM_event_add_notifier().
Referenced by IMAGE_OT_clear_render_slot().
|
static |
Definition at line 2962 of file image_ops.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_report(), G, IMA_SRC_VIEWER, image_from_context(), image_user_from_context(), lock, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, Image::source, WM_clipboard_image_set(), and WM_cursor_wait().
Referenced by IMAGE_OT_clipboard_copy().
|
static |
Definition at line 2990 of file image_ops.cc.
References CTX_wm_operator_poll_msg_set(), and image_from_context_has_data_poll().
Referenced by IMAGE_OT_clipboard_copy().
|
static |
Definition at line 3021 of file image_ops.cc.
References BKE_image_add_from_imbuf(), BKE_image_signal(), CTX_data_main(), CTX_wm_space_image(), ED_space_image_set(), ED_undo_push_op(), IMA_SIGNAL_USER_NEW_IMAGE, IMB_freeImBuf(), SpaceImage::iuser, NA_ADDED, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, WM_clipboard_image_get(), WM_cursor_wait(), and WM_event_add_notifier().
Referenced by IMAGE_OT_clipboard_paste().
|
static |
Definition at line 3045 of file image_ops.cc.
References CTX_wm_operator_poll_msg_set(), CTX_wm_space_image(), and WM_clipboard_image_available().
Referenced by IMAGE_OT_clipboard_paste().
|
static |
Definition at line 3699 of file image_ops.cc.
References BKE_image_get_renderslot(), ED_image_slot_cycle(), image_from_context(), Image::last_render_slot, NC_IMAGE, ND_DRAW, 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().
|
static |
Definition at line 3692 of file image_ops.cc.
References 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 1588 of file image_ops.cc.
References BKE_image_ensure_tile_token(), BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_is_rel(), BLI_path_rel(), CTX_data_main(), wmOperator::customdata, FILE_MAX, Library_Runtime::filepath_abs, Image::id, ID_IS_LINKED, IMA_SRC_TILED, ID::lib, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_id_pointer_create(), RNA_property_string_set(), RNA_property_update(), RNA_string_get(), RNA_struct_find_property(), Library::runtime, and Image::source.
Referenced by IMAGE_OT_file_browse().
|
static |
Definition at line 1624 of file image_ops.cc.
References BKE_image_user_file_path(), BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_slash_rfind(), CTX_data_main(), wmOperator::customdata, FILE_MAX, Image::filepath, Library_Runtime::filepath_abs, Image::id, ID_IS_LINKED, IMA_SRC_TILED, image_filesel(), image_from_context(), image_user_from_context_and_active_tile(), KM_ALT, KM_SHIFT, ID::lib, wmEvent::modifier, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, ot, RNA_string_set(), Library::runtime, Image::source, STRNCPY, 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().
|
static |
Definition at line 1671 of file image_ops.cc.
References image_from_context().
Referenced by IMAGE_OT_file_browse().
| iuser | Image user or nullptr when called outside the image space. |
Definition at line 2127 of file image_ops.cc.
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 1235 of file image_ops.cc.
References 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 2757 of file image_ops.cc.
References BKE_image_acquire_ibuf(), BKE_image_mark_dirty(), BKE_image_partial_update_mark_full_update(), BKE_image_release_ibuf(), ImBuf::byte_buffer, copy_v4_v4(), copy_v4_v4_uchar(), CTX_wm_space_image(), ImBufByteBuffer::data, ImBufFloatBuffer::data, DEG_id_tag_update(), ED_image_undo_push_begin_with_image(), ED_image_undo_push_end(), ED_imapaint_clear_partial_redraw(), ImBuf::float_buffer, IB_DISPLAY_BUFFER_INVALID, IB_MIPMAP_INVALID, Image::id, ID_RECALC_EDITORS, 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, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), SI_MODE_PAINT, wmOperator::type, ImBuf::userflags, WM_event_add_notifier(), ImBuf::x, x, ImBuf::y, and y.
Referenced by IMAGE_OT_flip().
Definition at line 168 of file image_ops.cc.
References CTX_data_pointer_get_type(), CTX_wm_space_image(), PointerRNA::data, and SpaceImage::image.
Referenced by image_add_render_slot_exec(), image_clear_render_slot_exec(), image_clipboard_copy_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_editable_has_data_poll_active_tile(), image_from_context_has_data_poll(), 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_rotate_orthogonal_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().
|
static |
Use this when the image buffer is accessing the active tile without the image user.
Definition at line 239 of file image_ops.cc.
References BKE_image_has_ibuf(), CTX_wm_operator_poll_msg_set(), Image::id, ID_IS_EDITABLE, image_from_context(), and image_user_from_context_and_active_tile().
Referenced by IMAGE_OT_flip(), IMAGE_OT_invert(), IMAGE_OT_resize(), and IMAGE_OT_rotate_orthogonal().
|
static |
Definition at line 220 of file image_ops.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), ImBuf::byte_buffer, ImBufByteBuffer::data, ImBufFloatBuffer::data, ImBuf::float_buffer, image_from_context(), image_user_from_context(), and lock.
Referenced by image_clipboard_copy_poll(), IMAGE_OT_save_sequence(), image_save_as_poll(), and image_save_poll().
|
static |
Definition at line 2341 of file image_ops.cc.
References Image::filepath.
Referenced by ED_image_save_all_modified(), and ED_image_save_all_modified_info().
|
static |
Definition at line 3082 of file image_ops.cc.
References b, BKE_image_acquire_ibuf(), BKE_image_mark_dirty(), BKE_image_partial_update_mark_full_update(), BKE_image_release_ibuf(), ImBuf::byte_buffer, CTX_wm_space_image(), ImBufByteBuffer::data, ImBufFloatBuffer::data, DEG_id_tag_update(), ED_image_undo_push_begin_with_image(), ED_image_undo_push_end(), ED_imapaint_clear_partial_redraw(), ImBuf::float_buffer, IB_DISPLAY_BUFFER_INVALID, IB_MIPMAP_INVALID, Image::id, ID_RECALC_EDITORS, image_from_context(), image_user_from_context_and_active_tile(), IMB_rect_from_float(), ImBuf::mipmap, SpaceImage::mode, NA_EDITED, wmOperatorType::name, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, 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 1709 of file image_ops.cc.
References Image::anims, BKE_image_has_anim(), BKE_image_user_frame_calc(), 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, tex, TEX_IMAGE, and Tex::type.
Referenced by IMAGE_OT_match_movie_length().
|
static |
Definition at line 2694 of file image_ops.cc.
References image_new_free().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2662 of file image_ops.cc.
References col, CTX_data_scene(), wmOperator::layout, wmOperator::ptr, R_MULTIVIEW, UI_ITEM_NONE, uiItemL(), uiItemR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2560 of file image_ops.cc.
References BKE_id_move_to_same_lib(), BKE_image_add_generated(), BKE_image_signal(), color, CTX_data_main(), CTX_wm_space_image(), DATA_, ED_space_image_set(), 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, 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(), and WM_event_add_notifier().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2555 of file image_ops.cc.
References wmOperator::customdata, and MEM_SAFE_FREE.
Referenced by image_new_cancel(), and image_new_exec().
|
static |
Definition at line 2543 of file image_ops.cc.
References wmOperator::customdata, data, MEM_callocN, and UI_context_active_but_prop_get_templateID().
Referenced by image_new_exec().
|
static |
Definition at line 2649 of file image_ops.cc.
References wmOperator::customdata, data, DATA_, IFACE_, 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().
|
static |
Definition at line 253 of file image_ops.cc.
References BLI_listbase_is_empty(), image_from_context(), and Image::packedfiles.
Referenced by IMAGE_OT_replace().
|
static |
Definition at line 1262 of file image_ops.cc.
References wmOperator::customdata.
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1511 of file image_ops.cc.
References wmOperator::customdata, ImageOpenData::im_format, image_open_draw_check_prop(), wmOperator::layout, 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 1502 of file image_ops.cc.
References RNA_property_identifier(), and STR_ELEM.
Referenced by image_open_draw().
|
static |
Definition at line 1331 of file image_ops.cc.
References Camera::bg_images, BKE_id_move_to_same_lib(), BKE_image_init_imageuser(), BKE_image_signal(), BKE_main_blendfile_path(), BLI_freelistN(), 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(), Library_Runtime::filepath_abs, 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, ID::lib, LISTBASE_FOREACH, NA_EDITED, NC_IMAGE, ImageUser::offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, ImageOpenData::pprop, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, wmOperator::ptr, RNA_boolean_get(), RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), Library::runtime, ImageUser::scene, 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 1253 of file image_ops.cc.
References CTX_data_pointer_get_type(), wmOperator::customdata, PointerRNA::data, ImageOpenData::iuser, 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 1444 of file image_ops.cc.
References CTX_data_pointer_get_type(), CTX_data_scene(), CTX_wm_space_image(), PointerRNA::data, Image::filepath, GS, Image::id, ID_IM, Tex::ima, SpaceImage::image, image_filesel(), image_open_exec(), image_open_init(), ID::name, OPERATOR_RUNNING_MODAL, PointerRNA::owner_id, ptr, wmOperator::ptr, R_MULTIVIEW, RNA_property_boolean_set(), RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_property_is_set(), tex, TEX_IMAGE, Tex::type, and UI_context_active_but_prop_get_templateID().
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1269 of file image_ops.cc.
References BKE_image_add_tile(), BKE_image_free_views(), BKE_image_load_exists_in_lib(), BKE_reportf(), wmOperator::customdata, Image::filepath, Library::filepath, ListBase::first, Image::flag, ImageOpenData::im_format, IMA_SRC_FILE, IMA_SRC_SEQUENCE, IMA_SRC_TILED, IMA_USE_VIEWS, LISTBASE_FOREACH, POINTER_AS_INT, wmOperator::reports, RPT_, RPT_ERROR, Image::source, Image::stereo3d_format, ImageFormatData::stereo3d_format, STRNCPY, ImageTile::tile_number, Image::tiles, Image::views_format, and ImageFormatData::views_format.
Referenced by image_open_exec().
|
static |
Definition at line 1535 of file image_ops.cc.
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 3789 of file image_ops.cc.
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 3941 of file image_ops.cc.
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 4097 of file image_ops.cc.
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 3756 of file image_ops.cc.
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_clipboard_copy | ( | wmOperatorType * | ot | ) |
Definition at line 3000 of file image_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_clipboard_copy_exec(), image_clipboard_copy_poll(), wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
| void IMAGE_OT_clipboard_paste | ( | wmOperatorType * | ot | ) |
Definition at line 3061 of file image_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_clipboard_paste_exec(), image_clipboard_paste_poll(), wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by image_operatortypes().
| void IMAGE_OT_curves_point_set | ( | wmOperatorType * | ot | ) |
Definition at line 3654 of file image_ops.cc.
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, 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 3719 of file image_ops.cc.
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 1676 of file image_ops.cc.
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 2850 of file image_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_flip_exec(), image_from_context_editable_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 3175 of file image_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_from_context_editable_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 | ( | wmOperatorType * | ot | ) |
Called by other space types too.
Definition at line 1738 of file image_ops.cc.
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 2699 of file image_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, 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, OPTYPE_UNDO, ot, wmOperatorType::prop, 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 | ( | wmOperatorType * | ot | ) |
Called by other space types too.
Definition at line 1542 of file image_ops.cc.
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 3330 of file image_ops.cc.
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 3981 of file image_ops.cc.
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 2511 of file image_ops.cc.
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 3824 of file image_ops.cc.
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 4061 of file image_ops.cc.
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 1818 of file image_ops.cc.
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 3268 of file image_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_from_context_editable_has_data_poll_active_tile(), image_scale_exec(), image_scale_invoke(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, RNA_def_int_vector(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_rotate_orthogonal | ( | wmOperatorType * | ot | ) |
Definition at line 2924 of file image_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_from_context_editable_has_data_poll_active_tile(), image_rotate_orthogonal_exec(), wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_sample | ( | wmOperatorType * | ot | ) |
Definition at line 3534 of file image_ops.cc.
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 3628 of file image_ops.cc.
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 2214 of file image_ops.cc.
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 2469 of file image_ops.cc.
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 2072 of file image_ops.cc.
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 2305 of file image_ops.cc.
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 4295 of file image_ops.cc.
References def_fill_tile(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, IMA_UDIM_MAX, wmOperatorType::invoke, wmOperatorType::name, 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 4415 of file image_ops.cc.
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 4356 of file image_ops.cc.
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 3436 of file image_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_unpack_exec(), image_unpack_invoke(), wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, 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 840 of file image_ops.cc.
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 922 of file image_ops.cc.
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 886 of file image_ops.cc.
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 464 of file image_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, image_view_pan_cancel(), image_view_pan_exec(), image_view_pan_invoke(), image_view_pan_modal(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, 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 991 of file image_ops.cc.
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 722 of file image_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, 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 1215 of file image_ops.cc.
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 1037 of file image_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, image_view_zoom_in_exec(), image_view_zoom_in_invoke(), wmOperatorType::invoke, wmOperatorType::name, 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 1096 of file image_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, image_view_zoom_out_exec(), image_view_zoom_out_invoke(), wmOperatorType::invoke, wmOperatorType::name, 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 1149 of file image_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, 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 3309 of file image_ops.cc.
References BKE_image_is_dirty(), BKE_image_memorypack(), BKE_image_packfiles(), 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 3293 of file image_ops.cc.
References BKE_report(), 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 3963 of file image_ops.cc.
References BKE_image_ensure_viewer(), CTX_data_main(), CTX_data_scene(), CTX_wm_space_image(), ED_space_image_set(), IMA_TYPE_R_RESULT, SpaceImage::image, NA_EDITED, NC_IMAGE, OPERATOR_FINISHED, RE_ReadRenderResult(), and WM_event_add_notifier().
Referenced by IMAGE_OT_read_viewlayers().
|
static |
Definition at line 2490 of file image_ops.cc.
References BKE_image_signal(), 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 3810 of file image_ops.cc.
References BKE_image_remove_renderslot(), image_from_context(), image_user_from_context(), NC_IMAGE, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::render_slot, and WM_event_add_notifier().
Referenced by IMAGE_OT_remove_render_slot().
|
static |
Definition at line 1759 of file image_ops.cc.
References BKE_icon_changed(), BKE_icon_id_ensure(), BKE_image_signal(), BLI_path_extension_check_array(), CTX_data_main(), CTX_wm_manager(), CTX_wm_space_image(), DEG_id_tag_update(), 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, STRNCPY, and WM_event_add_notifier().
Referenced by IMAGE_OT_replace(), and image_replace_invoke().
|
static |
Definition at line 1797 of file image_ops.cc.
References BLI_path_is_rel(), 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 2879 of file image_ops.cc.
References BKE_image_acquire_ibuf(), BKE_image_mark_dirty(), BKE_image_partial_update_mark_full_update(), BKE_image_release_ibuf(), 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, IB_MIPMAP_INVALID, Image::id, ID_RECALC_EDITORS, image_from_context(), image_user_from_context_and_active_tile(), IMB_rotate_orthogonal(), ImBuf::mipmap, SpaceImage::mode, NA_EDITED, wmOperatorType::name, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SI_MODE_PAINT, wmOperator::type, ImBuf::userflags, and WM_event_add_notifier().
Referenced by IMAGE_OT_rotate_orthogonal().
|
static |
Definition at line 3562 of file image_ops.cc.
References BKE_histogram_update_sample_line(), BKE_image_get_tile_from_pos(), ImBuf::channels, Histogram::co, copy_v2_v2(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), CTX_wm_space_image(), ED_area_tag_redraw(), ED_space_image(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), Histogram::flag, HISTO_FLAG_SAMPLELINE, lock, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), SpaceImage::sample_line_hist, sub_v2_v2(), tile, UI_view2d_region_to_view(), and Histogram::ymax.
Referenced by IMAGE_OT_sample_line().
|
static |
Definition at line 3614 of file image_ops.cc.
References CTX_wm_space_image(), ED_space_image_has_buffer(), Histogram::flag, OPERATOR_CANCELLED, SpaceImage::sample_line_hist, and WM_gesture_straightline_invoke().
Referenced by IMAGE_OT_sample_line().
|
static |
Definition at line 2463 of file image_ops.cc.
References ED_image_save_all_modified(), OPERATOR_FINISHED, and wmOperator::reports.
Referenced by IMAGE_OT_save_all_modified().
|
static |
Definition at line 2457 of file image_ops.cc.
References CTX_data_main(), and ED_image_save_all_modified_info().
Referenced by IMAGE_OT_save_all_modified().
|
static |
Definition at line 1998 of file image_ops.cc.
References image_save_as_free().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 1971 of file image_ops.cc.
References BKE_image_save_options_update(), 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 2015 of file image_ops.cc.
References col, wmOperator::customdata, IFACE_, ImageSaveOptions::im_format, image_save_as_draw_check_prop(), wmOperator::layout, ImageSaveData::opts, wmOperator::ptr, RNA_boolean_get(), RNA_pointer_create(), RNA_pointer_get(), UI_BUT_LABEL_ALIGN_NONE, UI_ITEM_NONE, uiDefAutoButsRNA(), uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), uiTemplateImageFormatViews(), and uiTemplateImageSettings().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 2003 of file image_ops.cc.
References IMA_SRC_VIEWER, ImageSaveData::image, ptr, RNA_boolean_get(), RNA_property_identifier(), Image::source, and STREQ.
Referenced by image_save_as_draw().
|
static |
Definition at line 1942 of file image_ops.cc.
References BKE_image_free_packedfiles(), BKE_image_save_options_update(), CTX_data_main(), wmOperator::customdata, ImageSaveData::image, image_save_as_free(), image_save_as_init(), image_save_options_from_op(), ImageSaveData::iuser, 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 1931 of file image_ops.cc.
References BKE_image_save_options_free(), wmOperator::customdata, MEM_freeN(), and ImageSaveData::opts.
Referenced by image_save_as_cancel(), and image_save_as_exec().
|
static |
Definition at line 1887 of file image_ops.cc.
References BKE_image_is_multiview(), BKE_image_save_options_free(), BKE_image_save_options_init(), CTX_data_main(), CTX_data_scene(), wmOperator::customdata, ImageSaveOptions::do_newpath, ImageSaveOptions::filepath, IMA_SRC_VIEWER, image(), ImageSaveData::image, image_from_context(), image_user_from_context(), ImageSaveData::iuser, MEM_callocN, MEM_freeN(), ImageSaveData::opts, wmOperator::ptr, RNA_boolean_set(), RNA_property_boolean_set(), RNA_string_set(), RNA_struct_find_property(), RNA_struct_property_is_set(), and ImageSaveOptions::save_as_render.
Referenced by image_save_as_exec(), and image_save_as_invoke().
|
static |
Definition at line 1982 of file image_ops.cc.
References ImageSaveOptions::filepath, image_filesel(), image_save_as_exec(), image_save_as_init(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, ImageSaveData::opts, wmOperator::ptr, and RNA_struct_property_is_set().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 2053 of file image_ops.cc.
References 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 2156 of file image_ops.cc.
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(), CTX_data_main(), CTX_data_scene(), ImageSaveOptions::filepath, image_from_context(), image_save_options_from_op(), image_user_from_context(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, and save_image_op().
Referenced by IMAGE_OT_save(), and image_save_invoke().
|
static |
Definition at line 2199 of file image_ops.cc.
References BKE_image_has_filepath(), BKE_image_has_packedfile(), image_file_format_writable(), image_from_context(), image_save_exec(), image_user_from_context(), OPERATOR_CANCELLED, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
Referenced by IMAGE_OT_save().
|
static |
Definition at line 1855 of file image_ops.cc.
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().
|
static |
Definition at line 2141 of file image_ops.cc.
References image_from_context_has_data_poll().
Referenced by IMAGE_OT_save().
|
static |
Definition at line 2236 of file image_ops.cc.
References BKE_report(), BKE_reportf(), BLI_path_split_dir_part(), FILE_MAX, ImBuf::filepath, IB_BITMAPDIRTY, IB_rect, IMA_SRC_SEQUENCE, IMA_TYPE_MULTILAYER, image_from_context(), IMB_moviecacheIter_done(), IMB_moviecacheIter_free(), IMB_moviecacheIter_getImBuf(), IMB_moviecacheIter_new(), IMB_moviecacheIter_step(), IMB_saveiff(), 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 3223 of file image_ops.cc.
References BKE_image_acquire_ibuf(), BKE_image_mark_dirty(), BKE_image_partial_update_mark_full_update(), BKE_image_release_ibuf(), Box, 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_scale(), SpaceImage::mode, NA_EDITED, wmOperatorType::name, NC_IMAGE, 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, wmOperator::type, ImBuf::userflags, WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_resize().
|
static |
Definition at line 3208 of file image_ops.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), IFACE_, image_from_context(), image_user_from_context_and_active_tile(), wmOperator::ptr, RNA_property_int_set_array(), RNA_property_is_set(), RNA_struct_find_property(), WM_operator_props_dialog_popup(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_resize().
|
static |
Definition at line 2331 of file image_ops.cc.
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().
|
static |
Definition at line 2326 of file image_ops.cc.
References ELEM, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, and Image::type.
Referenced by image_should_be_saved().
|
static |
Definition at line 2346 of file image_ops.cc.
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 3350 of file image_ops.cc.
References BKE_image_has_packedfile(), BKE_packedfile_unpack_image(), BKE_report(), BLI_findstring(), CTX_data_main(), CTX_wm_manager(), ED_preview_kill_jobs(), ELEM, G, G_FILE_AUTOPACK, Image::id, ID_IS_EDITABLE, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, image_from_context(), Main::images, MAX_ID_NAME, NA_EDITED, NC_IMAGE, offsetof, 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 3396 of file image_ops.cc.
References BKE_image_has_packedfile(), BKE_report(), ELEM, Image::filepath, ListBase::first, G, G_FILE_AUTOPACK, Image::id, ID_IS_EDITABLE, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, image_from_context(), image_unpack_exec(), ID::name, 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 183 of file image_ops.cc.
References CTX_data_pointer_get_type(), CTX_wm_space_image(), PointerRNA::data, and SpaceImage::iuser.
Referenced by image_clear_render_slot_exec(), image_clipboard_copy_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 199 of file image_ops.cc.
References Image::active_tile_index, BKE_imageuser_default(), BLI_findlink(), 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_editable_has_data_poll_active_tile(), image_invert_exec(), image_rotate_orthogonal_exec(), image_scale_exec(), and image_scale_invoke().
|
static |
Definition at line 260 of file image_ops.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), ED_space_image_get_aspect(), ED_space_image_get_size(), float, IMA_SRC_TILED, SpaceImage::image, LISTBASE_FOREACH, max_ii(), min_ff(), power_of_2(), wmOperator::ptr, RNA_boolean_get(), sima_zoom_set(), Image::source, tile, SpaceImage::tile_grid_shape, Image::tiles, w(), SpaceImage::xof, and SpaceImage::yof.
Referenced by image_view_all_exec(), and view_cursor_center_exec().
|
static |
Definition at line 824 of file image_ops.cc.
References 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 459 of file image_ops.cc.
References image_view_pan_exit().
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 401 of file image_ops.cc.
References CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), 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 384 of file image_ops.cc.
References 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(), SpaceImage::xof, ViewPanData::xof, SpaceImage::yof, and ViewPanData::yof.
Referenced by image_view_pan_cancel(), and image_view_pan_modal().
|
static |
Definition at line 360 of file image_ops.cc.
References 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, SpaceImage::xof, ViewPanData::xof, ViewPanData::y, SpaceImage::yof, and ViewPanData::yof.
Referenced by image_view_pan_invoke().
|
static |
Definition at line 415 of file image_ops.cc.
References CTX_wm_space_image(), image_view_pan_exec(), image_view_pan_init(), MOUSEPAN, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 433 of file image_ops.cc.
References CTX_wm_space_image(), wmOperator::customdata, image_view_pan_exec(), image_view_pan_exit(), KM_RELEASE, ViewPanData::launch_event, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, wmEvent::val, ViewPanData::x, SpaceImage::xof, ViewPanData::xof, ViewPanData::y, SpaceImage::yof, ViewPanData::yof, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 940 of file image_ops.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs(), BLI_rctf_scale(), bounds(), 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(), min, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, and sima_zoom_set_from_bounds().
Referenced by IMAGE_OT_view_selected().
|
static |
Definition at line 986 of file image_ops.cc.
References ED_maskedit_poll(), ED_operator_uvedit(), and space_image_main_region_poll().
Referenced by IMAGE_OT_view_selected().
|
static |
Definition at line 1181 of file image_ops.cc.
References bounds(), 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(), WM_operator_properties_border_to_rctf(), SpaceImage::xof, SpaceImage::yof, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_zoom_border().
|
static |
Definition at line 717 of file image_ops.cc.
References image_view_zoom_exit().
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 572 of file image_ops.cc.
References CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and sima_zoom_set_factor().
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 552 of file image_ops.cc.
References 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_timer_remove(), SpaceImage::zoom, and ViewZoomData::zoom.
Referenced by image_view_zoom_cancel(), and image_view_zoom_modal().
|
static |
Definition at line 1009 of file image_ops.cc.
References 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 1025 of file image_ops.cc.
References CTX_wm_region(), image_view_zoom_in_exec(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), and UI_view2d_region_to_view().
Referenced by IMAGE_OT_view_zoom_in().
|
static |
Definition at line 516 of file image_ops.cc.
References BLI_time_now_seconds(), 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, ViewZoomData::region, ViewZoomData::sima, TIMER, ViewZoomData::timer, ViewZoomData::timer_lastdraw, wmEvent::type, UI_view2d_region_to_view(), USER_ZOOM_CONTINUE, WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_event_timer_add(), WM_userdef_event_type_from_keymap_type(), SpaceImage::zoom, and ViewZoomData::zoom.
Referenced by image_view_zoom_invoke().
|
static |
Definition at line 590 of file image_ops.cc.
References 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, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 670 of file image_ops.cc.
References wmEvent::customdata, wmOperator::customdata, image_view_zoom_exit(), image_zoom_apply(), KM_RELEASE, ViewZoomData::launch_event, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ret, RNA_boolean_get(), TIMER, ViewZoomData::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 1068 of file image_ops.cc.
References 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 1084 of file image_ops.cc.
References CTX_wm_region(), image_view_zoom_out_exec(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), and UI_view2d_region_to_view().
Referenced by IMAGE_OT_view_zoom_out().
|
static |
Definition at line 1133 of file image_ops.cc.
References CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), int, 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 623 of file image_ops.cc.
References BLI_time_now_seconds(), ED_region_tag_redraw(), float, ViewZoomData::location, ViewZoomData::origx, ViewZoomData::origy, 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, SpaceImage::zoom, and ViewZoomData::zoom.
Referenced by image_view_zoom_modal().
|
static |
Definition at line 4000 of file image_ops.cc.
References BKE_render_resolution(), RenderData::border, ceilf, CLAMP, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_image(), DEG_id_tag_update(), ED_space_image_has_buffer(), floorf, ID_RECALC_SYNC_TO_EVAL, RenderData::mode, NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_CANCELLED, OPERATOR_FINISHED, R_BORDER, R_CROP, RE_engine_get_render_data(), RE_GetSceneRender(), UI_view2d_region_to_view_rctf(), 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 1870 of file image_ops.cc.
References BKE_image_save(), ImageSaveOptions::filepath, G, NA_EDITED, NC_IMAGE, wmOperator::reports, STRNCPY, WM_cursor_wait(), and WM_main_add_notifier().
Referenced by image_save_as_exec(), and image_save_exec().
|
static |
Definition at line 91 of file image_ops.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), ED_space_image_get_aspect(), ED_space_image_get_size(), w(), 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 131 of file image_ops.cc.
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 143 of file image_ops.cc.
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(), sima_zoom_set(), size(), SpaceImage::xof, and SpaceImage::yof.
Referenced by image_view_selected_exec(), and image_view_zoom_border_exec().
|
static |
Definition at line 336 of file image_ops.cc.
References CTX_data_edit_object(), and CTX_wm_space_image().
Referenced by IMAGE_OT_curves_point_set().
| bool space_image_main_region_poll | ( | bContext * | C | ) |
Definition at line 324 of file image_ops.cc.
References 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 4276 of file image_ops.cc.
References col, draw_fill_tile(), wmOperator::layout, wmOperator::ptr, RNA_boolean_get(), UI_ITEM_NONE, uiItemR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 4205 of file image_ops.cc.
References Image::active_tile_index, BKE_image_add_tile(), BKE_image_sort_tiles(), BKE_report(), BLI_findindex(), CTX_data_edit_image(), do_fill_tile(), IMA_UDIM_MAX, label, MEM_freeN(), NC_IMAGE, ND_DRAW, 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 4248 of file image_ops.cc.
References Image::active_tile_index, BLI_findlink(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, CTX_data_edit_image(), CTX_IFACE_, IFACE_, LISTBASE_FOREACH, 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().
|
static |
Definition at line 4198 of file image_ops.cc.
References BKE_image_has_ibuf(), CTX_data_edit_image(), IMA_SRC_TILED, and Image::source.
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 4410 of file image_ops.cc.
References draw_fill_tile(), wmOperator::layout, and wmOperator::ptr.
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4388 of file image_ops.cc.
References Image::active_tile_index, BLI_findlink(), CTX_data_edit_image(), do_fill_tile(), NC_IMAGE, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, tile, Image::tiles, and WM_event_add_notifier().
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4146 of file image_ops.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_imageuser_default(), ImBufFloatBuffer::data, ListBase::first, ImBuf::float_buffer, ImBuf::planes, ptr, RNA_boolean_set(), RNA_int_set(), ImageUser::tile, tile, Image::tiles, ImBuf::x, and ImBuf::y.
Referenced by tile_add_invoke(), and tile_fill_invoke().
|
static |
Definition at line 4402 of file image_ops.cc.
References CTX_data_edit_image(), IFACE_, wmOperator::ptr, tile_fill_init(), and WM_operator_props_dialog_popup().
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4377 of file image_ops.cc.
References Image::active_tile_index, BKE_image_has_ibuf(), CTX_data_edit_image(), IMA_SRC_TILED, and Image::source.
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4339 of file image_ops.cc.
References Image::active_tile_index, BKE_image_remove_tile(), BLI_findlink(), BLI_listbase_count(), CTX_data_edit_image(), min_ii(), NC_IMAGE, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, tile, Image::tiles, and WM_event_add_notifier().
Referenced by IMAGE_OT_tile_remove().
|
static |
Definition at line 4332 of file image_ops.cc.
References BLI_listbase_is_single(), CTX_data_edit_image(), IMA_SRC_TILED, Image::source, and Image::tiles.
Referenced by IMAGE_OT_tile_remove().
|
static |
Definition at line 910 of file image_ops.cc.
References 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 867 of file image_ops.cc.
References CTX_wm_region(), CTX_wm_space_image(), SpaceImage::cursor, image_view_all(), NC_SPACE, ND_SPACE_IMAGE, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by IMAGE_OT_view_cursor_center().