|
Blender
V2.59
|
#include <stddef.h>#include <string.h>#include <stdlib.h>#include <errno.h>#include "MEM_guardedalloc.h"#include "BLI_math.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "DNA_object_types.h"#include "DNA_node_types.h"#include "DNA_packedFile_types.h"#include "DNA_scene_types.h"#include "BKE_colortools.h"#include "BKE_context.h"#include "BKE_image.h"#include "BKE_global.h"#include "BKE_library.h"#include "BKE_main.h"#include "BKE_node.h"#include "BKE_packedFile.h"#include "BKE_report.h"#include "BKE_screen.h"#include "IMB_imbuf.h"#include "IMB_imbuf_types.h"#include "RE_pipeline.h"#include "RNA_access.h"#include "RNA_define.h"#include "RNA_enum_types.h"#include "ED_image.h"#include "ED_render.h"#include "ED_screen.h"#include "ED_space_api.h"#include "ED_uvedit.h"#include "ED_util.h"#include "UI_interface.h"#include "UI_resources.h"#include "UI_view2d.h"#include "WM_api.h"#include "WM_types.h"#include "image_intern.h"Go to the source code of this file.
Definition in file image_ops.c.
| typedef struct ImageSampleInfo ImageSampleInfo |
| typedef struct RecordCompositeData RecordCompositeData |
| typedef struct ViewPanData ViewPanData |
| typedef struct ViewZoomData ViewZoomData |
| static int cycle_render_slot_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2181 of file image_ops.c.
References CTX_data_edit_image(), IMA_MAX_RENDER_SLOT, Image::last_render_slot, NC_IMAGE, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, Image::render_slot, Image::renders, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by IMAGE_OT_cycle_render_slot().
| static int cycle_render_slot_poll | ( | bContext * | C | ) | [static] |
Definition at line 2174 of file image_ops.c.
References CTX_data_edit_image(), IMA_TYPE_R_RESULT, and Image::type.
Referenced by IMAGE_OT_cycle_render_slot().
| void ED_image_update_frame | ( | const Main * | mainp, |
| int | cfra | ||
| ) |
Definition at line 2235 of file image_ops.c.
References bScreen::areabase, View3D::bgpicbase, BKE_image_user_calc_frame(), CMP_NODE_IMAGE, ELEM, ListBase::first, ImageUser::flag, wmWindowManager::id, bNode::id, Tex::id, Tex::ima, IMA_ANIM_ALWAYS, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, BGpic::iuser, Tex::iuser, SpaceImage::iuser, BGpic::next, ID::next, ScrArea::next, bNode::next, wmWindow::next, bNodeTree::nodes, SpaceNode::nodetree, NTREE_COMPOSIT, wmWindow::screen, Image::source, SPACE_IMAGE, SPACE_NODE, SPACE_VIEW3D, ScrArea::spacedata, ScrArea::spacetype, bNode::storage, Main::tex, TEX_IMAGE, SpaceNode::treetype, bNode::type, Tex::type, wmWindowManager::windows, and Main::wm.
| static void image_filesel | ( | bContext * | C, |
| wmOperator * | op, | ||
| const char * | path | ||
| ) | [static] |
Definition at line 737 of file image_ops.c.
References wmOperator::ptr, RNA_string_set(), and WM_event_add_fileselect().
Referenced by open_invoke(), replace_invoke(), and save_as_invoke().
| static int image_invert_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1443 of file image_ops.c.
References BKE_image_get_ibuf(), CTX_data_edit_image(), g, i, IB_BITMAPDIRTY, IB_MIPMAP_INVALID, IMB_rect_from_float(), ImBuf::mipmap, NA_EDITED, NC_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, ImBuf::rect, ImBuf::rect_float, RNA_boolean_get(), ImBuf::userflags, WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by IMAGE_OT_invert().
| static int image_invert_poll | ( | bContext * | C | ) | [static] |
Definition at line 1433 of file image_ops.c.
References BKE_image_get_ibuf(), CTX_data_edit_image(), and NULL.
Referenced by IMAGE_OT_invert().
| static int image_new_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1339 of file image_ops.c.
References BKE_add_image_size(), BKE_image_signal(), MakeCursor::color, RenderData::color_mgt_flag, CTX_data_edit_object(), CTX_data_scene(), CTX_wm_space_image(), ED_space_image_set(), Image::id, IMA_SIGNAL_USER_NEW_IMAGE, SpaceImage::iuser, linearrgb_to_srgb_v3_v3(), MAX_ID_NAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, Scene::r, R_COLOR_MANAGEMENT, RNA_boolean_get(), RNA_float_get_array(), RNA_id_pointer_create(), RNA_int_get(), RNA_property_pointer_set(), RNA_property_update(), RNA_string_get(), uiIDContextProperty(), and ID::us.
Referenced by IMAGE_OT_new().
| static int image_new_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 1397 of file image_ops.c.
References WM_operator_props_dialog_popup().
Referenced by IMAGE_OT_new().
| void IMAGE_OT_curves_point_set | ( | wmOperatorType * | ot | ) |
Definition at line 1999 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), sample_cancel(), sample_invoke(), sample_modal(), space_image_main_area_poll(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_cycle_render_slot | ( | wmOperatorType * | ot | ) |
Definition at line 2213 of file image_ops.c.
References cycle_render_slot_exec(), cycle_render_slot_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_invert | ( | wmOperatorType * | ot | ) |
Definition at line 1496 of file image_ops.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_invert_exec(), image_invert_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 1403 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, image_new_exec(), image_new_invoke(), wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, NULL, OPTYPE_UNDO, RNA_def_boolean(), RNA_def_float_color(), RNA_def_int(), RNA_def_property_float_array_default(), RNA_def_string(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 862 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_OPENFILE, FILE_SPECIAL, wmOperatorType::flag, FOLDERFILE, wmOperatorType::idname, IMAGEFILE, wmOperatorType::invoke, MOVIEFILE, wmOperatorType::name, open_cancel(), open_exec(), open_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
| void IMAGE_OT_pack | ( | wmOperatorType * | ot | ) |
Definition at line 1583 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, pack_exec(), pack_invoke(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by image_operatortypes().
| void IMAGE_OT_record_composite | ( | wmOperatorType * | ot | ) |
Definition at line 2158 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, wmOperatorType::poll, record_composite_cancel(), record_composite_exec(), record_composite_invoke(), record_composite_modal(), and space_image_buffer_exists_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 1324 of file image_ops.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and reload_exec().
Referenced by image_operatortypes().
| void IMAGE_OT_replace | ( | wmOperatorType * | ot | ) |
Definition at line 921 of file image_ops.c.
References wmOperatorType::exec, FILE_OPENFILE, FILE_SPECIAL, wmOperatorType::flag, FOLDERFILE, wmOperatorType::idname, IMAGEFILE, wmOperatorType::invoke, MOVIEFILE, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, replace_exec(), replace_invoke(), space_image_poll(), WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
| void IMAGE_OT_sample | ( | wmOperatorType * | ot | ) |
Definition at line 1870 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, wmOperatorType::poll, sample_cancel(), sample_invoke(), sample_modal(), and space_image_main_area_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_sample_line | ( | wmOperatorType * | ot | ) |
Definition at line 1978 of file image_ops.c.
References wmOperatorType::cancel, CURSOR_EDIT, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, sample_line_exec(), sample_line_invoke(), space_image_main_area_poll(), 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 1212 of file image_ops.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, save_exec(), and space_image_file_exists_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_save_as | ( | wmOperatorType * | ot | ) |
Definition at line 1141 of file image_ops.c.
References wmOperatorType::check, wmOperatorType::exec, FILE_SAVE, FILE_SPECIAL, wmOperatorType::flag, FOLDERFILE, wmOperatorType::idname, IMAGEFILE, wmOperatorType::invoke, MOVIEFILE, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, R_PNG, RNA_def_boolean(), RNA_def_enum(), save_as_check(), save_as_exec(), save_as_invoke(), space_image_buffer_exists_poll(), wmOperatorType::srna, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by image_operatortypes().
| void IMAGE_OT_save_sequence | ( | wmOperatorType * | ot | ) |
Definition at line 1289 of file image_ops.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, save_sequence_exec(), and space_image_buffer_exists_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_unpack | ( | wmOperatorType * | ot | ) |
Definition at line 1660 of file image_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_unpack_exec(), image_unpack_invoke(), wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, PF_USE_LOCAL, RNA_def_enum(), RNA_def_string(), wmOperatorType::srna, and unpack_method_items.
Referenced by image_operatortypes().
| void IMAGE_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 540 of file image_ops.c.
References wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, space_image_main_area_poll(), and view_all_exec().
Referenced by image_operatortypes().
| void IMAGE_OT_view_ndof | ( | wmOperatorType * | ot | ) |
Definition at line 487 of file image_ops.c.
References wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, and view_ndof_invoke().
Referenced by image_operatortypes().
| void IMAGE_OT_view_pan | ( | wmOperatorType * | ot | ) |
Definition at line 288 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_BLOCKING, wmOperatorType::poll, RNA_def_float_vector(), space_image_main_area_poll(), wmOperatorType::srna, view_pan_cancel(), view_pan_exec(), view_pan_invoke(), and view_pan_modal().
Referenced by image_operatortypes().
| void IMAGE_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 601 of file image_ops.c.
References wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, view_selected_exec(), and view_selected_poll().
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 419 of file image_ops.c.
References wmOperatorType::cancel, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, wmOperatorType::poll, RNA_def_float(), space_image_main_area_poll(), wmOperatorType::srna, view_zoom_cancel(), view_zoom_exec(), view_zoom_invoke(), and view_zoom_modal().
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom_in | ( | wmOperatorType * | ot | ) |
Definition at line 626 of file image_ops.c.
References wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, space_image_main_area_poll(), and view_zoom_in_exec().
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom_out | ( | wmOperatorType * | ot | ) |
Definition at line 649 of file image_ops.c.
References wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, space_image_main_area_poll(), and view_zoom_out_exec().
Referenced by image_operatortypes().
| void IMAGE_OT_view_zoom_ratio | ( | wmOperatorType * | ot | ) |
Definition at line 687 of file image_ops.c.
References wmOperatorType::exec, FLT_MAX, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_float(), space_image_main_area_poll(), wmOperatorType::srna, and view_zoom_ratio_exec().
Referenced by image_operatortypes().
| static int image_unpack_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1603 of file image_ops.c.
References BKE_report(), BLI_findstring(), CTX_data_edit_image(), CTX_data_main(), ED_preview_kill_jobs(), Global::fileflags, G, G_AUTOPACK, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, MAX_ID_NAME, NA_EDITED, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::packedfile, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_property_is_set(), RNA_string_get(), RPT_ERROR, RPT_WARNING, Image::source, unpackImage(), and WM_event_add_notifier().
Referenced by IMAGE_OT_unpack(), and image_unpack_invoke().
| static int image_unpack_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 1637 of file image_ops.c.
References BKE_report(), CTX_data_edit_image(), Global::fileflags, G, G_AUTOPACK, Image::id, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, image_unpack_exec(), Image::name, ID::name, OPERATOR_CANCELLED, OPERATOR_FINISHED, Image::packedfile, wmOperator::ptr, wmOperator::reports, RNA_property_is_set(), RPT_ERROR, RPT_WARNING, Image::source, and unpack_menu().
Referenced by IMAGE_OT_unpack().
| static int open_cancel | ( | bContext * | UNUSEDC, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 753 of file image_ops.c.
References wmOperator::customdata, MEM_freeN(), NULL, and OPERATOR_CANCELLED.
Referenced by IMAGE_OT_open().
| static int open_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 760 of file image_ops.c.
References BKE_add_image_file(), BKE_image_signal(), BKE_reportf(), CTX_data_edit_object(), CTX_data_pointer_get_type(), CTX_data_scene(), CTX_wm_space_image(), wmOperator::customdata, PointerRNA::data, ED_preview_kill_jobs(), ED_space_image_set(), ImageUser::fie_ima, FILE_MAX, Image::id, IMA_SIGNAL_RELOAD, Tex::iuser, SpaceImage::iuser, MEM_freeN(), NA_EDITED, NC_IMAGE, NULL, ImageUser::offset, open_init(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, wmOperator::ptr, wmOperator::reports, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_string_get(), RNA_Texture, RPT_ERROR, ImageUser::sfra, str, TEX_IMAGE, Tex::type, ID::us, and WM_event_add_notifier().
Referenced by IMAGE_OT_open(), and open_invoke().
| static void open_init | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 745 of file image_ops.c.
References wmOperator::customdata, MEM_callocN(), PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and uiIDContextProperty().
Referenced by open_exec(), and open_invoke().
| static int open_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 828 of file image_ops.c.
References CTX_data_pointer_get_type(), CTX_wm_space_image(), PointerRNA::data, Tex::ima, SpaceImage::image, image_filesel(), Image::name, NULL, open_exec(), open_init(), OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_set(), RNA_property_is_set(), RNA_Texture, TEX_IMAGE, Tex::type, and USER_RELPATHS.
Referenced by IMAGE_OT_open().
| static int pack_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1536 of file image_ops.c.
References BKE_image_get_ibuf(), BKE_image_memorypack(), BKE_report(), CTX_data_edit_image(), IB_BITMAPDIRTY, NA_EDITED, Image::name, NC_IMAGE, newPackedFile(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, pack_test(), Image::packedfile, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, ImBuf::userflags, and WM_event_add_notifier().
Referenced by IMAGE_OT_pack(), and pack_invoke().
| static int pack_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 1560 of file image_ops.c.
References BKE_image_get_ibuf(), CTX_data_edit_image(), IB_BITMAPDIRTY, wmOperator::idname, NULL, OPERATOR_CANCELLED, pack_exec(), pack_test(), wmOperator::ptr, RNA_boolean_get(), uiItemBooleanO(), uiPupMenuBegin(), uiPupMenuEnd(), uiPupMenuLayout(), and ImBuf::userflags.
Referenced by IMAGE_OT_pack().
| static int pack_test | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1518 of file image_ops.c.
References BKE_report(), CTX_data_edit_image(), IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, Image::packedfile, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, and Image::source.
Referenced by pack_exec(), and pack_invoke().
| static int record_composite_apply | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2031 of file image_ops.c.
References BKE_image_all_free_anim_ibufs(), BKE_image_get_ibuf(), RenderData::cfra, CTX_data_scene(), CTX_wm_area(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ED_area_tag_redraw(), RecordCompositeData::efra, SpaceImage::image, imb_freerectfloatImBuf(), SpaceImage::iuser, Scene::nodetree, ntreeCompositExecTree(), ntreeCompositTagAnimated(), RecordCompositeData::old_cfra, Scene::r, and WM_timecursor().
Referenced by record_composite_exec(), record_composite_invoke(), and record_composite_modal().
| static int record_composite_cancel | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2152 of file image_ops.c.
References OPERATOR_CANCELLED, and record_composite_exit().
Referenced by IMAGE_OT_record_composite().
| static int record_composite_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2101 of file image_ops.c.
References OPERATOR_CANCELLED, OPERATOR_FINISHED, record_composite_apply(), record_composite_exit(), and record_composite_init().
Referenced by IMAGE_OT_record_composite().
| static void record_composite_exit | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2080 of file image_ops.c.
References RenderData::cfra, CTX_data_scene(), CTX_wm_manager(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, SpaceImage::image, MEM_freeN(), NA_EDITED, NC_IMAGE, RecordCompositeData::old_cfra, Scene::r, RecordCompositeData::timer, WM_cursor_restore(), WM_event_add_notifier(), and WM_event_remove_timer().
Referenced by record_composite_cancel(), record_composite_exec(), and record_composite_modal().
| static int record_composite_init | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2059 of file image_ops.c.
References RenderData::cfra, CTX_data_scene(), CTX_wm_space_image(), wmOperator::customdata, RecordCompositeData::efra, ImageUser::frames, SpaceImage::iuser, MEM_callocN(), Scene::nodetree, NULL, RecordCompositeData::old_cfra, Scene::r, ImageUser::sfra, and RecordCompositeData::sfra.
Referenced by record_composite_exec(), and record_composite_invoke().
| static int record_composite_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 2114 of file image_ops.c.
References CTX_wm_manager(), CTX_wm_window(), wmOperator::customdata, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, record_composite_apply(), record_composite_init(), TIMER, RecordCompositeData::timer, WM_event_add_modal_handler(), and WM_event_add_timer().
Referenced by IMAGE_OT_record_composite().
| static int record_composite_modal | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2131 of file image_ops.c.
References wmOperator::customdata, wmEvent::customdata, ESCKEY, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, record_composite_apply(), record_composite_exit(), TIMER, RecordCompositeData::timer, and wmEvent::type.
Referenced by IMAGE_OT_record_composite().
| static int reload_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1305 of file image_ops.c.
References BKE_image_signal(), CTX_data_edit_image(), CTX_wm_space_image(), ED_preview_kill_jobs(), IMA_SIGNAL_RELOAD, SpaceImage::iuser, NA_EDITED, NC_IMAGE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by IMAGE_OT_reload().
| static int replace_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 883 of file image_ops.c.
References BKE_image_signal(), BLI_strncpy(), CTX_wm_space_image(), ED_preview_kill_jobs(), FILE_MAX, IMA_SIGNAL_RELOAD, SpaceImage::image, SpaceImage::iuser, NA_EDITED, Image::name, NC_IMAGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), str, and WM_event_add_notifier().
Referenced by IMAGE_OT_replace(), and replace_invoke().
| static int replace_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 903 of file image_ops.c.
References CTX_wm_space_image(), SpaceImage::image, image_filesel(), Image::name, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, replace_exec(), RNA_boolean_set(), and RNA_property_is_set().
Referenced by IMAGE_OT_replace().
| static void sample_apply | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 1709 of file image_ops.c.
References ImBuf::channels, ImageSampleInfo::channels, CLAMP(), ImageSampleInfo::col, ImageSampleInfo::colf, ImageSampleInfo::colfp, ImageSampleInfo::colp, CTX_wm_area(), CTX_wm_region(), CTX_wm_space_image(), SpaceImage::cumap, curvemapping_do_ibuf(), curvemapping_set_black_white(), wmOperator::customdata, ImageSampleInfo::draw, ED_area_tag_redraw(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), G, wmEvent::mval, ScrArea::next, NULL, wmOperator::ptr, ImBuf::rect, ImBuf::rect_float, RNA_enum_get(), RNA_struct_find_property(), SPACE_NODE, ScrArea::spacetype, UI_view2d_region_to_view(), ARegion::v2d, ImBuf::x, ImageSampleInfo::x, ImBuf::y, ImageSampleInfo::y, ImageSampleInfo::z, ImBuf::zbuf, ImBuf::zbuf_float, ImageSampleInfo::zf, ImageSampleInfo::zfp, and ImageSampleInfo::zp.
Referenced by sample_invoke(), and sample_modal().
| static int sample_cancel | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1864 of file image_ops.c.
References OPERATOR_CANCELLED, and sample_exit().
Referenced by IMAGE_OT_curves_point_set(), and IMAGE_OT_sample().
Definition at line 1700 of file image_ops.c.
References ImageSampleInfo::channels, ImageSampleInfo::colfp, ImageSampleInfo::colp, ImageSampleInfo::draw, draw_image_info(), ImageSampleInfo::x, ImageSampleInfo::y, ImageSampleInfo::zfp, and ImageSampleInfo::zp.
Referenced by sample_invoke().
| static void sample_exit | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1819 of file image_ops.c.
References ImageSampleInfo::art, CTX_wm_area(), wmOperator::customdata, ImageSampleInfo::draw_handle, ED_area_tag_redraw(), ED_region_draw_cb_exit(), and MEM_freeN().
Referenced by sample_cancel(), and sample_modal().
| static int sample_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 1828 of file image_ops.c.
References ImageSampleInfo::art, CTX_wm_region(), CTX_wm_space_image(), wmOperator::customdata, ImageSampleInfo::draw_handle, ED_region_draw_cb_activate(), ED_space_image_has_buffer(), MEM_callocN(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, REGION_DRAW_POST_PIXEL, sample_apply(), sample_draw(), ARegion::type, and WM_event_add_modal_handler().
Referenced by IMAGE_OT_curves_point_set(), and IMAGE_OT_sample().
| static int sample_line_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1887 of file image_ops.c.
References ImBuf::channels, Histogram::channels, RenderData::color_mgt_flag, copy_v3_v3(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), CTX_wm_space_image(), Histogram::data_b, Histogram::data_g, Histogram::data_luma, Histogram::data_r, ED_area_tag_redraw(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), i, linearrgb_to_srgb_v3_v3(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, Scene::r, R_COLOR_MANAGEMENT, ImBuf::rect, ImBuf::rect_float, RNA_int_get(), SpaceImage::sample_line_hist, UI_view2d_region_to_view(), ARegion::v2d, ImBuf::x, Histogram::x_resolution, Histogram::xmax, ImBuf::y, and Histogram::ymax.
Referenced by IMAGE_OT_sample_line().
| static int sample_line_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 1968 of file image_ops.c.
References CTX_wm_space_image(), ED_space_image_has_buffer(), OPERATOR_CANCELLED, and WM_gesture_straightline_invoke().
Referenced by IMAGE_OT_sample_line().
| static int sample_modal | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 1849 of file image_ops.c.
References LEFTMOUSE, MOUSEMOVE, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, RIGHTMOUSE, sample_apply(), sample_exit(), and wmEvent::type.
Referenced by IMAGE_OT_curves_point_set(), and IMAGE_OT_sample().
| static int save_as_check | ( | bContext * | UNUSEDC, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1068 of file image_ops.c.
References BKE_add_image_extension(), FALSE, FILE_MAX, wmOperator::ptr, RNA_enum_get(), RNA_string_get(), RNA_string_set(), and TRUE.
Referenced by IMAGE_OT_save_as().
| static int save_as_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1049 of file image_ops.c.
References CTX_data_scene(), CTX_wm_space_image(), ED_space_image(), FILE_MAX, SpaceImage::imtypenr, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_string_get(), save_image_doit(), str, and TRUE.
Referenced by IMAGE_OT_save_as(), and save_as_invoke().
| static int save_as_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 1079 of file image_ops.c.
References BKE_ftype_to_imtype(), BLI_strncpy(), CTX_data_scene(), CTX_wm_space_image(), ED_space_image(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), ELEM, FILE_MAX, ImBuf::ftype, G, Global::ima, IMA_SRC_GENERATED, IMA_SRC_SEQUENCE, IMA_TYPE_COMPOSITE, IMA_TYPE_MULTILAYER, IMA_TYPE_R_RESULT, image_filesel(), RenderData::imtype, SpaceImage::imtypenr, ImBuf::name, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, Scene::r, R_MULTILAYER, R_PNG, RNA_boolean_set(), RNA_enum_set(), RNA_property_is_set(), Image::rr, save_as_exec(), Image::source, TRUE, Image::type, and USER_RELPATHS.
Referenced by IMAGE_OT_save_as().
| static int save_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1165 of file image_ops.c.
References BKE_ftype_to_imtype(), BKE_image_acquire_renderresult(), BKE_image_release_renderresult(), BKE_report(), BLI_exists(), BLI_is_writable(), BLI_path_abs(), BLI_strncpy(), CTX_data_main(), CTX_data_scene(), CTX_wm_space_image(), ED_space_image(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), FALSE, FILE_MAX, ImBuf::ftype, G, Global::ima, SpaceImage::imtypenr, Main::name, Image::name, OPERATOR_CANCELLED, OPERATOR_FINISHED, R_MULTILAYER, wmOperator::reports, RPT_ERROR, and save_image_doit().
Referenced by IMAGE_OT_save().
| static void save_image_doit | ( | bContext * | C, |
| SpaceImage * | sima, | ||
| Scene * | scene, | ||
| wmOperator * | op, | ||
| char * | path, | ||
| int | do_newpath | ||
| ) | [static] |
Definition at line 943 of file image_ops.c.
References BKE_add_image_extension(), BKE_alphatest_ibuf(), BKE_image_acquire_renderresult(), BKE_image_release_renderresult(), BKE_report(), BKE_reportf(), BKE_write_ibuf(), BLI_path_abs(), BLI_path_rel(), BLI_strncpy(), CTX_data_main(), ImBuf::depth, ED_space_image(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), ELEM, FALSE, G, IB_BITMAPDIRTY, IB_rect, IB_rectfloat, IB_zbuf, IB_zbuffloat, Global::ima, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_SRC_VIEWER, IMA_TYPE_IMAGE, IMA_TYPE_R_RESULT, SpaceImage::image, imb_freerectfloatImBuf(), imb_freerectImBuf(), IMB_freezbuffloatImBuf(), IMB_freezbufImBuf(), SpaceImage::imtypenr, ImBuf::mall, NA_EDITED, Main::name, Image::name, ImBuf::name, NC_IMAGE, RenderData::planes, wmOperator::ptr, RenderData::quality, Scene::r, R_EXTENSION, R_MULTILAYER, RE_WriteRenderResult(), ImBuf::rect, ImBuf::rect_float, wmOperator::reports, RNA_boolean_get(), RNA_struct_find_property(), RPT_ERROR, RenderData::scemode, Image::source, RenderData::subimtype, TRUE, Image::type, ImBuf::userflags, WM_cursor_wait(), WM_event_add_notifier(), ImBuf::zbuf, and ImBuf::zbuf_float.
Referenced by save_as_exec(), and save_exec().
| static int save_sequence_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1228 of file image_ops.c.
References BKE_report(), BKE_reportf(), BLI_path_abs(), BLI_splitdirstring(), BLI_strncpy(), CTX_data_main(), CTX_wm_space_image(), FILE_MAX, ListBase::first, IB_BITMAPDIRTY, IB_rect, IB_zbuf, IB_zbuffloat, Image::ibufs, IMA_SRC_SEQUENCE, IMA_TYPE_MULTILAYER, SpaceImage::image, IMB_saveiff(), Main::name, ImBuf::name, ImBuf::next, NULL, 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 void sima_zoom_set | ( | SpaceImage * | sima, |
| ARegion * | ar, | ||
| float | zoom | ||
| ) | [static] |
Definition at line 87 of file image_ops.c.
References ED_space_image_size(), ARegion::winrct, rcti::xmax, rcti::xmin, rcti::ymax, rcti::ymin, and SpaceImage::zoom.
Referenced by sima_zoom_set_factor(), view_all_exec(), view_selected_exec(), view_zoom_invoke(), view_zoom_modal(), and view_zoom_ratio_exec().
| static void sima_zoom_set_factor | ( | SpaceImage * | sima, |
| ARegion * | ar, | ||
| float | zoomfac | ||
| ) | [static] |
Definition at line 111 of file image_ops.c.
References sima_zoom_set(), and SpaceImage::zoom.
Referenced by view_ndof_invoke(), view_zoom_exec(), view_zoom_in_exec(), and view_zoom_out_exec().
| static int space_image_buffer_exists_poll | ( | bContext * | C | ) | [static] |
Definition at line 123 of file image_ops.c.
References CTX_wm_space_image(), ED_space_image_has_buffer(), SPACE_IMAGE, and SpaceImage::spacetype.
Referenced by IMAGE_OT_record_composite(), IMAGE_OT_save_as(), IMAGE_OT_save_sequence(), and space_image_file_exists_poll().
| static int space_image_file_exists_poll | ( | bContext * | C | ) | [static] |
Definition at line 132 of file image_ops.c.
References BLI_exists(), BLI_is_writable(), BLI_path_abs(), BLI_strncpy(), CTX_data_main(), CTX_wm_space_image(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), FILE_MAX, Main::name, ImBuf::name, and space_image_buffer_exists_poll().
Referenced by IMAGE_OT_save().
| int space_image_main_area_poll | ( | bContext * | C | ) |
Definition at line 163 of file image_ops.c.
References CTX_wm_space_image().
Referenced by IMAGE_OT_curves_point_set(), IMAGE_OT_sample(), IMAGE_OT_sample_line(), IMAGE_OT_view_all(), IMAGE_OT_view_pan(), IMAGE_OT_view_zoom(), IMAGE_OT_view_zoom_in(), IMAGE_OT_view_zoom_out(), IMAGE_OT_view_zoom_ratio(), and view_selected_poll().
| static int space_image_poll | ( | bContext * | C | ) | [static] |
Definition at line 155 of file image_ops.c.
References CTX_wm_space_image(), SpaceImage::image, SPACE_IMAGE, and SpaceImage::spacetype.
Referenced by IMAGE_OT_replace().
| static int view_all_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 503 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), ED_space_image_aspect(), ED_space_image_size(), MIN2, OPERATOR_FINISHED, power_of_2(), sima_zoom_set(), simple_enum_gen::w, ARegion::winrct, rcti::xmax, rcti::xmin, SpaceImage::xof, rcti::ymax, rcti::ymin, and SpaceImage::yof.
Referenced by IMAGE_OT_view_all().
| static int view_ndof_invoke | ( | bContext * | C, |
| wmOperator * | UNUSEDop, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 448 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), wmEvent::customdata, wmNDOFMotionData::dt, ED_region_tag_redraw(), if(), NDOF_MOTION, NDOF_ZOOM_INVERT, OPERATOR_CANCELLED, OPERATOR_FINISHED, sima_zoom_set_factor(), wmNDOFMotionData::tvec, wmEvent::type, SpaceImage::xof, SpaceImage::yof, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_ndof().
| static int view_pan_cancel | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 282 of file image_ops.c.
References OPERATOR_CANCELLED, and view_pan_exit().
Referenced by IMAGE_OT_view_pan().
| static int view_pan_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 214 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get_array(), SpaceImage::xof, and SpaceImage::yof.
Referenced by IMAGE_OT_view_pan(), view_pan_invoke(), and view_pan_modal().
| static void view_pan_exit | ( | bContext * | C, |
| wmOperator * | op, | ||
| int | cancel | ||
| ) | [static] |
Definition at line 199 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN(), WM_cursor_restore(), ViewPanData::xof, SpaceImage::xof, ViewPanData::yof, and SpaceImage::yof.
Referenced by view_pan_cancel(), and view_pan_modal().
| static void view_pan_init | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 182 of file image_ops.c.
References BC_NSEW_SCROLLCURSOR, CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ViewPanData::event_type, MEM_callocN(), WM_cursor_modal(), WM_event_add_modal_handler(), ViewPanData::x, ViewPanData::xof, SpaceImage::xof, ViewPanData::y, ViewPanData::yof, and SpaceImage::yof.
Referenced by view_pan_invoke().
| static int view_pan_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 237 of file image_ops.c.
References CTX_wm_space_image(), MOUSEPAN, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::prevy, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, view_pan_exec(), view_pan_init(), wmEvent::y, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_pan().
| static int view_pan_modal | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 256 of file image_ops.c.
References CTX_wm_space_image(), wmOperator::customdata, ViewPanData::event_type, KM_RELEASE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, wmEvent::val, view_pan_exec(), view_pan_exit(), ViewPanData::x, ViewPanData::xof, SpaceImage::xof, ViewPanData::y, wmEvent::y, ViewPanData::yof, SpaceImage::yof, and SpaceImage::zoom.
Referenced by IMAGE_OT_view_pan().
| static int view_selected_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 553 of file image_ops.c.
References CTX_data_edit_object(), CTX_data_scene(), CTX_wm_region(), CTX_wm_space_image(), simple_enum_gen::d, ED_image_aspect(), ED_region_tag_redraw(), ED_space_image(), ED_space_image_size(), ED_uvedit_minmax(), max, MAX2, min, OPERATOR_CANCELLED, OPERATOR_FINISHED, sima_zoom_set(), size(), SpaceImage::xof, and SpaceImage::yof.
Referenced by IMAGE_OT_view_selected().
| static int view_selected_poll | ( | bContext * | C | ) | [static] |
Definition at line 596 of file image_ops.c.
References ED_operator_uvedit(), and space_image_main_area_poll().
Referenced by IMAGE_OT_view_selected().
| static int view_zoom_cancel | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 413 of file image_ops.c.
References OPERATOR_CANCELLED, and view_zoom_exit().
Referenced by IMAGE_OT_view_zoom().
| static int view_zoom_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 347 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and sima_zoom_set_factor().
Referenced by IMAGE_OT_view_zoom().
| static void view_zoom_exit | ( | bContext * | C, |
| wmOperator * | op, | ||
| int | cancel | ||
| ) | [static] |
Definition at line 333 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN(), WM_cursor_restore(), SpaceImage::zoom, and ViewZoomData::zoom.
Referenced by view_zoom_cancel(), and view_zoom_modal().
| static int view_zoom_in_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 614 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), OPERATOR_FINISHED, and sima_zoom_set_factor().
Referenced by IMAGE_OT_view_zoom_in().
| static void view_zoom_init | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 317 of file image_ops.c.
References BC_NSEW_SCROLLCURSOR, CTX_wm_space_image(), CTX_wm_window(), wmOperator::customdata, ViewZoomData::event_type, MEM_callocN(), WM_cursor_modal(), WM_event_add_modal_handler(), ViewZoomData::x, ViewZoomData::y, SpaceImage::zoom, and ViewZoomData::zoom.
Referenced by view_zoom_invoke().
| static int view_zoom_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 368 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), MOUSEZOOM, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set(), sima_zoom_set(), wmEvent::type, view_zoom_init(), and SpaceImage::zoom.
Referenced by IMAGE_OT_view_zoom().
| static int view_zoom_modal | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 388 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), wmOperator::customdata, ED_region_tag_redraw(), ViewZoomData::event_type, KM_RELEASE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set(), sima_zoom_set(), wmEvent::type, wmEvent::val, view_zoom_exit(), ViewZoomData::x, ViewZoomData::y, and ViewZoomData::zoom.
Referenced by IMAGE_OT_view_zoom().
| static int view_zoom_out_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 637 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), OPERATOR_FINISHED, and sima_zoom_set_factor().
Referenced by IMAGE_OT_view_zoom_out().
| static int view_zoom_ratio_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 662 of file image_ops.c.
References CTX_wm_region(), CTX_wm_space_image(), ED_region_tag_redraw(), NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), sima_zoom_set(), SpaceImage::xof, and SpaceImage::yof.
Referenced by IMAGE_OT_view_zoom_ratio().
const EnumPropertyItem image_file_type_items[] [static] |
Definition at line 705 of file image_ops.c.