Blender  V3.3
Classes | Typedefs | Functions
eyedropper_depth.c 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.h"
#include "BKE_lib_id.h"
#include "BKE_screen.h"
#include "BKE_unit.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_screen.h"
#include "ED_space_api.h"
#include "ED_view3d.h"
#include "eyedropper_intern.h"
#include "interface_intern.h"

Go to the source code of this file.

Classes

struct  DepthDropper
 

Typedefs

typedef struct DepthDropper DepthDropper
 

Functions

static void depthdropper_draw_cb (const struct bContext *UNUSED(C), ARegion *UNUSED(region), void *arg)
 
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. More...
 
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 *UNUSED(event))
 
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.c.

Typedef Documentation

◆ DepthDropper

typedef struct DepthDropper DepthDropper
Note
DepthDropper is only internal name to avoid confusion with other kinds of eye-droppers.

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 227 of file eyedropper_depth.c.

References C, 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()

static void depthdropper_depth_sample_pt ( bContext C,
DepthDropper ddr,
const int  m_xy[2],
float r_depth 
)
static

◆ 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 struct bContext UNUSEDC,
ARegion UNUSEDregion,
void arg 
)
static

◆ depthdropper_exec()

static int depthdropper_exec ( bContext C,
wmOperator op 
)
static

◆ depthdropper_exit()

static void depthdropper_exit ( bContext C,
wmOperator op 
)
static

◆ depthdropper_init()

static int depthdropper_init ( bContext C,
wmOperator op 
)
static

◆ depthdropper_invoke()

static int depthdropper_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ depthdropper_modal()

static int depthdropper_modal ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ depthdropper_poll()

static bool depthdropper_poll ( bContext C)
static

◆ UI_OT_eyedropper_depth()

void UI_OT_eyedropper_depth ( wmOperatorType ot)