|
Blender V5.0
|
#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_utf8.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 "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 338 of file eyedropper_depth.cc.
References C, 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 319 of file eyedropper_depth.cc.
References C, depthdropper_depth_sample_pt(), and depthdropper_depth_set().
Referenced by depthdropper_modal().
|
static |
Definition at line 328 of file eyedropper_depth.cc.
References DepthDropper::accum_depth, DepthDropper::accum_tot, C, and depthdropper_depth_sample_pt().
Referenced by depthdropper_modal().
|
static |
get the ID from the screen.
Definition at line 228 of file eyedropper_depth.cc.
References B_UNIT_LENGTH, BKE_area_find_region_xy(), BKE_screen_find_area_xy(), BKE_unit_value_as_string(), C, 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(), ListBase::first, float, len_v3v3(), DepthDropper::name, DepthDropper::name_pos, RegionView3D::persp, ARegion::regiondata, RGN_TYPE_WINDOW, RV3D_CAMOB, SPACE_TYPE_ANY, SPACE_VIEW3D, ScrArea::spacedata, ScrArea::spacetype, STRNCPY_UTF8, Scene::unit, V3D_DEPTH_NO_GPENCIL, view3d_operator_needs_gpu(), RegionView3D::viewinv, ARegion::winrct, ARegion::winx, ARegion::winy, rcti::xmin, and rcti::ymin.
Referenced by depthdropper_depth_sample(), and depthdropper_depth_sample_accum().
|
static |
Definition at line 301 of file eyedropper_depth.cc.
References C, 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 309 of file eyedropper_depth.cc.
References DepthDropper::accum_depth, DepthDropper::accum_tot, C, depthdropper_depth_set(), and float.
Referenced by depthdropper_modal().
Definition at line 67 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 417 of file eyedropper_depth.cc.
References C, depthdropper_exit(), depthdropper_init(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by UI_OT_eyedropper_depth().
|
static |
Definition at line 209 of file eyedropper_depth.cc.
References DepthDropper::art, C, 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 73 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 147 of file eyedropper_depth.cc.
References DepthDropper::art, BKE_id_is_editable(), BKE_regiontype_from_id(), BKE_spacetype_from_id(), C, View3D::camera, CTX_data_main(), CTX_wm_region_view3d(), CTX_wm_view3d(), wmOperator::customdata, Object::data, PointerRNA::data, depthdropper_draw_cb(), depthdropper_get_path(), Camera::dof, DepthDropper::draw_handle_pixel, ED_region_draw_cb_activate(), Camera::id, DepthDropper::init_depth, DepthDropper::is_undo, RegionView3D::persp, DepthDropper::prop, PROP_FLOAT, DepthDropper::ptr, wmOperator::ptr, REGION_DRAW_POST_PIXEL, RGN_TYPE_WINDOW, RNA_pointer_create_discrete(), RNA_property_editable(), RNA_property_float_get(), RNA_property_is_set(), RNA_property_type(), RNA_string_get(), 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 395 of file eyedropper_depth.cc.
References C, 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 348 of file eyedropper_depth.cc.
References DepthDropper::accum_depth, DepthDropper::accum_start, DepthDropper::accum_tot, C, 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 429 of file eyedropper_depth.cc.
References BKE_id_is_editable(), C, View3D::camera, CTX_data_main(), CTX_wm_region_view3d(), CTX_wm_view3d(), CTX_wm_window(), Object::data, uiBut::icon, wmOperatorType::idname, Num, 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, and UI_context_active_but_prop_get().
Referenced by UI_OT_eyedropper_depth().
|
static |
Definition at line 106 of file eyedropper_depth.cc.
References BKE_id_is_editable(), C, View3D::camera, CTX_data_main(), CTX_wm_region_view3d(), CTX_wm_view3d(), CTX_wm_window(), Object::data, Num, 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, and UI_context_active_but_prop_get().
Referenced by depthdropper_invoke().
| void UI_OT_eyedropper_depth | ( | wmOperatorType * | ot | ) |
Definition at line 471 of file eyedropper_depth.cc.
References depthdropper_cancel(), depthdropper_exec(), depthdropper_invoke(), depthdropper_modal(), depthdropper_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().