Blender
V3.3
|
Public Member Functions | |
PinchOperationExecutor (const bContext &C) | |
void | execute (PinchOperation &self, const bContext &C, const StrokeExtension &stroke_extension) |
void | pinch_projected_with_symmetry (MutableSpan< bool > r_changed_curves) |
void | pinch_projected (const float4x4 &brush_transform, MutableSpan< bool > r_changed_curves) |
void | pinch_spherical_with_symmetry (MutableSpan< bool > r_changed_curves) |
void | pinch_spherical (const float3 &brush_pos_cu, const float brush_radius_cu, MutableSpan< bool > r_changed_curves) |
void | initialize_segment_lengths () |
void | restore_segment_lengths (const Span< bool > changed_curves) |
Public Attributes | |
PinchOperation * | self_ = nullptr |
CurvesSculptCommonContext | ctx_ |
Object * | object_ = nullptr |
Curves * | curves_id_ = nullptr |
CurvesGeometry * | curves_ = nullptr |
VArray< float > | point_factors_ |
Vector< int64_t > | selected_curve_indices_ |
IndexMask | curve_selection_ |
CurvesSurfaceTransforms | transforms_ |
const CurvesSculpt * | curves_sculpt_ = nullptr |
const Brush * | brush_ = nullptr |
float | brush_radius_base_re_ |
float | brush_radius_factor_ |
float | brush_strength_ |
float | invert_factor_ |
float2 | brush_pos_re_ |
Definition at line 59 of file curves_sculpt_pinch.cc.
|
inline |
Definition at line 83 of file curves_sculpt_pinch.cc.
References C.
|
inline |
Definition at line 87 of file curves_sculpt_pinch.cc.
References BKE_brush_alpha_get(), BKE_brush_size_get(), BKE_paint_brush_for_read(), BLI_assert_unreachable, brush_, brush_pos_re_, brush_radius_base_re_, blender::ed::sculpt_paint::brush_radius_factor(), brush_radius_factor_, brush_strength_, C, ctx_, CTX_data_active_object(), 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, Curves::geometry, blender::ed::sculpt_paint::get_point_selection(), Curves::id, ID_RECALC_GEOMETRY, initialize_segment_lengths(), invert_factor_, 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, pinch_projected_with_symmetry(), pinch_spherical_with_symmetry(), point_factors_, blender::ed::sculpt_paint::CurvesSculptCommonContext::region, restore_segment_lengths(), 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_, 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 268 of file curves_sculpt_pinch.cc.
References blender::threading::parallel_for().
Referenced by execute().
|
inline |
Definition at line 156 of file curves_sculpt_pinch.cc.
References brush_radius_base_re_, brush_radius_factor_, ctx_, curve_selection_, curves_, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, ED_view3d_ob_project_mat_get(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::IndexMask::index_range(), 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 pinch_projected_with_symmetry().
|
inline |
Definition at line 147 of file curves_sculpt_pinch.cc.
References curves_id_, blender::ed::sculpt_paint::get_symmetry_brush_transforms(), pinch_projected(), and Curves::symmetry.
Referenced by execute().
|
inline |
Definition at line 229 of file curves_sculpt_pinch.cc.
References blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::threading::parallel_for(), and pow2f().
|
inline |
Definition at line 211 of file curves_sculpt_pinch.cc.
References ED_view3d_win_to_3d(), and blender::ed::sculpt_paint::get_symmetry_brush_transforms().
Referenced by execute().
|
inline |
Definition at line 285 of file curves_sculpt_pinch.cc.
References blender::Span< T >::index_range(), and blender::threading::parallel_for().
Referenced by execute().
const Brush* blender::ed::sculpt_paint::PinchOperationExecutor::brush_ = nullptr |
Definition at line 74 of file curves_sculpt_pinch.cc.
Referenced by execute().
float2 blender::ed::sculpt_paint::PinchOperationExecutor::brush_pos_re_ |
Definition at line 81 of file curves_sculpt_pinch.cc.
Referenced by execute().
float blender::ed::sculpt_paint::PinchOperationExecutor::brush_radius_base_re_ |
Definition at line 75 of file curves_sculpt_pinch.cc.
Referenced by execute(), and pinch_projected().
float blender::ed::sculpt_paint::PinchOperationExecutor::brush_radius_factor_ |
Definition at line 76 of file curves_sculpt_pinch.cc.
Referenced by execute(), and pinch_projected().
float blender::ed::sculpt_paint::PinchOperationExecutor::brush_strength_ |
Definition at line 77 of file curves_sculpt_pinch.cc.
Referenced by execute().
CurvesSculptCommonContext blender::ed::sculpt_paint::PinchOperationExecutor::ctx_ |
Definition at line 61 of file curves_sculpt_pinch.cc.
Referenced by execute(), and pinch_projected().
IndexMask blender::ed::sculpt_paint::PinchOperationExecutor::curve_selection_ |
Definition at line 69 of file curves_sculpt_pinch.cc.
Referenced by execute(), and pinch_projected().
CurvesGeometry* blender::ed::sculpt_paint::PinchOperationExecutor::curves_ = nullptr |
Definition at line 65 of file curves_sculpt_pinch.cc.
Referenced by execute(), and pinch_projected().
Curves* blender::ed::sculpt_paint::PinchOperationExecutor::curves_id_ = nullptr |
Definition at line 64 of file curves_sculpt_pinch.cc.
Referenced by execute(), and pinch_projected_with_symmetry().
const CurvesSculpt* blender::ed::sculpt_paint::PinchOperationExecutor::curves_sculpt_ = nullptr |
Definition at line 73 of file curves_sculpt_pinch.cc.
Referenced by execute().
float blender::ed::sculpt_paint::PinchOperationExecutor::invert_factor_ |
Definition at line 79 of file curves_sculpt_pinch.cc.
Referenced by execute().
Object* blender::ed::sculpt_paint::PinchOperationExecutor::object_ = nullptr |
Definition at line 63 of file curves_sculpt_pinch.cc.
Referenced by execute(), and pinch_projected().
Definition at line 67 of file curves_sculpt_pinch.cc.
Referenced by execute().
Definition at line 68 of file curves_sculpt_pinch.cc.
Referenced by execute().
PinchOperation* blender::ed::sculpt_paint::PinchOperationExecutor::self_ = nullptr |
Definition at line 60 of file curves_sculpt_pinch.cc.
Referenced by execute().
CurvesSurfaceTransforms blender::ed::sculpt_paint::PinchOperationExecutor::transforms_ |
Definition at line 71 of file curves_sculpt_pinch.cc.
Referenced by execute().