Blender V4.3
blender::ed::sculpt_paint::greasepencil::PaintOperation Class Reference

Inherits blender::ed::sculpt_paint::GreasePencilStrokeOperation.

Public Member Functions

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 PaintOperationExecutor
 

Detailed Description

Definition at line 227 of file grease_pencil_paint.cc.

Member Function Documentation

◆ on_stroke_begin()

◆ on_stroke_done()

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

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

Definition at line 1444 of file grease_pencil_paint.cc.

References blender::bke::CurvesGeometry::attributes_for_write(), BKE_grease_pencil_object_material_ensure_from_active_input_brush(), BKE_object_material_index_get(), BKE_object_material_slot_find_index(), BKE_paint_brush(), BLI_assert, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), blender::bke::CurvesGeometry::curves_range(), DEG_id_tag_update(), blender::ed::sculpt_paint::greasepencil::deselect_stroke(), blender::bke::SpanAttributeWriter< T >::finish(), blender::IndexRange::first(), float, GP_BRUSH_GROUP_SETTINGS, GP_BRUSH_OUTLINE_STROKE, GP_BRUSH_TRIM_STROKE, GP_TOOL_FLAG_AUTOMERGE_STROKE, GP_TOOL_FLAG_CREATE_WEIGHTS, GP_TOOL_FLAG_PAINT_ONBACK, Brush::gpencil_settings, GreasePencil::id, ID_RECALC_GEOMETRY, blender::IndexRange::last(), NC_GEOM, ND_DATA, blender::ed::sculpt_paint::greasepencil::outline_stroke(), blender::bke::CurvesGeometry::points_by_curve(), blender::ed::sculpt_paint::greasepencil::process_stroke_weights(), GreasePencil::runtime, blender::bke::greasepencil::Drawing::set_texture_matrices(), blender::ed::sculpt_paint::greasepencil::simplify_stroke(), blender::ed::sculpt_paint::greasepencil::smooth_stroke(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::bke::greasepencil::Layer::to_world_space(), blender::ed::sculpt_paint::greasepencil::trim_end_points(), blender::ed::sculpt_paint::greasepencil::trim_stroke_ends(), Brush::unprojected_radius, RegionView3D::viewmat, and WM_event_add_notifier().

◆ on_stroke_extended()

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

Friends And Related Symbol Documentation

◆ PaintOperationExecutor

friend struct PaintOperationExecutor
friend

Definition at line 271 of file grease_pencil_paint.cc.


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