|
Blender V5.0
|
#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 39 of file grease_pencil_weight_paint.hh.
|
overridedefault |
|
inline |
Definition at line 296 of file grease_pencil_weight_paint.hh.
References BKE_brush_curve_strength(), BLI_rctf_isect_pt_v(), brush, brush_bbox, brush_radius, brush_radius_wide, brush_strength, blender::math::distance(), mouse_position, 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 108 of file grease_pencil_weight_paint.hh.
References blender::math::clamp(), blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::DrawingWeightData::deform_weights, blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::BrushPoint::drawing_point_index, blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::BrushPoint::influence, 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 149 of file grease_pencil_weight_paint.hh.
References BKE_modifiers_is_deformed_by_armature(), BKE_object_defgroup_active_index_get(), BKE_object_defgroup_add(), BKE_object_defgroup_add_name(), BKE_object_defgroup_find_name(), BKE_object_defgroup_list(), BKE_pose_channel_find_name(), BLI_assert, BLI_findindex(), BLI_findlink(), BLI_listbase_is_empty(), Bone::name, bPoseChannel::name, and GreasePencil::vertex_group_active_index.
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 124 of file grease_pencil_weight_paint.hh.
References ToolSettings::auto_normalize, BKE_brush_alpha_get(), BKE_brush_radius_get(), BKE_brush_weight_get(), BKE_curvemapping_init(), BKE_modifiers_is_deformed_by_armature(), BKE_paint_brush(), BKE_paint_get_active_from_context(), brush, C, CTX_data_active_object(), CTX_data_tool_settings(), 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 185 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 274 of file grease_pencil_weight_paint.hh.
References BKE_brush_use_alpha_pressure(), BKE_brush_use_size_pressure(), BLI_rctf_init(), brush, brush_bbox, brush_radius, brush_radius_wide, brush_strength, initial_brush_radius, initial_brush_strength, mouse_position, 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 200 of file grease_pencil_weight_paint.hh.
References C, CTX_data_depsgraph_pointer(), CTX_wm_region(), CTX_wm_region_view3d(), DEG_get_evaluated(), 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 89 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 77 of file grease_pencil_weight_paint.hh.
Referenced by add_point_under_brush_to_brush_buffer(), get_brush_settings(), get_mouse_input_sample(), and blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin().
| rctf blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_bbox |
Definition at line 86 of file grease_pencil_weight_paint.hh.
Referenced by add_point_under_brush_to_brush_buffer(), and get_mouse_input_sample().
| float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_radius |
Definition at line 79 of file grease_pencil_weight_paint.hh.
Referenced by add_point_under_brush_to_brush_buffer(), and get_mouse_input_sample().
| float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_radius_wide |
Definition at line 80 of file grease_pencil_weight_paint.hh.
Referenced by add_point_under_brush_to_brush_buffer(), and get_mouse_input_sample().
| float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_strength |
Definition at line 82 of file grease_pencil_weight_paint.hh.
Referenced by add_point_under_brush_to_brush_buffer(), and get_mouse_input_sample().
| float blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::brush_weight |
Definition at line 83 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 98 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 76 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 78 of file grease_pencil_weight_paint.hh.
Referenced by get_mouse_input_sample().
| 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().
| bool blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::invert_brush_weight |
Definition at line 93 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 84 of file grease_pencil_weight_paint.hh.
Referenced by add_point_under_brush_to_brush_buffer(), and get_mouse_input_sample().
| float2 blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::mouse_position_previous |
Definition at line 85 of file grease_pencil_weight_paint.hh.
| Object* blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object |
Definition at line 75 of file grease_pencil_weight_paint.hh.
| Set<std::string> blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object_bone_deformed_defgroups |
Definition at line 101 of file grease_pencil_weight_paint.hh.
| bDeformGroup* blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object_defgroup |
Definition at line 95 of file grease_pencil_weight_paint.hh.
| Set<std::string> blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::object_locked_defgroups |
Definition at line 103 of file grease_pencil_weight_paint.hh.
| BrushStrokeMode blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::stroke_mode |