|
Blender V5.3
|
Inherits blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon.
Classes | |
| struct | PointWeights |
Public Types | |
| using | MutableDrawingInfo = ed::greasepencil::MutableDrawingInfo |
| Public Types inherited from blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon | |
| using | MutableDrawingInfo = ed::greasepencil::MutableDrawingInfo |
| using | DrawingPlacement = ed::greasepencil::DrawingPlacement |
Public Attributes | |
| Array< PointWeights > | drawing_data |
| 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 |
Definition at line 30 of file sculpt_grab.cc.
| using blender::ed::sculpt_paint::greasepencil::GrabOperation::MutableDrawingInfo = ed::greasepencil::MutableDrawingInfo |
Definition at line 33 of file sculpt_grab.cc.
| void blender::ed::sculpt_paint::greasepencil::GrabOperation::foreach_grabbed_drawing | ( | const bContext & | C, |
| FunctionRef< bool(const GreasePencilStrokeParams ¶ms, const DeltaProjectionFunc &projection_fn, const IndexMask &mask, const IndexMask &mask_left, const IndexMask &mask_right, Span< float > weights, Span< float > weights_left, Span< float > weights_right)> | fn ) const |
Definition at line 72 of file sculpt_grab.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_scene(), blender::CTX_wm_region(), blender::CTX_wm_region_view3d(), blender::data, blender::DEG_get_evaluated(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::from_context(), blender::ed::sculpt_paint::greasepencil::get_screen_projection_fn(), blender::if(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), layer, and blender::threading::parallel_for_each().
Referenced by on_stroke_extended().
|
inline |
Definition at line 197 of file grease_pencil_intern.hh.
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 137 of file sculpt_grab.cc.
References blender::BKE_paint_brush(), blender::BKE_paint_get_active_from_context(), blender::ed::sculpt_paint::greasepencil::brush_point_influence_mask(), C, blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_scene(), blender::CTX_wm_region(), blender::CTX_wm_region_view3d(), blender::data, blender::Object::data, blender::DEG_get_evaluated(), blender::ed::sculpt_paint::greasepencil::get_drawings_with_masking_for_stroke_operation(), blender::if(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::init_auto_masking(), blender::ed::sculpt_paint::greasepencil::init_brush(), blender::ed::sculpt_paint::InputSample::mouse_position, on_stroke_begin(), blender::threading::parallel_for_each(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::prev_mouse_position, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), 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().
Referenced by on_stroke_begin().
|
inlineoverridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 69 of file sculpt_grab.cc.
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 235 of file sculpt_grab.cc.
References C, blender::ed::sculpt_paint::greasepencil::compute_orig_delta(), blender::CURVE_TYPE_BEZIER, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, foreach_grabbed_drawing(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::greasepencil::get_drawing_deformation(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::mouse_delta(), on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::stroke_extended(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_positions_changed().
Referenced by on_stroke_extended().
| Array<PointWeights> blender::ed::sculpt_paint::greasepencil::GrabOperation::drawing_data |
Definition at line 55 of file sculpt_grab.cc.