Blender
V3.3
|
#include "MEM_guardedalloc.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 "BKE_context.h"
#include "BKE_cryptomatte.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "BKE_node.h"
#include "BKE_screen.h"
#include "NOD_composite.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "UI_interface.h"
#include "IMB_colormanagement.h"
#include "IMB_imbuf_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_define.h"
#include "interface_intern.h"
#include "ED_clip.h"
#include "ED_image.h"
#include "ED_node.h"
#include "ED_screen.h"
#include "RE_pipeline.h"
#include "eyedropper_intern.h"
Go to the source code of this file.
Classes | |
struct | Eyedropper |
Typedefs | |
typedef struct Eyedropper | Eyedropper |
typedef struct Eyedropper Eyedropper |
|
static |
Definition at line 441 of file eyedropper_color.c.
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 394 of file eyedropper_color.c.
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().
get the color from the screen.
Special check for image or nodes where we MAY have HDR pixels which don't display.
Definition at line 312 of file eyedropper_color.c.
References blender::compositor::area(), BKE_area_find_region_xy(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_manager(), datadropper_win_area_find(), 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(), NULL, RGN_TYPE_WINDOW, SPACE_CLIP, SPACE_IMAGE, SPACE_NODE, ARegion::winrct, WM_window_pixel_sample_read(), rcti::xmin, rcti::ymin, and zero_v3().
Referenced by eyedropper_color_sample(), eyedropper_colorband_sample_point(), and eyedropper_gpencil_color_sample().
|
static |
Definition at line 427 of file eyedropper_color.c.
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 372 of file eyedropper_color.c.
References 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(), RNA_property_float_set_array(), and RNA_property_update().
Referenced by eyedropper_cancel(), and eyedropper_color_sample().
|
static |
Definition at line 240 of file eyedropper_color.c.
References blender::compositor::area(), BKE_area_find_region_xy(), BKE_screen_find_area_xy(), C, CMP_CRYPTOMATTE_SRC_IMAGE, CMP_CRYPTOMATTE_SRC_RENDER, Eyedropper::crypto_node, CTX_data_main(), CTX_data_scene(), CTX_wm_screen(), 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(), MAX_NAME, node, ntreeCompositCryptomatteLayerPrefix(), NULL, RGN_TYPE_WINDOW, scene, SPACE_CLIP, SPACE_IMAGE, SPACE_NODE, SPACE_TYPE_ANY, ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by eyedropper_color_sample(), and eyedropper_color_sample_text_update().
|
static |
Definition at line 214 of file eyedropper_color.c.
References BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BLI_assert, eyedropper_cryptomatte_sample_renderlayer_fl(), GS, ID_IM, IMA_TYPE_MULTILAYER, image(), NodeCryptomatte::iuser, LISTBASE_FOREACH, node, and NULL.
Referenced by eyedropper_cryptomatte_sample_fl().
|
static |
Definition at line 188 of file eyedropper_color.c.
References BLI_assert, eyedropper_cryptomatte_sample_renderlayer_fl(), GS, Scene::id, ID_SCE, LISTBASE_FOREACH, ID::name, node, RE_AcquireResultRead(), RE_GetRenderLayer(), RE_GetSceneRender(), RE_ReleaseResult(), scene, and Scene::view_layers.
Referenced by eyedropper_cryptomatte_sample_fl().
|
static |
Definition at line 149 of file eyedropper_color.c.
References BLI_assert, BLI_strnlen(), LISTBASE_FOREACH, RenderLayer::name, offset, RenderLayer::passes, STREQLEN, STRPREFIX, x, y, and zero_v3().
Referenced by eyedropper_cryptomatte_sample_image_fl(), and eyedropper_cryptomatte_sample_render_fl().
Definition at line 77 of file eyedropper_color.c.
References eyedropper_draw_cursor_text_window(), and Eyedropper::sample_text.
Referenced by eyedropper_init().
|
static |
Definition at line 516 of file eyedropper_color.c.
References C, eyedropper_exit(), eyedropper_init(), OPERATOR_FINISHED, and OPERATOR_PASS_THROUGH.
Referenced by UI_OT_eyedropper_color().
|
static |
Definition at line 128 of file eyedropper_color.c.
References BKE_cryptomatte_free(), C, Eyedropper::cryptomatte_session, CTX_wm_window(), wmOperator::customdata, Eyedropper::draw_handle_sample_text, MEM_SAFE_FREE, NULL, WM_cursor_modal_restore(), and WM_draw_cb_exit().
Referenced by eyedropper_cancel(), eyedropper_exec(), and eyedropper_modal().
|
static |
Definition at line 83 of file eyedropper_color.c.
References C, 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, MEM_callocN, MEM_freeN, ntreeCompositCryptomatteSession(), NULL, Eyedropper::prop, PROP_COLOR, PROP_COLOR_GAMMA, PROP_FLOAT, Eyedropper::ptr, RNA_property_array_length(), RNA_property_editable(), RNA_property_float_get_array(), RNA_property_subtype(), RNA_property_type(), scene, 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 498 of file eyedropper_color.c.
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 451 of file eyedropper_color.c.
References Eyedropper::accum_col, Eyedropper::accum_start, Eyedropper::accum_tot, C, CTX_wm_region(), wmOperator::customdata, Eyedropper::draw_handle_sample_text, ED_region_tag_redraw(), 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(), if(), 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().
Definition at line 531 of file eyedropper_color.c.
References C, CTX_wm_window(), and NULL.
Referenced by UI_OT_eyedropper_color().
void UI_OT_eyedropper_color | ( | wmOperatorType * | ot | ) |
Definition at line 538 of file eyedropper_color.c.
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, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().