Blender V4.5
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
void foreach_editable_drawing (const bContext &C, GrainSize grain_size, FunctionRef< bool(const GreasePencilStrokeParams &params)> fn) 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 = blender::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< AutoMaskingInfoauto_masking_info_per_drawing

Detailed Description

Definition at line 35 of file grease_pencil_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 grease_pencil_sculpt_randomize.cc.

References BKE_paint_brush(), BKE_paint_get_active_from_context(), blender::ed::sculpt_paint::greasepencil::brush_point_influence(), C, blender::ed::sculpt_paint::greasepencil::calculate_view_positions(), blender::math::clamp(), blender::ed::sculpt_paint::greasepencil::compute_orig_delta(), CTX_data_scene(), 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(), GP_SCULPT_FLAGMODE_APPLY_POSITION, GP_SCULPT_FLAGMODE_APPLY_STRENGTH, GP_SCULPT_FLAGMODE_APPLY_THICKNESS, GP_SCULPT_FLAGMODE_APPLY_UV, Brush::gpencil_settings, blender::GrainSize::GrainSize(), 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(), BrushGpencilSettings::sculpt_mode_flag, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::stroke_extended(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_positions_changed(), and unique_seed().

◆ unique_seed()

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

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