|
Blender V4.3
|
#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 Attributes | |
| Object * | object |
| GreasePencil * | grease_pencil |
| Brush * | brush |
| 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 |
| bDeformGroup * | object_defgroup |
| Array< Array< DrawingWeightData > > | drawing_weight_data |
| Set< std::string > | object_bone_deformed_defgroups |
| Set< std::string > | object_locked_defgroups |
Definition at line 37 of file grease_pencil_weight_paint.hh.
|
inlineoverride |
Definition at line 99 of file grease_pencil_weight_paint.hh.
|
inline |
Definition at line 257 of file grease_pencil_weight_paint.hh.
References BKE_brush_curve_strength(), BLI_rctf_isect_pt_v(), blender::ed::sculpt_paint::greasepencil::brush_radius(), brush_strength(), blender::math::distance(), blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::DrawingWeightData::multi_frame_falloff, blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::DrawingWeightData::points_in_brush, blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::DrawingWeightData::points_touched_by_brush, and blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::DrawingWeightData::points_touched_by_brush_num.
|
inline |
Definition at line 102 of file grease_pencil_weight_paint.hh.
References blender::math::clamp(), blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::DrawingWeightData::deform_weights, blender::math::interpolate(), and blender::VMutableArray< T >::set().
Referenced by blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_extended().
|
inline |
|
inline |
Definition at line 144 of file grease_pencil_weight_paint.hh.
References BKE_object_defgroup_active_index_get(), BKE_object_defgroup_add(), BKE_object_defgroup_list(), and BLI_findlink().
Referenced by blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin(), and blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_begin().
|
inline |
Definition at line 118 of file grease_pencil_weight_paint.hh.
References ToolSettings::auto_normalize, BKE_brush_alpha_get(), BKE_brush_size_get(), BKE_brush_weight_get(), BKE_curvemapping_init(), BKE_modifiers_is_deformed_by_armature(), BKE_paint_brush(), BKE_paint_get_active_from_context(), brush, CTX_data_active_object(), CTX_data_scene(), CTX_data_tool_settings(), Brush::curve, and blender::ed::sculpt_paint::InputSample::mouse_position.
Referenced by blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin(), and blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_begin().
|
inline |
Definition at line 156 of file grease_pencil_weight_paint.hh.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_object_defgroup_list(), DG_LOCK_WEIGHT, blender::ed::greasepencil::get_bone_deformed_vertex_group_names(), and LISTBASE_FOREACH.
Referenced by blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin(), and blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_begin().
|
inline |
Definition at line 235 of file grease_pencil_weight_paint.hh.
References BKE_brush_use_alpha_pressure(), BKE_brush_use_size_pressure(), BLI_rctf_init(), blender::ed::sculpt_paint::greasepencil::brush_radius(), brush_strength(), blender::ed::sculpt_paint::InputSample::mouse_position, and blender::ed::sculpt_paint::InputSample::pressure.
Referenced by blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_extended().
|
inline |
Definition at line 171 of file grease_pencil_weight_paint.hh.
References CTX_data_depsgraph_pointer(), CTX_wm_region(), CTX_wm_region_view3d(), DEG_get_evaluated_object(), depsgraph, blender::Span< T >::index_range(), blender::threading::parallel_for(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin(), and blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_begin().
| bool blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::auto_normalize |
Definition at line 83 of file grease_pencil_weight_paint.hh.
Referenced by blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_extended().
| Brush* blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush |
Definition at line 71 of file grease_pencil_weight_paint.hh.
Referenced by get_brush_settings(), and blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin().
| rctf blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_bbox |
Definition at line 80 of file grease_pencil_weight_paint.hh.
| float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_radius |
Definition at line 73 of file grease_pencil_weight_paint.hh.
| float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_radius_wide |
Definition at line 74 of file grease_pencil_weight_paint.hh.
| float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_strength |
Definition at line 76 of file grease_pencil_weight_paint.hh.
| float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_weight |
Definition at line 77 of file grease_pencil_weight_paint.hh.
Referenced by blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_extended().
| Array<Array<DrawingWeightData> > blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::drawing_weight_data |
Definition at line 92 of file grease_pencil_weight_paint.hh.
Referenced by blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_extended().
| GreasePencil* blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::grease_pencil |
Definition at line 70 of file grease_pencil_weight_paint.hh.
Referenced by blender::ed::sculpt_paint::greasepencil::AverageWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::BlurWeightPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin(), and blender::ed::sculpt_paint::greasepencil::SmearWeightPaintOperation::on_stroke_begin().
| float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::initial_brush_radius |
Definition at line 72 of file grease_pencil_weight_paint.hh.
| float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::initial_brush_strength |
Definition at line 75 of file grease_pencil_weight_paint.hh.
| bool blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::invert_brush_weight |
Definition at line 87 of file grease_pencil_weight_paint.hh.
Referenced by blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin().
| float2 blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::mouse_position |
Definition at line 78 of file grease_pencil_weight_paint.hh.
| float2 blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::mouse_position_previous |
Definition at line 79 of file grease_pencil_weight_paint.hh.
| Object* blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object |
Definition at line 69 of file grease_pencil_weight_paint.hh.
| Set<std::string> blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object_bone_deformed_defgroups |
Definition at line 95 of file grease_pencil_weight_paint.hh.
| bDeformGroup* blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object_defgroup |
Definition at line 89 of file grease_pencil_weight_paint.hh.
| Set<std::string> blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object_locked_defgroups |
Definition at line 97 of file grease_pencil_weight_paint.hh.
| BrushStrokeMode blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::stroke_mode |