Blender V5.3
blender::ed::sculpt_paint::greasepencil::SmoothOperation Class Reference

Inherits blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon.

Public Member Functions

 SmoothOperation (const BrushStrokeMode stroke_mode, const bool temp_smooth=false)
void on_stroke_begin (const bContext &C, const InputSample &start_sample) override
void on_stroke_extended (const bContext &C, const InputSample &extension_sample) override
void on_stroke_done (const bContext &C) override
 GreasePencilStrokeOperationCommon ()=default
 GreasePencilStrokeOperationCommon (const BrushStrokeMode stroke_mode)
Public Member Functions inherited from blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon
 GreasePencilStrokeOperationCommon ()=default
 GreasePencilStrokeOperationCommon (const BrushStrokeMode stroke_mode)
bool is_inverted (const Brush &brush) const
float2 mouse_delta (const InputSample &input_sample) const
void init_stroke (const bContext &C, const InputSample &start_sample)
void init_auto_masking (const bContext &C, const InputSample &start_sample)
void stroke_extended (const InputSample &extension_sample)
void foreach_editable_drawing_with_automask (const bContext &C, FunctionRef< bool(const GreasePencilStrokeParams &params, const IndexMask &points)> fn) const
void foreach_editable_drawing_with_automask (const bContext &C, FunctionRef< bool(const GreasePencilStrokeParams &params, const IndexMask &points, const DeltaProjectionFunc &projection_fn)> fn) const
void foreach_editable_drawing (const bContext &C, FunctionRef< bool(const GreasePencilStrokeParams &params, const DeltaProjectionFunc &projection_fn)> fn) const
void foreach_editable_drawing (const bContext &C, FunctionRef< bool(const GreasePencilStrokeParams &params)> fn, const exec_mode::Mode &mode=exec_mode::serial) const
Public Member Functions inherited from blender::ed::sculpt_paint::PaintModeData
virtual ~PaintModeData ()=default

Additional Inherited Members

Public Types inherited from blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon
using MutableDrawingInfo = ed::greasepencil::MutableDrawingInfo
using DrawingPlacement = ed::greasepencil::DrawingPlacement
Public Attributes inherited from blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon
BrushStrokeMode stroke_mode
float2 start_mouse_position
float2 prev_mouse_position
Array< AutoMaskingInfo > auto_masking_info_per_drawing

Detailed Description

Definition at line 30 of file grease_pencil/sculpt_smooth.cc.

Constructor & Destructor Documentation

◆ SmoothOperation()

blender::ed::sculpt_paint::greasepencil::SmoothOperation::SmoothOperation ( const BrushStrokeMode stroke_mode,
const bool temp_smooth = false )
inline

Member Function Documentation

◆ GreasePencilStrokeOperationCommon() [1/2]

◆ GreasePencilStrokeOperationCommon() [2/2]

◆ on_stroke_begin()

◆ on_stroke_done()

void blender::ed::sculpt_paint::greasepencil::SmoothOperation::on_stroke_done ( const bContext & C)
overridevirtual

◆ on_stroke_extended()

void blender::ed::sculpt_paint::greasepencil::SmoothOperation::on_stroke_extended ( const bContext & C,
const InputSample & extension_sample )
overridevirtual

Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.

Definition at line 106 of file grease_pencil/sculpt_smooth.cc.

References blender::BKE_paint_brush(), blender::BKE_paint_brush_from_essentials(), blender::BKE_paint_get_active_from_context(), C, blender::CTX_data_main(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing_with_automask(), blender::VArray< T >::from_func(), blender::VArray< T >::from_span(), blender::GP_SCULPT_FLAGMODE_APPLY_POSITION, blender::GP_SCULPT_FLAGMODE_APPLY_STRENGTH, blender::GP_SCULPT_FLAGMODE_APPLY_THICKNESS, blender::GP_SCULPT_FLAGMODE_APPLY_UV, blender::bke::paint::GPencilSculpt, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::greasepencil::Drawing::opacities_for_write(), blender::bke::Point, blender::bke::CurvesGeometry::points_range(), blender::bke::greasepencil::Drawing::radii_for_write(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), blender::geometry::smooth_curve_attribute(), blender::geometry::smooth_curve_positions(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::stroke_extended(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_positions_changed(), blender::index_mask::IndexMask::to_bools(), and blender::ed::sculpt_paint::greasepencil::view_positions_from_point_mask().


The documentation for this class was generated from the following file: