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

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

Public Member Functions

uint32_t unique_seed () const
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 &) override
 GreasePencilStrokeOperationCommon ()=default
 GreasePencilStrokeOperationCommon (const BrushStrokeMode stroke_mode)
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 35 of file sculpt_randomize.cc.

Member Function Documentation

◆ GreasePencilStrokeOperationCommon() [1/2]

◆ GreasePencilStrokeOperationCommon() [2/2]

◆ on_stroke_begin()

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

◆ on_stroke_done()

void blender::ed::sculpt_paint::greasepencil::RandomizeOperation::on_stroke_done ( const bContext & )
inlineoverridevirtual

◆ on_stroke_extended()

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

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

Definition at line 58 of file sculpt_randomize.cc.

References blender::BKE_paint_brush(), blender::BKE_paint_get_active_from_context(), blender::ed::sculpt_paint::greasepencil::brush_point_influence(), C, blender::math::clamp(), blender::ed::sculpt_paint::greasepencil::compute_orig_delta(), blender::CURVE_TYPE_BEZIER, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing_with_automask(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::greasepencil::get_drawing_deformation(), blender::GP_SCULPT_FLAGMODE_APPLY_POSITION, blender::GP_SCULPT_FLAGMODE_APPLY_STRENGTH, blender::GP_SCULPT_FLAGMODE_APPLY_THICKNESS, blender::GP_SCULPT_FLAGMODE_APPLY_UV, blender::exec_mode::grain_size(), blender::ed::sculpt_paint::greasepencil::hash_rng(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), M_PI_2, blender::math::max(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::mouse_delta(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::multi_frame_falloff, blender::math::normalize(), blender::bke::greasepencil::Drawing::opacities_for_write(), blender::bke::Point, blender::bke::greasepencil::Drawing::radii_for_write(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::stroke_extended(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_positions_changed(), unique_seed(), blender::ed::sculpt_paint::greasepencil::view_positions_from_point_mask(), blender::ed::sculpt_paint::greasepencil::view_positions_left_from_point_mask(), and blender::ed::sculpt_paint::greasepencil::view_positions_right_from_point_mask().

◆ unique_seed()

uint32_t blender::ed::sculpt_paint::greasepencil::RandomizeOperation::unique_seed ( ) const

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