Blender V5.0
blender::ed::sculpt_paint::greasepencil::WeightPaintOperation Class Reference

#include <grease_pencil_weight_paint.hh>

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

Inherited by blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation, blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation, blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation, and blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation.

Classes

struct  BrushPoint
struct  DrawingWeightData
struct  PointsTouchedByBrush

Public Member Functions

 ~WeightPaintOperation () override=default
void apply_weight_to_point (const BrushPoint &point, const float target_weight, DrawingWeightData &drawing_weight)
void get_brush_settings (const bContext &C, const InputSample &start_sample)
void ensure_active_vertex_group_in_object ()
void get_locked_and_bone_deformed_vertex_groups ()
void init_weight_data_for_drawings (const bContext &C, const Span< ed::greasepencil::MutableDrawingInfo > &drawings, const int frame_group)
void get_mouse_input_sample (const InputSample &input_sample, const float brush_widen_factor=1.0f)
void add_point_under_brush_to_brush_buffer (const float2 point_position, DrawingWeightData &drawing_weight, const int point_index)
PointsTouchedByBrush create_affected_points_kdtree (const Span< DrawingWeightData > drawing_weights)
Public Member Functions inherited from blender::ed::sculpt_paint::GreasePencilStrokeOperation
virtual void on_stroke_begin (const bContext &C, const InputSample &start_sample)=0
virtual void on_stroke_extended (const bContext &C, const InputSample &extension_sample)=0
virtual void on_stroke_done (const bContext &C)=0
Public Member Functions inherited from blender::ed::sculpt_paint::PaintModeData
virtual ~PaintModeData ()=default

Public Attributes

Objectobject
GreasePencilgrease_pencil
Brushbrush
float initial_brush_radius
float brush_radius
float brush_radius_wide
float initial_brush_strength
float brush_strength
float brush_weight
float2 mouse_position
float2 mouse_position_previous
rctf brush_bbox
bool auto_normalize
BrushStrokeMode stroke_mode
bool invert_brush_weight
bDeformGroupobject_defgroup
Array< Array< DrawingWeightData > > drawing_weight_data
Set< std::string > object_bone_deformed_defgroups
Set< std::string > object_locked_defgroups

Detailed Description

Definition at line 39 of file grease_pencil_weight_paint.hh.

Constructor & Destructor Documentation

◆ ~WeightPaintOperation()

blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::~WeightPaintOperation ( )
overridedefault

Member Function Documentation

◆ add_point_under_brush_to_brush_buffer()

◆ apply_weight_to_point()

◆ create_affected_points_kdtree()

PointsTouchedByBrush blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::create_affected_points_kdtree ( const Span< DrawingWeightData > drawing_weights)
inline

◆ ensure_active_vertex_group_in_object()

◆ get_brush_settings()

◆ get_locked_and_bone_deformed_vertex_groups()

◆ get_mouse_input_sample()

◆ init_weight_data_for_drawings()

Member Data Documentation

◆ auto_normalize

◆ brush

◆ brush_bbox

rctf blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_bbox

◆ brush_radius

float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_radius

◆ brush_radius_wide

float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_radius_wide

◆ brush_strength

float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_strength

◆ brush_weight

float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_weight

◆ drawing_weight_data

◆ grease_pencil

◆ initial_brush_radius

float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::initial_brush_radius

Definition at line 78 of file grease_pencil_weight_paint.hh.

Referenced by get_mouse_input_sample().

◆ initial_brush_strength

float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::initial_brush_strength

Definition at line 81 of file grease_pencil_weight_paint.hh.

Referenced by get_mouse_input_sample().

◆ invert_brush_weight

bool blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::invert_brush_weight

◆ mouse_position

float2 blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::mouse_position

◆ mouse_position_previous

float2 blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::mouse_position_previous

Definition at line 85 of file grease_pencil_weight_paint.hh.

◆ object

Object* blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object

Definition at line 75 of file grease_pencil_weight_paint.hh.

◆ object_bone_deformed_defgroups

Set<std::string> blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object_bone_deformed_defgroups

Definition at line 101 of file grease_pencil_weight_paint.hh.

◆ object_defgroup

bDeformGroup* blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object_defgroup

Definition at line 95 of file grease_pencil_weight_paint.hh.

◆ object_locked_defgroups

Set<std::string> blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object_locked_defgroups

Definition at line 103 of file grease_pencil_weight_paint.hh.

◆ stroke_mode


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