Blender V4.3
eyedropper_depth.cc File Reference
#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
 

Functions

static void depthdropper_draw_cb (const bContext *, ARegion *, void *arg)
 
static bool depthdropper_get_path (PointerRNA *ctx_ptr, wmOperator *op, const char *prop_path, PointerRNA *r_ptr, PropertyRNA **r_prop)
 
static bool depthdropper_test (bContext *C, wmOperator *op)
 
static int depthdropper_init (bContext *C, wmOperator *op)
 
static void depthdropper_exit (bContext *C, wmOperator *op)
 
static void depthdropper_depth_sample_pt (bContext *C, DepthDropper *ddr, const int m_xy[2], float *r_depth)
 get the ID from the screen.
 
static void depthdropper_depth_set (bContext *C, DepthDropper *ddr, const float depth)
 
static void depthdropper_depth_set_accum (bContext *C, DepthDropper *ddr)
 
static void depthdropper_depth_sample (bContext *C, DepthDropper *ddr, const int m_xy[2])
 
static void depthdropper_depth_sample_accum (bContext *C, DepthDropper *ddr, const int m_xy[2])
 
static void depthdropper_cancel (bContext *C, wmOperator *op)
 
static int depthdropper_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static int depthdropper_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static int depthdropper_exec (bContext *C, wmOperator *op)
 
static bool depthdropper_poll (bContext *C)
 
void UI_OT_eyedropper_depth (wmOperatorType *ot)
 

Detailed Description

This file defines an eyedropper for picking 3D depth value (primary use is depth-of-field).

Defines:

Definition in file eyedropper_depth.cc.

Function Documentation

◆ depthdropper_cancel()

static void depthdropper_cancel ( bContext * C,
wmOperator * op )
static

◆ depthdropper_depth_sample()

static void depthdropper_depth_sample ( bContext * C,
DepthDropper * ddr,
const int m_xy[2] )
static

Definition at line 320 of file eyedropper_depth.cc.

References depthdropper_depth_sample_pt(), and depthdropper_depth_set().

Referenced by depthdropper_modal().

◆ depthdropper_depth_sample_accum()

static void depthdropper_depth_sample_accum ( bContext * C,
DepthDropper * ddr,
const int m_xy[2] )
static

◆ depthdropper_depth_sample_pt()

◆ depthdropper_depth_set()

static void depthdropper_depth_set ( bContext * C,
DepthDropper * ddr,
const float depth )
static

◆ depthdropper_depth_set_accum()

static void depthdropper_depth_set_accum ( bContext * C,
DepthDropper * ddr )
static

◆ depthdropper_draw_cb()

static void depthdropper_draw_cb ( const bContext * ,
ARegion * ,
void * arg )
static

◆ depthdropper_exec()

static int depthdropper_exec ( bContext * C,
wmOperator * op )
static

◆ depthdropper_exit()

◆ depthdropper_get_path()

static bool depthdropper_get_path ( PointerRNA * ctx_ptr,
wmOperator * op,
const char * prop_path,
PointerRNA * r_ptr,
PropertyRNA ** r_prop )
static

◆ depthdropper_init()

◆ depthdropper_invoke()

◆ depthdropper_modal()

◆ depthdropper_poll()

◆ depthdropper_test()

◆ UI_OT_eyedropper_depth()