|
Blender V4.3
|
Classes | |
| struct | NormalAnglePrecalc |
| bool blender::ed::sculpt_paint::vwpaint::brush_use_accumulate | ( | const VPaint & | vp | ) |
Definition at line 206 of file paint_vertex.cc.
References BKE_paint_brush_for_read(), brush_use_accumulate_ex(), Paint_Runtime::ob_mode, VPaint::paint, and Paint::runtime.
Referenced by do_weight_paint_vertex_multi(), do_weight_paint_vertex_single(), init_session_data(), vpaint_blend(), and vpaint_init_vpaint().
| bool blender::ed::sculpt_paint::vwpaint::brush_use_accumulate_ex | ( | const Brush & | brush, |
| eObjectMode | ob_mode ) |
Definition at line 198 of file paint_vertex.cc.
References BRUSH_ACCUMULATE, Brush::flag, OB_MODE_VERTEX_PAINT, Brush::vertex_brush_type, VPAINT_BRUSH_TYPE_SMEAR, Brush::weight_brush_type, and WPAINT_BRUSH_TYPE_SMEAR.
Referenced by brush_use_accumulate(), and precompute_weight_values().
| void blender::ed::sculpt_paint::vwpaint::get_brush_alpha_data | ( | const Scene & | scene, |
| const SculptSession & | ss, | ||
| const Brush & | brush, | ||
| float * | r_brush_size_pressure, | ||
| float * | r_brush_alpha_value, | ||
| float * | r_brush_alpha_pressure ) |
Definition at line 555 of file paint_vertex.cc.
References BKE_brush_alpha_get(), BKE_brush_size_get(), BKE_brush_use_alpha_pressure(), BKE_brush_use_size_pressure(), SculptSession::cache, and blender::ed::sculpt_paint::StrokeCache::pressure.
Referenced by do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur(), do_wpaint_brush_draw(), do_wpaint_brush_smear(), and vpaint_do_draw().
| void blender::ed::sculpt_paint::vwpaint::init_session | ( | Main & | bmain, |
| Depsgraph & | depsgraph, | ||
| Scene & | scene, | ||
| Object & | ob, | ||
| eObjectMode | object_mode ) |
Toggle operator for turning vertex paint mode on or off (copied from sculpt.cc)
Definition at line 225 of file paint_vertex.cc.
References BKE_sculpt_toolsettings_data_ensure(), BKE_sculpt_update_object_for_edit(), BLI_assert, depsgraph, blender::ed::sculpt_paint::ensure_valid_pivot(), SculptSession::mode_type, and Object::sculpt.
Referenced by mode_enter_generic().
| void blender::ed::sculpt_paint::vwpaint::init_session_data | ( | const ToolSettings & | ts, |
| Object & | ob ) |
Definition at line 239 of file paint_vertex.cc.
References SculptSession::alpha_weight, BKE_defvert_array_free_elems(), BLI_assert, brush_use_accumulate(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), Object::data, SculptSession::dvert_prev, MDeformVert::flag, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), MEM_callocN, MEM_SAFE_FREE, Object::mode, SculptSession::mode, SculptSession::mode_type, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, Object::sculpt, blender::Array< T, InlineBufferCapacity, Allocator >::size(), SculptSession::wpaint, and ToolSettings::wpaint.
Referenced by vpaint_stroke_test_start(), and wpaint_stroke_test_start().
| void blender::ed::sculpt_paint::vwpaint::init_stroke | ( | Depsgraph & | depsgraph, |
| Object & | ob ) |
Definition at line 212 of file paint_vertex.cc.
References BKE_sculpt_update_object_for_edit(), SculptSession::cache, depsgraph, and Object::sculpt.
Referenced by vertex_paint_init_stroke(), and wpaint_stroke_test_start().
| void blender::ed::sculpt_paint::vwpaint::last_stroke_update | ( | Scene & | scene, |
| const float | location[3] ) |
Definition at line 568 of file paint_vertex.cc.
References add_v3_v3(), UnifiedPaintSettings::average_stroke_accum, UnifiedPaintSettings::average_stroke_counter, and UnifiedPaintSettings::last_stroke_valid.
Referenced by vpaint_stroke_update_step(), and wpaint_stroke_update_step().
| void blender::ed::sculpt_paint::vwpaint::mode_enter_generic | ( | Main & | bmain, |
| Depsgraph & | depsgraph, | ||
| Scene & | scene, | ||
| Object & | ob, | ||
| eObjectMode | mode_flag ) |
Definition at line 314 of file paint_vertex.cc.
References BKE_mesh_from_object(), BKE_object_free_derived_caches(), BKE_paint_ensure(), BKE_paint_get_active_from_paintmode(), BKE_paint_init(), BKE_sculptsession_free(), BLI_assert, SculptSession::cache, DEG_id_tag_update(), depsgraph, ED_mesh_color_ensure(), ED_mesh_mirror_spatial_table_end(), ED_paint_cursor_start(), Object::id, ID_RECALC_SYNC_TO_EVAL, init_session(), Object::mode, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, PAINT_CURSOR_VERTEX_PAINT, PAINT_CURSOR_WEIGHT_PAINT, Object::sculpt, Vertex, vertex_paint_poll(), blender::ed::object::vgroup_sync_from_pose(), Weight, and weight_paint_poll().
Referenced by ED_object_vpaintmode_enter_ex(), and ED_object_wpaintmode_enter_ex().
| void blender::ed::sculpt_paint::vwpaint::mode_exit_generic | ( | Object & | ob, |
| eObjectMode | mode_flag ) |
Definition at line 363 of file paint_vertex.cc.
References BKE_mesh_from_object(), BKE_object_free_derived_caches(), BKE_sculptsession_free(), BLI_assert, SculptSession::cache, DEG_id_tag_update(), ED_mesh_mirror_spatial_table_end(), ED_mesh_mirror_topo_table_end(), Object::id, ID_RECALC_SYNC_TO_EVAL, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, blender::bke::mesh_select_face_flush(), blender::bke::mesh_select_vert_flush(), Object::mode, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, paint_cursor_delete_textures(), and Object::sculpt.
Referenced by ED_object_vpaintmode_exit_ex(), and ED_object_wpaintmode_exit_ex().
| bool blender::ed::sculpt_paint::vwpaint::mode_toggle_poll_test | ( | bContext * | C | ) |
Definition at line 411 of file paint_vertex.cc.
References CTX_data_active_object(), Object::data, ID_IS_EDITABLE, OB_MESH, and Object::type.
Referenced by PAINT_OT_vertex_paint_toggle(), and PAINT_OT_weight_paint_toggle().
| IndexMask blender::ed::sculpt_paint::vwpaint::pbvh_gather_generic | ( | const Depsgraph & | depsgraph, |
| const Object & | ob, | ||
| const VPaint & | wp, | ||
| const Brush & | brush, | ||
| IndexMaskMemory & | memory ) |
Definition at line 282 of file paint_vertex.cc.
References SculptSession::cache, blender::ed::sculpt_paint::calc_area_normal(), depsgraph, dist_squared_ray_to_aabb_v3_precalc(), Brush::falloff_shape, blender::ed::sculpt_paint::StrokeCache::location_symm, blender::ed::sculpt_paint::node_in_cylinder(), blender::ed::sculpt_paint::node_in_sphere(), PAINT_FALLOFF_SHAPE_SPHERE, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::radius_squared, Object::sculpt, blender::ed::sculpt_paint::StrokeCache::sculpt_normal_symm, blender::bke::pbvh::search_nodes(), use_normal(), and blender::ed::sculpt_paint::StrokeCache::view_normal_symm.
Referenced by vpaint_do_paint(), and wpaint_do_paint().
| void blender::ed::sculpt_paint::vwpaint::smooth_brush_toggle_off | ( | const bContext * | C, |
| Paint * | paint, | ||
| StrokeCache * | cache ) |
Definition at line 423 of file paint_vertex.cc.
References BKE_brush_size_set(), BKE_paint_brush(), BKE_paint_brush_set(), BLI_assert, blender::ed::sculpt_paint::StrokeCache::brush, CTX_data_scene(), blender::ed::sculpt_paint::StrokeCache::saved_active_brush, and blender::ed::sculpt_paint::StrokeCache::saved_smooth_size.
Referenced by vpaint_stroke_done(), and wpaint_stroke_done().
| void blender::ed::sculpt_paint::vwpaint::smooth_brush_toggle_on | ( | const bContext * | C, |
| Paint * | paint, | ||
| StrokeCache * | cache ) |
Definition at line 578 of file paint_vertex.cc.
References BKE_brush_size_get(), BKE_brush_size_set(), BKE_curvemapping_init(), BKE_paint_brush(), BKE_paint_brush_set(), BKE_paint_brush_set_essentials(), CLOG_WARN, CTX_data_main(), CTX_data_scene(), Brush::curve, LOG, blender::ed::sculpt_paint::StrokeCache::saved_active_brush, and blender::ed::sculpt_paint::StrokeCache::saved_smooth_size.
Referenced by update_cache_invariants().
| bool blender::ed::sculpt_paint::vwpaint::test_brush_angle_falloff | ( | const Brush & | brush, |
| const NormalAnglePrecalc & | normal_angle_precalc, | ||
| const float | angle_cos, | ||
| float * | brush_strength ) |
Definition at line 178 of file paint_vertex.cc.
References BRUSH_FRONTFACE, BRUSH_FRONTFACE_FALLOFF, brush_strength(), Brush::flag, and view_angle_limits_apply_falloff().
Referenced by do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur(), do_wpaint_brush_draw(), do_wpaint_brush_smear(), and vpaint_do_draw().
| void blender::ed::sculpt_paint::vwpaint::update_cache_invariants | ( | bContext * | C, |
| VPaint & | vp, | ||
| SculptSession & | ss, | ||
| wmOperator * | op, | ||
| const float | mval[2] ) |
Initialize the stroke cache invariants from operator properties.
Definition at line 438 of file paint_vertex.cc.
References blender::ed::sculpt_paint::StrokeCache::accum, blender::ed::sculpt_paint::StrokeCache::alt_smooth, BKE_brush_alpha_get(), BKE_paint_brush(), blender::ed::sculpt_paint::StrokeCache::brush, BRUSH_STROKE_INVERT, BRUSH_STROKE_SMOOTH, blender::ed::sculpt_paint::StrokeCache::bstrength, SculptSession::cache, copy_m3_m4(), copy_v2_v2(), CTX_data_active_object(), CTX_data_scene(), CTX_data_tool_settings(), wmOperator::customdata, UnifiedPaintSettings::draw_inverted, ED_view3d_ob_project_mat_get(), blender::ed::sculpt_paint::StrokeCache::first_time, blender::ed::sculpt_paint::StrokeCache::initial_mouse, blender::ed::sculpt_paint::StrokeCache::invert, invert_m4_m4(), blender::ed::sculpt_paint::StrokeCache::is_last_valid, blender::ed::sculpt_paint::StrokeCache::mouse, mul_m3_v3(), normalize_v3_v3(), VPaint::paint, blender::ed::sculpt_paint::paint_stroke_view_context(), blender::ed::sculpt_paint::StrokeCache::projection_mat, wmOperator::ptr, RNA_enum_get(), Object::runtime, ViewContext::rv3d, smooth_brush_toggle_on(), ToolSettings::unified_paint_settings, blender::ed::sculpt_paint::StrokeCache::vc, blender::ed::sculpt_paint::StrokeCache::view_normal, blender::ed::sculpt_paint::StrokeCache::view_normal_symm, RegionView3D::viewinv, and zero_v2().
Referenced by vpaint_stroke_test_start(), and wpaint_stroke_test_start().
| void blender::ed::sculpt_paint::vwpaint::update_cache_variants | ( | bContext * | C, |
| VPaint & | vp, | ||
| Object & | ob, | ||
| PointerRNA * | ptr ) |
Initialize the stroke cache variants from operator properties.
Definition at line 507 of file paint_vertex.cc.
References BKE_brush_size_get(), BKE_brush_unprojected_radius_set(), BKE_brush_use_size_pressure(), BKE_paint_brush(), SculptSession::cache, CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, blender::ed::sculpt_paint::StrokeCache::first_time, blender::ed::sculpt_paint::StrokeCache::initial_radius, blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::StrokeCache::mouse, VPaint::paint, paint_calc_object_space_radius(), blender::ed::sculpt_paint::paint_supports_dynamic_size(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::StrokeCache::pressure, ptr, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::radius_squared, RNA_float_get(), RNA_float_get_array(), Sculpt, Object::sculpt, blender::bke::pbvh::update_bounds(), and blender::ed::sculpt_paint::StrokeCache::vc.
Referenced by vpaint_stroke_update_step(), and wpaint_stroke_update_step().
| bool blender::ed::sculpt_paint::vwpaint::use_normal | ( | const VPaint & | vp | ) |
Definition at line 192 of file paint_vertex.cc.
References BKE_paint_brush_for_read(), BRUSH_FRONTFACE, BRUSH_FRONTFACE_FALLOFF, Brush::flag, and VPaint::paint.
Referenced by calculate_average_weight(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur(), do_wpaint_brush_draw(), do_wpaint_brush_smear(), pbvh_gather_generic(), and vpaint_do_draw().
| float blender::ed::sculpt_paint::vwpaint::view_angle_limits_apply_falloff | ( | const NormalAnglePrecalc * | a, |
| float | angle_cos, | ||
| float * | mask_p ) |
Definition at line 165 of file paint_vertex.cc.
References acosf.
Referenced by test_brush_angle_falloff().
| void blender::ed::sculpt_paint::vwpaint::view_angle_limits_init | ( | NormalAnglePrecalc * | a, |
| float | angle, | ||
| bool | do_mask_normal ) |
Definition at line 141 of file paint_vertex.cc.
References angle(), cosf, float, M_PI_2, and RAD2DEGF.
Referenced by vpaint_init_vpaint(), and wpaint_stroke_test_start().