Blender
V3.3
|
Public Member Functions | |
SnakeHookOperatorExecutor (const bContext &C) | |
void | execute (SnakeHookOperation &self, const bContext &C, 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) |
Public Attributes | |
SnakeHookOperation * | self_ = nullptr |
CurvesSculptCommonContext | ctx_ |
const CurvesSculpt * | curves_sculpt_ = nullptr |
const Brush * | brush_ = nullptr |
float | brush_radius_base_re_ |
float | brush_radius_factor_ |
float | brush_strength_ |
eBrushFalloffShape | falloff_shape_ |
Object * | object_ = nullptr |
Curves * | curves_id_ = nullptr |
CurvesGeometry * | curves_ = nullptr |
VArray< float > | curve_factors_ |
Vector< int64_t > | selected_curve_indices_ |
IndexMask | curve_selection_ |
CurvesSurfaceTransforms | transforms_ |
float2 | brush_pos_prev_re_ |
float2 | brush_pos_re_ |
float2 | brush_pos_diff_re_ |
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 72 of file curves_sculpt_snake_hook.cc.
|
inline |
Definition at line 98 of file curves_sculpt_snake_hook.cc.
References C.
|
inline |
Definition at line 102 of file curves_sculpt_snake_hook.cc.
References BKE_brush_size_get(), 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(), C, ctx_, CTX_data_active_object(), curve_factors_, curve_selection_, curves_, curves_id_, blender::bke::CurvesGeometry::curves_num(), ToolSettings::curves_sculpt, curves_sculpt_, Object::data, DEG_id_tag_update(), blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, ED_region_tag_redraw(), Brush::falloff_shape, falloff_shape_, Curves::geometry, blender::ed::sculpt_paint::get_curves_selection(), Curves::id, ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::StrokeExtension::is_first, blender::ed::sculpt_paint::StrokeExtension::mouse_position, NC_GEOM, ND_DATA, object_, CurvesSculpt::paint, PAINT_FALLOFF_SHAPE_SPHERE, PAINT_FALLOFF_SHAPE_TUBE, projected_snake_hook_with_symmetry(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::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_indices_, self_, spherical_snake_hook_with_symmetry(), Curves::surface, blender::bke::CurvesGeometry::tag_positions_changed(), Scene::toolsettings, transforms_, blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d, WM_main_add_notifier(), and blender::bke::CurvesGeometry::wrap().
|
inline |
Definition at line 176 of file curves_sculpt_snake_hook.cc.
References brush_radius_base_re_, brush_radius_factor_, ctx_, curves_, blender::bke::CurvesGeometry::curves_range(), blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, ED_view3d_ob_project_mat_get(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::float4x4::inverted(), object_, blender::threading::parallel_for(), blender::bke::CurvesGeometry::positions_for_write(), pow2f(), blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, and blender::float4x4::values.
Referenced by projected_snake_hook_with_symmetry().
|
inline |
Definition at line 167 of file curves_sculpt_snake_hook.cc.
References curves_id_, blender::ed::sculpt_paint::get_symmetry_brush_transforms(), projected_snake_hook(), and Curves::symmetry.
Referenced by execute().
|
inline |
Definition at line 259 of file curves_sculpt_snake_hook.cc.
References blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::threading::parallel_for(), and pow2f().
|
inline |
Definition at line 230 of file curves_sculpt_snake_hook.cc.
References ED_view3d_ob_project_mat_get(), ED_view3d_win_to_3d(), blender::ed::sculpt_paint::get_symmetry_brush_transforms(), and blender::float4x4::values.
Referenced by execute().
const Brush* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_ = nullptr |
Definition at line 77 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
float2 blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_pos_diff_re_ |
Definition at line 96 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
float2 blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_pos_prev_re_ |
Definition at line 94 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
float2 blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_pos_re_ |
Definition at line 95 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
float blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_radius_base_re_ |
Definition at line 78 of file curves_sculpt_snake_hook.cc.
Referenced by execute(), and projected_snake_hook().
float blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_radius_factor_ |
Definition at line 79 of file curves_sculpt_snake_hook.cc.
Referenced by execute(), and projected_snake_hook().
float blender::ed::sculpt_paint::SnakeHookOperatorExecutor::brush_strength_ |
Definition at line 80 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
CurvesSculptCommonContext blender::ed::sculpt_paint::SnakeHookOperatorExecutor::ctx_ |
Definition at line 74 of file curves_sculpt_snake_hook.cc.
Referenced by execute(), and projected_snake_hook().
Definition at line 88 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
IndexMask blender::ed::sculpt_paint::SnakeHookOperatorExecutor::curve_selection_ |
Definition at line 90 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
CurvesGeometry* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::curves_ = nullptr |
Definition at line 86 of file curves_sculpt_snake_hook.cc.
Referenced by execute(), and projected_snake_hook().
Curves* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::curves_id_ = nullptr |
Definition at line 85 of file curves_sculpt_snake_hook.cc.
Referenced by execute(), and projected_snake_hook_with_symmetry().
const CurvesSculpt* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::curves_sculpt_ = nullptr |
Definition at line 76 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
eBrushFalloffShape blender::ed::sculpt_paint::SnakeHookOperatorExecutor::falloff_shape_ |
Definition at line 82 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
Object* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::object_ = nullptr |
Definition at line 84 of file curves_sculpt_snake_hook.cc.
Referenced by execute(), and projected_snake_hook().
Definition at line 89 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
SnakeHookOperation* blender::ed::sculpt_paint::SnakeHookOperatorExecutor::self_ = nullptr |
Definition at line 73 of file curves_sculpt_snake_hook.cc.
Referenced by execute().
CurvesSurfaceTransforms blender::ed::sculpt_paint::SnakeHookOperatorExecutor::transforms_ |
Definition at line 92 of file curves_sculpt_snake_hook.cc.
Referenced by execute().