Blender  V3.3
Classes | Typedefs | Functions
eyedropper_color.c File Reference
#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
 

Functions

static void eyedropper_draw_cb (const wmWindow *window, void *arg)
 
static bool eyedropper_init (bContext *C, wmOperator *op)
 
static void eyedropper_exit (bContext *C, wmOperator *op)
 
static bool eyedropper_cryptomatte_sample_renderlayer_fl (RenderLayer *render_layer, const char *prefix, const float fpos[2], float r_col[3])
 
static bool eyedropper_cryptomatte_sample_render_fl (const bNode *node, const char *prefix, const float fpos[2], float r_col[3])
 
static bool eyedropper_cryptomatte_sample_image_fl (const bNode *node, NodeCryptomatte *crypto, const char *prefix, const float fpos[2], float r_col[3])
 
static bool eyedropper_cryptomatte_sample_fl (bContext *C, Eyedropper *eye, const int m_xy[2], float r_col[3])
 
void eyedropper_color_sample_fl (bContext *C, const int m_xy[2], float r_col[3])
 get the color from the screen. More...
 
static void eyedropper_color_set (bContext *C, Eyedropper *eye, const float col[3])
 
static void eyedropper_color_sample (bContext *C, Eyedropper *eye, const int m_xy[2])
 
static void eyedropper_color_sample_text_update (bContext *C, Eyedropper *eye, const int m_xy[2])
 
static void eyedropper_cancel (bContext *C, wmOperator *op)
 
static int eyedropper_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static int eyedropper_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
static int eyedropper_exec (bContext *C, wmOperator *op)
 
static bool eyedropper_poll (bContext *C)
 
void UI_OT_eyedropper_color (wmOperatorType *ot)
 

Detailed Description

Eyedropper (RGB Color)

Defines:

Definition in file eyedropper_color.c.

Typedef Documentation

◆ Eyedropper

typedef struct Eyedropper Eyedropper

Function Documentation

◆ eyedropper_cancel()

static void eyedropper_cancel ( bContext C,
wmOperator op 
)
static

◆ eyedropper_color_sample()

static void eyedropper_color_sample ( bContext C,
Eyedropper eye,
const int  m_xy[2] 
)
static

◆ eyedropper_color_sample_fl()

void eyedropper_color_sample_fl ( bContext C,
const int  m_xy[2],
float  r_col[3] 
)

◆ eyedropper_color_sample_text_update()

static void eyedropper_color_sample_text_update ( bContext C,
Eyedropper eye,
const int  m_xy[2] 
)
static

◆ eyedropper_color_set()

static void eyedropper_color_set ( bContext C,
Eyedropper eye,
const float  col[3] 
)
static

◆ eyedropper_cryptomatte_sample_fl()

static bool eyedropper_cryptomatte_sample_fl ( bContext C,
Eyedropper eye,
const int  m_xy[2],
float  r_col[3] 
)
static

◆ eyedropper_cryptomatte_sample_image_fl()

static bool eyedropper_cryptomatte_sample_image_fl ( const bNode node,
NodeCryptomatte crypto,
const char *  prefix,
const float  fpos[2],
float  r_col[3] 
)
static

◆ eyedropper_cryptomatte_sample_render_fl()

static bool eyedropper_cryptomatte_sample_render_fl ( const bNode node,
const char *  prefix,
const float  fpos[2],
float  r_col[3] 
)
static

◆ eyedropper_cryptomatte_sample_renderlayer_fl()

static bool eyedropper_cryptomatte_sample_renderlayer_fl ( RenderLayer render_layer,
const char *  prefix,
const float  fpos[2],
float  r_col[3] 
)
static

◆ eyedropper_draw_cb()

static void eyedropper_draw_cb ( const wmWindow window,
void arg 
)
static

Definition at line 77 of file eyedropper_color.c.

References eyedropper_draw_cursor_text_window(), and Eyedropper::sample_text.

Referenced by eyedropper_init().

◆ eyedropper_exec()

static int eyedropper_exec ( bContext C,
wmOperator op 
)
static

◆ eyedropper_exit()

static void eyedropper_exit ( bContext C,
wmOperator op 
)
static

◆ eyedropper_init()

static bool eyedropper_init ( bContext C,
wmOperator op 
)
static

◆ eyedropper_invoke()

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

◆ eyedropper_modal()

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

◆ eyedropper_poll()

static bool eyedropper_poll ( bContext C)
static

Definition at line 531 of file eyedropper_color.c.

References C, CTX_wm_window(), and NULL.

Referenced by UI_OT_eyedropper_color().

◆ UI_OT_eyedropper_color()

void UI_OT_eyedropper_color ( wmOperatorType ot)