|
Blender V5.0
|
#include "MEM_guardedalloc.h"#include "DNA_material_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_string.h"#include "BLI_string_ref.hh"#include "BKE_context.hh"#include "BKE_cryptomatte.h"#include "BKE_image.hh"#include "BKE_material.hh"#include "BKE_report.hh"#include "BKE_screen.hh"#include "BLT_translation.hh"#include "NOD_composite.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_path.hh"#include "RNA_prototypes.hh"#include "IMB_colormanagement.hh"#include "IMB_imbuf_types.hh"#include "WM_api.hh"#include "WM_types.hh"#include "interface_intern.hh"#include "ED_clip.hh"#include "ED_image.hh"#include "ED_node.hh"#include "ED_screen.hh"#include "ED_view3d.hh"#include "RE_pipeline.h"#include "eyedropper_intern.hh"Go to the source code of this file.
Classes | |
| struct | Eyedropper |
|
static |
Definition at line 589 of file eyedropper_color.cc.
References C, wmOperator::customdata, eyedropper_color_set(), eyedropper_exit(), Eyedropper::init_col, and Eyedropper::is_set.
Referenced by eyedropper_modal(), and UI_OT_eyedropper_color().
|
static |
Definition at line 538 of file eyedropper_color.cc.
References Eyedropper::accum_col, Eyedropper::accum_tot, add_v3_v3(), C, col, copy_v3_v3(), Eyedropper::crypto_node, eyedropper_color_sample_fl(), eyedropper_color_set(), eyedropper_cryptomatte_sample_fl(), and mul_v3_v3fl().
Referenced by eyedropper_modal().
| bool eyedropper_color_sample_fl | ( | bContext * | C, |
| Eyedropper * | eye, | ||
| const int | event_xy[2], | ||
| float | r_col[3] ) |
Definition at line 437 of file eyedropper_color.cc.
References BKE_area_find_region_xy(), BKE_screen_find_area_xy(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_window(), ColorManagedDisplaySettings::display_device, Scene::display_settings, ED_space_clip_color_sample(), ED_space_image_color_sample(), ED_space_node_color_sample(), ListBase::first, IMB_colormanagement_display_get_named(), IMB_colormanagement_display_to_scene_linear_v3(), IMB_colormanagement_srgb_to_scene_linear_v3(), ViewportColorSampleSession::init(), RGN_TYPE_WINDOW, ViewportColorSampleSession::sample(), SPACE_CLIP, SPACE_IMAGE, SPACE_NODE, SPACE_TYPE_ANY, SPACE_VIEW3D, ScrArea::spacedata, ScrArea::spacetype, Eyedropper::viewport_session, ARegion::winrct, WM_capabilities_flag(), WM_CAPABILITY_DESKTOP_SAMPLE, WM_desktop_cursor_sample_read(), WM_window_find_under_cursor(), WM_window_get_active_screen(), WM_window_pixels_read_sample(), WM_window_pixels_read_sample_from_offscreen(), rcti::xmin, rcti::ymin, and zero_v3().
Referenced by eyedropper_color_sample(), blender::ui::eyedropper_colorband_sample_point(), and blender::ui::greasepencil::eyedropper_grease_pencil_color_sample().
|
static |
Definition at line 573 of file eyedropper_color.cc.
References BKE_cryptomatte_find_name(), C, col, Eyedropper::cryptomatte_session, eyedropper_cryptomatte_sample_fl(), and Eyedropper::sample_text.
Referenced by eyedropper_modal().
|
static |
Definition at line 516 of file eyedropper_color.cc.
References ARRAY_SIZE, C, col, copy_v3_v3(), Eyedropper::display, IMB_colormanagement_scene_linear_to_display_v3(), Eyedropper::is_set, Eyedropper::prop, Eyedropper::ptr, RNA_property_float_get_array_at_most(), RNA_property_float_set_array_at_most(), and RNA_property_update().
Referenced by eyedropper_cancel(), and eyedropper_color_sample().
|
static |
Definition at line 324 of file eyedropper_color.cc.
References BKE_area_find_region_xy(), BKE_screen_find_area_xy(), C, Eyedropper::cb_win, Eyedropper::cb_win_event_xy, CMP_NODE_CRYPTOMATTE_SOURCE_IMAGE, CMP_NODE_CRYPTOMATTE_SOURCE_RENDER, Eyedropper::crypto_node, CTX_data_main(), CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_window(), CTX_wm_window_set(), bNode::custom1, Eyedropper::draw_handle_sample_text, ED_region_tag_redraw(), ED_space_clip_get_position(), ED_space_image_get_position(), ED_space_node_get_position(), ELEM, eyedropper_cryptomatte_sample_image_fl(), eyedropper_cryptomatte_sample_render_fl(), eyedropper_cryptomatte_sample_view3d_fl(), eyedropper_draw_cb(), ListBase::first, bNode::id, MAX_NAME, ntreeCompositCryptomatteLayerPrefix(), RGN_TYPE_WINDOW, SPACE_CLIP, SPACE_IMAGE, SPACE_NODE, SPACE_TYPE_ANY, SPACE_VIEW3D, ScrArea::spacedata, ScrArea::spacetype, bNode::storage, ARegion::winrct, WM_draw_cb_activate(), WM_draw_cb_exit(), WM_window_find_under_cursor(), WM_window_get_active_screen(), rcti::xmin, and rcti::ymin.
Referenced by eyedropper_color_sample(), and eyedropper_color_sample_text_update().
|
static |
Definition at line 293 of file eyedropper_color.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_image_user_frame_calc(), BLI_assert, C, RenderData::cfra, CTX_data_scene(), eyedropper_cryptomatte_sample_renderlayer_fl(), GS, bNode::id, Image::id, ID_IM, IMA_TYPE_MULTILAYER, NodeCryptomatte::iuser, RenderResult::layers, LISTBASE_FOREACH, ID::name, Scene::r, Image::rr, and Image::type.
Referenced by eyedropper_cryptomatte_sample_fl().
|
static |
Definition at line 267 of file eyedropper_color.cc.
References BLI_assert, eyedropper_cryptomatte_sample_renderlayer_fl(), GS, bNode::id, Scene::id, ID_SCE, LISTBASE_FOREACH, ID::name, RE_AcquireResultRead(), RE_GetRenderLayer(), RE_GetSceneRender(), RE_ReleaseResult(), and Scene::view_layers.
Referenced by eyedropper_cryptomatte_sample_fl().
|
static |
Definition at line 220 of file eyedropper_color.cc.
References BLI_assert, LISTBASE_FOREACH, RenderLayer::name, RenderLayer::passes, STREQLEN, STRNLEN, STRPREFIX, x, y, and zero_v3().
Referenced by eyedropper_cryptomatte_sample_image_fl(), and eyedropper_cryptomatte_sample_render_fl().
|
static |
Definition at line 186 of file eyedropper_color.cc.
References BKE_cryptomatte_hash(), BKE_cryptomatte_hash_to_float(), BKE_object_material_get(), BLI_strnlen(), C, ED_view3d_give_material_slot_under_cursor(), Material::id, MAX_NAME, name, RE_PASSNAME_CRYPTOMATTE_MATERIAL, and RE_PASSNAME_CRYPTOMATTE_OBJECT.
Referenced by eyedropper_cryptomatte_sample_fl().
|
static |
Definition at line 85 of file eyedropper_color.cc.
References Eyedropper::cb_win_event_xy, eyedropper_draw_cursor_text_region(), and Eyedropper::sample_text.
Referenced by eyedropper_cryptomatte_sample_fl(), and eyedropper_init().
|
static |
Definition at line 673 of file eyedropper_color.cc.
References C, eyedropper_exit(), eyedropper_init(), OPERATOR_FINISHED, and OPERATOR_PASS_THROUGH.
Referenced by UI_OT_eyedropper_color().
|
static |
Definition at line 157 of file eyedropper_color.cc.
References BKE_cryptomatte_free(), C, Eyedropper::cb_win, Eyedropper::cryptomatte_session, CTX_wm_window(), wmOperator::customdata, Eyedropper::draw_handle_sample_text, ED_workspace_status_text(), Eyedropper::viewport_session, WM_cursor_modal_restore(), and WM_draw_cb_exit().
Referenced by eyedropper_cancel(), eyedropper_exec(), and eyedropper_modal().
|
static |
Definition at line 91 of file eyedropper_color.cc.
References ARRAY_SIZE, BKE_reportf(), C, Eyedropper::cb_win, col, copy_v3_v3(), Eyedropper::crypto_node, Eyedropper::cryptomatte_session, CTX_data_scene(), CTX_wm_window(), wmOperator::customdata, PointerRNA::data, Eyedropper::display, ColorManagedDisplaySettings::display_device, Scene::display_settings, Eyedropper::draw_handle_sample_text, ELEM, eyedropper_draw_cb(), IMB_colormanagement_display_get_named(), IMB_colormanagement_display_to_scene_linear_v3(), Eyedropper::index, Eyedropper::init_col, Eyedropper::is_undo, ntreeCompositCryptomatteSession(), Eyedropper::prop, PROP_COLOR, PROP_COLOR_GAMMA, PROP_FLOAT, Eyedropper::ptr, wmOperator::ptr, wmOperator::reports, RNA_path_resolve(), RNA_pointer_create_discrete(), RNA_property_array_length(), RNA_property_editable(), RNA_property_float_get_array_at_most(), RNA_property_is_set(), RNA_property_subtype(), RNA_property_type(), RNA_string_get(), RNA_struct_find_property(), RPT_ERROR, PointerRNA::type, UI_but_flag_is_set(), UI_BUT_UNDO, UI_context_active_but_prop_get(), and WM_draw_cb_activate().
Referenced by eyedropper_exec(), and eyedropper_invoke().
|
static |
Definition at line 655 of file eyedropper_color.cc.
References C, CTX_wm_region(), CTX_wm_window(), eyedropper_init(), OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, UI_context_active_but_clear(), WM_CURSOR_EYEDROPPER, WM_cursor_modal_set(), and WM_event_add_modal_handler().
Referenced by UI_OT_eyedropper_color().
|
static |
Definition at line 599 of file eyedropper_color.cc.
References Eyedropper::accum_col, Eyedropper::accum_start, Eyedropper::accum_tot, C, wmOperator::customdata, Eyedropper::draw_handle_sample_text, EVT_MODAL_MAP, EYE_MODAL_CANCEL, EYE_MODAL_SAMPLE_BEGIN, EYE_MODAL_SAMPLE_CONFIRM, EYE_MODAL_SAMPLE_RESET, eyedropper_cancel(), eyedropper_color_sample(), eyedropper_color_sample_text_update(), eyedropper_exit(), IFACE_, Eyedropper::is_undo, ISMOUSE_MOTION, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, status, TIP_, wmEvent::type, wmOperator::type, wmEvent::val, wmEvent::xy, and zero_v3().
Referenced by UI_OT_eyedropper_color().
|
static |
Definition at line 688 of file eyedropper_color.cc.
References C, and CTX_wm_window().
Referenced by UI_OT_eyedropper_color().
| void UI_OT_eyedropper_color | ( | wmOperatorType * | ot | ) |
Definition at line 695 of file eyedropper_color.cc.
References eyedropper_cancel(), eyedropper_exec(), eyedropper_invoke(), eyedropper_modal(), eyedropper_poll(), OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_property_flag(), and RNA_def_string().
Referenced by ED_operatortypes_ui(), and ui_screen_region_find_mouse_over_ex().