|
Blender V5.0
|
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 |
References C.
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 1038 of file grease_pencil_erase.cc.
References 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(), GP_BRUSH_ACTIVE_LAYER_ONLY, GP_BRUSH_ERASER_KEEP_CAPS, on_stroke_begin(), and GreasePencil::runtime.
Referenced by on_stroke_begin().
|
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(), C, blender::bke::AttributeAccessor::contains(), CTX_data_active_object(), DEG_id_tag_update(), GreasePencil::id, ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, on_stroke_done(), 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().
Referenced by on_stroke_done().
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 1073 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 42 of file grease_pencil_erase.cc.
References EraseOperationExecutor, and GP_BRUSH_ERASER_HARD.
Referenced by EraseOperationExecutor, and on_stroke_extended().