Blender V5.3
blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation Class Reference

Inherits blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon.

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::greasepencil::GreasePencilStrokeOperationCommon
 GreasePencilStrokeOperationCommon ()=default
 GreasePencilStrokeOperationCommon (const BrushStrokeMode stroke_mode)
bool is_inverted (const Brush &brush) const
float2 mouse_delta (const InputSample &input_sample) const
void init_stroke (const bContext &C, const InputSample &start_sample)
void init_auto_masking (const bContext &C, const InputSample &start_sample)
void stroke_extended (const InputSample &extension_sample)
void foreach_editable_drawing_with_automask (const bContext &C, FunctionRef< bool(const GreasePencilStrokeParams &params, const IndexMask &points)> fn) const
void foreach_editable_drawing_with_automask (const bContext &C, FunctionRef< bool(const GreasePencilStrokeParams &params, const IndexMask &points, const DeltaProjectionFunc &projection_fn)> fn) const
void foreach_editable_drawing (const bContext &C, FunctionRef< bool(const GreasePencilStrokeParams &params, const DeltaProjectionFunc &projection_fn)> fn) const
void foreach_editable_drawing (const bContext &C, FunctionRef< bool(const GreasePencilStrokeParams &params)> fn, const exec_mode::Mode &mode=exec_mode::serial) const
Public Member Functions inherited from blender::ed::sculpt_paint::PaintModeData
virtual ~PaintModeData ()=default

Additional Inherited Members

Public Types inherited from blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon
using MutableDrawingInfo = ed::greasepencil::MutableDrawingInfo
using DrawingPlacement = ed::greasepencil::DrawingPlacement
Public Attributes inherited from blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon
BrushStrokeMode stroke_mode
float2 start_mouse_position
float2 prev_mouse_position
Array< AutoMaskingInfo > auto_masking_info_per_drawing

Detailed Description

Definition at line 15 of file vertex_replace.cc.

Member Function Documentation

◆ on_stroke_begin()

void blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation::on_stroke_begin ( const bContext & C,
const InputSample & start_sample )
overridevirtual

◆ on_stroke_done()

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

◆ on_stroke_extended()

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

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

Definition at line 30 of file vertex_replace.cc.

References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_brush_color_get(), blender::BKE_paint_brush(), blender::BKE_paint_get_active_from_context(), blender::BLI_assert(), blender::ed::sculpt_paint::greasepencil::brush_fill_influence(), blender::ed::sculpt_paint::greasepencil::brush_point_influence(), C, blender::copy_v3_v3(), blender::CTX_data_scene(), blender::ed::sculpt_paint::greasepencil::do_vertex_color_fill(), blender::ed::sculpt_paint::greasepencil::do_vertex_color_points(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, blender::ED_grease_pencil_any_vertex_mask_selection(), blender::bke::greasepencil::Drawing::fill_colors_for_write(), blender::ed::sculpt_paint::greasepencil::fill_mask_for_stroke_operation(), blender::bke::greasepencil::Drawing::fills(), blender::Span< T >::first(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_indices(), blender::exec_mode::grain_size(), blender::index_mask::IndexMask::is_empty(), blender::index_mask::masked_fill(), blender::math::max(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::multi_frame_falloff, blender::ed::sculpt_paint::greasepencil::point_mask_for_stroke_operation(), blender::bke::greasepencil::Drawing::strokes(), blender::Scene::toolsettings, blender::bke::greasepencil::Drawing::vertex_colors_for_write(), blender::ed::sculpt_paint::greasepencil::view_positions_from_curve_mask(), and blender::ed::sculpt_paint::greasepencil::view_positions_from_point_mask().

Referenced by on_stroke_begin().


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