|
Blender V4.3
|
#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.h"#include "BKE_report.hh"#include "BKE_screen.hh"#include "NOD_composite.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_path.hh"#include "RNA_prototypes.hh"#include "UI_interface.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 580 of file eyedropper_color.cc.
References 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 531 of file eyedropper_color.cc.
References Eyedropper::accum_col, Eyedropper::accum_tot, add_v3_v3(), 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().
| void eyedropper_color_sample_fl | ( | bContext * | C, |
| Eyedropper * | eye, | ||
| const int | event_xy[2], | ||
| float | r_col[3] ) |
Definition at line 433 of file eyedropper_color.cc.
References BKE_area_find_region_xy(), BKE_screen_find_area_xy(), 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(), 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, Eyedropper::viewport_session, 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(), 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 564 of file eyedropper_color.cc.
References BKE_cryptomatte_find_name(), col, Eyedropper::cryptomatte_session, eyedropper_cryptomatte_sample_fl(), and Eyedropper::sample_text.
Referenced by eyedropper_modal().
|
static |
Definition at line 509 of file eyedropper_color.cc.
References 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(), RNA_property_float_set_array(), and RNA_property_update().
Referenced by eyedropper_cancel(), and eyedropper_color_sample().
|
static |
Definition at line 320 of file eyedropper_color.cc.
References BKE_area_find_region_xy(), BKE_screen_find_area_xy(), 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(), 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(), MAX_NAME, ntreeCompositCryptomatteLayerPrefix(), RGN_TYPE_WINDOW, SPACE_CLIP, SPACE_IMAGE, SPACE_NODE, SPACE_TYPE_ANY, SPACE_VIEW3D, WM_draw_cb_activate(), WM_draw_cb_exit(), WM_window_find_under_cursor(), and WM_window_get_active_screen().
Referenced by eyedropper_color_sample(), and eyedropper_color_sample_text_update().
|
static |
Definition at line 294 of file eyedropper_color.cc.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BLI_assert, eyedropper_cryptomatte_sample_renderlayer_fl(), GS, Image::id, ID_IM, IMA_TYPE_MULTILAYER, NodeCryptomatte::iuser, and LISTBASE_FOREACH.
Referenced by eyedropper_cryptomatte_sample_fl().
|
static |
Definition at line 268 of file eyedropper_color.cc.
References BLI_assert, eyedropper_cryptomatte_sample_renderlayer_fl(), GS, Scene::id, ID_SCE, LISTBASE_FOREACH, RE_AcquireResultRead(), RE_GetRenderLayer(), RE_GetSceneRender(), and RE_ReleaseResult().
Referenced by eyedropper_cryptomatte_sample_fl().
|
static |
Definition at line 221 of file eyedropper_color.cc.
References BLI_assert, BLI_strnlen(), int, LISTBASE_FOREACH, RenderLayer::name, RenderLayer::passes, STREQLEN, STRPREFIX, x, and zero_v3().
Referenced by eyedropper_cryptomatte_sample_image_fl(), and eyedropper_cryptomatte_sample_render_fl().
|
static |
Definition at line 187 of file eyedropper_color.cc.
References BKE_cryptomatte_hash(), BKE_cryptomatte_hash_to_float(), BKE_object_material_get(), BLI_strnlen(), ED_view3d_give_material_slot_under_cursor(), MAX_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 654 of file eyedropper_color.cc.
References eyedropper_exit(), eyedropper_init(), OPERATOR_FINISHED, and OPERATOR_PASS_THROUGH.
Referenced by UI_OT_eyedropper_color().
|
static |
Definition at line 160 of file eyedropper_color.cc.
References BKE_cryptomatte_free(), Eyedropper::cb_win, Eyedropper::cryptomatte_session, CTX_wm_window(), wmOperator::customdata, Eyedropper::draw_handle_sample_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 BKE_reportf(), BLI_SCOPED_DEFER, 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, 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, MEM_freeN(), MEM_SAFE_FREE, ntreeCompositCryptomatteSession(), Eyedropper::prop, PROP_COLOR, PROP_COLOR_GAMMA, PROP_FLOAT, Eyedropper::ptr, wmOperator::ptr, wmOperator::reports, RNA_path_resolve(), RNA_pointer_create(), RNA_property_array_length(), RNA_property_editable(), RNA_property_float_get_array(), RNA_property_is_set(), RNA_property_subtype(), RNA_property_type(), RNA_string_get_alloc(), 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 636 of file eyedropper_color.cc.
References 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 590 of file eyedropper_color.cc.
References Eyedropper::accum_col, Eyedropper::accum_start, Eyedropper::accum_tot, 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(), Eyedropper::is_undo, ISMOUSE_MOTION, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::type, wmEvent::val, wmEvent::xy, and zero_v3().
Referenced by UI_OT_eyedropper_color().
|
static |
Definition at line 669 of file eyedropper_color.cc.
References CTX_wm_window().
Referenced by UI_OT_eyedropper_color().
| void UI_OT_eyedropper_color | ( | wmOperatorType * | ot | ) |
Definition at line 676 of file eyedropper_color.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, eyedropper_cancel(), eyedropper_exec(), eyedropper_invoke(), eyedropper_modal(), eyedropper_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().