|
Blender V4.3
|
Go to the source code of this file.
Functions | |
| void | ED_imbuf_sample_draw (const bContext *C, ARegion *region, void *arg_info) |
| void | ED_imbuf_sample_exit (bContext *C, wmOperator *op) |
| int | ED_imbuf_sample_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| int | ED_imbuf_sample_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| void | ED_imbuf_sample_cancel (bContext *C, wmOperator *op) |
| bool | ED_imbuf_sample_poll (bContext *C) |
| void ED_imbuf_sample_cancel | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 506 of file ed_util_imbuf.cc.
References ED_imbuf_sample_exit().
Referenced by IMAGE_OT_curves_point_set(), IMAGE_OT_sample(), and SEQUENCER_OT_sample().
Definition at line 383 of file ed_util_imbuf.cc.
References BLI_rctf_init_pt_radius(), ImageSampleInfo::channels, ImageSampleInfo::colfp, ImageSampleInfo::color_manage, ImageSampleInfo::colp, CTX_data_scene(), CTX_wm_area(), CTX_wm_space_image(), CTX_wm_window(), ImageSampleInfo::draw, ED_image_draw_info(), wmWindow::eventstate, float, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_width(), GPU_logic_op_xor_set(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), imm_draw_box_wire_2d(), immBindBuiltinProgram(), immUnbindProgram(), immUniformColor3fv(), immVertexFormat(), ImageSampleInfo::linearcol, pos, ImageSampleInfo::sample_size, SPACE_IMAGE, ImageSampleInfo::use_default_view, ImageSampleInfo::x, rctf::xmax, rctf::xmin, ImageSampleInfo::y, rctf::ymax, rctf::ymin, and SpaceImage::zoom.
Referenced by ED_imbuf_sample_invoke().
| void ED_imbuf_sample_exit | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 438 of file ed_util_imbuf.cc.
References ImageSampleInfo::art, CTX_wm_area(), wmOperator::customdata, ImageSampleInfo::draw_handle, ED_area_tag_redraw(), ED_region_draw_cb_exit(), and MEM_freeN().
Referenced by ED_imbuf_sample_cancel(), and ED_imbuf_sample_modal().
| int ED_imbuf_sample_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 447 of file ed_util_imbuf.cc.
References ImageSampleInfo::art, CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, ImageSampleInfo::draw_handle, ed_imbuf_sample_apply(), ED_imbuf_sample_draw(), ED_region_draw_cb_activate(), ED_space_image_has_buffer(), ED_space_image_show_cache_and_mval_over(), MEM_callocN, wmEvent::mval, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, REGION_DRAW_POST_PIXEL, RGN_TYPE_WINDOW, RNA_int_get(), ImageSampleInfo::sample_size, SPACE_IMAGE, SPACE_SEQ, and WM_event_add_modal_handler().
Referenced by IMAGE_OT_curves_point_set(), IMAGE_OT_sample(), and SEQUENCER_OT_sample().
| int ED_imbuf_sample_modal | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 488 of file ed_util_imbuf.cc.
References ed_imbuf_sample_apply(), ED_imbuf_sample_exit(), KM_RELEASE, LEFTMOUSE, MOUSEMOVE, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, RIGHTMOUSE, wmEvent::type, and wmEvent::val.
Referenced by IMAGE_OT_curves_point_set(), IMAGE_OT_sample(), and SEQUENCER_OT_sample().
| bool ED_imbuf_sample_poll | ( | bContext * | C | ) |
Definition at line 511 of file ed_util_imbuf.cc.
References CTX_data_edit_object(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), ED_space_image_show_uvedit(), SpaceSeq::mainb, SpaceImage::mode, RGN_TYPE_PREVIEW, SEQ_DRAW_IMG_IMBUF, SEQ_editing_get(), SI_MODE_VIEW, SPACE_IMAGE, and SPACE_SEQ.
Referenced by IMAGE_OT_sample(), and SEQUENCER_OT_sample().