|
Blender V5.3
|
Public Member Functions | |
| SnakeHookOperatorExecutor (const PaintStroke &stroke) | |
| void | execute (SnakeHookOperation &self, const StrokeExtension &stroke_extension) |
| void | projected_snake_hook_with_symmetry () |
| void | projected_snake_hook (const float4x4 &brush_transform) |
| void | spherical_snake_hook_with_symmetry () |
| void | spherical_snake_hook (const float3 &brush_start_cu, const float3 &brush_end_cu, const float brush_radius_cu) |
Utility class that actually executes the update when the stroke is updated. That's useful because it avoids passing a very large number of parameters between functions.
Definition at line 64 of file sculpt_snake_hook.cc.
|
inline |
Definition at line 88 of file sculpt_snake_hook.cc.
References ctx_.
|
inline |
Definition at line 90 of file sculpt_snake_hook.cc.
References blender::bke::CurvesGeometry::attributes(), blender::BKE_brush_radius_get(), blender::BKE_paint_brush_for_read(), BLI_assert_unreachable, BLI_SCOPED_DEFER, brush_, brush_pos_diff_re_, brush_pos_prev_re_, brush_pos_re_, brush_radius_base_re_, blender::ed::sculpt_paint::brush_radius_factor(), brush_radius_factor_, brush_strength_, blender::ed::sculpt_paint::brush_strength_get(), ctx_, blender::bke::Curve, curve_factors_, curve_selection_, curves_, curves_id_, blender::ToolSettings::curves_sculpt, curves_sculpt_, blender::bke::CurvesSurfaceTransforms::curves_to_world, blender::ed::sculpt_paint::CurvesSurfaceTransforms::CurvesSurfaceTransforms(), blender::Object::data, blender::DEG_id_tag_update(), blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::ED_region_tag_redraw(), blender::Brush::falloff_shape, blender::ID_RECALC_GEOMETRY, blender::bke::CurvesGeometry::is_empty(), blender::ed::sculpt_paint::StrokeExtension::is_first, blender::bke::AttributeAccessor::lookup_or_default(), blender::ed::sculpt_paint::StrokeExtension::mouse_position, NC_GEOM, ND_DATA, blender::ed::sculpt_paint::CurvesSculptCommonContext::object, object_, blender::CurvesSculpt::paint, blender::PAINT_FALLOFF_SHAPE_SPHERE, blender::PAINT_FALLOFF_SHAPE_TUBE, projected_snake_hook_with_symmetry(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::remember_stroke_position(), blender::ed::curves::retrieve_selected_curves(), blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, blender::ed::sculpt_paint::sample_curves_3d_brush(), blender::ed::sculpt_paint::CurvesSculptCommonContext::scene, selected_curve_memory_, self_, spherical_snake_hook_with_symmetry(), blender::bke::CurvesGeometry::tag_positions_changed(), blender::Scene::toolsettings, blender::math::transform_point(), transforms_, blender::U, blender::USER_ORBIT_SELECTION, blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d, and blender::WM_main_add_notifier().
Referenced by blender::ed::sculpt_paint::SnakeHookOperation::on_stroke_extended().
|
inline |
Definition at line 166 of file sculpt_snake_hook.cc.
References blender::BKE_brush_curve_strength(), brush_, brush_pos_diff_re_, brush_pos_prev_re_, brush_radius_base_re_, brush_radius_factor_, brush_strength_, ctx_, curve_factors_, curve_selection_, curves_, blender::bke::CurvesSurfaceTransforms::curves_to_world, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::math::distance_squared(), blender::ED_view3d_ob_project_mat_get(), blender::ED_view3d_project_float_v2_m4(), blender::ED_view3d_win_to_3d(), blender::index_mask::IndexMask::foreach_segment(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::exec_mode::grain_size(), blender::math::invert(), blender::IndexRange::last(), blender::ed::sculpt_paint::move_last_point_and_resample(), object_, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::crazyspace::GeometryDeformation::positions, blender::bke::CurvesGeometry::positions_for_write(), blender::pow2f(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, blender::MutableSpan< T >::slice(), blender::math::transform_point(), transforms_, blender::bke::crazyspace::GeometryDeformation::translation_from_deformed_to_original(), blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d, and blender::bke::CurvesSurfaceTransforms::world_to_curves.
Referenced by projected_snake_hook_with_symmetry().
|
inline |
Definition at line 157 of file sculpt_snake_hook.cc.
References curves_id_, blender::ed::sculpt_paint::get_symmetry_brush_transforms(), and projected_snake_hook().
Referenced by execute().
|
inline |
Definition at line 255 of file sculpt_snake_hook.cc.
References blender::BKE_brush_curve_strength(), brush_, brush_strength_, ctx_, curve_factors_, curve_selection_, curves_, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::dist_squared_to_line_segment_v3(), blender::index_mask::IndexMask::foreach_segment(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::exec_mode::grain_size(), blender::IndexRange::last(), blender::ed::sculpt_paint::move_last_point_and_resample(), object_, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::crazyspace::GeometryDeformation::positions, blender::bke::CurvesGeometry::positions_for_write(), blender::pow2f(), blender::MutableSpan< T >::slice(), and blender::bke::crazyspace::GeometryDeformation::translation_from_deformed_to_original().
Referenced by spherical_snake_hook_with_symmetry().
|
inline |
Definition at line 225 of file sculpt_snake_hook.cc.
References brush_pos_prev_re_, brush_pos_re_, brush_radius_factor_, ctx_, curves_id_, blender::bke::CurvesSurfaceTransforms::curves_to_world, blender::ED_view3d_win_to_3d(), blender::ed::sculpt_paint::get_symmetry_brush_transforms(), blender::ed::sculpt_paint::CurvesBrush3D::position_cu, blender::ed::sculpt_paint::CurvesBrush3D::radius_cu, blender::ed::sculpt_paint::CurvesSculptCommonContext::region, self_, spherical_snake_hook(), blender::math::transform_point(), transforms_, blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d, and blender::bke::CurvesSurfaceTransforms::world_to_curves.
Referenced by execute().
Definition at line 69 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().
| float2 blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_pos_diff_re_ |
Definition at line 86 of file sculpt_snake_hook.cc.
Referenced by execute(), and projected_snake_hook().
| float2 blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_pos_prev_re_ |
Definition at line 84 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook(), and spherical_snake_hook_with_symmetry().
| float2 blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_pos_re_ |
Definition at line 85 of file sculpt_snake_hook.cc.
Referenced by execute(), and spherical_snake_hook_with_symmetry().
| float blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_radius_base_re_ |
Definition at line 70 of file sculpt_snake_hook.cc.
Referenced by execute(), and projected_snake_hook().
| float blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_radius_factor_ |
Definition at line 71 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook(), and spherical_snake_hook_with_symmetry().
| float blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_strength_ |
Definition at line 72 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().
| CurvesSculptCommonContext blender::ed::sculpt_paint::SnakeHookOperatorExecutor::ctx_ |
Definition at line 66 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook(), SnakeHookOperatorExecutor(), spherical_snake_hook(), and spherical_snake_hook_with_symmetry().
Definition at line 78 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().
| IndexMask blender::ed::sculpt_paint::SnakeHookOperatorExecutor::curve_selection_ |
Definition at line 80 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().
| CurvesGeometry* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::curves_ = nullptr |
Definition at line 76 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().
Definition at line 75 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook_with_symmetry(), and spherical_snake_hook_with_symmetry().
| CurvesSculpt* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::curves_sculpt_ = nullptr |
Definition at line 68 of file sculpt_snake_hook.cc.
Referenced by execute().
Definition at line 74 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook(), and spherical_snake_hook().
| IndexMaskMemory blender::ed::sculpt_paint::SnakeHookOperatorExecutor::selected_curve_memory_ |
Definition at line 79 of file sculpt_snake_hook.cc.
Referenced by execute().
| SnakeHookOperation* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::self_ = nullptr |
Definition at line 65 of file sculpt_snake_hook.cc.
Referenced by execute(), and spherical_snake_hook_with_symmetry().
| CurvesSurfaceTransforms blender::ed::sculpt_paint::SnakeHookOperatorExecutor::transforms_ |
Definition at line 82 of file sculpt_snake_hook.cc.
Referenced by execute(), projected_snake_hook(), and spherical_snake_hook_with_symmetry().