|
Blender V4.3
|
#include <grease_pencil_intern.hh>
Inherits blender::ed::sculpt_paint::GreasePencilStrokeOperation.
Inherited by blender::ed::sculpt_paint::greasepencil::CloneOperation, blender::ed::sculpt_paint::greasepencil::GrabOperation, blender::ed::sculpt_paint::greasepencil::PinchOperation, blender::ed::sculpt_paint::greasepencil::PushOperation, blender::ed::sculpt_paint::greasepencil::RandomizeOperation, blender::ed::sculpt_paint::greasepencil::SmoothOperation, blender::ed::sculpt_paint::greasepencil::StrengthOperation, blender::ed::sculpt_paint::greasepencil::ThicknessOperation, blender::ed::sculpt_paint::greasepencil::TwistOperation, blender::ed::sculpt_paint::greasepencil::VertexAverageOperation, blender::ed::sculpt_paint::greasepencil::VertexBlurOperation, blender::ed::sculpt_paint::greasepencil::VertexPaintOperation, blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation, and blender::ed::sculpt_paint::greasepencil::VertexSmearOperation.
Public Types | |
| using | MutableDrawingInfo = blender::ed::greasepencil::MutableDrawingInfo |
| using | DrawingPlacement = ed::greasepencil::DrawingPlacement |
Public Attributes | |
| BrushStrokeMode | stroke_mode |
| float2 | start_mouse_position |
| float2 | prev_mouse_position |
Definition at line 154 of file grease_pencil_intern.hh.
| using blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::DrawingPlacement = ed::greasepencil::DrawingPlacement |
Definition at line 157 of file grease_pencil_intern.hh.
| using blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::MutableDrawingInfo = blender::ed::greasepencil::MutableDrawingInfo |
Definition at line 156 of file grease_pencil_intern.hh.
|
inline |
Definition at line 166 of file grease_pencil_intern.hh.
|
inline |
Definition at line 167 of file grease_pencil_intern.hh.
| void blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing | ( | const bContext & | C, |
| FunctionRef< bool(const GreasePencilStrokeParams ¶ms)> | fn ) const |
Definition at line 392 of file grease_pencil_paint_common.cc.
References CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), DEG_id_tag_update(), depsgraph, blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::greasepencil::MutableDrawingInfo::frame_number, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::from_context(), blender::ed::sculpt_paint::greasepencil::get_drawings_for_painting(), GreasePencil::id, ID_RECALC_GEOMETRY, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::ed::greasepencil::MutableDrawingInfo::multi_frame_falloff, NC_GEOM, ND_DATA, params, and WM_event_add_notifier().
Referenced by blender::ed::sculpt_paint::greasepencil::CloneOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::PinchOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::PushOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::RandomizeOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::SmoothOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::StrengthOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::ThicknessOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::TwistOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexBlurOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::VertexSmearOperation::on_stroke_extended().
| void blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing | ( | const bContext & | C, |
| FunctionRef< bool(const GreasePencilStrokeParams ¶ms, const DeltaProjectionFunc &projection_fn)> | fn ) const |
Definition at line 470 of file grease_pencil_paint_common.cc.
References CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), DEG_get_evaluated_object(), DEG_id_tag_update(), depsgraph, blender::ed::greasepencil::MutableDrawingInfo::drawing, blender::ed::greasepencil::MutableDrawingInfo::frame_number, blender::ed::sculpt_paint::greasepencil::get_drawings_for_painting(), blender::ed::sculpt_paint::greasepencil::get_screen_projection_fn(), GreasePencil::id, ID_RECALC_GEOMETRY, blender::ed::greasepencil::MutableDrawingInfo::layer_index, blender::ed::greasepencil::MutableDrawingInfo::multi_frame_falloff, NC_GEOM, ND_DATA, blender::threading::parallel_for_each(), params, and WM_event_add_notifier().
| void blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing | ( | const bContext & | C, |
| GrainSize | grain_size, | ||
| FunctionRef< bool(const GreasePencilStrokeParams ¶ms)> | fn ) const |
Definition at line 429 of file grease_pencil_paint_common.cc.
References CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), depsgraph, blender::ed::sculpt_paint::greasepencil::get_drawings_for_painting(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::threading::parallel_for(), and blender::GrainSize::value.
| void blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::init_stroke | ( | const bContext & | C, |
| const InputSample & | start_sample ) |
Definition at line 512 of file grease_pencil_paint_common.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), blender::ed::sculpt_paint::greasepencil::init_brush(), and blender::ed::sculpt_paint::InputSample::mouse_position.
Referenced by blender::ed::sculpt_paint::greasepencil::CloneOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::PinchOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::PushOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::RandomizeOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::SmoothOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::StrengthOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::ThicknessOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::TwistOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::VertexBlurOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::VertexPaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation::on_stroke_begin(), and blender::ed::sculpt_paint::greasepencil::VertexSmearOperation::on_stroke_begin().
| bool blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::is_inverted | ( | const Brush & | brush | ) | const |
Definition at line 382 of file grease_pencil_paint_common.cc.
References blender::ed::sculpt_paint::greasepencil::is_brush_inverted(), and stroke_mode.
Referenced by blender::ed::sculpt_paint::greasepencil::PinchOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::StrengthOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::ThicknessOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::TwistOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::VertexPaintOperation::on_stroke_extended().
| float2 blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::mouse_delta | ( | const InputSample & | input_sample | ) | const |
Definition at line 387 of file grease_pencil_paint_common.cc.
References blender::ed::sculpt_paint::InputSample::mouse_position, and prev_mouse_position.
Referenced by blender::ed::sculpt_paint::greasepencil::CloneOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::PushOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::RandomizeOperation::on_stroke_extended().
| void blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::stroke_extended | ( | const InputSample & | extension_sample | ) |
Definition at line 524 of file grease_pencil_paint_common.cc.
References blender::ed::sculpt_paint::InputSample::mouse_position.
Referenced by blender::ed::sculpt_paint::greasepencil::CloneOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::PinchOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::PushOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::RandomizeOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::SmoothOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::StrengthOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::ThicknessOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::TwistOperation::on_stroke_extended().
| float2 blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::prev_mouse_position |
Previous mouse position for computing the direction.
Definition at line 164 of file grease_pencil_intern.hh.
Referenced by mouse_delta().
| float2 blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::start_mouse_position |
Initial mouse sample position, used for placement origin.
Definition at line 162 of file grease_pencil_intern.hh.
| BrushStrokeMode blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::stroke_mode |
Definition at line 159 of file grease_pencil_intern.hh.
Referenced by is_inverted().