|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | CoNo |
| struct | WPaintVGroupIndex |
| struct | ImagePaintPartialRedraw |
| struct | BlurKernel |
Macros | |
| #define | PAINT_CURVE_NUM_SEGMENTS 40 |
Typedefs | |
| typedef struct CoNo | CoNo |
| typedef bool(* | StrokeGetLocation) (struct bContext *C, float location[3], const float mouse[2]) |
| typedef bool(* | StrokeTestStart) (struct bContext *C, struct wmOperator *op, const float mouse[2]) |
| typedef void(* | StrokeUpdateStep) (struct bContext *C, struct PaintStroke *stroke, struct PointerRNA *itemptr) |
| typedef void(* | StrokeRedraw) (const struct bContext *C, struct PaintStroke *stroke, bool final) |
| typedef void(* | StrokeDone) (const struct bContext *C, struct PaintStroke *stroke) |
| typedef void(* | VPaintTransform_Callback) (const float col[3], const void *user_data, float r_col[3]) |
| typedef struct ImagePaintPartialRedraw | ImagePaintPartialRedraw |
| typedef enum BrushStrokeMode | BrushStrokeMode |
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 } |
| enum | PartialVisAction { PARTIALVIS_HIDE , PARTIALVIS_SHOW } |
| enum | PartialVisArea { PARTIALVIS_INSIDE , PARTIALVIS_OUTSIDE , PARTIALVIS_ALL , PARTIALVIS_MASKED } |
| enum | PaintMaskFloodMode { PAINT_MASK_FLOOD_VALUE , PAINT_MASK_FLOOD_VALUE_INVERSE , PAINT_MASK_INVERT } |
| #define PAINT_CURVE_NUM_SEGMENTS 40 |
Definition at line 368 of file paint_intern.h.
| typedef enum BrushStrokeMode BrushStrokeMode |
| typedef struct ImagePaintPartialRedraw ImagePaintPartialRedraw |
| typedef void(* StrokeDone) (const struct bContext *C, struct PaintStroke *stroke) |
Definition at line 61 of file paint_intern.h.
Definition at line 55 of file paint_intern.h.
| typedef void(* StrokeRedraw) (const struct bContext *C, struct PaintStroke *stroke, bool final) |
Definition at line 60 of file paint_intern.h.
| typedef bool(* StrokeTestStart) (struct bContext *C, struct wmOperator *op, const float mouse[2]) |
Definition at line 56 of file paint_intern.h.
| typedef void(* StrokeUpdateStep) (struct bContext *C, struct PaintStroke *stroke, struct PointerRNA *itemptr) |
Definition at line 57 of file paint_intern.h.
| typedef void(* VPaintTransform_Callback) (const float col[3], const void *user_data, float r_col[3]) |
Definition at line 102 of file paint_intern.h.
| anonymous enum |
| Enumerator | |
|---|---|
| WPAINT_GRADIENT_TYPE_LINEAR | |
| WPAINT_GRADIENT_TYPE_RADIAL | |
Definition at line 110 of file paint_intern.h.
| enum BrushStrokeMode |
| Enumerator | |
|---|---|
| BRUSH_STROKE_NORMAL | |
| BRUSH_STROKE_INVERT | |
| BRUSH_STROKE_SMOOTH | |
Definition at line 310 of file paint_intern.h.
| enum eWPaintFlag |
| Enumerator | |
|---|---|
| WPAINT_ENSURE_MIRROR | |
Definition at line 136 of file paint_intern.h.
| enum PaintMaskFloodMode |
| Enumerator | |
|---|---|
| PAINT_MASK_FLOOD_VALUE | |
| PAINT_MASK_FLOOD_VALUE_INVERSE | |
| PAINT_MASK_INVERT | |
Definition at line 334 of file paint_intern.h.
| enum PartialVisAction |
| Enumerator | |
|---|---|
| PARTIALVIS_HIDE | |
| PARTIALVIS_SHOW | |
Definition at line 318 of file paint_intern.h.
| enum PartialVisArea |
| Enumerator | |
|---|---|
| PARTIALVIS_INSIDE | |
| PARTIALVIS_OUTSIDE | |
| PARTIALVIS_ALL | |
| PARTIALVIS_MASKED | |
Definition at line 323 of file paint_intern.h.
| void BRUSH_OT_curve_preset | ( | struct wmOperatorType * | ot | ) |
Definition at line 636 of file paint_utils.c.
References BLT_I18NCONTEXT_ID_CURVE, brush_curve_preset_exec(), brush_curve_preset_poll(), CURVE_PRESET_LINE, CURVE_PRESET_MAX, CURVE_PRESET_ROOT, CURVE_PRESET_ROUND, CURVE_PRESET_SHARP, CURVE_PRESET_SMOOTH, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, NULL, ot, wmOperatorType::poll, RNA_def_enum(), RNA_def_property_translation_context(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| unsigned int ED_vpaint_blend_tool | ( | const int | tool, |
| const uint | col, | ||
| const uint | paintcol, | ||
| const int | alpha_i | ||
| ) |
Definition at line 616 of file paint_vertex_color_utils.c.
References BLI_assert, col, IMB_BLEND_ADD, IMB_BLEND_ADD_ALPHA, IMB_BLEND_COLORDODGE, IMB_BLEND_DARKEN, IMB_BLEND_DIFFERENCE, IMB_BLEND_ERASE_ALPHA, IMB_BLEND_EXCLUSION, IMB_BLEND_HARDLIGHT, IMB_BLEND_HUE, IMB_BLEND_LIGHTEN, IMB_BLEND_LUMINOSITY, IMB_BLEND_MIX, IMB_BLEND_MUL, IMB_BLEND_OVERLAY, IMB_BLEND_SATURATION, IMB_BLEND_SCREEN, IMB_BLEND_SOFTLIGHT, IMB_BLEND_SUB, mcol_add(), mcol_alpha_add(), mcol_alpha_sub(), mcol_blend(), mcol_colordodge(), mcol_darken(), mcol_difference(), mcol_exclusion(), mcol_hardlight(), mcol_hue(), mcol_lighten(), mcol_luminosity(), mcol_mul(), mcol_overlay(), mcol_saturation(), mcol_screen(), mcol_softlight(), and mcol_sub().
Referenced by vpaint_blend().
| bool ED_vpaint_color_transform | ( | struct Object * | ob, |
| VPaintTransform_Callback | vpaint_tx_fn, | ||
| const void * | user_data | ||
| ) |
Apply callback to each vertex of the active vertex color layer.
Definition at line 47 of file paint_vertex_color_utils.c.
References BKE_mesh_from_object(), BKE_mesh_tessface_clear(), DEG_id_tag_update(), ED_mesh_color_ensure(), Mesh::editflag, MVert::flag, MPoly::flag, Mesh::id, MPoly::loopstart, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, ME_FACE_SEL, Mesh::mloop, Mesh::mloopcol, Mesh::mpoly, Mesh::mvert, NULL, MLoopCol::r, rgb_float_to_uchar(), rgb_uchar_to_float(), SELECT, Mesh::totpoly, user_data, and MLoop::v.
Referenced by vertex_color_brightness_contrast_exec(), vertex_color_hsv_exec(), vertex_color_invert_exec(), and vertex_color_levels_exec().
| struct VertProjHandle* ED_vpaint_proj_handle_create | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene, | ||
| struct Object * | ob, | ||
| struct CoNo ** | r_vcosnos | ||
| ) |
Definition at line 185 of file paint_vertex_proj.c.
References Object::data, depsgraph, VertProjHandle::dists_sq, MEM_mallocN, NULL, VertProjHandle::ob, scene, VertProjHandle::scene, Mesh::totvert, VertProjHandle::use_update, VertProjHandle::vcosnos, and vpaint_proj_dm_map_cosnos_init().
Referenced by vpaint_stroke_test_start().
| void ED_vpaint_proj_handle_free | ( | struct VertProjHandle * | vp_handle | ) |
Definition at line 227 of file paint_vertex_proj.c.
References VertProjHandle::dists_sq, MEM_freeN, VertProjHandle::use_update, and VertProjHandle::vcosnos.
Referenced by vpaint_stroke_done().
| void ED_vpaint_proj_handle_update | ( | struct Depsgraph * | depsgraph, |
| struct VertProjHandle * | vp_handle, | ||
| struct ARegion * | region, | ||
| const float | mval_fl[2] | ||
| ) |
Definition at line 217 of file paint_vertex_proj.c.
References depsgraph, VertProjHandle::use_update, and vpaint_proj_dm_map_cosnos_update().
| float ED_wpaint_blend_tool | ( | const int | tool, |
| const float | weight, | ||
| const float | paintval, | ||
| const float | alpha | ||
| ) |
| weight | Typically the current weight: MDeformWeight.weight |
Definition at line 284 of file paint_vertex_weight_utils.c.
References alpha, 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 | ( | struct bContext * | C, |
| struct ReportList * | reports, | ||
| enum eWPaintFlag | flag, | ||
| struct WPaintVGroupIndex * | vgroup_index | ||
| ) |
Definition at line 55 of file paint_vertex_weight_utils.c.
References Object::actdef, 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_is_in_editmode(), BKE_pose_channel_find_name(), BKE_report(), BLI_assert, BLI_findindex(), BLI_listbase_is_empty(), C, CTX_data_active_object(), CTX_data_main(), Object::data, Object::defbase, DEG_relations_tag_update(), Mesh::dvert, ED_wpaint_mirror_vgroup_ensure(), Mesh::id, ME_USING_MIRROR_X_VERTEX_GROUPS, WPaintVGroupIndex::mirror, bPoseChannel::name, Bone::name, NC_GEOM, ND_DATA, NULL, Object::pose, RPT_WARNING, Mesh::totpoly, 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().
| int ED_wpaint_mirror_vgroup_ensure | ( | struct Object * | ob, |
| const int | vgroup_active | ||
| ) |
Definition at line 134 of file paint_vertex_weight_utils.c.
References BKE_object_defgroup_name_index(), BKE_object_defgroup_new(), BLI_findlink(), BLI_listbase_count(), BLI_string_flip_side_name(), Object::defbase, MAXBONENAME, and bDeformGroup::name.
Referenced by ED_wpaint_ensure_data(), and weight_paint_set().
| bool facemask_paint_poll | ( | struct bContext * | C | ) |
Definition at line 1365 of file paint_image.c.
References BKE_paint_select_face_test(), C, and CTX_data_active_object().
Referenced by ED_keymap_paint(), PAINT_OT_face_select_all(), PAINT_OT_face_select_hide(), PAINT_OT_face_select_linked(), PAINT_OT_face_select_linked_pick(), and PAINT_OT_face_select_reveal().
| void flip_qt_qt | ( | float | out[3], |
| const float | in[3], | ||
| const enum ePaintSymmetryFlags | symm | ||
| ) |
Referenced by flip_qt(), and SCULPT_cache_calc_brushdata_symm().
| void flip_v3_v3 | ( | float | out[3], |
| const float | in[3], | ||
| const enum ePaintSymmetryFlags | symm | ||
| ) |
Definition at line 407 of file paint_utils.c.
References PAINT_SYMM_X, PAINT_SYMM_Y, and PAINT_SYMM_Z.
Referenced by calc_overlap(), cursor_draw_point_with_symmetry(), flip_v3(), SCULPT_brush_strength_factor(), sculpt_brush_test_clipping(), SCULPT_cache_calc_brushdata_symm(), SCULPT_do_boundary_brush(), sculpt_expand_get_vertex_index_for_symmetry_pass(), SCULPT_floodfill_add_active(), SCULPT_floodfill_add_initial_with_symmetry(), SCULPT_geodesic_from_vertex_and_symm(), sculpt_gesture_flip_for_symmetry_pass(), sculpt_gesture_is_effected_lasso(), sculpt_gesture_trim_apply_for_symmetry_pass(), SCULPT_is_vertex_inside_brush_radius_symm(), and sculpt_pose_brush_is_vertex_inside_brush_radius().
Definition at line 768 of file paint_image.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_region(), ED_space_image_get_zoom(), SpaceImage::mode, SI_MODE_PAINT, and SPACE_IMAGE.
Referenced by paint_cursor_context_init(), and paint_stroke_new().
| struct ImagePaintPartialRedraw* get_imapaintpartial | ( | void | ) |
Definition at line 92 of file paint_image.c.
References imapaintpartial.
| bool image_texture_paint_poll | ( | struct bContext * | C | ) |
Definition at line 1360 of file paint_image.c.
References C, image_paint_poll(), and texture_paint_poll().
Referenced by ED_keymap_paint().
| void imapaint_image_update | ( | struct SpaceImage * | sima, |
| struct Image * | image, | ||
| struct ImBuf * | ibuf, | ||
| struct ImageUser * | iuser, | ||
| short | texpaint | ||
| ) |
Definition at line 167 of file paint_image.c.
References BKE_image_update_gputexture(), IB_MIPMAP_INVALID, imapaintpartial, IMB_partial_display_buffer_update_delayed(), SpaceImage::lock, ImBuf::mipmap, ImBuf::userflags, w(), ImagePaintPartialRedraw::x1, ImagePaintPartialRedraw::x2, ImagePaintPartialRedraw::y1, and ImagePaintPartialRedraw::y2.
Referenced by paint_2d_bucket_fill(), paint_2d_gradient_fill(), paint_2d_redraw(), and project_image_refresh_tagged().
| void imapaint_region_tiles | ( | struct ImBuf * | ibuf, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int * | tx, | ||
| int * | ty, | ||
| int * | tw, | ||
| int * | th | ||
| ) |
Definition at line 109 of file paint_image.c.
References ED_IMAGE_UNDO_TILE_BITS, IMB_rectclip(), NULL, w(), x, and y.
Referenced by ED_imapaint_dirty_region(), and paint_2d_op().
| bool mask_paint_poll | ( | struct bContext * | C | ) |
Definition at line 1375 of file paint_image.c.
References BKE_paint_select_elem_test(), C, and CTX_data_active_object().
Referenced by PAINT_OT_weight_set().
| void paint_2d_bucket_fill | ( | const struct bContext * | C, |
| const float | color[3], | ||
| struct Brush * | br, | ||
| const float | mouse_init[2], | ||
| const float | mouse_final[2], | ||
| void * | ps | ||
| ) |
| void paint_2d_gradient_fill | ( | const struct bContext * | C, |
| struct Brush * | br, | ||
| const float | mouse_init[2], | ||
| const float | mouse_final[2], | ||
| void * | ps | ||
| ) |
| void* paint_2d_new_stroke | ( | struct bContext * | C, |
| struct wmOperator * | op, | ||
| int | mode | ||
| ) |
Definition at line 1658 of file paint_image_2d.c.
References BKE_image_acquire_ibuf(), BKE_image_has_packedfile(), BKE_image_release_ibuf(), BKE_paint_brush(), BKE_report(), ImagePaintState::blend, Brush::blend, BLI_listbase_count(), ImagePaintState::blurkernel, ImagePaintState::brush, brush_painter_2d_new(), BRUSH_STROKE_INVERT, C, ImagePaintTile::canvas, ImBuf::channels, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_image(), ListBase::first, ImagePaintState::image, SpaceImage::image, Brush::imagepaint_tool, ToolSettings::imapaint, ImagePaintTile::iuser, SpaceImage::iuser, MEM_callocN, MEM_freeN, NULL, ImagePaintState::num_tiles, ImageUser::ok, ImagePaintSettings::paint, PAINT2D_TILE_READY, paint_2d_canvas_set(), paint_brush_init_tex(), paint_new_blur_kernel(), PAINT_TOOL_SOFTEN, ImagePaintState::painter, ImagePaintTile::radius_fac, wmOperator::reports, RPT_WARNING, Image::rr, scene, ImagePaintState::scene, ImagePaintState::sima, ImagePaintTile::size, ImagePaintTile::state, ImagePaintState::symmetry, Paint::symmetry_flags, ImageUser::tile, ImagePaintState::tiles, Image::tiles, ImagePaintState::tool, Scene::toolsettings, ImagePaintTile::uv_origin, ImagePaintState::v2d, ARegion::v2d, ImBuf::x, ImBuf::y, and zero_v2().
Referenced by texture_paint_init().
| void paint_2d_redraw | ( | const struct bContext * | C, |
| void * | ps, | ||
| bool | final | ||
| ) |
| void paint_2d_stroke | ( | void * | ps, |
| const float | prev_mval[2], | ||
| const float | mval[2], | ||
| const bool | eraser, | ||
| float | pressure, | ||
| float | distance, | ||
| float | size | ||
| ) |
Definition at line 1568 of file paint_image_2d.c.
References ImagePaintState::blend, Brush::blend, BrushPainter::brush, ImagePaintState::brush, brush_painter_2d_refresh_cache(), brush_painter_2d_require_imbuf(), BrushPainter::cache_invert, ImagePaintTile::canvas, ImBuf::colormanage_flag, copy_v2_v2(), distance(), BrushPainter::firsttouch, IMB_BLEND_ERASE_ALPHA, IMB_COLORMANAGE_IS_DATA, is_inside_tile(), ImagePaintTile::last_paintpos, ImagePaintTile::need_redraw, NULL, ImagePaintState::num_tiles, paint_2d_ensure_tile_canvas(), paint_2d_op(), paint_2d_uv_to_coord(), PAINT_TILE_X, PAINT_TILE_Y, ImagePaintState::painter, ImagePaintTile::radius_fac, ImBuf::rect_float, size(), ImagePaintTile::size, ImagePaintTile::start_paintpos, sub_v2_v2v2(), ImagePaintState::symmetry, ImagePaintState::tiles, UI_view2d_region_to_view(), ImagePaintTile::uv_origin, and ImagePaintState::v2d.
Referenced by paint_stroke_update_step().
| void paint_2d_stroke_done | ( | void * | ps | ) |
Definition at line 1786 of file paint_image_2d.c.
References ImagePaintState::brush, brush_painter_cache_2d_free(), ImagePaintTile::cache, MEM_freeN, ImagePaintState::num_tiles, paint_2d_canvas_free(), paint_brush_exit_tex(), ImagePaintState::painter, and ImagePaintState::tiles.
Referenced by paint_stroke_done().
| void paint_brush_color_get | ( | struct Scene * | scene, |
| struct Brush * | br, | ||
| bool | color_correction, | ||
| bool | invert, | ||
| float | distance, | ||
| float | pressure, | ||
| float | color[3], | ||
| struct ColorManagedDisplay * | display | ||
| ) |
Definition at line 365 of file paint_image.c.
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(), distance(), Brush::flag, Brush::gradient, Brush::gradient_spacing, Brush::gradient_stroke_mode, IMB_colormanagement_display_to_scene_linear_v3(), IMB_colormanagement_scene_linear_to_srgb_v3(), invert(), and scene.
Referenced by brush_painter_imbuf_new(), brush_painter_imbuf_update(), and paint_proj_stroke_ps().
| void paint_brush_exit_tex | ( | struct Brush * | brush | ) |
Definition at line 425 of file paint_image.c.
References bNodeTree::execdata, Brush::mask_mtex, Brush::mtex, Tex::nodetree, ntreeTexEndExecTree(), and MTex::tex.
Referenced by paint_2d_stroke_done(), and paint_proj_stroke_done().
| void paint_brush_init_tex | ( | struct Brush * | brush | ) |
Definition at line 409 of file paint_image.c.
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 | ( | struct ViewContext * | vc, |
| const float | center[3], | ||
| float | pixel_radius | ||
| ) |
Definition at line 151 of file paint_utils.c.
References center, ED_view3d_calc_zfac(), ED_view3d_win_to_delta(), fabsf, len_v3(), mat4_to_scale(), mul_v3_m4v3(), NULL, ViewContext::obact, Object::obmat, ViewContext::region, and ViewContext::rv3d.
Referenced by paint_cursor_update_object_space_radius(), paint_cursor_update_unprojected_radius(), paint_space_stroke_spacing(), SCULPT_cursor_geometry_info_update(), sculpt_update_cache_variants(), and vwpaint_update_cache_variants().
| void paint_calc_redraw_planes | ( | float | planes[4][4], |
| const struct ARegion * | region, | ||
| struct Object * | ob, | ||
| const struct rcti * | screen_rect | ||
| ) |
Referenced by ED_sculpt_redraw_planes_get().
| bool paint_convert_bb_to_rect | ( | struct rcti * | rect, |
| const float | bb_min[3], | ||
| const float | bb_max[3], | ||
| const struct ARegion * | region, | ||
| struct RegionView3D * | rv3d, | ||
| struct Object * | ob | ||
| ) |
Referenced by SCULPT_get_redraw_rect().
| void paint_cursor_delete_textures | ( | void | ) |
Definition at line 102 of file paint_cursor.c.
References BKE_paint_invalidate_overlay_all(), cursor_snap, GPU_texture_free(), TexSnapshot::overlay_texture, CursorSnapshot::overlay_texture, primary_snap, and secondary_snap.
Referenced by ED_object_sculptmode_exit_ex(), ED_space_image_paint_update(), ed_vwpaintmode_exit_generic(), and toggle_paint_cursor().
| bool paint_curve_poll | ( | struct bContext * | C | ) |
Definition at line 54 of file paint_curve.c.
References BKE_paint_get_active_from_context(), Paint::brush, BRUSH_CURVE, C, CTX_data_active_object(), CTX_wm_region_view3d(), CTX_wm_space_image(), Brush::flag, Object::mode, SpaceImage::mode, OB_MODE_ALL_PAINT, 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 257 of file paint_image.c.
References MEM_freeN, and BlurKernel::wdata.
Referenced by paint_2d_canvas_free(), and project_paint_end().
| float paint_get_tex_pixel | ( | const struct MTex * | mtex, |
| float | u, | ||
| float | v, | ||
| struct ImagePool * | pool, | ||
| int | thread | ||
| ) |
Referenced by load_tex_task_cb_ex(), and SCULPT_brush_strength_factor().
| void paint_get_tex_pixel_col | ( | const struct MTex * | mtex, |
| float | u, | ||
| float | v, | ||
| float | rgba[4], | ||
| struct ImagePool * | pool, | ||
| int | thread, | ||
| bool | convert, | ||
| struct ColorSpace * | colorspace | ||
| ) |
Referenced by load_tex_task_cb_ex().
| BlurKernel* paint_new_blur_kernel | ( | struct Brush * | br, |
| bool | proj | ||
| ) |
Definition at line 191 of file paint_image.c.
References Brush::blur_kernel_radius, Brush::blur_mode, KDL::exp(), KERNEL_BOX, KERNEL_GAUSSIAN, MEM_freeN, MEM_mallocN, NULL, BlurKernel::pixel_len, BlurKernel::side, BlurKernel::side_squared, type, and BlurKernel::wdata.
Referenced by paint_2d_new_stroke(), and project_state_init().
| void PAINT_OT_add_simple_uvs | ( | struct wmOperatorType * | ot | ) |
Definition at line 6786 of file paint_image_proj.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 6718 of file paint_image_proj.c.
References wmOperatorType::description, ED_operator_object_active_editable_mesh(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, IMA_DEF_NAME, IMA_GENTYPE_BLANK, wmOperatorType::invoke, layer_type_items, MAX_ID_NAME, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_COLOR_GAMMA, PROP_HIDDEN, PROP_PIXEL, 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_image_generated_type_items, wmOperatorType::srna, texture_paint_add_texture_paint_slot_exec(), and texture_paint_add_texture_paint_slot_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_brush_colors_flip | ( | struct wmOperatorType * | ot | ) |
Definition at line 1313 of file paint_image.c.
References brush_colors_flip_exec(), brush_colors_flip_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_face_select_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 713 of file paint_utils.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 792 of file paint_utils.c.
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_linked | ( | struct wmOperatorType * | ot | ) |
Definition at line 668 of file paint_utils.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 689 of file paint_utils.c.
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_reveal | ( | struct wmOperatorType * | ot | ) |
Definition at line 816 of file paint_utils.c.
References wmOperatorType::description, wmOperatorType::exec, face_select_reveal_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_grab_clone | ( | struct wmOperatorType * | ot | ) |
Definition at line 913 of file paint_image.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, 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, NULL, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_hide_show | ( | struct wmOperatorType * | ot | ) |
Definition at line 421 of file paint_hide.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, hide_show_exec(), hide_show_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_REGISTER, ot, PARTIALVIS_ALL, PARTIALVIS_HIDE, PARTIALVIS_INSIDE, PARTIALVIS_MASKED, PARTIALVIS_OUTSIDE, PARTIALVIS_SHOW, wmOperatorType::poll, RNA_def_enum(), SCULPT_mode_poll_view3d(), wmOperatorType::srna, WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_image_from_view | ( | struct wmOperatorType * | ot | ) |
Definition at line 6302 of file paint_image_proj.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_MAX, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, 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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 748 of file paint_image.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, image_paint_poll(), wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, ot, paint_exec(), paint_invoke(), paint_stroke_cancel(), paint_stroke_modal(), paint_stroke_operator_properties(), and wmOperatorType::poll.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_mask_box_gesture | ( | struct wmOperatorType * | ot | ) |
Definition at line 1664 of file paint_mask.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, ot, paint_mask_gesture_box_exec(), paint_mask_gesture_operator_properties(), wmOperatorType::poll, sculpt_gesture_operator_properties(), SCULPT_mode_poll_view3d(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_mask_flood_fill | ( | struct wmOperatorType * | ot | ) |
Definition at line 203 of file paint_mask.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_flood_fill_exec(), mode_items, wmOperatorType::name, NULL, OPTYPE_REGISTER, ot, PAINT_MASK_FLOOD_VALUE, wmOperatorType::poll, RNA_def_enum(), RNA_def_float(), SCULPT_mode_poll(), and wmOperatorType::srna.
Referenced by ED_operatortypes_paint().
| void PAINT_OT_mask_lasso_gesture | ( | struct wmOperatorType * | ot | ) |
Definition at line 1643 of file paint_mask.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, ot, paint_mask_gesture_lasso_exec(), paint_mask_gesture_operator_properties(), wmOperatorType::poll, sculpt_gesture_operator_properties(), SCULPT_mode_poll_view3d(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), and WM_operator_properties_gesture_lasso().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_mask_line_gesture | ( | struct wmOperatorType * | ot | ) |
Definition at line 1685 of file paint_mask.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, ot, paint_mask_gesture_line_exec(), paint_mask_gesture_operator_properties(), wmOperatorType::poll, sculpt_gesture_operator_properties(), SCULPT_mode_poll_view3d(), WM_CURSOR_EDIT, WM_gesture_straightline_active_side_invoke(), WM_gesture_straightline_oneshot_modal(), and WM_operator_properties_gesture_straightline().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_project_image | ( | struct wmOperatorType * | ot | ) |
Definition at line 6158 of file paint_image_proj.c.
References wmOperatorType::description, DummyRNA_NULL_items, 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_image_itemf(), wmOperatorType::srna, texture_paint_camera_project_exec(), and WM_enum_search_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_sample_color | ( | struct wmOperatorType * | ot | ) |
Definition at line 1094 of file paint_image.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, 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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 1256 of file paint_image.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 736 of file paint_utils.c.
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_ungrouped | ( | struct wmOperatorType * | ot | ) |
Definition at line 766 of file paint_utils.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 399 of file paint_vertex_color_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, max, 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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 183 of file paint_vertex_color_ops.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 464 of file paint_vertex_color_ops.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 502 of file paint_vertex_color_ops.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 546 of file paint_vertex_color_ops.c.
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_levels_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 118 of file paint_vertex_color_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, vertex_color_set_exec(), and vertex_paint_mode_poll().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_color_smooth | ( | struct wmOperatorType * | ot | ) |
Definition at line 322 of file paint_vertex_color_ops.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 3512 of file paint_vertex.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, paint_stroke_modal(), paint_stroke_operator_properties(), wmOperatorType::poll, vertex_paint_poll(), vpaint_cancel(), vpaint_exec(), and vpaint_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_vertex_paint_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 2645 of file paint_vertex.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_mode_toggle_poll_test(), wmOperatorType::poll, and vpaint_mode_toggle_exec().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_from_bones | ( | struct wmOperatorType * | ot | ) |
Definition at line 133 of file paint_vertex_weight_ops.c.
References ARM_GROUPS_AUTO, ARM_GROUPS_ENVELOPE, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, 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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 904 of file paint_vertex_weight_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, 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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 2571 of file paint_vertex.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, paint_stroke_modal(), paint_stroke_operator_properties(), wmOperatorType::poll, weight_paint_poll(), wpaint_cancel(), wpaint_exec(), and wpaint_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_paint_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 1429 of file paint_vertex.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paint_mode_toggle_poll_test(), wmOperatorType::poll, and wpaint_mode_toggle_exec().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_sample | ( | struct wmOperatorType * | ot | ) |
Definition at line 281 of file paint_vertex_weight_ops.c.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, weight_paint_mode_poll(), and weight_sample_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_sample_group | ( | struct wmOperatorType * | ot | ) |
Definition at line 413 of file paint_vertex_weight_ops.c.
References wmOperatorType::description, DummyRNA_DEFAULT_items, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), wmOperatorType::srna, weight_paint_mode_poll(), weight_paint_sample_enum_itemf(), weight_sample_group_exec(), and WM_menu_invoke().
Referenced by ED_operatortypes_paint().
| void PAINT_OT_weight_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 549 of file paint_vertex_weight_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, mask_paint_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and weight_paint_set_exec().
Referenced by ED_operatortypes_paint().
| bool paint_poll | ( | struct bContext * | C | ) |
Definition at line 1662 of file paint_stroke.c.
References blender::compositor::area(), BKE_paint_brush(), BKE_paint_get_active_from_context(), C, CTX_data_active_object(), CTX_wm_area(), CTX_wm_region(), bToolRef_Runtime::data_block, ELEM, ARegion::regiontype, RGN_TYPE_WINDOW, bToolRef::runtime, SPACE_IMAGE, and SPACE_VIEW3D.
Referenced by paint_stroke_modal(), and SCULPT_poll().
| void* paint_proj_new_stroke | ( | struct bContext * | C, |
| struct Object * | ob, | ||
| const float | mouse[2], | ||
| int | mode | ||
| ) |
Definition at line 5898 of file paint_image_proj.c.
References ARRAY_SIZE, BKE_brush_size_get(), BKE_brush_size_set(), BKE_mesh_from_object(), BKE_paint_brush(), BLI_assert, ProjStrokeHandle::brush, BRUSH_STROKE_INVERT, C, count_bits_i(), CTX_data_scene(), Brush::imagepaint_tool, ToolSettings::imapaint, ProjStrokeHandle::is_clone_cursor_pick, ProjPaintState::is_shared_user, ProjPaintState::me_eval, MEM_callocN, MEM_freeN, mesh, NULL, ProjPaintState::ob, ProjStrokeHandle::orig_brush_size, ImagePaintSettings::paint, paint_brush_init_tex(), paint_proj_begin_clone(), PAINT_SYMM_X, PAINT_SYMM_Y, PAINT_SYMM_Z, PAINT_TOOL_CLONE, PAINT_TOOL_FILL, 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, scene, ProjStrokeHandle::scene, ProjPaintState::source, Mesh::symmetry, ProjStrokeHandle::symmetry_flags, ProjPaintState::tool, Scene::toolsettings, view3d_operator_needs_opengl(), x, y, and z.
Referenced by texture_paint_init().
| void paint_proj_redraw | ( | const struct bContext * | C, |
| void * | ps_handle_p, | ||
| bool | final | ||
| ) |
| void paint_proj_stroke | ( | const struct bContext * | C, |
| void * | ps_handle_p, | ||
| const float | prev_pos[2], | ||
| const float | pos[2], | ||
| const bool | eraser, | ||
| float | pressure, | ||
| float | distance, | ||
| float | size | ||
| ) |
| void paint_proj_stroke_done | ( | void * | ps_handle_p | ) |
Definition at line 6017 of file paint_image_proj.c.
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, scene, and ProjStrokeHandle::scene.
Referenced by paint_stroke_done().
| void paint_sample_color | ( | struct bContext * | C, |
| struct ARegion * | region, | ||
| int | x, | ||
| int | y, | ||
| bool | texpaint_proj, | ||
| bool | palette | ||
| ) |
Definition at line 453 of file paint_utils.c.
References Palette::active_color, bilinear_interpolation_color_wrap(), BKE_brush_color_set(), BKE_image_acquire_ibuf(), BKE_image_get_tile_from_pos(), BKE_image_release_ibuf(), BKE_imageuser_default(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paint_palette(), BKE_paint_palette_set(), BKE_palette_add(), BKE_palette_color_add(), BLI_listbase_count(), C, ImagePaintSettings::canvas, CD_MASK_BAREMESH, CD_MASK_ORIGINDEX, CD_MLOOPUV, CLAMP, Palette::colors, copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_image(), CTX_wm_view3d(), CustomData_has_layer(), Object::data, DEG_get_evaluated_object(), depsgraph, ED_space_image_color_sample(), ED_view3d_viewcontext_init(), fmodf, ImageUser::framenr, GPU_DATA_FLOAT, GPU_frontbuffer_read_pixels(), IMA_SRC_TILED, IMAGEPAINT_MODE_MATERIAL, ToolSettings::imapaint, imapaint_face_image(), imapaint_pick_face(), imapaint_pick_uv(), Image::lastframe, linearrgb_to_srgb_v3_v3(), mesh_get_eval_final(), ImagePaintSettings::mode, NULL, OBACT, CustomData_MeshMasks::pmask, ImBuf::rect, ImBuf::rect_float, PaletteColor::rgb, rgb_uchar_to_float(), scene, Image::source, straight_to_premul_v4(), ImageUser::tile, Scene::toolsettings, Mesh::totpoly, v, view3d_operator_needs_opengl(), ARegion::winrct, ARegion::winx, ARegion::winy, x, ImBuf::x, rcti::xmin, y, ImBuf::y, and rcti::ymin.
Referenced by sample_color_exec(), sample_color_invoke(), and sample_color_modal().
| bool paint_space_stroke_enabled | ( | struct Brush * | br, |
| enum ePaintMode | mode | ||
| ) |
Definition at line 1011 of file paint_stroke.c.
References BRUSH_SPACE, Brush::flag, paint_supports_dynamic_size(), SCULPT_is_cloth_deform_brush(), Brush::sculpt_tool, and SCULPT_TOOL_CLOTH.
Referenced by paint_stroke_modal().
| void paint_stroke_cancel | ( | struct bContext * | C, |
| struct wmOperator * | op | ||
| ) |
Definition at line 1627 of file paint_stroke.c.
References C, and stroke_done().
Referenced by PAINT_OT_image_paint(), paint_stroke_modal(), sculpt_brush_stroke_cancel(), vpaint_cancel(), and wpaint_cancel().
| float paint_stroke_distance_get | ( | struct PaintStroke * | stroke | ) |
Definition at line 1652 of file paint_stroke.c.
References PaintStroke::stroke_distance.
Referenced by paint_stroke_update_step().
| int paint_stroke_exec | ( | struct bContext * | C, |
| struct wmOperator * | op | ||
| ) |
Definition at line 1595 of file paint_stroke.c.
References C, wmOperator::customdata, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_BEGIN, RNA_END, RNA_float_get_array(), RNA_property_collection_lookup_int(), RNA_struct_find_property(), stroke_done(), PaintStroke::stroke_started, PaintStroke::test_start, and PaintStroke::update_step.
Referenced by paint_exec(), sculpt_brush_stroke_exec(), vpaint_exec(), and wpaint_exec().
| bool paint_stroke_flipped | ( | struct PaintStroke * | stroke | ) |
Definition at line 1642 of file paint_stroke.c.
References PaintStroke::pen_flip.
Referenced by paint_stroke_done().
| void paint_stroke_free | ( | struct bContext * | C, |
| struct wmOperator * | op | ||
| ) |
Definition at line 948 of file paint_stroke.c.
References BKE_paint_set_overlay_override(), BLI_freelistN(), BLI_rng_free(), C, CTX_wm_manager(), CTX_wm_region_view3d(), CTX_wm_window(), wmOperator::customdata, UnifiedPaintSettings::draw_anchored, PaintStroke::line, MEM_SAFE_FREE, NULL, RegionView3D::rflag, PaintStroke::rng, RV3D_PAINTING, UnifiedPaintSettings::stroke_active, PaintStroke::stroke_cursor, PaintStroke::timer, PaintStroke::ups, WM_event_remove_timer(), and WM_paint_cursor_end().
Referenced by paint_invoke(), sculpt_brush_stroke_invoke(), stroke_done(), vpaint_invoke(), and wpaint_invoke().
| bool paint_stroke_inverted | ( | struct PaintStroke * | stroke | ) |
Definition at line 1647 of file paint_stroke.c.
References BRUSH_STROKE_INVERT, and PaintStroke::stroke_mode.
Referenced by paint_stroke_done().
| int paint_stroke_modal | ( | struct bContext * | C, |
| struct wmOperator * | op, | ||
| const struct wmEvent * | event | ||
| ) |
Referenced by PAINT_OT_image_paint(), PAINT_OT_vertex_paint(), PAINT_OT_weight_paint(), and SCULPT_OT_brush_stroke().
| struct wmKeyMap* paint_stroke_modal_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 1119 of file paint_stroke.c.
References wmKeyMap::modal_items, EnumPropertyItem::name, PAINT_STROKE_MODAL_CANCEL, WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_paint().
| void* paint_stroke_mode_data | ( | struct PaintStroke * | stroke | ) |
Definition at line 1637 of file paint_stroke.c.
References PaintStroke::mode_data.
Referenced by paint_stroke_done(), paint_stroke_redraw(), paint_stroke_update_step(), vpaint_stroke_done(), vpaint_stroke_update_step(), wpaint_stroke_done(), and wpaint_stroke_update_step().
| struct PaintStroke* paint_stroke_new | ( | struct bContext * | C, |
| struct wmOperator * | op, | ||
| StrokeGetLocation | get_location, | ||
| StrokeTestStart | test_start, | ||
| StrokeUpdateStep | update_step, | ||
| StrokeRedraw | redraw, | ||
| StrokeDone | done, | ||
| int | event_type | ||
| ) |
Definition at line 889 of file paint_stroke.c.
References UnifiedPaintSettings::average_stroke_accum, UnifiedPaintSettings::average_stroke_counter, BKE_curvemapping_init(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_paint_set_overlay_override(), PaintStroke::brush, BRUSH_CURVE, BRUSH_STROKE_INVERT, BRUSH_STROKE_NORMAL, C, Paint::cavity_curve, CTX_data_ensure_evaluated_depsgraph(), CTX_data_tool_settings(), CTX_wm_region_view3d(), Brush::curve, depsgraph, PaintStroke::done, ED_view3d_viewcontext_init(), PaintStroke::event_type, Brush::flag, Paint::flags, get_imapaint_zoom(), PaintStroke::get_location, max_ff(), MEM_callocN, UnifiedPaintSettings::overlap_factor, Brush::overlay_flags, PAINT_USE_CAVITY_MASK, wmOperator::ptr, PaintStroke::redraw, RegionView3D::rflag, RNA_enum_get(), RNA_enum_set(), RV3D_PAINTING, UnifiedPaintSettings::stroke_active, PaintStroke::stroke_mode, PaintStroke::test_start, ToolSettings::unified_paint_settings, PaintStroke::update_step, PaintStroke::ups, PaintStroke::vc, zero_v3(), and PaintStroke::zoom_2d.
Referenced by paint_exec(), paint_invoke(), sculpt_brush_stroke_exec(), sculpt_brush_stroke_invoke(), vpaint_exec(), vpaint_invoke(), wpaint_exec(), and wpaint_invoke().
| void paint_stroke_operator_properties | ( | struct wmOperatorType * | ot | ) |
Definition at line 210 of file paint_utils.c.
References 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(), RNA_OperatorStrokeElement, and wmOperatorType::srna.
Referenced by PAINT_OT_image_paint(), PAINT_OT_vertex_paint(), PAINT_OT_weight_paint(), and SCULPT_OT_brush_stroke().
| void paint_stroke_set_mode_data | ( | struct PaintStroke * | stroke, |
| void * | mode_data | ||
| ) |
Definition at line 1657 of file paint_stroke.c.
References PaintStroke::mode_data.
Referenced by paint_stroke_test_start(), vpaint_stroke_test_start(), and wpaint_stroke_test_start().
| struct ViewContext* paint_stroke_view_context | ( | struct PaintStroke * | stroke | ) |
Definition at line 1632 of file paint_stroke.c.
References PaintStroke::vc.
Referenced by sculpt_update_cache_invariants(), and vwpaint_update_cache_invariants().
| bool paint_supports_dynamic_size | ( | struct Brush * | br, |
| enum ePaintMode | mode | ||
| ) |
Definition at line 1045 of file paint_stroke.c.
References BRUSH_ANCHORED, BRUSH_USE_GRADIENT, Brush::flag, Brush::imagepaint_tool, PAINT_MODE_SCULPT, PAINT_MODE_TEXTURE_2D, PAINT_MODE_TEXTURE_3D, PAINT_TOOL_FILL, and sculpt_is_grab_tool().
Referenced by paint_brush_update(), paint_space_stroke_enabled(), sculpt_update_cache_variants(), and vwpaint_update_cache_variants().
| bool paint_supports_dynamic_tex_coords | ( | struct Brush * | br, |
| enum ePaintMode | mode | ||
| ) |
Definition at line 1098 of file paint_stroke.c.
References BRUSH_ANCHORED, Brush::flag, PAINT_MODE_SCULPT, and sculpt_is_grab_tool().
Referenced by paint_brush_update().
| bool paint_supports_jitter | ( | enum ePaintMode | mode | ) |
| bool paint_supports_smooth_stroke | ( | struct Brush * | br, |
| enum ePaintMode | mode | ||
| ) |
Definition at line 1071 of file paint_stroke.c.
References BRUSH_ANCHORED, BRUSH_DRAG_DOT, BRUSH_LINE, BRUSH_SMOOTH_STROKE, Brush::flag, PAINT_MODE_SCULPT, and sculpt_is_grab_tool().
Referenced by paint_smooth_stroke(), and paint_stroke_modal().
| bool paint_supports_texture | ( | enum ePaintMode | mode | ) |
Definition at line 1090 of file paint_stroke.c.
References ELEM, PAINT_MODE_SCULPT, PAINT_MODE_TEXTURE_2D, PAINT_MODE_TEXTURE_3D, and PAINT_MODE_VERTEX.
Referenced by stencil_control_poll().
| bool paint_use_opacity_masking | ( | struct Brush * | brush | ) |
Definition at line 350 of file paint_image.c.
References BRUSH_AIRBRUSH, BRUSH_ANCHORED, BRUSH_DRAG_DOT, MTex::brush_map_mode, BRUSH_USE_GRADIENT, ELEM, Brush::flag, Brush::imagepaint_tool, Brush::mtex, MTEX_MAP_MODE_3D, MTEX_MAP_MODE_STENCIL, MTEX_MAP_MODE_TILED, PAINT_TOOL_FILL, PAINT_TOOL_SMEAR, PAINT_TOOL_SOFTEN, and MTex::tex.
Referenced by paint_2d_canvas_set(), and project_state_init().
| void PAINTCURVE_OT_add_point | ( | struct wmOperatorType * | ot | ) |
Definition at line 270 of file paint_curve.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, 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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 743 of file paint_curve.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 362 of file paint_curve.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 700 of file paint_curve.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 172 of file paint_curve.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 506 of file paint_curve.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, 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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 652 of file paint_curve.c.
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_stroke | ( | struct wmOperatorType * | ot | ) |
Definition at line 822 of file sculpt_uv.c.
References BRUSH_STROKE_INVERT, BRUSH_STROKE_NORMAL, BRUSH_STROKE_SMOOTH, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, uv_sculpt_stroke_invoke(), uv_sculpt_stroke_modal(), and uv_sculpt_stroke_poll().
Referenced by ED_operatortypes_paint().
| void set_imapaintpartial | ( | struct ImagePaintPartialRedraw * | ippr | ) |
Definition at line 97 of file paint_image.c.
References imapaintpartial.
Referenced by project_image_refresh_tagged().
| bool vert_paint_poll | ( | struct bContext * | C | ) |
Definition at line 1370 of file paint_image.c.
References BKE_paint_select_vert_test(), C, and CTX_data_active_object().
Referenced by ED_keymap_paint(), PAINT_OT_vert_select_all(), and PAINT_OT_vert_select_ungrouped().
| bool vertex_paint_mode_poll | ( | struct bContext * | C | ) |
Definition at line 205 of file paint_vertex.c.
References C, 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_set(), PAINT_OT_vertex_color_smooth(), and vertex_paint_poll_ex().
| bool vertex_paint_poll | ( | struct bContext * | C | ) |
Definition at line 228 of file paint_vertex.c.
References C, and vertex_paint_poll_ex().
Referenced by ed_vwpaintmode_enter_generic(), and PAINT_OT_vertex_paint().
| bool vertex_paint_poll_ignore_tool | ( | struct bContext * | C | ) |
Definition at line 233 of file paint_vertex.c.
References C, and vertex_paint_poll_ex().
Referenced by sample_color_poll().
Definition at line 273 of file paint_vertex.c.
References BKE_brush_color_get(), BKE_brush_secondary_color_get(), BKE_paint_brush(), col, VPaint::paint, rgb_float_to_uchar(), and scene.
Referenced by vertex_color_set_exec(), and vpaint_stroke_test_start().
| bool weight_paint_mode_poll | ( | struct bContext * | C | ) |
Definition at line 238 of file paint_vertex.c.
References C, CTX_data_active_object(), Object::data, Object::mode, and OB_MODE_WEIGHT_PAINT.
Referenced by ED_keymap_paint(), PAINT_OT_weight_sample(), and PAINT_OT_weight_sample_group().
| bool weight_paint_poll | ( | struct bContext * | C | ) |
Definition at line 263 of file paint_vertex.c.
References C, and weight_paint_poll_ex().
Referenced by ed_vwpaintmode_enter_generic(), and PAINT_OT_weight_paint().
| bool weight_paint_poll_ignore_tool | ( | bContext * | C | ) |
Definition at line 268 of file paint_vertex.c.
References C, and weight_paint_poll_ex().
Referenced by PAINT_OT_weight_gradient().