|
Blender V4.3
|
Inherits blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Public Member Functions | |
| EraseOperation (bool temp_use_eraser) | |
| ~EraseOperation () override | |
| 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 |
Public Member Functions inherited from blender::ed::sculpt_paint::PaintModeData | |
| virtual | ~PaintModeData ()=default |
Friends | |
| struct | EraseOperationExecutor |
Definition at line 36 of file grease_pencil_erase.cc.
|
inline |
Definition at line 39 of file grease_pencil_erase.cc.
|
inlineoverride |
Definition at line 40 of file grease_pencil_erase.cc.
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 977 of file grease_pencil_erase.cc.
References Brush::alpha, BKE_brush_init_gpencil_settings(), BKE_curvemapping_init(), BKE_paint_brush(), BKE_paint_eraser_brush(), BKE_paint_get_active_from_context(), BLI_assert, CTX_data_active_object(), Brush::curve, BrushGpencilSettings::curve_strength, Paint::eraser_brush, BrushGpencilSettings::eraser_mode, BrushGpencilSettings::flag, GP_BRUSH_ACTIVE_LAYER_ONLY, GP_BRUSH_ERASER_KEEP_CAPS, Brush::gpencil_settings, GreasePencil::runtime, and Brush::size.
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 1018 of file grease_pencil_erase.cc.
References blender::math::abs(), CTX_data_active_object(), blender::math::distance(), e, blender::index_mask::IndexMask::foreach_range(), blender::math::interpolate(), blender::VArrayCommon< T >::is_empty(), and GreasePencil::runtime.
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 1012 of file grease_pencil_erase.cc.
References blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::execute().
|
friend |
Definition at line 46 of file grease_pencil_erase.cc.