|
Blender V4.5
|
Inherits blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Public Member Functions | |
| EraseOperation (bool temp_use_eraser=false) | |
| ~EraseOperation () override=default | |
| 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 41 of file grease_pencil_erase.cc.
|
inline |
Definition at line 57 of file grease_pencil_erase.cc.
|
overridedefault |
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 1038 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 1131 of file grease_pencil_erase.cc.
References blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), blender::bke::AttributeAccessor::contains(), CTX_data_active_object(), DEG_id_tag_update(), GreasePencil::id, ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::bke::greasepencil::Drawing::opacities(), blender::bke::MutableAttributeAccessor::remove(), blender::ed::sculpt_paint::greasepencil::remove_points_with_low_opacity(), GreasePencil::runtime, blender::ed::sculpt_paint::greasepencil::simplify_opacities(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and WM_event_add_notifier().
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 1073 of file grease_pencil_erase.cc.
References blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::execute().
|
friend |
Definition at line 42 of file grease_pencil_erase.cc.