|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | ImageFrameRange |
| void ED_image_draw_info | ( | Scene * | scene, |
| ARegion * | region, | ||
| bool | color_manage, | ||
| bool | use_default_view, | ||
| int | channels, | ||
| int | x, | ||
| int | y, | ||
| const unsigned char | cp[4], | ||
| const float | fp[4], | ||
| const float | linearcol[4] ) |
Used by node view too.
Definition at line 116 of file image_draw.cc.
References BLF_color3ub(), BLF_color3ubv(), BLF_draw(), blf_mono_font, BLF_position(), BLF_size(), BLF_width(), BLI_assert, BLI_rcti_cent_x(), BLI_rcti_cent_y(), BLI_rcti_init(), BLI_rcti_size_x(), BLI_YUV_ITU_BT709, col, copy_v3_v3(), copy_v4_v4(), ED_region_visible_rect(), float, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_COMP_I32, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), IMB_colormanagement_pixel_to_display_space_v4(), imm_draw_box_wire_2d(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor3fv(), immUniformColor3fvAlpha(), immUniformColor3ub(), immUniformColor4ub(), immVertexFormat(), pos, red, rgb_to_hsv(), rgb_to_yuv(), SNPRINTF, str, STRNCPY, UI_ALPHA_CHECKER_DARK, UI_ALPHA_CHECKER_LIGHT, UI_SCALE_FAC, UI_UNIT_X, UI_UNIT_Y, v, rcti::xmax, rcti::xmin, rcti::ymax, rcti::ymin, and zero_v4().
Referenced by ED_imbuf_sample_draw(), and blender::ed::space_node::sample_draw().
| ListBase ED_image_filesel_detect_sequences | ( | blender::StringRefNull | root_path, |
| wmOperator * | op, | ||
| bool | detect_udim ) |
Used for both images and volume file loading.
Definition at line 143 of file image_sequence.cc.
References BLI_addtail(), BLI_freelistN(), BLI_listbase_clear(), BLI_path_is_rel(), BLI_path_rel(), blender::StringRefNull::c_str(), FILE_MAX, image_detect_frame_range(), image_sequence_get_frame_ranges(), LISTBASE_FOREACH, MEM_callocN, wmOperator::ptr, RNA_string_get(), RNA_struct_property_is_set(), and STRNCPY.
Referenced by image_open_exec(), and blender::ed::object::volume_import_exec().
Definition at line 308 of file image_edit.cc.
References BKE_image_get_aspect(), BKE_image_get_size(), float, and w().
Referenced by ED_uvedit_get_aspect_from_material(), and stencil_fit_image_aspect_exec().
| void ED_image_mouse_pos | ( | SpaceImage * | sima, |
| const ARegion * | region, | ||
| const int | mval[2], | ||
| float | co[2] ) |
Takes event->mval.
Definition at line 325 of file image_edit.cc.
References ED_space_image_get_size(), ED_space_image_get_zoom(), and UI_view2d_view_to_region().
Referenced by ED_mask_mouse_pos().
| void ED_image_point_pos | ( | SpaceImage * | sima, |
| const ARegion * | region, | ||
| float | x, | ||
| float | y, | ||
| float * | r_x, | ||
| float * | r_y ) |
Definition at line 351 of file image_edit.cc.
References ED_space_image_get_size(), ED_space_image_get_zoom(), and UI_view2d_view_to_region().
Referenced by ED_mask_point_pos().
| void ED_image_point_pos__reverse | ( | SpaceImage * | sima, |
| const ARegion * | region, | ||
| const float | co[2], | ||
| float | r_co[2] ) |
Definition at line 366 of file image_edit.cc.
References ED_space_image_get_size(), ED_space_image_get_zoom(), and UI_view2d_view_to_region().
Referenced by ED_mask_point_pos__reverse(), and projectIntViewEx().
| bool ED_image_save_all_modified | ( | const bContext * | C, |
| ReportList * | reports ) |
Definition at line 2424 of file image_ops.cc.
References BKE_image_has_packedfile(), BKE_image_memorypack(), BKE_image_save(), BKE_image_save_options_free(), BKE_image_save_options_init(), CTX_data_main(), CTX_data_scene(), ED_image_save_all_modified_info(), ListBase::first, image_has_valid_path(), image_should_be_saved(), image_should_pack_during_save_all(), and Main::images.
Referenced by image_save_all_modified_exec(), and wm_block_file_close_save().
| int ED_image_save_all_modified_info | ( | const Main * | bmain, |
| ReportList * | reports ) |
Definition at line 2367 of file image_ops.cc.
References BKE_image_has_packedfile(), BKE_reportf(), BLI_gset_free(), BLI_gset_haskey(), BLI_gset_insert(), BLI_gset_str_new(), BLI_strdup(), ListBase::first, ID_IS_EDITABLE, image_has_valid_path(), image_should_be_saved(), image_should_pack_during_save_all(), Main::images, MEM_freeN(), and RPT_WARNING.
Referenced by block_create__close_file_dialog(), ED_image_save_all_modified(), ED_image_should_save_modified(), image_save_all_modified_poll(), and wm_block_file_close_save().
| bool ED_image_should_save_modified | ( | const Main * | bmain | ) |
Definition at line 2354 of file image_ops.cc.
References BKE_reports_free(), BKE_reports_init(), BLI_listbase_is_empty(), ED_image_save_all_modified_info(), ReportList::list, and RPT_STORE.
Referenced by wm_block_file_close_save(), wm_file_or_session_data_has_unsaved_changes(), and wm_revert_mainfile_invoke().
This is more a user-level functionality, for going to next/prev used slot, Stepping onto the last unused slot too.
Definition at line 383 of file image_edit.cc.
References BKE_image_get_renderslot(), BKE_image_partial_update_mark_full_update(), BLI_assert, BLI_listbase_count(), ELEM, and RenderSlot::render.
Referenced by image_cycle_render_slot_exec(), and ui_imageuser_slot_menu_step().
| bool ED_image_tools_paint_poll | ( | bContext * | C | ) |
Definition at line 317 of file paint_image.cc.
References image_paint_poll_ex().
Referenced by brush_colors_flip_poll(), ED_space_image_paint_update(), image_listener(), image_paint_2d_clone_poll(), image_texture_paint_poll(), PAINT_OT_image_paint(), blender::ed::sculpt_paint::image::ops::paint::texture_paint_init(), and toggle_paint_cursor().
| void ED_image_view_center_to_point | ( | SpaceImage * | sima, |
| float | x, | ||
| float | y ) |
Definition at line 339 of file image_edit.cc.
References ED_space_image_get_aspect(), ED_space_image_get_size(), SpaceImage::xof, and SpaceImage::yof.
Referenced by view_center_cursor_exec().
Definition at line 2181 of file paint_cursor.cc.
References BKE_paint_invalidate_overlay_all(), Paint::paint_cursor, blender::ed::sculpt_paint::paint_draw_cursor(), RGN_TYPE_ANY, SPACE_TYPE_ANY, and WM_paint_cursor_activate().
Referenced by blender::ed::sculpt_paint::curves_sculptmode_enter(), ED_space_image_paint_update(), image_listener(), blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), blender::ed::sculpt_paint::object_sculpt_mode_enter(), blender::ed::greasepencil::paintmode_toggle_exec(), blender::ed::greasepencil::sculptmode_toggle_exec(), toggle_paint_cursor(), blender::ed::greasepencil::vertexmode_toggle_exec(), and blender::ed::greasepencil::weightmode_toggle_exec().
| Image * ED_space_image | ( | const SpaceImage * | sima | ) |
Definition at line 40 of file image_edit.cc.
References SpaceImage::image.
Referenced by draw_image_cache(), draw_image_main_helpers(), DRW_engine_external_acquire_for_image_editor(), ED_space_image_show_cache(), blender::draw::image_engine::SpaceImageAccessor::get_image(), image_context(), image_main_region_draw(), image_main_region_set_view2d(), image_refresh(), image_sample_apply(), image_sample_line_exec(), and blender::ed::space_node::is_compositor_viewer_image_visible().
| ImBuf * ED_space_image_acquire_buffer | ( | SpaceImage * | sima, |
| void ** | r_lock, | ||
| int | tile ) |
Definition at line 144 of file image_edit.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), ImBuf::byte_buffer, ImBufByteBuffer::data, ImBufFloatBuffer::data, ImBuf::float_buffer, IMA_TYPE_R_RESULT, SpaceImage::image, SpaceImage::iuser, ImageUser::tile, tile, ImBuf::x, and ImBuf::y.
Referenced by blender::draw::image_engine::SpaceImageAccessor::acquire_image_buffer(), ED_space_image_color_sample(), ED_space_image_get_position(), ED_space_image_get_size(), ED_space_image_has_buffer(), image_buttons_region_draw(), image_main_region_draw(), image_sample_apply(), and image_sample_line_exec().
| void ED_space_image_auto_set | ( | const bContext * | C, |
| SpaceImage * | sima ) |
Definition at line 95 of file image_edit.cc.
References BKE_editmesh_from_object(), BKE_image_signal(), bm, BMEditMesh::bm, BM_mesh_active_face_get(), CTX_data_active_object(), CTX_data_main(), ED_object_get_active_image(), ED_space_image_show_uvedit(), IMA_SIGNAL_USER_NEW_IMAGE, SpaceImage::image, SpaceImage::iuser, BMFace::mat_nr, Object::mode, SpaceImage::mode, OB_MODE_EDIT, SpaceImage::pin, and SI_MODE_UV.
Referenced by image_user_refresh_scene().
| bool ED_space_image_check_show_maskedit | ( | SpaceImage * | sima, |
| Object * | obedit ) |
Matches clip function.
Definition at line 484 of file image_edit.cc.
References ED_space_image_show_uvedit(), SpaceImage::mode, and SI_MODE_MASK.
Referenced by ED_space_image_maskedit_poll(), image_listener(), and image_view_selected_exec().
| bool ED_space_image_color_sample | ( | SpaceImage * | sima, |
| ARegion * | region, | ||
| const int | mval[2], | ||
| float | r_col[3], | ||
| bool * | r_is_data ) |
Returns color in linear space, matching ED_space_node_color_sample().
Definition at line 3483 of file image_ops.cc.
References BKE_image_get_tile_from_pos(), ImBuf::byte_buffer, ImBuf::channels, CLAMP, ImBuf::colormanage_flag, ImBufByteBuffer::colorspace, copy_v3_v3(), ImBufByteBuffer::data, ImBufFloatBuffer::data, ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), ImBuf::float_buffer, SpaceImage::image, IMB_COLORMANAGE_IS_DATA, IMB_colormanagement_colorspace_to_scene_linear_v3(), int, lock, ret, rgb_uchar_to_float(), tile, UI_view2d_region_to_view(), ImBuf::x, x, and ImBuf::y.
Referenced by eyedropper_color_sample_fl(), and paint_sample_color().
| bool ED_space_image_cursor_poll | ( | bContext * | C | ) |
Definition at line 554 of file image_edit.cc.
References ED_operator_uvedit_space_image(), ED_space_image_maskedit_poll(), and ED_space_image_paint_curve().
Referenced by IMAGE_OT_view_center_cursor(), IMAGE_OT_view_cursor_center(), and UV_OT_cursor_set().
| void ED_space_image_get_aspect | ( | SpaceImage * | sima, |
| float * | r_aspx, | ||
| float * | r_aspy ) |
Definition at line 262 of file image_edit.cc.
References Image::aspx, Image::aspy, BKE_image_get_aspect(), and SpaceImage::image.
Referenced by ED_image_view_center_to_point(), ED_mask_get_aspect(), ED_mask_pixelspace_factor(), ED_space_image_get_uv_aspect(), image_main_region_draw(), image_view_all(), blender::draw::overlay::Instance::init(), OVERLAY_edit_uv_init(), setTransformViewAspect(), sima_zoom_set(), and sima_zoom_set_from_bounds().
Get the SpaceImage flag that is valid for the given ibuf.
Definition at line 191 of file image_edit.cc.
References ImBuf::channels, result, SI_SHOW_ALPHA, SI_SHOW_B, SI_SHOW_G, SI_SHOW_R, SI_SHOW_ZBUF, and SI_USE_ALPHA.
Referenced by blender::draw::image_engine::SpaceImageAccessor::get_shader_parameters().
| Mask * ED_space_image_get_mask | ( | const SpaceImage * | sima | ) |
Definition at line 127 of file image_edit.cc.
References MaskSpaceInfo::mask, and SpaceImage::mask_info.
Referenced by draw_image_cache(), ED_space_image_show_cache(), image_context(), image_main_region_draw(), image_refresh(), and special_aftertrans_update__mask().
| bool ED_space_image_get_position | ( | SpaceImage * | sima, |
| ARegion * | region, | ||
| const int | mval[2], | ||
| float | r_fpos[2] ) |
Returns mouse position in image space.
Definition at line 3464 of file image_ops.cc.
References ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), lock, and UI_view2d_region_to_view().
Referenced by eyedropper_cryptomatte_sample_fl().
| void ED_space_image_get_size | ( | SpaceImage * | sima, |
| int * | r_width, | ||
| int * | r_height ) |
Definition at line 227 of file image_edit.cc.
References BKE_render_resolution(), ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), IMA_TYPE_R_RESULT, SpaceImage::image, IMG_SIZE_FALLBACK, SpaceImage::iuser, lock, ImageUser::scene, Image::type, ImBuf::x, and ImBuf::y.
Referenced by applyAspectRatio(), do_uvedit_vertex(), ED_image_mouse_pos(), ED_image_point_pos(), ED_image_point_pos__reverse(), ED_image_view_center_to_point(), ED_mask_get_size(), ED_space_image_get_size_fl(), ED_space_image_get_uv_aspect(), ED_space_image_get_zoom(), ED_space_image_grid_steps(), external_image_space_matrix_set(), flushTransUVs(), image_main_region_draw(), image_main_region_set_view2d(), image_view_all(), blender::draw::overlay::Instance::init(), OVERLAY_edit_uv_init(), removeAspectRatio(), sima_zoom_set(), sima_zoom_set_from_bounds(), uv_circle_select_exec(), uv_sculpt_stroke_apply(), uv_sculpt_stroke_init(), uv_snap_cursor_to_pixels(), uv_snap_uvs_to_pixels(), and uvedit_vertex_buttons().
| void ED_space_image_get_size_fl | ( | SpaceImage * | sima, |
| float | r_size[2] ) |
Definition at line 254 of file image_edit.cc.
References ED_space_image_get_size().
| void ED_space_image_get_uv_aspect | ( | SpaceImage * | sima, |
| float * | r_aspx, | ||
| float * | r_aspy ) |
Definition at line 288 of file image_edit.cc.
References ED_space_image_get_aspect(), ED_space_image_get_size(), float, and w().
Referenced by blender::draw::overlay::Instance::init(), OVERLAY_edit_uv_init(), and setTransformViewAspect().
| void ED_space_image_get_zoom | ( | SpaceImage * | sima, |
| const ARegion * | region, | ||
| float * | r_zoomx, | ||
| float * | r_zoomy ) |
Definition at line 273 of file image_edit.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), ED_space_image_get_size(), and float.
Referenced by draw_image_main_helpers(), ED_image_mouse_pos(), ED_image_point_pos(), ED_image_point_pos__reverse(), ED_mask_zoom(), get_imapaint_zoom(), image_main_region_draw(), uv_circle_select_exec(), uv_sculpt_stroke_apply(), and uv_sculpt_stroke_init().
| void ED_space_image_grid_steps | ( | SpaceImage * | sima, |
| float | grid_steps_x[SI_GRID_STEPS_LEN], | ||
| float | grid_steps_y[SI_GRID_STEPS_LEN], | ||
| int | grid_dimension ) |
Definition at line 568 of file image_draw.cc.
References BLI_assert, BLI_assert_unreachable, SpaceImage::custom_grid_subdiv, ED_space_image_get_size(), SpaceImage::grid_shape_source, IMG_SIZE_FALLBACK, powf, SI_GRID_SHAPE_DYNAMIC, SI_GRID_SHAPE_FIXED, SI_GRID_SHAPE_PIXEL, and SI_GRID_STEPS_LEN.
Referenced by OVERLAY_grid_init(), and transform_snap_grid_init().
| bool ED_space_image_has_buffer | ( | SpaceImage * | sima | ) |
Definition at line 214 of file image_edit.cc.
References ED_space_image_acquire_buffer(), ED_space_image_release_buffer(), and lock.
Referenced by ED_imbuf_sample_invoke(), image_sample_line_invoke(), OVERLAY_grid_init(), and render_border_exec().
| float ED_space_image_increment_snap_value | ( | int | grid_dimensions, |
| const float | grid_steps[SI_GRID_STEPS_LEN], | ||
| float | zoom_factor ) |
Calculate the increment snapping value for UV/image editor based on the zoom factor The code in here (except the offset part) is used in grid_frag.glsl (see grid_res) for drawing the grid overlay for the UV/Image editor.
Definition at line 600 of file image_draw.cc.
References SI_GRID_STEPS_LEN.
Referenced by transform_snap_grid_init().
| bool ED_space_image_maskedit_mask_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
Definition at line 534 of file image_edit.cc.
References CTX_wm_space_image(), ED_space_image_maskedit_poll(), MaskSpaceInfo::mask, and SpaceImage::mask_info.
Referenced by ED_maskedit_mask_poll(), and ED_space_image_maskedit_mask_visible_splines_poll().
| bool ED_space_image_maskedit_mask_visible_splines_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
Definition at line 544 of file image_edit.cc.
References CTX_wm_space_image(), MaskSpaceInfo::draw_flag, ED_space_image_maskedit_mask_poll(), MASK_DRAWFLAG_SPLINE, and SpaceImage::mask_info.
Referenced by ED_maskedit_mask_visible_splines_poll().
| bool ED_space_image_maskedit_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have mask opened for editing.
Definition at line 494 of file image_edit.cc.
References BKE_view_layer_edit_object_get(), BKE_view_layer_synced_ensure(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_image(), and ED_space_image_check_show_maskedit().
Referenced by ED_maskedit_poll(), ED_space_image_cursor_poll(), ED_space_image_maskedit_mask_poll(), and ED_space_image_maskedit_visible_splines_poll().
| bool ED_space_image_maskedit_visible_splines_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have mask opened for editing.
Definition at line 509 of file image_edit.cc.
References CTX_wm_space_image(), MaskSpaceInfo::draw_flag, ED_space_image_maskedit_poll(), MASK_DRAWFLAG_SPLINE, and SpaceImage::mask_info.
Referenced by ED_maskedit_visible_splines_poll().
| bool ED_space_image_paint_curve | ( | const bContext * | C | ) |
Definition at line 519 of file image_edit.cc.
References BKE_paint_brush(), BRUSH_CURVE, CTX_data_tool_settings(), CTX_wm_space_image(), Brush::flag, SpaceImage::mode, and SI_MODE_PAINT.
Referenced by ED_space_image_cursor_poll().
| void ED_space_image_paint_update | ( | Main * | bmain, |
| wmWindowManager * | wm, | ||
| Scene * | scene ) |
Enable the paint cursor if it isn't already.
purpose is to make sure the paint cursor is shown if paint mode is enabled in the image editor. The paint poll will ensure that the cursor is hidden when not in paint mode.
Definition at line 476 of file paint_image.cc.
References BKE_paint_init(), ED_image_tools_paint_poll(), ED_paint_cursor_start(), LISTBASE_FOREACH, ImagePaintSettings::paint, paint_cursor_delete_textures(), PAINT_CURSOR_TEXTURE_PAINT, SI_MODE_PAINT, SPACE_IMAGE, Texture2D, wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by ED_editors_init().
| void ED_space_image_release_buffer | ( | SpaceImage * | sima, |
| ImBuf * | ibuf, | ||
| void * | lock ) |
Definition at line 184 of file image_edit.cc.
References BKE_image_release_ibuf(), SpaceImage::image, and lock.
Referenced by ED_space_image_color_sample(), ED_space_image_get_position(), ED_space_image_get_size(), ED_space_image_has_buffer(), image_buttons_region_draw(), image_main_region_draw(), image_sample_apply(), image_sample_line_exec(), and blender::draw::image_engine::SpaceImageAccessor::release_buffer().
| void ED_space_image_scopes_update | ( | const bContext * | C, |
| SpaceImage * | sima, | ||
| ImBuf * | ibuf, | ||
| bool | use_view_settings ) |
Definition at line 417 of file image_edit.cc.
References BKE_scopes_update(), CTX_data_active_object(), CTX_data_scene(), ELEM, G, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, SpaceImage::image, Object::mode, SpaceImage::mode, OB_MODE_EDIT, OB_MODE_TEXTURE_PAINT, SpaceImage::scopes, and SI_MODE_PAINT.
Referenced by image_buttons_region_draw().
| void ED_space_image_set | ( | Main * | bmain, |
| SpaceImage * | sima, | ||
| Image * | ima, | ||
| bool | automatic ) |
Definition at line 46 of file image_edit.cc.
References BKE_image_signal(), id_us_ensure_real(), IMA_SIGNAL_USER_NEW_IMAGE, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, SpaceImage::image, SpaceImage::iuser, SpaceImage::mode, NC_SPACE, ND_SPACE_IMAGE, SpaceImage::pin, SI_MODE_PAINT, SI_MODE_UV, SI_MODE_VIEW, Image::type, and WM_main_add_notifier().
Referenced by ED_space_image_sync(), image_clipboard_paste_exec(), image_new_exec(), image_open_exec(), and image_read_viewlayers_exec().
| void ED_space_image_set_mask | ( | bContext * | C, |
| SpaceImage * | sima, | ||
| Mask * | mask ) |
Definition at line 132 of file image_edit.cc.
References id_us_ensure_real(), mask(), MaskSpaceInfo::mask, SpaceImage::mask_info, NA_SELECTED, NC_MASK, and WM_event_add_notifier().
Referenced by ED_mask_new().
| bool ED_space_image_show_cache | ( | const SpaceImage * | sima | ) |
Definition at line 466 of file image_draw.cc.
References ED_space_image(), ED_space_image_get_mask(), ELEM, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, SpaceImage::mode, and SI_MODE_MASK.
Referenced by draw_image_cache(), and ED_space_image_show_cache_and_mval_over().
| bool ED_space_image_show_cache_and_mval_over | ( | const SpaceImage * | sima, |
| ARegion * | region, | ||
| const int | mval[2] ) |
Definition at line 482 of file image_draw.cc.
References ED_region_visible_rect(), ED_space_image_show_cache(), UI_SCALE_FAC, and rcti::ymin.
Referenced by change_frame_invoke(), ED_imbuf_sample_invoke(), and uv_set_2d_cursor_invoke().
| bool ED_space_image_show_paint | ( | const SpaceImage * | sima | ) |
Definition at line 452 of file image_edit.cc.
References ED_space_image_show_render(), SpaceImage::mode, and SI_MODE_PAINT.
| bool ED_space_image_show_render | ( | const SpaceImage * | sima | ) |
Definition at line 447 of file image_edit.cc.
References ELEM, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, SpaceImage::image, and Image::type.
Referenced by ED_space_image_show_paint(), ED_space_image_show_uvedit(), and image_listener().
| bool ED_space_image_show_uvedit | ( | const SpaceImage * | sima, |
| Object * | obedit ) |
Definition at line 461 of file image_edit.cc.
References BKE_editmesh_from_object(), ED_space_image_show_render(), EDBM_uv_check(), SpaceImage::mode, OB_MESH, ret, SI_MODE_UV, and Object::type.
Referenced by createTransUVs(), ED_imbuf_sample_poll(), ED_operator_uvedit(), ED_operator_uvedit_space_image(), ED_space_image_auto_set(), ED_space_image_check_show_maskedit(), gizmo2d_generic_poll(), image_main_region_draw(), image_view_selected_exec(), and initTransInfo().
Definition at line 70 of file image_edit.cc.
References ED_space_image_set(), ELEM, ListBase::first, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, SpaceImage::image, LISTBASE_FOREACH, SpaceImage::pin, SPACE_IMAGE, Image::type, wmWindowManager::windows, Main::wm, and WM_window_get_active_screen().
Referenced by ED_node_set_active(), ED_object_texture_paint_mode_enter_ex(), and proj_paint_add_slot().
Definition at line 553 of file image_draw.cc.
References View2D::cur, View2D::mask, powf, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by OVERLAY_grid_init(), and transform_snap_grid_init().