|
Blender V5.0
|
Inherits blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon.
Classes | |
| struct | PointWeights |
Public Types | |
| using | MutableDrawingInfo = blender::ed::greasepencil::MutableDrawingInfo |
| Public Types inherited from blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon | |
| using | MutableDrawingInfo = blender::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 grease_pencil_sculpt_grab.cc.
| using blender::ed::sculpt_paint::greasepencil::GrabOperation::MutableDrawingInfo = blender::ed::greasepencil::MutableDrawingInfo |
Definition at line 33 of file grease_pencil_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, Span< float > weights)> | fn ) const |
Definition at line 64 of file grease_pencil_sculpt_grab.cc.
References C, CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), data, DEG_get_evaluated(), depsgraph, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::from_context(), blender::ed::sculpt_paint::greasepencil::get_screen_projection_fn(), i, if(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::threading::parallel_for_each(), and params.
Referenced by on_stroke_extended().
|
inline |
Definition at line 184 of file grease_pencil_intern.hh.
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 117 of file grease_pencil_sculpt_grab.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), blender::ed::sculpt_paint::greasepencil::brush_point_influence_mask(), C, blender::ed::sculpt_paint::greasepencil::calculate_view_positions(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), data, Object::data, DEG_get_evaluated(), depsgraph, blender::ed::sculpt_paint::greasepencil::get_drawings_with_masking_for_stroke_operation(), i, 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(), params, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::prev_mouse_position, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by on_stroke_begin().
|
inlineoverridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 61 of file grease_pencil_sculpt_grab.cc.
|
overridevirtual |
Implements blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Definition at line 186 of file grease_pencil_sculpt_grab.cc.
References C, blender::ed::sculpt_paint::greasepencil::compute_orig_delta(), foreach_grabbed_drawing(), blender::ed::sculpt_paint::greasepencil::get_drawing_deformation(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::mouse_delta(), on_stroke_extended(), params, and blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::stroke_extended().
Referenced by on_stroke_extended().
| Array<PointWeights> blender::ed::sculpt_paint::greasepencil::GrabOperation::drawing_data |
Definition at line 51 of file grease_pencil_sculpt_grab.cc.