|
Blender V5.0
|
#include <cerrno>#include <cstddef>#include <cstdlib>#include <cstring>#include <fcntl.h>#include <string>#include <unistd.h>#include "MEM_guardedalloc.h"#include "BLI_fileops.h"#include "BLI_listbase.h"#include "BLI_path_utils.hh"#include "BLI_set.hh"#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_format.hh"#include "BKE_image_save.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_library.hh"#include "BKE_main.hh"#include "BKE_mask.h"#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 "MOV_read.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_interface_layout.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 | 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 wmOperatorStatus | image_new_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | 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 wmOperatorStatus | image_view_zoom_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | 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 wmOperatorStatus | 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) |
| #define IMA_DEF_NAME N_("Untitled") |
Definition at line 2561 of file image_ops.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| VIEW_PASS | |
| VIEW_APPLY | |
| VIEW_CONFIRM | |
Definition at line 598 of file image_ops.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| GEN_CONTEXT_NONE | |
| GEN_CONTEXT_PAINT_CANVAS | |
| GEN_CONTEXT_PAINT_STENCIL | |
Definition at line 2563 of file image_ops.cc.
|
static |
Definition at line 3960 of file image_ops.cc.
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(), RenderData::subframe, and WM_event_add_notifier().
Referenced by change_frame_exec(), change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 3974 of file image_ops.cc.
References C, change_frame_apply(), and OPERATOR_FINISHED.
|
static |
Definition at line 4003 of file image_ops.cc.
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().
|
static |
Definition at line 4024 of file image_ops.cc.
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.
|
static |
Definition at line 3950 of file image_ops.cc.
References C, G, and space_image_main_region_poll().
|
static |
Definition at line 4196 of file image_ops.cc.
References BLI_rctf_init(), RenderData::border, C, CTX_data_scene(), RenderData::mode, NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_FINISHED, Scene::r, R_BORDER, and WM_event_add_notifier().
Referenced by IMAGE_OT_clear_render_border(), and VIEW3D_OT_clear_render_border().
|
static |
Definition at line 4281 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 4226 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 4240 of file image_ops.cc.
References col, uiLayout::column(), ptr, UI_ITEM_NONE, uiLayout::use_property_decorate_set(), and uiLayout::use_property_split_set().
Referenced by tile_add_draw(), and tile_fill_draw().
| bool ED_image_save_all_modified | ( | const bContext * | C, |
| ReportList * | reports ) |
Definition at line 2453 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(), 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(), 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 2397 of file image_ops.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_image_has_packedfile(), BKE_reportf(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), ListBase::first, ID_IS_EDITABLE, image_has_valid_path(), image_should_be_saved(), image_should_pack_during_save_all(), Main::images, 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 2384 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(), wm_revert_mainfile_invoke(), and wm_set_working_space_check_safe().
| 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 3588 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(), lock, ret, rgb_uchar_to_float(), tile, UI_view2d_region_to_view(), ARegion::v2d, ImBuf::x, x, ImBuf::y, and 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 3569 of file image_ops.cc.
References ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), lock, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by eyedropper_cryptomatte_sample_fl().
Definition at line 3981 of file image_ops.cc.
References C, CTX_data_scene(), CTX_wm_region(), RenderData::efra, wmEvent::mval, Scene::r, ARegion::regiontype, RGN_TYPE_WINDOW, round_fl_to_int(), RenderData::sfra, UI_view2d_region_to_view(), ARegion::v2d, and ARegion::winx.
|
static |
Definition at line 3882 of file image_ops.cc.
References BKE_image_add_renderslot(), BLI_findindex(), C, 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 3847 of file image_ops.cc.
References BKE_image_clear_renderslot(), C, 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 2986 of file image_ops.cc.
References BKE_image_acquire_ibuf(), BKE_image_format_free(), BKE_image_format_init_for_write(), BKE_image_format_set(), BKE_image_release_ibuf(), BKE_report(), C, CTX_data_scene(), ImageFormatData::depth, Image::flag, G, IMA_SRC_VIEWER, IMA_VIEW_AS_RENDER, image_from_context(), image_user_from_context(), IMB_colormanagement_imbuf_for_write(), IMB_freeImBuf(), lock, OPERATOR_CANCELLED, OPERATOR_FINISHED, R_IMF_CHAN_DEPTH_8, R_IMF_IMTYPE_PNG, wmOperator::reports, RPT_ERROR, Image::source, WM_clipboard_image_set_byte_buffer(), and WM_cursor_wait().
Referenced by IMAGE_OT_clipboard_copy().
|
static |
Definition at line 3031 of file image_ops.cc.
References C, CTX_wm_operator_poll_msg_set(), and image_from_context_has_data_poll().
Referenced by IMAGE_OT_clipboard_copy().
|
static |
Definition at line 3062 of file image_ops.cc.
References BKE_image_add_from_imbuf(), BKE_image_signal(), C, 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 3086 of file image_ops.cc.
References C, 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 3804 of file image_ops.cc.
References BKE_image_get_renderslot(), C, 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 3797 of file image_ops.cc.
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 1610 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(), C, CTX_data_main(), wmOperator::customdata, FILE_MAX, 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 1646 of file image_ops.cc.
References BKE_image_user_file_path(), BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_slash_rfind(), C, CTX_data_main(), wmOperator::customdata, blender::wm::ExecDefault, FILE_MAX, Image::filepath, 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_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 1694 of file image_ops.cc.
References C, ID_IS_EDITABLE, and image_from_context().
Referenced by IMAGE_OT_file_browse().
| iuser | Image user or nullptr when called outside the image space. |
Definition at line 2156 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 1255 of file image_ops.cc.
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 2789 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, C, 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, Image::id, ID_RECALC_EDITORS, image_from_context(), image_user_from_context_and_active_tile(), IMB_byte_from_float(), MEM_dupallocN(), MEM_freeN(), 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 176 of file image_ops.cc.
References C, 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_poll(), 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 247 of file image_ops.cc.
References BKE_image_has_ibuf(), C, 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 228 of file image_ops.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), ImBuf::byte_buffer, C, 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 2371 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 3123 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, C, 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, i, IB_DISPLAY_BUFFER_INVALID, Image::id, ID_RECALC_EDITORS, image_from_context(), image_user_from_context_and_active_tile(), IMB_byte_from_float(), 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 1733 of file image_ops.cc.
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_TC_RECORD_RUN, Tex::iuser, MOV_get_duration_frames(), OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, TEX_IMAGE, and Tex::type.
Referenced by IMAGE_OT_match_movie_length().
|
static |
Definition at line 2726 of file image_ops.cc.
References image_new_free().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2694 of file image_ops.cc.
References C, col, uiLayout::column(), CTX_data_scene(), wmOperator::layout, wmOperator::ptr, Scene::r, R_MULTIVIEW, RenderData::scemode, UI_ITEM_NONE, uiLayout::use_property_decorate_set(), and uiLayout::use_property_split_set().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2592 of file image_ops.cc.
References BKE_id_move_to_same_lib(), BKE_image_add_generated(), BKE_image_signal(), C, CTX_data_main(), CTX_wm_space_image(), data, 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, name, 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 2585 of file image_ops.cc.
References wmOperator::customdata.
Referenced by image_new_cancel(), and image_new_exec().
|
static |
Definition at line 2573 of file image_ops.cc.
References C, wmOperator::customdata, data, and UI_context_active_but_prop_get_templateID().
Referenced by image_new_exec().
|
static |
Definition at line 2681 of file image_ops.cc.
References C, wmOperator::customdata, data, DATA_, IFACE_, IMA_DEF_NAME, 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 261 of file image_ops.cc.
References BLI_listbase_is_empty(), C, image_from_context(), and Image::packedfiles.
Referenced by IMAGE_OT_replace().
|
static |
Definition at line 1282 of file image_ops.cc.
References wmOperator::customdata.
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1533 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_discrete(), UI_BUT_LABEL_ALIGN_NONE, uiDefAutoButsRNA(), and uiTemplateImageFormatViews().
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1524 of file image_ops.cc.
References RNA_property_identifier(), and STR_ELEM.
Referenced by image_open_draw().
|
static |
Definition at line 1351 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(), 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(), ListBase::first, 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, ImageUser::sfra, Image::source, SPACE_IMAGE, ScrArea::spacedata, ScrArea::spacetype, TEX_IMAGE, Tex::type, and WM_event_add_notifier().
Referenced by image_open_invoke(), and IMAGE_OT_open().
|
static |
Definition at line 1273 of file image_ops.cc.
References C, 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 1466 of file image_ops.cc.
References C, 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, Scene::r, R_MULTIVIEW, RNA_property_boolean_set(), RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_property_is_set(), RenderData::scemode, TEX_IMAGE, Tex::type, U, and UI_context_active_but_prop_get_templateID().
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1289 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, 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, ImageFrameRange::offset, POINTER_AS_INT, wmOperator::reports, RPT_, RPT_ERROR, Image::source, Image::stereo3d_format, ImageFormatData::stereo3d_format, STRNCPY(), ImageTile::tile_number, Image::tiles, ImageFrameRange::udim_tiles, ImageFrameRange::udims_detected, Image::views_format, and ImageFormatData::views_format.
Referenced by image_open_exec().
|
static |
Definition at line 1557 of file image_ops.cc.
References ot, PROP_HIDDEN, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by IMAGE_OT_open(), and IMAGE_OT_save_as().
| void IMAGE_OT_add_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3894 of file image_ops.cc.
References image_add_render_slot_exec(), image_cycle_render_slot_poll(), OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_change_frame | ( | wmOperatorType * | ot | ) |
Definition at line 4049 of file image_ops.cc.
References change_frame_exec(), change_frame_invoke(), change_frame_modal(), change_frame_poll(), MAXFRAME, MINAFRAME, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, and RNA_def_int().
Referenced by image_operatortypes().
| void IMAGE_OT_clear_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 4205 of file image_ops.cc.
References clear_render_border_exec(), image_cycle_render_slot_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_clear_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3861 of file image_ops.cc.
References image_clear_render_slot_exec(), image_cycle_render_slot_poll(), OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_clipboard_copy | ( | wmOperatorType * | ot | ) |
Definition at line 3041 of file image_ops.cc.
References image_clipboard_copy_exec(), image_clipboard_copy_poll(), OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_clipboard_paste | ( | wmOperatorType * | ot | ) |
Definition at line 3102 of file image_ops.cc.
References image_clipboard_paste_exec(), image_clipboard_paste_poll(), OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_curves_point_set | ( | wmOperatorType * | ot | ) |
Definition at line 3759 of file image_ops.cc.
References ED_imbuf_sample_cancel(), ED_imbuf_sample_invoke(), ED_imbuf_sample_modal(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_subtype(), and space_image_main_area_not_uv_brush_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_cycle_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3824 of file image_ops.cc.
References image_cycle_render_slot_exec(), image_cycle_render_slot_poll(), OPTYPE_REGISTER, ot, and RNA_def_boolean().
Referenced by image_operatortypes().
| void IMAGE_OT_file_browse | ( | wmOperatorType * | ot | ) |
Definition at line 1700 of file image_ops.cc.
References FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, image_file_browse_exec(), image_file_browse_invoke(), image_file_browse_poll(), OPTYPE_UNDO, ot, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
| void IMAGE_OT_flip | ( | wmOperatorType * | ot | ) |
Definition at line 2878 of file image_ops.cc.
References image_flip_exec(), image_from_context_editable_has_data_poll_active_tile(), OPTYPE_REGISTER, ot, PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by image_operatortypes().
| void IMAGE_OT_invert | ( | wmOperatorType * | ot | ) |
Definition at line 3212 of file image_ops.cc.
References image_from_context_editable_has_data_poll_active_tile(), image_invert_exec(), OPTYPE_REGISTER, ot, PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by image_operatortypes().
| void IMAGE_OT_match_movie_length | ( | wmOperatorType * | ot | ) |
Called by other space types too.
Definition at line 1762 of file image_ops.cc.
References image_match_len_exec(), OPTYPE_INTERNAL, OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 2731 of file image_ops.cc.
References FLT_MAX, IMA_DEF_NAME, IMA_GENTYPE_BLANK, image_new_cancel(), image_new_draw(), image_new_exec(), image_new_invoke(), MAX_ID_NAME, 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(), and rna_enum_image_generated_type_items.
Referenced by image_operatortypes().
| void IMAGE_OT_open | ( | wmOperatorType * | ot | ) |
Called by other space types too.
Definition at line 1564 of file image_ops.cc.
References FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, image_open_cancel(), image_open_draw(), image_open_exec(), image_open_invoke(), image_operator_prop_allow_tokens(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), 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 3433 of file image_ops.cc.
References image_pack_exec(), image_pack_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_read_viewlayers | ( | wmOperatorType * | ot | ) |
Definition at line 4089 of file image_ops.cc.
References image_read_viewlayers_exec(), ot, and space_image_main_region_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 2541 of file image_ops.cc.
References image_reload_exec(), OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_remove_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 3929 of file image_ops.cc.
References image_cycle_render_slot_poll(), image_remove_render_slot_exec(), OPTYPE_REGISTER, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 4169 of file image_ops.cc.
References image_cycle_render_slot_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 1844 of file image_ops.cc.
References FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, image_not_packed_poll(), image_replace_exec(), image_replace_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
| void IMAGE_OT_resize | ( | wmOperatorType * | ot | ) |
Definition at line 3347 of file image_ops.cc.
References image_from_context_editable_has_data_poll_active_tile(), image_scale_exec(), image_scale_invoke(), OPTYPE_REGISTER, ot, RNA_def_boolean(), and RNA_def_int_vector().
Referenced by image_operatortypes().
| void IMAGE_OT_rotate_orthogonal | ( | wmOperatorType * | ot | ) |
Definition at line 2948 of file image_ops.cc.
References image_from_context_editable_has_data_poll_active_tile(), image_rotate_orthogonal_exec(), OPTYPE_REGISTER, ot, PROP_SKIP_SAVE, RNA_def_enum(), and RNA_def_property_flag().
Referenced by image_operatortypes().
| void IMAGE_OT_sample | ( | wmOperatorType * | ot | ) |
Definition at line 3639 of file image_ops.cc.
References ED_imbuf_sample_cancel(), ED_imbuf_sample_invoke(), ED_imbuf_sample_modal(), ED_imbuf_sample_poll(), OPTYPE_BLOCKING, ot, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), and RNA_def_property_subtype().
Referenced by image_operatortypes().
| void IMAGE_OT_sample_line | ( | wmOperatorType * | ot | ) |
Definition at line 3733 of file image_ops.cc.
References image_sample_line_exec(), image_sample_line_invoke(), ot, 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 2244 of file image_ops.cc.
References image_save_exec(), image_save_invoke(), image_save_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_save_all_modified | ( | wmOperatorType * | ot | ) |
Definition at line 2498 of file image_ops.cc.
References image_save_all_modified_exec(), image_save_all_modified_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_save_as | ( | wmOperatorType * | ot | ) |
Definition at line 2101 of file image_ops.cc.
References FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, 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(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), 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 2335 of file image_ops.cc.
References image_from_context_has_data_poll(), image_save_sequence_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_tile_add | ( | wmOperatorType * | ot | ) |
Definition at line 4402 of file image_ops.cc.
References BLT_I18NCONTEXT_ID_IMAGE, def_fill_tile(), IMA_UDIM_MAX, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), RNA_def_int(), RNA_def_property_translation_context(), RNA_def_string(), tile_add_draw(), tile_add_exec(), tile_add_invoke(), and tile_add_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_tile_fill | ( | wmOperatorType * | ot | ) |
Definition at line 4528 of file image_ops.cc.
References def_fill_tile(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, tile_fill_draw(), tile_fill_exec(), tile_fill_invoke(), and tile_fill_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_tile_remove | ( | wmOperatorType * | ot | ) |
Definition at line 4466 of file image_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, tile_remove_exec(), and tile_remove_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_unpack | ( | wmOperatorType * | ot | ) |
Definition at line 3540 of file image_ops.cc.
References image_pack_poll(), image_unpack_exec(), image_unpack_invoke(), MAX_ID_NAME, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PF_USE_LOCAL, RNA_def_enum(), RNA_def_string(), and rna_enum_unpack_method_items.
Referenced by image_operatortypes().
| void IMAGE_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 854 of file image_ops.cc.
References image_view_all_exec(), OPTYPE_LOCK_BYPASS, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and space_image_main_region_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_view_center_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 936 of file image_ops.cc.
References ED_space_image_cursor_poll(), ot, and view_center_cursor_exec().
Referenced by image_operatortypes().
| void IMAGE_OT_view_cursor_center | ( | wmOperatorType * | ot | ) |
Definition at line 900 of file image_ops.cc.
References ED_space_image_cursor_poll(), ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and view_cursor_center_exec().
Referenced by image_operatortypes().
| void IMAGE_OT_view_pan | ( | wmOperatorType * | ot | ) |
Definition at line 475 of file image_ops.cc.
References FLT_MAX, image_view_pan_cancel(), image_view_pan_exec(), image_view_pan_invoke(), image_view_pan_modal(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, RNA_def_float_vector(), and space_image_main_region_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1007 of file image_ops.cc.
References image_view_selected_exec(), image_view_selected_poll(), and ot.
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 736 of file image_ops.cc.
References FLT_MAX, image_view_zoom_cancel(), image_view_zoom_exec(), image_view_zoom_invoke(), image_view_zoom_modal(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, PROP_HIDDEN, RNA_def_float(), RNA_def_property_flag(), space_image_main_region_poll(), and WM_operator_properties_use_cursor_init().
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom_border | ( | wmOperatorType * | ot | ) |
Definition at line 1235 of file image_ops.cc.
References image_view_zoom_border_exec(), ot, 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 1055 of file image_ops.cc.
References FLT_MAX, image_view_zoom_in_exec(), image_view_zoom_in_invoke(), OPTYPE_LOCK_BYPASS, ot, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), and space_image_main_region_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom_out | ( | wmOperatorType * | ot | ) |
Definition at line 1116 of file image_ops.cc.
References FLT_MAX, image_view_zoom_out_exec(), image_view_zoom_out_invoke(), OPTYPE_LOCK_BYPASS, ot, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), and space_image_main_region_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom_ratio | ( | wmOperatorType * | ot | ) |
Definition at line 1169 of file image_ops.cc.
References FLT_MAX, image_view_zoom_ratio_exec(), OPTYPE_LOCK_BYPASS, ot, RNA_def_float(), and space_image_main_region_poll().
Referenced by image_operatortypes().
|
static |
Definition at line 3408 of file image_ops.cc.
References BKE_image_is_dirty(), BKE_image_memorypack(), BKE_image_packfiles(), BKE_report(), 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, RPT_ERROR, and WM_event_add_notifier().
Referenced by IMAGE_OT_pack().
|
static |
Definition at line 3393 of file image_ops.cc.
References C, CTX_wm_operator_poll_msg_set(), image_from_context(), and image_pack_test().
Referenced by IMAGE_OT_pack(), and IMAGE_OT_unpack().
|
static |
Definition at line 3374 of file image_ops.cc.
References ELEM, Image::id, ID_IS_EDITABLE, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, and Image::source.
Referenced by image_pack_exec(), and image_pack_poll().
|
static |
Definition at line 4071 of file image_ops.cc.
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, OPERATOR_FINISHED, RE_ReadRenderResult(), and WM_event_add_notifier().
Referenced by IMAGE_OT_read_viewlayers().
|
static |
Definition at line 2519 of file image_ops.cc.
References BKE_image_signal(), C, CTX_data_main(), CTX_wm_manager(), DEG_id_tag_update(), ED_preview_kill_jobs(), Image::id, ID_RECALC_EDITORS, ID_RECALC_SOURCE, 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 3915 of file image_ops.cc.
References BKE_image_remove_renderslot(), C, 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 1783 of file image_ops.cc.
References BKE_icon_changed(), BKE_icon_id_ensure(), BKE_image_signal(), BLI_path_extension_check_array(), C, 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 1821 of file image_ops.cc.
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 2907 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(), C, CTX_wm_space_image(), DEG_id_tag_update(), degrees(), ED_image_undo_push_begin_with_image(), ED_image_undo_push_end(), ED_imapaint_clear_partial_redraw(), IB_DISPLAY_BUFFER_INVALID, Image::id, ID_RECALC_EDITORS, image_from_context(), image_user_from_context_and_active_tile(), IMB_rotate_orthogonal(), 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 3667 of file image_ops.cc.
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, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), SpaceImage::sample_line_hist, 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 3719 of file image_ops.cc.
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 2492 of file image_ops.cc.
References C, ED_image_save_all_modified(), OPERATOR_FINISHED, and wmOperator::reports.
Referenced by IMAGE_OT_save_all_modified().
|
static |
Definition at line 2486 of file image_ops.cc.
References C, CTX_data_main(), and ED_image_save_all_modified_info().
Referenced by IMAGE_OT_save_all_modified().
|
static |
Definition at line 2026 of file image_ops.cc.
References image_save_as_free().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 1997 of file image_ops.cc.
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 2043 of file image_ops.cc.
References C, col, uiLayout::column(), wmOperator::customdata, IFACE_, ImageSaveOptions::im_format, image_save_as_draw_check_prop(), wmOperator::layout, ImageSaveData::opts, wmOperator::ptr, RNA_boolean_get(), RNA_pointer_create_discrete(), RNA_pointer_get(), uiLayout::separator(), UI_BUT_LABEL_ALIGN_NONE, UI_ITEM_NONE, uiDefAutoButsRNA(), uiTemplateImageFormatViews(), uiTemplateImageSettings(), uiLayout::use_property_decorate_set(), and uiLayout::use_property_split_set().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 2031 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 1968 of file image_ops.cc.
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, 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 1957 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 1913 of file image_ops.cc.
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, ImageSaveOptions::filepath, IMA_SRC_VIEWER, 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(), ImageSaveOptions::save_as_render, and Image::source.
Referenced by image_save_as_exec(), and image_save_as_invoke().
|
static |
Definition at line 2008 of file image_ops.cc.
References C, 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 2082 of file image_ops.cc.
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 2185 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(), C, CTX_data_main(), CTX_data_scene(), Image::filepath, 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 2228 of file image_ops.cc.
References BKE_image_has_filepath(), BKE_image_has_packedfile(), C, image_file_format_writable(), image_from_context(), image_save_exec(), image_user_from_context(), blender::wm::InvokeDefault, OPERATOR_CANCELLED, and WM_operator_name_call().
Referenced by IMAGE_OT_save().
|
static |
Definition at line 1881 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 2170 of file image_ops.cc.
References C, and image_from_context_has_data_poll().
Referenced by IMAGE_OT_save().
|
static |
Definition at line 2266 of file image_ops.cc.
References BKE_report(), BKE_reportf(), BLI_path_split_dir_part(), C, Image::cache, FILE_MAX, ImBuf::filepath, IB_BITMAPDIRTY, IB_byte_data, 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_save_image(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, RPT_WARNING, Image::source, Image::type, and ImBuf::userflags.
Referenced by IMAGE_OT_save_sequence().
|
static |
Definition at line 3260 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, C, CTX_wm_space_image(), DEG_id_tag_update(), ED_image_undo_push_begin_with_image(), ED_image_undo_push_begin_with_image_all_udims(), 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(), LISTBASE_FOREACH, SpaceImage::mode, NA_EDITED, wmOperatorType::name, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_property_int_get_array(), RNA_property_int_set_array(), RNA_property_is_set(), RNA_struct_find_property(), SI_MODE_PAINT, size(), ImageUser::tile, Image::tiles, wmOperator::type, ImBuf::userflags, WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_resize().
|
static |
Definition at line 3245 of file image_ops.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), C, 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(), size(), WM_operator_props_dialog_popup(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_resize().
|
static |
Definition at line 2361 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 2356 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 2376 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 3454 of file image_ops.cc.
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, Image::id, ID_IS_EDITABLE, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, image_from_context(), Main::images, MAX_ID_NAME, NA_EDITED, name, 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 3500 of file image_ops.cc.
References BKE_image_has_packedfile(), BKE_report(), C, 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 191 of file image_ops.cc.
References C, 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 207 of file image_ops.cc.
References 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_editable_has_data_poll_active_tile(), image_invert_exec(), image_rotate_orthogonal_exec(), image_scale_exec(), and image_scale_invoke().
|
static |
Definition at line 268 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(), ARegion::winrct, SpaceImage::xof, and SpaceImage::yof.
Referenced by image_view_all_exec(), and view_cursor_center_exec().
|
static |
Definition at line 838 of file image_ops.cc.
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 470 of file image_ops.cc.
References C, and image_view_pan_exit().
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 412 of file image_ops.cc.
References C, 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 395 of file image_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN(), WM_cursor_modal_restore(), SpaceImage::xof, and SpaceImage::yof.
Referenced by image_view_pan_cancel(), and image_view_pan_modal().
|
static |
Definition at line 372 of file image_ops.cc.
References C, CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, MEM_callocN(), wmEvent::type, WM_cursor_modal_is_set_ok(), WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_userdef_event_type_from_keymap_type(), SpaceImage::xof, and SpaceImage::yof.
Referenced by image_view_pan_invoke().
|
static |
Definition at line 426 of file image_ops.cc.
References C, 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 444 of file image_ops.cc.
References C, CTX_wm_space_image(), wmOperator::customdata, image_view_pan_exec(), image_view_pan_exit(), KM_RELEASE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, wmEvent::val, SpaceImage::xof, SpaceImage::yof, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 954 of file image_ops.cc.
References BKE_mask_coord_to_image(), 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(), SpaceImage::image, SpaceImage::iuser, max, min, OPERATOR_CANCELLED, OPERATOR_FINISHED, and sima_zoom_set_from_bounds().
Referenced by IMAGE_OT_view_selected().
|
static |
Definition at line 1002 of file image_ops.cc.
References C, ED_maskedit_poll(), ED_operator_uvedit(), and space_image_main_region_poll().
Referenced by IMAGE_OT_view_selected().
|
static |
Definition at line 1201 of file image_ops.cc.
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 731 of file image_ops.cc.
References C, and image_view_zoom_exit().
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 586 of file image_ops.cc.
References C, 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 566 of file image_ops.cc.
References C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN(), wmTimer::win, WM_cursor_modal_restore(), WM_event_timer_remove(), and SpaceImage::zoom.
Referenced by image_view_zoom_cancel(), and image_view_zoom_modal().
|
static |
Definition at line 1025 of file image_ops.cc.
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(), U, and USER_ZOOM_TO_MOUSEPOS.
Referenced by IMAGE_OT_view_zoom_in(), and image_view_zoom_in_invoke().
|
static |
Definition at line 1041 of file image_ops.cc.
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 531 of file image_ops.cc.
References BLI_time_now_seconds(), C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, MEM_callocN(), wmEvent::mval, TIMER, wmEvent::type, U, UI_view2d_region_to_view(), USER_ZOOM_CONTINUE, ARegion::v2d, WM_cursor_modal_is_set_ok(), WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_event_timer_add(), WM_userdef_event_type_from_keymap_type(), and SpaceImage::zoom.
Referenced by image_view_zoom_invoke().
|
static |
Definition at line 604 of file image_ops.cc.
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, U, 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 684 of file image_ops.cc.
References C, wmEvent::customdata, wmOperator::customdata, image_view_zoom_exit(), image_zoom_apply(), KM_RELEASE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ret, RNA_boolean_get(), TIMER, wmEvent::type, U, 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 1086 of file image_ops.cc.
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(), U, and USER_ZOOM_TO_MOUSEPOS.
Referenced by IMAGE_OT_view_zoom_out(), and image_view_zoom_out_invoke().
|
static |
Definition at line 1102 of file image_ops.cc.
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 1153 of file image_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), 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 637 of file image_ops.cc.
References BLI_time_now_seconds(), ED_region_tag_redraw(), float, wmOperator::ptr, RNA_float_set(), sima_zoom_set(), U, USER_ZOOM_CONTINUE, USER_ZOOM_HORIZ, USER_ZOOM_SCALE, x, and y.
Referenced by image_view_zoom_modal().
|
static |
Definition at line 4108 of file image_ops.cc.
References BKE_render_resolution(), 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, Scene::id, ID_RECALC_SYNC_TO_EVAL, RenderData::mode, NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, R_BORDER, R_CROP, RE_engine_get_render_data(), RE_GetSceneRender(), UI_view2d_region_to_view_rctf(), ARegion::v2d, 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(), and VIEW3D_OT_render_border().
|
static |
Definition at line 1896 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 99 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(), 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 139 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 151 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(), roundf, sima_zoom_set(), size(), ARegion::winrct, SpaceImage::xof, and SpaceImage::yof.
Referenced by image_view_selected_exec(), and image_view_zoom_border_exec().
|
static |
For IMAGE_OT_curves_point_set to avoid sampling when in uv smooth mode or edit-mode.
Definition at line 344 of file image_ops.cc.
References C, 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 332 of file image_ops.cc.
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 4383 of file image_ops.cc.
References col, uiLayout::column(), draw_fill_tile(), wmOperator::layout, uiLayout::prop(), wmOperator::ptr, RNA_boolean_get(), UI_ITEM_NONE, uiLayout::use_property_decorate_set(), and uiLayout::use_property_split_set().
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 4313 of file image_ops.cc.
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, NC_IMAGE, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_int_get(), RNA_string_get(), RPT_ERROR, RPT_WARNING, tile, Image::tiles, and WM_event_add_notifier().
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 4355 of file image_ops.cc.
References Image::active_tile_index, BLI_findlink(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, 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 4306 of file image_ops.cc.
References BKE_image_has_ibuf(), C, CTX_data_edit_image(), IMA_SRC_TILED, and Image::source.
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 4523 of file image_ops.cc.
References draw_fill_tile(), wmOperator::layout, and wmOperator::ptr.
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4498 of file image_ops.cc.
References Image::active_tile_index, BLI_findlink(), C, 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 4254 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 4512 of file image_ops.cc.
References BLT_I18NCONTEXT_ID_IMAGE, C, CTX_data_edit_image(), CTX_IFACE_, IFACE_, wmOperator::ptr, tile_fill_init(), and WM_operator_props_dialog_popup().
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4487 of file image_ops.cc.
References Image::active_tile_index, BKE_image_has_ibuf(), C, CTX_data_edit_image(), IMA_SRC_TILED, and Image::source.
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4449 of file image_ops.cc.
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, OPERATOR_CANCELLED, OPERATOR_FINISHED, tile, Image::tiles, and WM_event_add_notifier().
Referenced by IMAGE_OT_tile_remove().
|
static |
Definition at line 4442 of file image_ops.cc.
References BLI_listbase_is_single(), C, CTX_data_edit_image(), IMA_SRC_TILED, Image::source, and Image::tiles.
Referenced by IMAGE_OT_tile_remove().
|
static |
Definition at line 924 of file image_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_image(), SpaceImage::cursor, ED_image_view_center_to_point(), ED_region_tag_redraw(), and OPERATOR_FINISHED.
|
static |
Definition at line 881 of file image_ops.cc.
References C, 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().