|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "DNA_camera_types.h"#include "DNA_object_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "DNA_view3d_types.h"#include "BLI_math_vector.h"#include "BLI_string.h"#include "BKE_context.hh"#include "BKE_lib_id.hh"#include "BKE_report.hh"#include "BKE_screen.hh"#include "BKE_unit.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_path.hh"#include "RNA_prototypes.hh"#include "UI_interface.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_screen.hh"#include "ED_space_api.hh"#include "ED_view3d.hh"#include "eyedropper_intern.hh"#include "interface_intern.hh"Go to the source code of this file.
Classes | |
| struct | DepthDropper |
This file defines an eyedropper for picking 3D depth value (primary use is depth-of-field).
Defines:
Definition in file eyedropper_depth.cc.
|
static |
Definition at line 339 of file eyedropper_depth.cc.
References wmOperator::customdata, depthdropper_depth_set(), depthdropper_exit(), DepthDropper::init_depth, and DepthDropper::is_set.
Referenced by depthdropper_modal(), and UI_OT_eyedropper_depth().
|
static |
Definition at line 320 of file eyedropper_depth.cc.
References depthdropper_depth_sample_pt(), and depthdropper_depth_set().
Referenced by depthdropper_modal().
|
static |
Definition at line 329 of file eyedropper_depth.cc.
References DepthDropper::accum_depth, DepthDropper::accum_tot, and depthdropper_depth_sample_pt().
Referenced by depthdropper_modal().
|
static |
get the ID from the screen.
Definition at line 230 of file eyedropper_depth.cc.
References B_UNIT_LENGTH, BKE_area_find_region_xy(), BKE_screen_find_area_xy(), BKE_unit_value_as_string(), View3D::camera, copy_v2_v2_int(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_screen(), depsgraph, ED_region_tag_redraw(), ED_view3d_autodist(), ED_view3d_depth_override(), ED_view3d_win_to_3d(), float, len_v3v3(), DepthDropper::name, DepthDropper::name_pos, RegionView3D::persp, RGN_TYPE_WINDOW, RV3D_CAMOB, SPACE_TYPE_ANY, SPACE_VIEW3D, STRNCPY, V3D_DEPTH_NO_GPENCIL, view3d_operator_needs_opengl(), and RegionView3D::viewinv.
Referenced by depthdropper_depth_sample(), and depthdropper_depth_sample_accum().
|
static |
Definition at line 302 of file eyedropper_depth.cc.
References DepthDropper::is_set, DepthDropper::prop, DepthDropper::ptr, RNA_property_float_set(), and RNA_property_update().
Referenced by depthdropper_cancel(), depthdropper_depth_sample(), and depthdropper_depth_set_accum().
|
static |
Definition at line 310 of file eyedropper_depth.cc.
References DepthDropper::accum_depth, DepthDropper::accum_tot, depthdropper_depth_set(), and float.
Referenced by depthdropper_modal().
Definition at line 69 of file eyedropper_depth.cc.
References eyedropper_draw_cursor_text_region(), DepthDropper::name, and DepthDropper::name_pos.
Referenced by depthdropper_init().
|
static |
Definition at line 418 of file eyedropper_depth.cc.
References depthdropper_exit(), depthdropper_init(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by UI_OT_eyedropper_depth().
|
static |
Definition at line 211 of file eyedropper_depth.cc.
References DepthDropper::art, CTX_wm_window(), wmOperator::customdata, DepthDropper::draw_handle_pixel, ED_region_draw_cb_exit(), and WM_cursor_modal_restore().
Referenced by depthdropper_cancel(), depthdropper_exec(), and depthdropper_modal().
|
static |
Definition at line 75 of file eyedropper_depth.cc.
References BKE_reportf(), PROP_FLOAT, wmOperator::reports, RNA_path_resolve(), RNA_property_type(), and RPT_ERROR.
Referenced by depthdropper_init().
|
static |
Definition at line 149 of file eyedropper_depth.cc.
References DepthDropper::art, BKE_id_is_editable(), BKE_regiontype_from_id(), BKE_spacetype_from_id(), BLI_SCOPED_DEFER, View3D::camera, CTX_data_main(), CTX_wm_region_view3d(), CTX_wm_view3d(), wmOperator::customdata, Object::data, PointerRNA::data, depthdropper_draw_cb(), depthdropper_get_path(), DepthDropper::draw_handle_pixel, ED_region_draw_cb_activate(), DepthDropper::init_depth, DepthDropper::is_undo, MEM_freeN(), MEM_SAFE_FREE, RegionView3D::persp, DepthDropper::prop, PROP_FLOAT, DepthDropper::ptr, wmOperator::ptr, REGION_DRAW_POST_PIXEL, RGN_TYPE_WINDOW, RNA_pointer_create(), RNA_property_editable(), RNA_property_float_get(), RNA_property_is_set(), RNA_property_type(), RNA_string_get_alloc(), RNA_struct_find_property(), RV3D_CAMOB, SPACE_VIEW3D, UI_but_flag_is_set(), UI_BUT_UNDO, and UI_context_active_but_prop_get().
Referenced by depthdropper_exec(), and depthdropper_invoke().
|
static |
Definition at line 396 of file eyedropper_depth.cc.
References CTX_wm_region(), CTX_wm_window(), depthdropper_init(), depthdropper_test(), OPERATOR_CANCELLED, 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_depth().
|
static |
Definition at line 349 of file eyedropper_depth.cc.
References DepthDropper::accum_depth, DepthDropper::accum_start, DepthDropper::accum_tot, wmOperator::customdata, depthdropper_cancel(), depthdropper_depth_sample(), depthdropper_depth_sample_accum(), depthdropper_depth_set_accum(), depthdropper_exit(), EVT_MODAL_MAP, EYE_MODAL_CANCEL, EYE_MODAL_SAMPLE_BEGIN, EYE_MODAL_SAMPLE_CONFIRM, EYE_MODAL_SAMPLE_RESET, DepthDropper::is_undo, MOUSEMOVE, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::type, wmEvent::val, and wmEvent::xy.
Referenced by UI_OT_eyedropper_depth().
|
static |
Definition at line 430 of file eyedropper_depth.cc.
References BKE_id_is_editable(), View3D::camera, CTX_data_main(), CTX_wm_region_view3d(), CTX_wm_view3d(), CTX_wm_window(), Object::data, uiBut::icon, wmOperatorType::idname, uiBut::optype, RegionView3D::persp, PROP_FLOAT, PROP_UNIT_LENGTH, ptr, RNA_property_array_check(), RNA_property_subtype(), RNA_property_type(), RV3D_CAMOB, STREQ, uiBut::type, UI_BTYPE_NUM, and UI_context_active_but_prop_get().
Referenced by UI_OT_eyedropper_depth().
|
static |
Definition at line 108 of file eyedropper_depth.cc.
References BKE_id_is_editable(), View3D::camera, CTX_data_main(), CTX_wm_region_view3d(), CTX_wm_view3d(), CTX_wm_window(), Object::data, RegionView3D::persp, PROP_FLOAT, PROP_UNIT_LENGTH, ptr, wmOperator::ptr, RNA_property_array_check(), RNA_property_is_set(), RNA_property_subtype(), RNA_property_type(), RNA_struct_find_property(), RV3D_CAMOB, uiBut::type, UI_BTYPE_NUM, and UI_context_active_but_prop_get().
Referenced by depthdropper_invoke().
| void UI_OT_eyedropper_depth | ( | wmOperatorType * | ot | ) |
Definition at line 472 of file eyedropper_depth.cc.
References wmOperatorType::cancel, depthdropper_cancel(), depthdropper_exec(), depthdropper_invoke(), depthdropper_modal(), depthdropper_poll(), wmOperatorType::description, wmOperatorType::exec, 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().