|
Blender V4.3
|
#include "BLI_array.hh"#include "BLI_compiler_compat.h"#include "BLI_function_ref.hh"#include "BLI_index_mask_fwd.hh"#include "BLI_math_vector_types.hh"#include "BLI_set.hh"#include "BLI_span.hh"#include "BLI_vector.hh"#include "DNA_object_enums.h"#include "DNA_scene_enums.h"#include "DNA_vec_types.h"Go to the source code of this file.
Classes | |
| class | blender::ed::sculpt_paint::PaintModeData |
| struct | WPaintVGroupIndex |
| struct | ImagePaintPartialRedraw |
| struct | CurveMaskCache |
| Caching structure for curve mask. More... | |
| struct | BlurKernel |
| struct | blender::ed::sculpt_paint::vwpaint::NormalAnglePrecalc |
Namespaces | |
| namespace | blender |
| namespace | blender::bke |
| namespace | blender::bke::pbvh |
| namespace | blender::ed |
| namespace | blender::ed::sculpt_paint |
| namespace | blender::ed::sculpt_paint::vwpaint |
Macros | |
| #define | PAINT_CURVE_NUM_SEGMENTS 40 |
Typedefs | |
| using | blender::ed::sculpt_paint::StrokeGetLocation |
| using | blender::ed::sculpt_paint::StrokeTestStart = bool (*)(bContext *C, wmOperator *op, const float mouse[2]) |
| using | blender::ed::sculpt_paint::StrokeUpdateStep |
| using | blender::ed::sculpt_paint::StrokeRedraw = void (*)(const bContext *C, PaintStroke *stroke, bool final) |
| using | blender::ed::sculpt_paint::StrokeDone = void (*)(const bContext *C, PaintStroke *stroke) |
| using | VPaintTransform_Callback |
Enumerations | |
| enum | { WPAINT_GRADIENT_TYPE_LINEAR , WPAINT_GRADIENT_TYPE_RADIAL } |
| enum | eWPaintFlag { WPAINT_ENSURE_MIRROR = (1 << 0) } |
| enum | BrushStrokeMode { BRUSH_STROKE_NORMAL , BRUSH_STROKE_INVERT , BRUSH_STROKE_SMOOTH , BRUSH_STROKE_ERASE } |
| #define PAINT_CURVE_NUM_SEGMENTS 40 |
Definition at line 515 of file paint_intern.hh.
Referenced by blender::ed::sculpt_paint::paint_draw_curve_cursor(), and blender::ed::sculpt_paint::paint_stroke_curve_end().
| using VPaintTransform_Callback |
Definition at line 178 of file paint_intern.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| WPAINT_GRADIENT_TYPE_LINEAR | |
| WPAINT_GRADIENT_TYPE_RADIAL | |
Definition at line 186 of file paint_intern.hh.
| enum BrushStrokeMode |
| Enumerator | |
|---|---|
| BRUSH_STROKE_NORMAL | |
| BRUSH_STROKE_INVERT | |
| BRUSH_STROKE_SMOOTH | |
| BRUSH_STROKE_ERASE | |
Definition at line 479 of file paint_intern.hh.
| enum eWPaintFlag |
| Enumerator | |
|---|---|
| WPAINT_ENSURE_MIRROR | |
Definition at line 212 of file paint_intern.hh.
| void BRUSH_OT_curve_preset | ( | wmOperatorType * | ot | ) |
Definition at line 501 of file paint_utils.cc.
References BLT_I18NCONTEXT_ID_CURVE_LEGACY, brush_curve_preset_exec(), brush_curve_preset_poll(), CURVE_PRESET_SMOOTH, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, prop_shape_items, RNA_def_enum(), RNA_def_property_translation_context(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void BRUSH_OT_sculpt_curves_falloff_preset | ( | wmOperatorType * | ot | ) |
Definition at line 533 of file paint_utils.cc.
References BLT_I18NCONTEXT_ID_CURVE_LEGACY, brush_sculpt_curves_falloff_preset_exec(), brush_sculpt_curves_falloff_preset_poll(), CURVE_PRESET_SMOOTH, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, prop_shape_items, RNA_def_enum(), RNA_def_property_translation_context(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| VertProjHandle * ED_vpaint_proj_handle_create | ( | Depsgraph & | depsgraph, |
| Scene & | scene, | ||
| Object & | ob, | ||
| blender::Span< blender::float3 > & | r_vert_positions, | ||
| blender::Span< blender::float3 > & | r_vert_normals ) |
Definition at line 152 of file paint_vertex_proj.cc.
References Object::data, depsgraph, VertProjHandle::dists_sq, VertProjHandle::ob, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), scene, VertProjHandle::scene, VertProjHandle::use_update, VertProjHandle::vert_normals, VertProjHandle::vert_positions, and vpaint_proj_dm_map_cosnos_init().
Referenced by vpaint_init_vpaint().
| void ED_vpaint_proj_handle_free | ( | VertProjHandle * | vp_handle | ) |
Definition at line 194 of file paint_vertex_proj.cc.
Referenced by VPaintData::~VPaintData().
| void ED_vpaint_proj_handle_update | ( | Depsgraph * | depsgraph, |
| VertProjHandle * | vp_handle, | ||
| ARegion * | region, | ||
| const float | mval_fl[2] ) |
Definition at line 184 of file paint_vertex_proj.cc.
References depsgraph, VertProjHandle::use_update, and vpaint_proj_dm_map_cosnos_update().
| weight | Typically the current weight: MDeformWeight.weight |
Definition at line 267 of file paint_vertex_weight_utils.cc.
References IMB_BLEND_ADD, IMB_BLEND_COLORDODGE, IMB_BLEND_DARKEN, IMB_BLEND_DIFFERENCE, IMB_BLEND_EXCLUSION, IMB_BLEND_HARDLIGHT, IMB_BLEND_LIGHTEN, IMB_BLEND_MIX, IMB_BLEND_MUL, IMB_BLEND_OVERLAY, IMB_BLEND_SCREEN, IMB_BLEND_SOFTLIGHT, IMB_BLEND_SUB, wval_add(), wval_blend(), wval_colordodge(), wval_darken(), wval_difference(), wval_exclusion(), wval_hardlight(), wval_lighten(), wval_mul(), wval_overlay(), wval_screen(), wval_softlight(), and wval_sub().
Referenced by gradientVert_update(), and wpaint_blend().
| bool ED_wpaint_ensure_data | ( | bContext * | C, |
| ReportList * | reports, | ||
| enum eWPaintFlag | flag, | ||
| WPaintVGroupIndex * | vgroup_index ) |
Ensure we have data on wpaint start, add if needed.
Definition at line 43 of file paint_vertex_weight_utils.cc.
References WPaintVGroupIndex::active, BKE_mesh_from_object(), BKE_modifiers_is_deformed_by_armature(), BKE_object_defgroup_add(), BKE_object_defgroup_add_name(), BKE_object_defgroup_data_create(), BKE_object_defgroup_find_name(), BKE_object_defgroup_list(), BKE_object_is_in_editmode(), BKE_pose_channel_find_name(), BKE_report(), BLI_assert, BLI_findindex(), BLI_listbase_is_empty(), CTX_data_active_object(), CTX_data_main(), Object::data, DEG_relations_tag_update(), ED_wpaint_mirror_vgroup_ensure(), flag, ME_USING_MIRROR_X_VERTEX_GROUPS, WPaintVGroupIndex::mirror, Bone::name, bPoseChannel::name, NC_GEOM, ND_DATA, Object::pose, RPT_WARNING, WM_event_add_notifier(), and WPAINT_ENSURE_MIRROR.
Referenced by paint_weight_gradient_exec(), paint_weight_gradient_invoke(), weight_paint_set_exec(), and wpaint_stroke_test_start().
Return -1 when invalid.
Definition at line 125 of file paint_vertex_weight_utils.cc.
References BKE_object_defgroup_list(), BKE_object_defgroup_name_index(), BKE_object_defgroup_new(), BLI_findlink(), BLI_listbase_count(), BLI_string_flip_side_name(), MAXBONENAME, and bDeformGroup::name.
Referenced by ED_wpaint_ensure_data(), and weight_paint_set().
| bool facemask_paint_poll | ( | bContext * | C | ) |
Definition at line 1134 of file paint_image.cc.
References BKE_paint_select_face_test(), and CTX_data_active_object().
Referenced by ED_keymap_paint(), PAINT_OT_face_select_all(), PAINT_OT_face_select_hide(), PAINT_OT_face_select_less(), PAINT_OT_face_select_linked(), PAINT_OT_face_select_linked_pick(), PAINT_OT_face_select_loop(), and PAINT_OT_face_select_more().
Definition at line 438 of file paint_image.cc.
References CTX_wm_area(), CTX_wm_region(), ED_space_image_get_zoom(), SpaceImage::mode, SI_MODE_PAINT, and SPACE_IMAGE.
Referenced by blender::ed::sculpt_paint::paint_cursor_context_init(), and blender::ed::sculpt_paint::paint_stroke_new().
| ImagePaintPartialRedraw * get_imapaintpartial | ( | ) |
Definition at line 84 of file paint_image.cc.
References imapaintpartial.
| bool image_paint_poll | ( | bContext * | C | ) |
| bool image_texture_paint_poll | ( | bContext * | C | ) |
Definition at line 1129 of file paint_image.cc.
References ED_image_tools_paint_poll(), and texture_paint_poll().
Referenced by ED_keymap_paint().
| void imapaint_image_update | ( | SpaceImage * | sima, |
| Image * | image, | ||
| ImBuf * | ibuf, | ||
| ImageUser * | iuser, | ||
| short | texpaint ) |
Definition at line 149 of file paint_image.cc.
References BKE_image_partial_update_mark_full_update(), BKE_image_update_gputexture(), BLI_rcti_is_empty(), BLI_rcti_size_x(), BLI_rcti_size_y(), ImagePaintPartialRedraw::dirty_region, IB_MIPMAP_INVALID, imapaintpartial, IMB_partial_display_buffer_update_delayed(), SpaceImage::lock, ImBuf::mipmap, ImBuf::planes, ImBuf::userflags, w(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by paint_2d_bucket_fill(), paint_2d_gradient_fill(), paint_2d_redraw(), and project_image_refresh_tagged().
| void imapaint_region_tiles | ( | ImBuf * | ibuf, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int * | tx, | ||
| int * | ty, | ||
| int * | tw, | ||
| int * | th ) |
Definition at line 101 of file paint_image.cc.
References ED_IMAGE_UNDO_TILE_BITS, IMB_rectclip(), and w().
Referenced by ED_imapaint_dirty_region(), and paint_2d_op().
| bool mask_paint_poll | ( | bContext * | C | ) |
Definition at line 1144 of file paint_image.cc.
References BKE_paint_select_elem_test(), and CTX_data_active_object().
| void paint_2d_bucket_fill | ( | const bContext * | C, |
| const float | color[3], | ||
| Brush * | br, | ||
| const float | mouse_init[2], | ||
| const float | mouse_final[2], | ||
| void * | ps ) |
This function expects linear space color values.
Definition at line 1791 of file paint_image_2d.cc.
References BKE_brush_alpha_get(), BKE_image_acquire_ibuf(), BKE_image_get_tile_from_pos(), BKE_image_release_ibuf(), BKE_imageuser_default(), Brush::blend, blend_color_mix_byte(), blend_color_mix_float(), BLI_BITMAP_NEW, BLI_BITMAP_SET, BLI_stack_free(), BLI_stack_is_empty(), BLI_stack_new, BLI_stack_pop(), BLI_stack_push(), ImBuf::byte_buffer, copy_v3_v3(), copy_v4_v4(), CTX_wm_region(), CTX_wm_space_image(), ImBufByteBuffer::data, ImBufFloatBuffer::data, ED_imapaint_clear_partial_redraw(), ED_imapaint_dirty_region(), Brush::fill_threshold, ImBuf::float_buffer, SpaceImage::image, image_init(), imapaint_image_update(), IMB_blend_color_byte(), IMB_blend_color_float(), linearrgb_to_srgb_uchar3(), MEM_freeN(), NA_EDITED, NC_IMAGE, paint_2d_fill_add_pixel_byte(), paint_2d_fill_add_pixel_float(), paint_2d_get_tile_iuser(), paint_2d_transform_mouse(), rgba_uchar_to_float(), straight_to_premul_v4(), ImageUser::tile, ARegion::v2d, WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by ED_imapaint_bucket_fill(), and blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_bucket_fill().
| void paint_2d_gradient_fill | ( | const bContext * | C, |
| Brush * | br, | ||
| const float | mouse_init[2], | ||
| const float | mouse_final[2], | ||
| void * | ps ) |
Definition at line 2018 of file paint_image_2d.cc.
References BKE_brush_alpha_get(), BKE_colorband_evaluate(), BKE_image_acquire_ibuf(), BKE_image_get_tile_from_pos(), BKE_image_release_ibuf(), Brush::blend, BRUSH_GRADIENT_LINEAR, BRUSH_GRADIENT_RADIAL, ImBuf::byte_buffer, CTX_wm_space_image(), ImBufByteBuffer::data, ImBufFloatBuffer::data, dot_v2v2(), ED_imapaint_clear_partial_redraw(), ED_imapaint_dirty_region(), ImBuf::float_buffer, Brush::gradient, Brush::gradient_fill_mode, SpaceImage::image, image_init(), imapaint_image_update(), IMB_blend_color_byte(), IMB_blend_color_float(), len_squared_v2(), len_v2(), linearrgb_to_srgb_v3_v3(), mul_v3_fl(), NA_EDITED, NC_IMAGE, paint_2d_get_tile_iuser(), paint_2d_transform_mouse(), rgba_float_to_uchar(), sqrtf, sub_v2_v2(), sub_v2_v2v2(), WM_event_add_notifier(), ImBuf::x, and ImBuf::y.
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_gradient_fill().
| void * paint_2d_new_stroke | ( | bContext * | C, |
| wmOperator * | op, | ||
| int | mode ) |
Definition at line 1577 of file paint_image_2d.cc.
References BKE_image_acquire_ibuf(), BKE_image_has_packedfile(), BKE_image_release_ibuf(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_report(), Brush::blend, BLI_listbase_count(), Paint::brush, brush_painter_2d_new(), BRUSH_STROKE_INVERT, ImBuf::channels, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_image(), Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_SOFTEN, SpaceImage::iuser, MEM_freeN(), PAINT2D_TILE_READY, paint_2d_canvas_set(), paint_brush_init_tex(), paint_new_blur_kernel(), wmOperator::reports, RPT_WARNING, scene, tile, ARegion::v2d, ImBuf::x, ImBuf::y, and zero_v2().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_new_stroke().
| void paint_2d_redraw | ( | const bContext * | C, |
| void * | ps, | ||
| bool | final ) |
Definition at line 1668 of file paint_image_2d.cc.
References BKE_image_acquire_ibuf(), BKE_image_free_gputextures(), BKE_image_release_ibuf(), CTX_wm_region(), DEG_id_tag_update(), ED_imapaint_clear_partial_redraw(), ED_region_tag_redraw(), imapaint_image_update(), NA_EDITED, NA_PAINTING, NC_IMAGE, and WM_event_add_notifier().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_stroke_redraw().
| void paint_2d_stroke | ( | void * | ps, |
| const float | prev_mval[2], | ||
| const float | mval[2], | ||
| bool | eraser, | ||
| float | pressure, | ||
| float | distance, | ||
| float | base_size ) |
Definition at line 1482 of file paint_image_2d.cc.
References Brush::blend, BrushPainter::brush, brush_painter_2d_refresh_cache(), brush_painter_2d_require_imbuf(), BrushPainter::cache_invert, copy_v2_v2(), ImBufFloatBuffer::data, BrushPainter::firsttouch, ImBuf::float_buffer, FLT_MAX, IMB_BLEND_ERASE_ALPHA, IMB_COLORMANAGE_IS_DATA, is_inside_tile(), paint_2d_ensure_tile_canvas(), paint_2d_op(), paint_2d_uv_to_coord(), PAINT_TILE_X, PAINT_TILE_Y, size(), sub_v2_v2v2(), tile, and UI_view2d_region_to_view().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_stroke().
| void paint_2d_stroke_done | ( | void * | ps | ) |
Definition at line 1707 of file paint_image_2d.cc.
References brush_painter_cache_2d_free(), MEM_freeN(), paint_2d_canvas_free(), and paint_brush_exit_tex().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ImagePaintMode::paint_stroke_done().
| void paint_brush_color_get | ( | Scene * | scene, |
| const Paint * | paint, | ||
| Brush * | br, | ||
| bool | color_correction, | ||
| bool | invert, | ||
| float | distance, | ||
| float | pressure, | ||
| ColorManagedDisplay * | display, | ||
| float | r_color[3] ) |
Definition at line 365 of file paint_image.cc.
References BKE_brush_color_get(), BKE_brush_secondary_color_get(), BKE_colorband_evaluate(), BRUSH_GRADIENT_PRESSURE, BRUSH_GRADIENT_SPACING_CLAMP, BRUSH_GRADIENT_SPACING_REPEAT, BRUSH_USE_GRADIENT, copy_v3_v3(), Brush::flag, fmod(), Brush::gradient, Brush::gradient_spacing, Brush::gradient_stroke_mode, IMB_colormanagement_display_to_scene_linear_v3(), IMB_colormanagement_scene_linear_to_srgb_v3(), and invert().
Referenced by brush_painter_imbuf_new(), brush_painter_imbuf_update(), and paint_proj_stroke_ps().
| void paint_brush_exit_tex | ( | Brush * | brush | ) |
Definition at line 424 of file paint_image.cc.
References Brush::mask_mtex, Brush::mtex, Tex::nodetree, ntreeTexEndExecTree(), bNodeTree::runtime, and MTex::tex.
Referenced by paint_2d_stroke_done(), and paint_proj_stroke_done().
| void paint_brush_init_tex | ( | Brush * | brush | ) |
Definition at line 408 of file paint_image.cc.
References Brush::mask_mtex, Brush::mtex, Tex::nodetree, ntreeTexBeginExecTree(), and MTex::tex.
Referenced by paint_2d_new_stroke(), and paint_proj_new_stroke().
| float paint_calc_object_space_radius | ( | const ViewContext & | vc, |
| const blender::float3 & | center, | ||
| float | pixel_radius ) |
Definition at line 130 of file paint_utils.cc.
References ED_view3d_calc_zfac(), ED_view3d_win_to_delta(), fabsf, len_v3(), mat4_to_scale(), mul_v3_m4v3(), ViewContext::obact, ViewContext::region, and ViewContext::rv3d.
Referenced by blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::trim::calculate_depth(), blender::ed::sculpt_paint::paint_cursor_update_object_space_radius(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_radius(), blender::ed::sculpt_paint::paint_space_stroke_spacing(), blender::ed::sculpt_paint::sculpt_calc_radius(), SCULPT_cursor_geometry_info_update(), blender::ed::sculpt_paint::sculpt_update_cache_variants(), blender::ed::sculpt_paint::vwpaint::update_cache_variants(), and blender::ed::sculpt_paint::update_modal_transform().
| void paint_calc_redraw_planes | ( | float | planes[4][4], |
| const ARegion & | region, | ||
| const Object & | ob, | ||
| const rcti & | screen_rect ) |
Get four planes in object-space that describe the projection of screen_rect from screen into object-space (essentially converting a 2D screens-space bounding box into four 3D planes).
Definition at line 112 of file paint_utils.cc.
References ED_view3d_clipping_calc(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
| bool paint_convert_bb_to_rect | ( | rcti * | rect, |
| const float | bb_min[3], | ||
| const float | bb_max[3], | ||
| const ARegion & | region, | ||
| const RegionView3D & | rv3d, | ||
| const Object & | ob ) |
Convert the object-space axis-aligned bounding box (expressed as its minimum and maximum corners) into a screen-space rectangle, returns zero if the result is empty.
Definition at line 69 of file paint_utils.cc.
References BLI_rcti_do_minmax_v(), BLI_rcti_init_minmax(), ED_view3d_ob_project_mat_get(), ED_view3d_project_float_v2_m4(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by blender::ed::sculpt_paint::trim::calc_expand_factor(), and SCULPT_get_redraw_rect().
| void paint_cursor_delete_textures | ( | ) |
Delete overlay cursor textures to preserve memory and invalidate all overlay flags.
Definition at line 94 of file paint_cursor.cc.
References BKE_paint_invalidate_overlay_all(), cursor_snap, GPU_texture_free(), CursorSnapshot::overlay_texture, TexSnapshot::overlay_texture, primary_snap, and secondary_snap.
Referenced by ED_space_image_paint_update(), blender::ed::sculpt_paint::vwpaint::mode_exit_generic(), blender::ed::sculpt_paint::object_sculpt_mode_exit(), and toggle_paint_cursor().
| void paint_curve_mask_cache_free_data | ( | CurveMaskCache * | curve_mask_cache | ) |
Definition at line 152 of file paint_image_2d_curve_mask.cc.
References blender::ed::sculpt_paint::curve_mask_free(), and blender::ed::sculpt_paint::sampled_curve_free().
Referenced by brush_painter_cache_2d_free().
| void paint_curve_mask_cache_update | ( | CurveMaskCache * | curve_mask_cache, |
| const Brush * | brush, | ||
| int | diameter, | ||
| float | radius, | ||
| const float | cursor_position[2] ) |
Definition at line 158 of file paint_image_2d_curve_mask.cc.
References blender::ed::sculpt_paint::curve_mask_allocate(), blender::ed::sculpt_paint::curve_mask_free(), blender::ed::sculpt_paint::is_curve_mask_size_valid(), blender::ed::sculpt_paint::is_sampled_curve_valid(), blender::ed::sculpt_paint::update_curve_mask(), and blender::ed::sculpt_paint::update_sampled_curve().
Referenced by brush_painter_2d_refresh_cache().
| bool paint_curve_poll | ( | bContext * | C | ) |
Definition at line 45 of file paint_curve.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), BRUSH_CURVE, CTX_data_active_object(), CTX_wm_region_view3d(), CTX_wm_space_image(), Brush::flag, Object::mode, SpaceImage::mode, OB_MODE_ALL_PAINT, OB_MODE_SCULPT_CURVES, and SI_MODE_PAINT.
Referenced by ED_keymap_paint(), PAINTCURVE_OT_add_point(), PAINTCURVE_OT_cursor(), PAINTCURVE_OT_delete_point(), PAINTCURVE_OT_draw(), PAINTCURVE_OT_new(), PAINTCURVE_OT_select(), PAINTCURVE_OT_slide(), paintcurve_undosys_poll(), and paintcurve_undosys_step_encode().
| void paint_delete_blur_kernel | ( | BlurKernel * | kernel | ) |
Definition at line 261 of file paint_image.cc.
References MEM_freeN(), and BlurKernel::wdata.
Referenced by paint_2d_canvas_free(), paint_new_blur_kernel(), and project_paint_end().
| bool paint_get_tex_pixel | ( | const MTex * | mtex, |
| float | u, | ||
| float | v, | ||
| ImagePool * | pool, | ||
| int | thread, | ||
| float * | r_intensity, | ||
| float | r_rgba[4] ) |
Returns true when a color was sampled and false when a value was sampled.
Definition at line 149 of file paint_utils.cc.
References RE_texture_evaluate(), and v.
Referenced by blender::ed::sculpt_paint::load_tex_task_cb_ex(), and sculpt_apply_texture().
Initialize viewport pivot from evaluated bounding box center of ob.
Definition at line 846 of file paint_image.cc.
References UnifiedPaintSettings::average_stroke_accum, UnifiedPaintSettings::average_stroke_counter, BLI_assert_unreachable, copy_v3_v3(), UnifiedPaintSettings::last_stroke_valid, mul_m4_v3(), OB_CURVES, OB_GREASE_PENCIL, OB_MESH, paint_init_pivot_curves(), paint_init_pivot_grease_pencil(), paint_init_pivot_mesh(), and Object::type.
Referenced by blender::ed::sculpt_paint::curves_sculptmode_enter(), and ED_object_texture_paint_mode_enter_ex().
| BlurKernel * paint_new_blur_kernel | ( | Brush * | br, |
| bool | proj ) |
Paint blur kernels. Projective painting enforces use of a 2x2 kernel due to lagging. Can be extended to other blur kernels later,
Definition at line 192 of file paint_image.cc.
References Brush::blur_kernel_radius, Brush::blur_mode, exp(), KERNEL_BOX, KERNEL_GAUSSIAN, MEM_mallocN, paint_delete_blur_kernel(), BlurKernel::pixel_len, printf, BlurKernel::side, BlurKernel::side_squared, and BlurKernel::wdata.
Referenced by paint_2d_new_stroke(), and project_state_init().
| void PAINT_OT_add_simple_uvs | ( | wmOperatorType * | ot | ) |
Definition at line 7008 of file paint_image_proj.cc.
References add_simple_uvs_exec(), add_simple_uvs_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_add_texture_paint_slot | ( | wmOperatorType * | ot | ) |
Definition at line 6896 of file paint_image_proj.cc.
References CD_PROP_COLOR, wmOperatorType::description, ED_operator_object_active_editable_mesh(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, IMA_DEF_NAME, IMA_GENTYPE_BLANK, wmOperatorType::invoke, layer_type_items, MAX_NAME, wmOperatorType::name, OPTYPE_UNDO, ot, PAINT_CANVAS_SOURCE_COLOR_ATTRIBUTE, PAINT_CANVAS_SOURCE_IMAGE, wmOperatorType::poll, PROP_COLOR_GAMMA, PROP_HIDDEN, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_color(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_float_array_default(), RNA_def_property_subtype(), RNA_def_string(), rna_enum_color_attribute_domain_items, rna_enum_color_attribute_type_items, rna_enum_image_generated_type_items, wmOperatorType::srna, texture_paint_add_texture_paint_slot_exec(), texture_paint_add_texture_paint_slot_invoke(), texture_paint_add_texture_paint_slot_ui(), and wmOperatorType::ui.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_brush_colors_flip | ( | wmOperatorType * | ot | ) |
Definition at line 1079 of file paint_image.cc.
References brush_colors_flip_exec(), brush_colors_flip_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 601 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, face_select_all_exec(), facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_hide | ( | wmOperatorType * | ot | ) |
Definition at line 883 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, face_select_hide_exec(), facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 662 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_select_less_exec(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 556 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_select_linked_exec(), and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 577 of file paint_utils.cc.
References wmOperatorType::description, facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_select_linked_pick_invoke(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_loop | ( | wmOperatorType * | ot | ) |
Definition at line 690 of file paint_utils.cc.
References wmOperatorType::description, facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paintface_select_loop_invoke(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 631 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, facemask_paint_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_select_more_exec(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_face_vert_reveal | ( | wmOperatorType * | ot | ) |
Definition at line 949 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, face_vert_reveal_exec(), face_vert_reveal_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_grab_clone | ( | wmOperatorType * | ot | ) |
Definition at line 589 of file paint_image.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, grab_clone_cancel(), grab_clone_exec(), grab_clone_invoke(), grab_clone_modal(), wmOperatorType::idname, image_paint_2d_clone_poll(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_image_from_view | ( | wmOperatorType * | ot | ) |
Definition at line 6352 of file paint_image_proj.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_MAX, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, RNA_def_string_file_name(), wmOperatorType::srna, texture_paint_image_from_view_exec(), and texture_paint_image_from_view_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_image_paint | ( | wmOperatorType * | ot | ) |
Definition at line 534 of file paint_image_ops_paint.cc.
References wmOperatorType::cancel, wmOperatorType::description, ED_image_tools_paint_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, ot, paint_stroke_operator_properties(), and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_project_image | ( | wmOperatorType * | ot | ) |
Definition at line 6212 of file paint_image_proj.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), rna_enum_dummy_NULL_items, RNA_image_itemf(), wmOperatorType::srna, texture_paint_camera_project_exec(), and WM_enum_search_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_sample_color | ( | wmOperatorType * | ot | ) |
Definition at line 775 of file paint_image.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int_vector(), RNA_def_property_flag(), sample_color_exec(), sample_color_invoke(), sample_color_modal(), sample_color_poll(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_texture_paint_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1010 of file paint_image.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, texture_paint_toggle_exec(), and texture_paint_toggle_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 714 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vert_paint_poll(), vert_select_all_exec(), and WM_operator_properties_select_all().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_hide | ( | wmOperatorType * | ot | ) |
Definition at line 907 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, vert_paint_poll(), and vert_select_hide_exec().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 859 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paintvert_select_less_exec(), wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, and vert_paint_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 768 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paintvert_select_linked_exec(), wmOperatorType::poll, and vert_paint_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 790 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paintvert_select_linked_pick_invoke(), wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, and vert_paint_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 826 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paintvert_select_more_exec(), wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, and vert_paint_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vert_select_ungrouped | ( | wmOperatorType * | ot | ) |
Definition at line 744 of file paint_utils.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, vert_paint_poll(), and vert_select_ungrouped_exec().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_brightness_contrast | ( | wmOperatorType * | ot | ) |
Definition at line 378 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, min, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_property_ui_range(), wmOperatorType::srna, vertex_color_brightness_contrast_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_from_weight | ( | wmOperatorType * | ot | ) |
Definition at line 141 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_paint_from_weight_exec(), and vertex_weight_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_hsv | ( | wmOperatorType * | ot | ) |
Definition at line 436 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, vertex_color_hsv_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_invert | ( | wmOperatorType * | ot | ) |
Definition at line 476 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_color_invert_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_levels | ( | wmOperatorType * | ot | ) |
Definition at line 516 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, vertex_color_levels_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_set | ( | wmOperatorType * | ot | ) |
Definition at line 2311 of file paint_vertex.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, vertex_color_set_exec(), and vertex_paint_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_smooth | ( | wmOperatorType * | ot | ) |
Definition at line 235 of file paint_vertex_color_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_color_smooth_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_paint | ( | wmOperatorType * | ot | ) |
Definition at line 2104 of file paint_vertex.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), wmOperatorType::poll, vertex_paint_poll(), vpaint_cancel(), vpaint_exec(), vpaint_invoke(), and vpaint_modal().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_paint_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 841 of file paint_vertex.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, blender::ed::sculpt_paint::vwpaint::mode_toggle_poll_test(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and vpaint_mode_toggle_exec().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_from_bones | ( | wmOperatorType * | ot | ) |
Definition at line 125 of file paint_vertex_weight_ops.cc.
References ARM_GROUPS_AUTO, ARM_GROUPS_ENVELOPE, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, weight_from_bones_exec(), weight_from_bones_poll(), and WM_menu_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_gradient | ( | wmOperatorType * | ot | ) |
Definition at line 895 of file paint_vertex_weight_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_weight_gradient_exec(), paint_weight_gradient_invoke(), paint_weight_gradient_modal(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, weight_paint_poll_ignore_tool(), WM_CURSOR_EDIT, WM_gesture_straightline_cancel(), WM_operator_properties_gesture_straightline(), WPAINT_GRADIENT_TYPE_LINEAR, and WPAINT_GRADIENT_TYPE_RADIAL.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_paint | ( | wmOperatorType * | ot | ) |
Definition at line 1979 of file paint_weight.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, paint_stroke_operator_properties(), wmOperatorType::poll, weight_paint_poll(), wpaint_cancel(), wpaint_exec(), wpaint_invoke(), and wpaint_modal().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_paint_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1677 of file paint_weight.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, blender::ed::sculpt_paint::vwpaint::mode_toggle_poll_test(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and wpaint_mode_toggle_exec().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_sample | ( | wmOperatorType * | ot | ) |
Definition at line 274 of file paint_vertex_weight_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, wmOperatorType::poll, weight_paint_mode_poll(), and weight_sample_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_sample_group | ( | wmOperatorType * | ot | ) |
Definition at line 383 of file paint_vertex_weight_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, wmOperatorType::poll, weight_paint_mode_region_view3d_poll(), and weight_sample_group_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_set | ( | wmOperatorType * | ot | ) |
Definition at line 513 of file paint_vertex_weight_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, weight_paint_mode_poll(), and weight_paint_set_exec().
Referenced by ED_operatortypes_paint().
Definition at line 5946 of file paint_image_proj.cc.
References BKE_brush_size_get(), BKE_brush_size_set(), BKE_mesh_from_object(), BKE_paint_brush(), BLI_assert, ProjStrokeHandle::brush, BRUSH_STROKE_INVERT, ProjPaintState::brush_type, count_bits_i(), CTX_data_scene(), Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_CLONE, IMAGE_PAINT_BRUSH_TYPE_FILL, ProjStrokeHandle::is_clone_cursor_pick, ProjPaintState::is_shared_user, MEM_freeN(), ProjPaintState::mesh_eval, ProjPaintState::ob, ProjStrokeHandle::orig_brush_size, paint_brush_init_tex(), paint_proj_begin_clone(), PAINT_SYMM_X, PAINT_SYMM_Y, PAINT_SYMM_Z, pow_i(), PROJ_PAINT_STATE_SHARED_MEMCPY, PROJ_SRC_VIEW, PROJ_SRC_VIEW_FILL, project_image_refresh_tagged(), project_paint_begin(), project_state_init(), ProjStrokeHandle::ps_views, ProjStrokeHandle::ps_views_tot, ProjStrokeHandle::scene, scene, ProjPaintState::source, ProjStrokeHandle::symmetry_flags, view3d_operator_needs_opengl(), and z().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ProjectionPaintMode::paint_new_stroke().
| void paint_proj_redraw | ( | const bContext * | C, |
| void * | ps_handle_p, | ||
| bool | final ) |
Definition at line 6047 of file paint_image_proj.cc.
References CTX_wm_region(), ED_region_tag_redraw(), NA_EDITED, NC_IMAGE, ProjStrokeHandle::need_redraw, and WM_event_add_notifier().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ProjectionPaintMode::paint_stroke_redraw().
| void paint_proj_stroke | ( | const bContext * | C, |
| void * | ps_handle_p, | ||
| const float | prev_pos[2], | ||
| const float | pos[2], | ||
| bool | eraser, | ||
| float | pressure, | ||
| float | distance, | ||
| float | size ) |
Definition at line 5792 of file paint_image_proj.cc.
References CTX_data_ensure_evaluated_depsgraph(), CTX_wm_region(), CTX_wm_view3d(), DEG_id_tag_update(), depsgraph, ED_region_tag_redraw(), ED_view3d_autodist(), ED_view3d_depth_override(), ID_RECALC_SYNC_TO_EVAL, int, ProjStrokeHandle::is_clone_cursor_pick, paint_proj_stroke_ps(), pos, ProjStrokeHandle::ps_views, ProjStrokeHandle::ps_views_tot, ProjStrokeHandle::scene, V3D_DEPTH_NO_GPENCIL, and view3d_operator_needs_opengl().
Referenced by blender::ed::sculpt_paint::image::ops::paint::ProjectionPaintMode::paint_stroke().
| void paint_proj_stroke_done | ( | void * | ps_handle_p | ) |
Definition at line 6067 of file paint_image_proj.cc.
References BKE_brush_size_set(), ProjStrokeHandle::brush, ProjStrokeHandle::is_clone_cursor_pick, MEM_freeN(), ProjStrokeHandle::orig_brush_size, paint_brush_exit_tex(), PROJ_PAINT_STATE_SHARED_CLEAR, project_paint_end(), ProjStrokeHandle::ps_views, ProjStrokeHandle::ps_views_tot, and ProjStrokeHandle::scene.
Referenced by blender::ed::sculpt_paint::image::ops::paint::ProjectionPaintMode::paint_stroke_done().
| void paint_sample_color | ( | bContext * | C, |
| ARegion * | region, | ||
| int | x, | ||
| int | y, | ||
| bool | texpaint_proj, | ||
| bool | palette ) |
Used for both 3D view and image window.
Definition at line 306 of file paint_utils.cc.
References Palette::active_color, BKE_brush_color_set(), BKE_image_acquire_ibuf(), BKE_image_get_tile_from_pos(), BKE_image_release_ibuf(), BKE_imageuser_default(), BKE_object_get_evaluated_mesh(), BKE_object_material_get(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paint_palette(), BKE_paint_palette_set(), BKE_palette_add(), BKE_palette_color_add(), BKE_texpaint_slot_refresh_cache(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), BLI_listbase_count(), ImBuf::byte_buffer, ImagePaintSettings::canvas, CD_PROP_FLOAT2, CD_PROP_INT32, CLAMP, blender::math::clamp(), Palette::colors, copy_v3_v3(), Mesh::corner_data, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_image(), CTX_wm_view3d(), CTX_wm_window(), CustomData_get_layer_named(), CustomData_has_layer(), ImBufByteBuffer::data, ImBufFloatBuffer::data, DEG_get_evaluated_object(), depsgraph, ED_space_image_color_sample(), ED_view3d_viewcontext_init(), Mesh::face_data, ImBuf::float_buffer, ImageUser::framenr, TexPaintSlot::ima, IMA_SRC_TILED, IMAGEPAINT_MODE_MATERIAL, imapaint_pick_face(), imapaint_pick_uv(), ImagePaintSettings::interp, interp(), TexPaintSlot::interp, linearrgb_to_srgb_v3_v3(), ImagePaintSettings::mode, Material::paint_active_slot, rgb_uchar_to_float(), SHD_INTERP_CLOSEST, SHD_INTERP_LINEAR, straight_to_premul_v4(), Material::texpaintslot, ImageUser::tile, v, WM_window_pixels_read_sample(), ImBuf::x, x, and ImBuf::y.
Referenced by sample_color_exec(), sample_color_invoke(), and sample_color_modal().
| void paint_stroke_operator_properties | ( | wmOperatorType * | ot | ) |
Definition at line 174 of file paint_utils.cc.
References BRUSH_STROKE_ERASE, BRUSH_STROKE_INVERT, BRUSH_STROKE_NORMAL, BRUSH_STROKE_SMOOTH, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_collection_runtime(), RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by blender::ed::sculpt_paint::GREASE_PENCIL_OT_brush_stroke(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_sculpt_paint(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_vertex_brush_stroke(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_weight_brush_stroke(), PAINT_OT_image_paint(), PAINT_OT_vertex_paint(), PAINT_OT_weight_paint(), blender::ed::sculpt_paint::SCULPT_CURVES_OT_brush_stroke(), and blender::ed::sculpt_paint::SCULPT_OT_brush_stroke().
| bool paint_use_opacity_masking | ( | Brush * | brush | ) |
Definition at line 348 of file paint_image.cc.
References BRUSH_AIRBRUSH, BRUSH_ANCHORED, BRUSH_DRAG_DOT, MTex::brush_map_mode, BRUSH_USE_GRADIENT, ELEM, Brush::flag, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_FILL, IMAGE_PAINT_BRUSH_TYPE_SMEAR, IMAGE_PAINT_BRUSH_TYPE_SOFTEN, Brush::mtex, MTEX_MAP_MODE_3D, MTEX_MAP_MODE_STENCIL, MTEX_MAP_MODE_TILED, and MTex::tex.
Referenced by paint_2d_canvas_set(), and project_state_init().
| void PAINTCURVE_OT_add_point | ( | wmOperatorType * | ot | ) |
Definition at line 271 of file paint_curve.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_curve_poll(), paintcurve_add_point_exec(), paintcurve_add_point_invoke(), wmOperatorType::poll, RNA_def_int_vector(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 758 of file paint_curve.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, paint_curve_poll(), paintcurve_cursor_invoke(), and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_delete_point | ( | wmOperatorType * | ot | ) |
Definition at line 365 of file paint_curve.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, paint_curve_poll(), paintcurve_delete_point_exec(), and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_draw | ( | wmOperatorType * | ot | ) |
Definition at line 715 of file paint_curve.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, paint_curve_poll(), paintcurve_draw_exec(), and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 172 of file paint_curve.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_curve_poll(), paintcurve_new_exec(), and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_select | ( | wmOperatorType * | ot | ) |
Definition at line 509 of file paint_curve.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_curve_poll(), paintcurve_select_point_exec(), paintcurve_select_point_invoke(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int_vector(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINTCURVE_OT_slide | ( | wmOperatorType * | ot | ) |
Definition at line 658 of file paint_curve.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, paint_curve_poll(), paintcurve_slide_invoke(), paintcurve_slide_modal(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void SCULPT_OT_uv_sculpt_grab | ( | wmOperatorType * | ot | ) |
Definition at line 978 of file sculpt_uv.cc.
References wmOperatorType::description, ED_operator_uvedit_space_image(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, register_common_props(), uv_sculpt_stroke_invoke(), and uv_sculpt_stroke_modal().
Referenced by ED_operatortypes_paint().
| void SCULPT_OT_uv_sculpt_pinch | ( | wmOperatorType * | ot | ) |
Definition at line 1030 of file sculpt_uv.cc.
References wmOperatorType::description, ED_operator_uvedit_space_image(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, register_common_props(), uv_sculpt_stroke_invoke(), and uv_sculpt_stroke_modal().
Referenced by ED_operatortypes_paint().
| void SCULPT_OT_uv_sculpt_relax | ( | wmOperatorType * | ot | ) |
Definition at line 993 of file sculpt_uv.cc.
References CURVE_PRESET_SMOOTH, wmOperatorType::description, ED_operator_uvedit_space_image(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, register_common_props(), RNA_def_enum(), wmOperatorType::srna, UV_SCULPT_BRUSH_TYPE_RELAX_COTAN, UV_SCULPT_BRUSH_TYPE_RELAX_HC, UV_SCULPT_BRUSH_TYPE_RELAX_LAPLACIAN, uv_sculpt_stroke_invoke(), and uv_sculpt_stroke_modal().
Referenced by ED_operatortypes_paint().
| void set_imapaintpartial | ( | ImagePaintPartialRedraw * | ippr | ) |
Definition at line 89 of file paint_image.cc.
References imapaintpartial.
Referenced by project_image_refresh_tagged().
| bool vert_paint_poll | ( | bContext * | C | ) |
Definition at line 1139 of file paint_image.cc.
References BKE_paint_select_vert_test(), and CTX_data_active_object().
Referenced by ED_keymap_paint(), PAINT_OT_vert_select_all(), PAINT_OT_vert_select_hide(), PAINT_OT_vert_select_less(), PAINT_OT_vert_select_linked(), PAINT_OT_vert_select_linked_pick(), PAINT_OT_vert_select_more(), and PAINT_OT_vert_select_ungrouped().
| bool vertex_paint_mode_poll | ( | bContext * | C | ) |
Returns true if vertex paint mode is active.
Definition at line 605 of file paint_vertex.cc.
References BKE_color_attribute_supported(), CTX_data_active_object(), Object::data, Object::mode, and OB_MODE_VERTEX_PAINT.
Referenced by ED_keymap_paint(), PAINT_OT_vertex_color_brightness_contrast(), PAINT_OT_vertex_color_hsv(), PAINT_OT_vertex_color_invert(), PAINT_OT_vertex_color_levels(), PAINT_OT_vertex_color_smooth(), and vertex_paint_poll_ex().
| bool vertex_paint_poll | ( | bContext * | C | ) |
Definition at line 640 of file paint_vertex.cc.
References vertex_paint_poll_ex().
Referenced by blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), PAINT_OT_vertex_color_set(), and PAINT_OT_vertex_paint().
| bool vertex_paint_poll_ignore_tool | ( | bContext * | C | ) |
Definition at line 645 of file paint_vertex.cc.
References vertex_paint_poll_ex().
Referenced by sample_color_poll().
| bool weight_paint_mode_poll | ( | bContext * | C | ) |
Definition at line 1585 of file paint_weight.cc.
References CTX_data_active_object(), Object::data, Object::mode, and OB_MODE_WEIGHT_PAINT.
Referenced by ED_keymap_paint(), PAINT_OT_weight_sample(), PAINT_OT_weight_set(), and weight_paint_mode_region_view3d_poll().
| bool weight_paint_mode_region_view3d_poll | ( | bContext * | C | ) |
Definition at line 1592 of file paint_weight.cc.
References ED_operator_region_view3d_active(), and weight_paint_mode_poll().
Referenced by PAINT_OT_weight_sample_group().
| bool weight_paint_poll | ( | bContext * | C | ) |
Definition at line 1616 of file paint_weight.cc.
References weight_paint_poll_ex().
Referenced by blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), and PAINT_OT_weight_paint().
| bool weight_paint_poll_ignore_tool | ( | bContext * | C | ) |
Definition at line 1621 of file paint_weight.cc.
References weight_paint_poll_ex().
Referenced by PAINT_OT_weight_gradient().