|
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, C, CTX_data_active_object(), Brush::curve, BrushGpencilSettings::curve_strength, BrushGpencilSettings::eraser_mode, BrushGpencilSettings::flag, GP_BRUSH_ACTIVE_LAYER_ONLY, GP_BRUSH_ERASER_KEEP_CAPS, Brush::gpencil_settings, on_stroke_begin(), GreasePencil::runtime, and Brush::size.
Referenced by on_stroke_begin().
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 1018 of file grease_pencil_erase.cc.
References blender::math::abs(), C, CTX_data_active_object(), blender::math::distance(), e, blender::index_mask::IndexMask::foreach_range(), IndexMask::from_bools(), blender::math::interpolate(), blender::VArrayCommon< T >::is_empty(), on_stroke_done(), blender::IndexRange::one_before_start(), blender::bke::Point, blender::ed::greasepencil::ramer_douglas_peucker_simplify(), GreasePencil::runtime, and blender::IndexRange::size().
Referenced by on_stroke_done().
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 1012 of file grease_pencil_erase.cc.
References C, EraseOperationExecutor, blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::execute(), and on_stroke_extended().
Referenced by on_stroke_extended().
|
friend |
Definition at line 46 of file grease_pencil_erase.cc.
References EraseOperationExecutor, and GP_BRUSH_ERASER_HARD.
Referenced by EraseOperationExecutor, and on_stroke_extended().