|
Blender V4.5
|
#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_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 2556 of file image_ops.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| GEN_CONTEXT_NONE | |
| GEN_CONTEXT_PAINT_CANVAS | |
| GEN_CONTEXT_PAINT_STENCIL | |
Definition at line 2558 of file image_ops.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| VIEW_PASS | |
| VIEW_APPLY | |
| VIEW_CONFIRM | |
Definition at line 597 of file image_ops.cc.
|
static |
Definition at line 3967 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 3981 of file image_ops.cc.
References C, change_frame_apply(), and OPERATOR_FINISHED.
|
static |
Definition at line 4010 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 4031 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 3957 of file image_ops.cc.
References C, G, and space_image_main_region_poll().
|
static |
Definition at line 4203 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 4288 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 4233 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 4247 of file image_ops.cc.
References col, uiLayout::column(), ptr, UI_ITEM_NONE, 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 2448 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(), Main::images, and reports.
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 2392 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, reports, 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 2379 of file image_ops.cc.
References BKE_reports_free(), BKE_reports_init(), BLI_listbase_is_empty(), ED_image_save_all_modified_info(), reports, 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 3595 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 3576 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 3988 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 3889 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 3854 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 2989 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 3034 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 3065 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 3089 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 3811 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 3804 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 1607 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 1643 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, 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_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 1690 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 2152 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 1254 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 2784 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, IB_MIPMAP_INVALID, Image::id, ID_RECALC_EDITORS, image_from_context(), image_user_from_context_and_active_tile(), IMB_byte_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 175 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 246 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 227 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 2366 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 3126 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, IB_MIPMAP_INVALID, Image::id, ID_RECALC_EDITORS, image_from_context(), image_user_from_context_and_active_tile(), IMB_byte_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 1729 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 2721 of file image_ops.cc.
References image_new_free().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2689 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, uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by IMAGE_OT_new().
|
static |
Definition at line 2587 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, 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 2580 of file image_ops.cc.
References wmOperator::customdata.
Referenced by image_new_cancel(), and image_new_exec().
|
static |
Definition at line 2568 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 2676 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 260 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 1281 of file image_ops.cc.
References wmOperator::customdata.
Referenced by IMAGE_OT_open().
|
static |
Definition at line 1530 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 1521 of file image_ops.cc.
References RNA_property_identifier(), and STR_ELEM.
Referenced by image_open_draw().
|
static |
Definition at line 1350 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 1272 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 1463 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 1288 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 1554 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 3901 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 4056 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 4212 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 3868 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 3044 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 3105 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 3766 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 3831 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 1696 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 2877 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 3219 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 1758 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 2726 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 1561 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 3440 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 4096 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 2536 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 3936 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 4176 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 1840 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 3354 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 2951 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 3646 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 3740 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 2239 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 2493 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 2097 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 2330 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 4410 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 4536 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 4474 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 3547 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 853 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 935 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 899 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 474 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 1006 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 735 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 1234 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 1054 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 1115 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 1168 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 3415 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 3400 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 3381 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 4078 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 2514 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 3922 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 1779 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 1817 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 2906 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, 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 3674 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 3726 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 2487 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 2481 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 2022 of file image_ops.cc.
References image_save_as_free().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 1993 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 2039 of file image_ops.cc.
References 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(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), uiTemplateImageFormatViews(), and uiTemplateImageSettings().
Referenced by IMAGE_OT_save_as().
|
static |
Definition at line 2027 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 1964 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 1953 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 1909 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 2004 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 2078 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 2181 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 2224 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(), OPERATOR_CANCELLED, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
Referenced by IMAGE_OT_save().
|
static |
Definition at line 1877 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 2166 of file image_ops.cc.
References C, and image_from_context_has_data_poll().
Referenced by IMAGE_OT_save().
|
static |
Definition at line 2261 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 3267 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 3252 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 2356 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 2351 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 2371 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 3461 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, 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 3507 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 190 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 206 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 267 of file image_ops.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), ED_space_image_get_aspect(), ED_space_image_get_size(), 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 837 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 469 of file image_ops.cc.
References C, and image_view_pan_exit().
Referenced by IMAGE_OT_view_pan().
|
static |
Definition at line 411 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 394 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 371 of file image_ops.cc.
References C, CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, wmWindow::grabcursor, MEM_callocN(), wmEvent::type, 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 425 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 443 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 953 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 1001 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 1200 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 730 of file image_ops.cc.
References C, and image_view_zoom_exit().
Referenced by IMAGE_OT_view_zoom().
|
static |
Definition at line 585 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 565 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 1024 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 1040 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 530 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, wmWindow::grabcursor, MEM_callocN(), wmEvent::mval, TIMER, wmEvent::type, U, UI_view2d_region_to_view(), USER_ZOOM_CONTINUE, ARegion::v2d, WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_event_timer_add(), WM_userdef_event_type_from_keymap_type(), and SpaceImage::zoom.
Referenced by image_view_zoom_invoke().
|
static |
Definition at line 603 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 683 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 1085 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 1101 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 1152 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 636 of file image_ops.cc.
References BLI_time_now_seconds(), ED_region_tag_redraw(), 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 4115 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 1892 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 98 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 138 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 150 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(), 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 343 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 331 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 4391 of file image_ops.cc.
References col, uiLayout::column(), draw_fill_tile(), wmOperator::layout, uiLayout::prop(), wmOperator::ptr, RNA_boolean_get(), UI_ITEM_NONE, uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by IMAGE_OT_tile_add().
|
static |
Definition at line 4320 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, 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 4363 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 4313 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 4531 of file image_ops.cc.
References draw_fill_tile(), wmOperator::layout, and wmOperator::ptr.
Referenced by IMAGE_OT_tile_fill().
|
static |
Definition at line 4506 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 4261 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 4520 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 4495 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 4457 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 4450 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 923 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 880 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().