|
Blender V4.3
|
Classes | |
| class | AverageWeightPaintOperation |
| class | BlurWeightPaintOperation |
| class | CloneOperation |
| struct | ColorGrid |
| class | DrawWeightPaintOperation |
| class | EraseOperation |
| struct | EraseOperationExecutor |
| class | GrabOperation |
| class | GreasePencilStrokeOperationCommon |
| struct | GreasePencilStrokeParams |
| struct | InterpolateOpData |
| struct | InterpolationPairs |
| struct | MutableDrawingInfo |
| class | PaintOperation |
| struct | PaintOperationExecutor |
| class | PinchOperation |
| class | PushOperation |
| class | RandomizeOperation |
| struct | SegmentCircleIntersection |
| class | SmearWeightPaintOperation |
| class | SmoothOperation |
| class | StrengthOperation |
| class | ThicknessOperation |
| class | TintOperation |
| class | TwistOperation |
| class | VertexAverageOperation |
| class | VertexBlurOperation |
| class | VertexPaintOperation |
| class | VertexReplaceOperation |
| class | VertexSmearOperation |
| class | WeightPaintOperation |
Enumerations | |
| enum class | PointCircleSide { Outside , OutsideInsideBoundary , InsideOutsideBoundary , Inside } |
| enum class | InterpolateFlipMode |
| enum class | InterpolateLayerMode |
Trace Image Operator | |
| enum class | TargetObjectMode : int8_t { New = 0 , Selected = 1 } |
| enum class | TraceMode : int8_t { Single = 0 , Sequence = 1 } |
| enum class | TurnPolicy |
Variables | |
| static constexpr float | FIND_NEAREST_POINT_EPSILON = 1e-6f |
| static constexpr int | BLUR_NEIGHBOUR_NUM = 5 |
| static constexpr int | SMEAR_NEIGHBOUR_NUM = 8 |
| using blender::ed::sculpt_paint::greasepencil::FramesMapKeyIntervalT = std::pair<int, int> |
Definition at line 196 of file grease_pencil_interpolate.cc.
|
strong |
Definition at line 714 of file ED_grease_pencil.hh.
|
strong |
Definition at line 723 of file ED_grease_pencil.hh.
|
strong |
| Enumerator | |
|---|---|
| Cancel | |
| Confirm | |
| Increase | |
| Decrease | |
Definition at line 803 of file grease_pencil_interpolate.cc.
|
strong |
| Enumerator | |
|---|---|
| Linear | Traditional Linear Interpolation. |
| CurveMap | CurveMap Defined Interpolation. |
| Back | |
| Bounce | |
| Circular | |
| Cubic | |
| Elastic | |
| Exponential | |
| Quadratic | |
| Quartic | |
| Quintic | |
| Sine | |
Definition at line 60 of file grease_pencil_interpolate.cc.
|
strong |
| Enumerator | |
|---|---|
| Outside | |
| OutsideInsideBoundary | |
| InsideOutsideBoundary | |
| Inside | |
Definition at line 80 of file grease_pencil_erase.cc.
|
strong |
| Enumerator | |
|---|---|
| New | |
| Selected | |
Definition at line 55 of file grease_pencil_trace.cc.
|
strong |
| Enumerator | |
|---|---|
| Single | |
| Sequence | |
Definition at line 60 of file grease_pencil_trace.cc.
|
strong |
Definition at line 48 of file grease_pencil_trace_util.hh.
Definition at line 85 of file grease_pencil_paint.cc.
References blender::Span< T >::begin(), blender::Span< T >::end(), and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::active_smoothing(), and blender::ed::sculpt_paint::greasepencil::CloneOperation::on_stroke_begin().
Definition at line 31 of file grease_pencil_sculpt_clone.cc.
References blender::Span< T >::begin(), blender::Span< T >::end(), and blender::Span< T >::size().
| float blender::ed::sculpt_paint::greasepencil::brush_fill_influence | ( | const Scene & | scene, |
| const Brush & | brush, | ||
| Span< float2 > | fill_positions, | ||
| const InputSample & | sample, | ||
| float | multi_frame_falloff ) |
Definition at line 126 of file grease_pencil_paint_common.cc.
References BKE_brush_alpha_get(), BKE_brush_curve_strength(), BKE_brush_use_alpha_pressure(), brush_radius(), closest_distance_to_surface_2d(), distance(), and sample.
Referenced by blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexPaintOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation::on_stroke_extended().
| float blender::ed::sculpt_paint::greasepencil::brush_point_influence | ( | const Scene & | scene, |
| const Brush & | brush, | ||
| const float2 & | co, | ||
| const InputSample & | sample, | ||
| float | multi_frame_falloff ) |
Definition at line 86 of file grease_pencil_paint_common.cc.
References BKE_brush_alpha_get(), BKE_brush_curve_strength(), BKE_brush_use_alpha_pressure(), brush_radius(), blender::math::distance(), distance(), blender::math::round(), and sample.
Referenced by 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::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().
| IndexMask blender::ed::sculpt_paint::greasepencil::brush_point_influence_mask | ( | const Scene & | scene, |
| const Brush & | brush, | ||
| const float2 & | mouse_position, | ||
| float | pressure, | ||
| float | multi_frame_falloff, | ||
| const IndexMask & | selection, | ||
| Span< float2 > | view_positions, | ||
| Vector< float > & | influences, | ||
| IndexMaskMemory & | memory ) |
Definition at line 146 of file grease_pencil_paint_common.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), BKE_brush_alpha_get(), BKE_brush_curve_strength(), BKE_brush_use_alpha_pressure(), brush_radius(), blender::math::distance_squared(), blender::IndexMask::from_predicate(), blender::array_utils::gather(), point, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::math::round(), selection, blender::index_mask::IndexMask::size(), and blender::math::sqrt().
Referenced by blender::ed::sculpt_paint::greasepencil::GrabOperation::on_stroke_begin().
| float blender::ed::sculpt_paint::greasepencil::brush_radius | ( | const Scene & | scene, |
| const Brush & | brush, | ||
| float | pressure = 1.0f ) |
Definition at line 77 of file grease_pencil_paint_common.cc.
References BKE_brush_size_get(), BKE_brush_use_size_pressure(), BKE_curvemapping_evaluateF(), BrushGpencilSettings::curve_sensitivity, and Brush::gpencil_settings.
Referenced by brush_fill_influence(), brush_point_influence(), brush_point_influence_mask(), blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexBlurOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::VertexSmearOperation::on_stroke_extended().
|
static |
Definition at line 54 of file grease_pencil_paint.cc.
References BRUSH_LOCK_SIZE, ED_view3d_pixel_size(), Brush::flag, float, pos, Brush::size, and Brush::unprojected_radius.
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample().
| bool blender::ed::sculpt_paint::greasepencil::brush_using_vertex_color | ( | const GpPaint * | gp_paint, |
| const Brush * | brush ) |
Definition at line 188 of file grease_pencil_paint_common.cc.
References BrushGpencilSettings::brush_draw_mode, GP_BRUSH_MODE_ACTIVE, GP_BRUSH_MODE_VERTEXCOLOR, Brush::gpencil_settings, GPPAINT_FLAG_USE_VERTEXCOLOR, and GpPaint::mode.
Referenced by blender::ed::greasepencil::boundary_to_curves(), blender::ed::sculpt_paint::grease_pencil_brush_cursor_draw(), and blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::PaintOperationExecutor().
| Array< float2 > blender::ed::sculpt_paint::greasepencil::calculate_view_positions | ( | const GreasePencilStrokeParams & | params, |
| const IndexMask & | selection ) |
Definition at line 340 of file grease_pencil_paint_common.cc.
References ED_view3d_project_float_global(), get_drawing_deformation(), params, blender::bke::crazyspace::GeometryDeformation::positions, result, selection, blender::math::transform_point(), V3D_PROJ_RET_OK, and V3D_PROJ_TEST_NOP.
Referenced by blender::ed::sculpt_paint::greasepencil::CloneOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::GrabOperation::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().
| Array< float > blender::ed::sculpt_paint::greasepencil::calculate_view_radii | ( | const GreasePencilStrokeParams & | params, |
| const IndexMask & | selection ) |
Definition at line 363 of file grease_pencil_paint_common.cc.
References ED_view3d_pixel_size(), get_drawing_deformation(), params, blender::bke::crazyspace::GeometryDeformation::positions, selection, blender::VArrayCommon< T >::size(), and blender::math::transform_point().
| float blender::ed::sculpt_paint::greasepencil::closest_distance_to_surface_2d | ( | const float2 | pt, |
| const Span< float2 > | verts ) |
Compute the closest distance to the "surface". When the point is outside the polygon, compute the closest distance to the polygon points. When the point is inside the polygon return 0.
Definition at line 107 of file grease_pencil_paint_common.cc.
References blender::math::distance(), distance(), FLT_MAX, blender::math::min(), verts, and y.
Referenced by brush_fill_influence(), and blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended().
|
static |
Definition at line 364 of file grease_pencil_interpolate.cc.
References blender::math::angle_between(), DEG2RADF, blender::math::distance_squared(), blender::math::dot(), blender::Span< T >::first(), ISECT_LINE_LINE_CROSS, isect_seg_seg_v2(), blender::Span< T >::last(), blender::math::normalize(), and blender::Span< T >::size().
Referenced by interpolate_between_curves().
|
static |
Creates a new curve with one point at the beginning or end.
Definition at line 143 of file grease_pencil_paint.cc.
References blender::bke::attribute_math::convert_to_static_type(), blender::MutableSpan< T >::first(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::AttributeIter::name, blender::bke::GSpanAttributeWriter::span, and blender::GMutableSpan::type().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample().
|
static |
Definition at line 1350 of file grease_pencil_paint.cc.
References C, CD_PROP_BOOL, CTX_data_scene(), blender::bke::Curve, deselect_stroke(), ED_grease_pencil_edit_selection_domain_get(), blender::ed::curves::ensure_selection_attribute(), blender::ed::curves::fill_selection_false(), blender::IndexRange::from_single(), blender::bke::Point, blender::bke::CurvesGeometry::points_by_curve(), selection, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and Scene::toolsettings.
Referenced by deselect_stroke(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().
| bool blender::ed::sculpt_paint::greasepencil::do_vertex_color_fill | ( | const Brush & | brush | ) |
Definition at line 388 of file grease_pencil_paint_common.cc.
References ELEM, Brush::gpencil_settings, GPPAINT_MODE_BOTH, GPPAINT_MODE_FILL, and BrushGpencilSettings::vertex_mode.
Referenced by blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexPaintOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation::on_stroke_extended().
| bool blender::ed::sculpt_paint::greasepencil::do_vertex_color_points | ( | const Brush & | brush | ) |
Definition at line 382 of file grease_pencil_paint_common.cc.
References ELEM, Brush::gpencil_settings, GPPAINT_MODE_BOTH, GPPAINT_MODE_STROKE, and BrushGpencilSettings::vertex_mode.
Referenced by blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexPaintOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation::on_stroke_extended().
|
static |
Definition at line 613 of file grease_pencil_interpolate.cc.
References BEZT_KEYTYPE_BREAKDOWN, get_drawing_at_exact_frame(), and blender::ed::sculpt_paint::greasepencil::InterpolateOpData::LayerData::orig_curves.
Referenced by grease_pencil_interpolate_init(), and grease_pencil_interpolate_sequence_exec().
|
static |
Extends the first or last curve by new_points_num number of points.
Definition at line 184 of file grease_pencil_paint.cc.
References blender::bke::attribute_math::convert_to_static_type(), blender::bke::AttributeIter::domain, extend_curve(), blender::bke::AttributeAccessor::foreach_attribute(), blender::MutableSpan< T >::last(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::AttributeIter::name, blender::bke::Point, blender::bke::GSpanAttributeWriter::span, and blender::GMutableSpan::type().
Referenced by extend_curve(), and blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample().
| IndexMask blender::ed::sculpt_paint::greasepencil::fill_selection_mask | ( | const GreasePencilStrokeParams & | params, |
| const bool | use_masking, | ||
| IndexMaskMemory & | memory ) |
Definition at line 324 of file grease_pencil_paint_common.cc.
References params, and blender::ed::greasepencil::retrieve_editable_and_selected_fill_strokes().
Referenced by blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexPaintOperation::on_stroke_extended(), and blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation::on_stroke_extended().
|
static |
Definition at line 242 of file grease_pencil_interpolate.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append_n_times(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), BLI_assert, blender::bke::CurvesGeometry::curves_range(), find_frames_interval(), blender::ed::sculpt_paint::greasepencil::InterpolationPairs::from_curves, blender::ed::sculpt_paint::greasepencil::InterpolationPairs::from_frames, blender::ed::curves::has_anything_selected(), blender::bke::greasepencil::Layer::has_drawing_at(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::curves::retrieve_selected_curves(), blender::index_mask::IndexMask::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::index_mask::IndexMask::slice(), MutableSpan< T >::slice(), blender::bke::greasepencil::Drawing::strokes(), blender::ed::sculpt_paint::greasepencil::InterpolationPairs::to_curves, blender::ed::sculpt_paint::greasepencil::InterpolationPairs::to_frames, and blender::index_mask::IndexMask::to_indices().
Referenced by blender::ed::sculpt_paint::greasepencil::InterpolateOpData::from_operator().
|
static |
Definition at line 198 of file grease_pencil_interpolate.cc.
References blender::Span< T >::begin(), BEZT_KEYTYPE_BREAKDOWN, blender::Span< T >::end(), blender::bke::greasepencil::Layer::frame_at(), blender::bke::greasepencil::Layer::sorted_keys(), blender::bke::greasepencil::Layer::sorted_keys_iterator_at(), and GreasePencilFrame::type.
Referenced by find_curve_mapping_from_index(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::from_operator(), and grease_pencil_interpolate_sequence_exec().
|
static |
Definition at line 600 of file grease_pencil_interpolate.cc.
References blender::bke::greasepencil::Layer::start_frame_at().
Referenced by ensure_drawing_at_exact_frame(), grease_pencil_interpolate_sequence_exec(), and grease_pencil_interpolate_update().
| bke::crazyspace::GeometryDeformation blender::ed::sculpt_paint::greasepencil::get_drawing_deformation | ( | const GreasePencilStrokeParams & | params | ) |
Definition at line 333 of file grease_pencil_paint_common.cc.
References blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), and params.
Referenced by calculate_view_positions(), calculate_view_radii(), blender::ed::sculpt_paint::greasepencil::CloneOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::GrabOperation::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(), and blender::ed::sculpt_paint::greasepencil::TwistOperation::on_stroke_extended().
| Vector< ed::greasepencil::MutableDrawingInfo > blender::ed::sculpt_paint::greasepencil::get_drawings_for_painting | ( | const bContext & | C | ) |
Definition at line 33 of file grease_pencil_paint_common.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), C, CTX_data_active_object(), CTX_data_scene(), Object::data, BrushGpencilSettings::flag, GP_BRUSH_ACTIVE_LAYER_ONLY, Brush::gpencil_settings, blender::ed::greasepencil::retrieve_editable_drawings_from_layer_with_falloff(), and blender::ed::greasepencil::retrieve_editable_drawings_with_falloff().
Referenced by blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing(), and blender::ed::sculpt_paint::greasepencil::GrabOperation::on_stroke_begin().
| DeltaProjectionFunc blender::ed::sculpt_paint::greasepencil::get_screen_projection_fn | ( | const GreasePencilStrokeParams & | params, |
| const Object & | object, | ||
| const bke::greasepencil::Layer & | layer ) |
Definition at line 205 of file grease_pencil_paint_common.cc.
References BLI_assert_unreachable, blender::math::dot(), ED_view3d_calc_zfac(), ED_view3d_win_to_delta(), GP_LOCKAXIS_CURSOR, GP_LOCKAXIS_VIEW, GP_LOCKAXIS_X, GP_LOCKAXIS_Y, GP_LOCKAXIS_Z, blender::math::invert(), params, blender::bke::greasepencil::Layer::to_world_space(), blender::math::transform_direction(), blender::math::transform_point(), and blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis().
Referenced by blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing(), and blender::ed::sculpt_paint::greasepencil::GrabOperation::foreach_grabbed_drawing().
|
static |
Definition at line 886 of file grease_pencil_interpolate.cc.
References C, grease_pencil_interpolate_exit(), and grease_pencil_interpolate_restore().
Referenced by GREASE_PENCIL_OT_interpolate().
|
static |
Definition at line 747 of file grease_pencil_interpolate.cc.
References C, CTX_wm_area(), wmOperator::customdata, ED_area_status_text(), and ED_workspace_status_text().
Referenced by grease_pencil_interpolate_cancel(), grease_pencil_interpolate_invoke(), and grease_pencil_interpolate_modal().
|
static |
Definition at line 720 of file grease_pencil_interpolate.cc.
References C, RenderData::cfra, CTX_data_active_object(), CTX_data_scene(), wmOperator::customdata, data, ensure_drawing_at_exact_frame(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::from_operator(), and Scene::r.
Referenced by grease_pencil_interpolate_invoke().
|
static |
Definition at line 781 of file grease_pencil_interpolate.cc.
References C, CTX_wm_window(), wmOperator::customdata, grease_pencil_interpolate_exit(), grease_pencil_interpolate_init(), grease_pencil_interpolate_status_indicators(), NA_EDITED, NC_GPENCIL, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, WM_CURSOR_EW_SCROLL, WM_cursor_modal_set(), WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_interpolate().
|
static |
Definition at line 811 of file grease_pencil_interpolate.cc.
References applyNumInput(), C, Cancel, Confirm, CTX_wm_area(), CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, Decrease, ED_area_status_text(), ED_workspace_status_text(), EVT_MODAL_MAP, grease_pencil_interpolate_exit(), grease_pencil_interpolate_restore(), grease_pencil_interpolate_update(), handleNumInput(), hasNumInput(), Increase, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::init_factor, interpolate_factor_max, interpolate_factor_min, KM_PRESS, MOUSEMOVE, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::numeric_input, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::shift, wmEvent::type, wmEvent::val, ARegion::winx, and WM_cursor_modal_restore().
Referenced by GREASE_PENCIL_OT_interpolate().
|
static |
Definition at line 762 of file grease_pencil_interpolate.cc.
References blender::ed::greasepencil::active_grease_pencil_poll(), C, CTX_data_tool_settings(), CTX_wm_area(), ToolSettings::gp_paint, SPACE_VIEW3D, and ScrArea::spacetype.
Referenced by GREASE_PENCIL_OT_interpolate(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 682 of file grease_pencil_interpolate.cc.
References C, RenderData::cfra, CTX_data_active_object(), CTX_data_scene(), wmOperator::customdata, DEG_id_tag_update(), GreasePencil::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NA_EDITED, NC_GPENCIL, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::LayerData::orig_curves, Scene::r, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and WM_event_add_notifier().
Referenced by grease_pencil_interpolate_cancel(), and grease_pencil_interpolate_modal().
|
static |
Definition at line 970 of file grease_pencil_interpolate.cc.
References BEZT_IPO_EASE_IN, BEZT_IPO_EASE_IN_OUT, BEZT_IPO_EASE_OUT, BKE_curvemapping_evaluateF(), BLI_assert_unreachable, BLI_easing_back_ease_in(), BLI_easing_back_ease_in_out(), BLI_easing_back_ease_out(), BLI_easing_bounce_ease_in(), BLI_easing_bounce_ease_in_out(), BLI_easing_bounce_ease_out(), BLI_easing_circ_ease_in(), BLI_easing_circ_ease_in_out(), BLI_easing_circ_ease_out(), BLI_easing_cubic_ease_in(), BLI_easing_cubic_ease_in_out(), BLI_easing_cubic_ease_out(), BLI_easing_elastic_ease_in(), BLI_easing_elastic_ease_in_out(), BLI_easing_elastic_ease_out(), BLI_easing_expo_ease_in(), BLI_easing_expo_ease_in_out(), BLI_easing_expo_ease_out(), BLI_easing_quad_ease_in(), BLI_easing_quad_ease_in_out(), BLI_easing_quad_ease_out(), BLI_easing_quart_ease_in(), BLI_easing_quart_ease_in_out(), BLI_easing_quart_ease_out(), BLI_easing_quint_ease_in(), BLI_easing_quint_ease_in_out(), BLI_easing_quint_ease_out(), BLI_easing_sine_ease_in(), BLI_easing_sine_ease_in_out(), and BLI_easing_sine_ease_out().
Referenced by grease_pencil_interpolate_sequence_exec().
|
static |
Definition at line 1137 of file grease_pencil_interpolate.cc.
References BKE_curvemapping_add(), BKE_curvemapping_init(), C, RenderData::cfra, CTX_data_active_object(), CTX_data_scene(), CTX_data_tool_settings(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::LayerData::curve_pairs, blender::bke::CurvesGeometry::curves_range(), GP_Interpolate_Settings::custom_ipo, wmOperator::customdata, blender::bke::CurvesGeometry::cyclic(), DEG_id_tag_update(), ensure_drawing_at_exact_frame(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::exclude_breakdowns, find_frames_interval(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::flipmode, float, blender::index_mask::IndexMask::foreach_index(), blender::VArray< T >::ForSingle(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::from_operator(), get_drawing_at_exact_frame(), ToolSettings::gp_interpolate, grease_pencil_interpolate_sequence_easing_calc(), GreasePencil::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, interpolate_between_curves(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::layer_data, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::layer_mask, NA_EDITED, NC_GPENCIL, ND_DATA, OPERATOR_FINISHED, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::points_num(), blender::bke::CurvesGeometry::positions_for_write(), wmOperator::ptr, Scene::r, RNA_enum_get(), RNA_float_get(), RNA_int_get(), blender::geometry::smooth_curve_attribute(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::smooth_factor, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::smooth_steps, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::CurvesGeometry::tag_positions_changed(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and WM_event_add_notifier().
Referenced by GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 1224 of file grease_pencil_interpolate.cc.
References C, col, CTX_data_mode_enum(), CTX_data_scene(), CTX_MODE_EDIT_GPENCIL_LEGACY, ToolSettings::gp_interpolate, Scene::id, wmOperator::layout, wmOperator::ptr, RNA_enum_get(), RNA_pointer_create(), Scene::toolsettings, UI_ITEM_NONE, uiItemR(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateCurveMapping().
Referenced by GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 576 of file grease_pencil_interpolate.cc.
References C, CTX_data_scene(), CTX_wm_area(), ED_area_status_text(), ED_workspace_status_text(), hasNumInput(), IFACE_, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::init_factor, NUM_STR_REP_LEN, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::numeric_input, outputNumInput(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::shift, and Scene::unit.
Referenced by grease_pencil_interpolate_invoke(), and grease_pencil_interpolate_update().
|
static |
Definition at line 630 of file grease_pencil_interpolate.cc.
References C, RenderData::cfra, CTX_data_active_object(), CTX_data_scene(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::LayerData::curve_pairs, blender::bke::CurvesGeometry::curves_range(), wmOperator::customdata, blender::bke::CurvesGeometry::cyclic(), DEG_id_tag_update(), blender::VArray< T >::ForSingle(), get_drawing_at_exact_frame(), grease_pencil_interpolate_status_indicators(), GreasePencil::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, interpolate_between_curves(), NA_EDITED, NC_GPENCIL, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::points_num(), blender::bke::CurvesGeometry::positions_for_write(), wmOperator::ptr, Scene::r, RNA_enum_get(), blender::geometry::smooth_curve_attribute(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::CurvesGeometry::tag_positions_changed(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and WM_event_add_notifier().
Referenced by grease_pencil_interpolate_modal().
|
static |
Definition at line 892 of file grease_pencil_interpolate.cc.
References grease_pencil_interpolate_cancel(), grease_pencil_interpolate_flip_mode_items, grease_pencil_interpolate_invoke(), grease_pencil_interpolate_layer_items, grease_pencil_interpolate_modal(), grease_pencil_interpolate_poll(), OPTYPE_BLOCKING, OPTYPE_UNDO, ot, RNA_def_boolean(), RNA_def_enum(), RNA_def_float(), RNA_def_float_factor(), and RNA_def_int().
Referenced by ED_operatortypes_grease_pencil_interpolate().
|
static |
Definition at line 1282 of file grease_pencil_interpolate.cc.
References BEZT_IPO_LIN, BLT_I18NCONTEXT_ID_GPENCIL, FLT_MAX, grease_pencil_interpolate_flip_mode_items, grease_pencil_interpolate_layer_items, grease_pencil_interpolate_poll(), grease_pencil_interpolate_sequence_exec(), grease_pencil_interpolate_sequence_ui(), grease_pencil_interpolation_type_items, MAXFRAME, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), RNA_def_enum(), RNA_def_float(), RNA_def_int(), RNA_def_property_translation_context(), and rna_enum_beztriple_interpolation_easing_items.
Referenced by ED_operatortypes_grease_pencil_interpolate().
|
static |
Definition at line 28 of file grease_pencil_sculpt_randomize.cc.
References BLI_hash_int_01(), and BLI_hash_int_3d().
Referenced by blender::ed::sculpt_paint::greasepencil::RandomizeOperation::on_stroke_extended().
| void blender::ed::sculpt_paint::greasepencil::init_brush | ( | Brush & | brush | ) |
Definition at line 59 of file grease_pencil_paint_common.cc.
References BKE_brush_init_gpencil_settings(), BKE_curvemapping_init(), BLI_assert, Brush::curve, BrushGpencilSettings::curve_jitter, BrushGpencilSettings::curve_rand_hue, BrushGpencilSettings::curve_rand_pressure, BrushGpencilSettings::curve_rand_saturation, BrushGpencilSettings::curve_rand_strength, BrushGpencilSettings::curve_rand_uv, BrushGpencilSettings::curve_rand_value, BrushGpencilSettings::curve_sensitivity, BrushGpencilSettings::curve_strength, and Brush::gpencil_settings.
Referenced by blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::init_stroke(), blender::ed::sculpt_paint::greasepencil::GrabOperation::on_stroke_begin(), and blender::ed::sculpt_paint::greasepencil::SmoothOperation::on_stroke_begin().
|
static |
Definition at line 400 of file grease_pencil_interpolate.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), b, blender::Array< T, InlineBufferCapacity, Allocator >::begin(), BKE_defgroup_copy_list(), BLI_assert, compute_auto_flip(), MutableSpan< T >::copy_from(), blender::bke::CurvesGeometry::curves_range(), blender::Array< T, InlineBufferCapacity, Allocator >::end(), blender::array_utils::fill_index_range(), blender::IndexRange::first(), blender::ed::sculpt_paint::greasepencil::InterpolationPairs::from_curves, blender::ed::sculpt_paint::greasepencil::InterpolationPairs::from_frames, blender::IndexMask::from_indices(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::geometry::interpolate_curves(), blender::IndexRange::is_empty(), blender::offset_indices::OffsetIndices< T >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::IndexRange::last(), blender::bke::CurvesGeometry::offsets_for_write(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions(), blender::IndexRange::size(), blender::offset_indices::OffsetIndices< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::Span< T >::slice(), blender::bke::greasepencil::Drawing::strokes(), blender::ed::sculpt_paint::greasepencil::InterpolationPairs::to_curves, blender::ed::sculpt_paint::greasepencil::InterpolationPairs::to_frames, blender::offset_indices::OffsetIndices< T >::total_size(), CurvesGeometry::vertex_group_names, and GreasePencil::vertex_group_names.
Referenced by grease_pencil_interpolate_sequence_exec(), and grease_pencil_interpolate_update().
| bool blender::ed::sculpt_paint::greasepencil::is_brush_inverted | ( | const Brush & | brush, |
| BrushStrokeMode | stroke_mode ) |
Definition at line 198 of file grease_pencil_paint_common.cc.
References BRUSH_DIR_IN, BRUSH_STROKE_INVERT, and Brush::flag.
Referenced by blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::is_inverted().
|
inlinestatic |
Definition at line 66 of file grease_pencil_paint.cc.
References b, float, blender::MutableSpan< T >::index_range(), blender::bke::attribute_math::mix2(), blender::math::safe_rcp(), blender::MutableSpan< T >::size(), and T.
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample().
|
static |
Morph src onto target such that the points have the same spacing as in src and write the result to dst.
Definition at line 120 of file grease_pencil_paint.cc.
References blender::length_parameterize::accumulate_lengths(), BLI_assert, blender::MutableSpan< T >::drop_back(), blender::length_parameterize::interpolate(), blender::MutableSpan< T >::last(), blender::Span< T >::last(), blender::length_parameterize::sample_at_lengths(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::active_smoothing().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_clone_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 99 of file grease_pencil_sculpt_clone.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_erase_operation | ( | const bool | temp_eraser | ) |
Definition at line 1081 of file grease_pencil_erase.cc.
References new_erase_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_erase_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_grab_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 215 of file grease_pencil_sculpt_grab.cc.
References new_grab_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_grab_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_paint_operation | ( | bool | temp_draw = false | ) |
Definition at line 1554 of file grease_pencil_paint.cc.
References new_paint_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_paint_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_pinch_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 81 of file grease_pencil_sculpt_pinch.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_push_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 78 of file grease_pencil_sculpt_push.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_randomize_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 154 of file grease_pencil_sculpt_randomize.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_smooth_operation | ( | BrushStrokeMode | stroke_mode, |
| bool | temp_smooth = false ) |
Definition at line 165 of file grease_pencil_sculpt_smooth.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_strength_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 70 of file grease_pencil_sculpt_strength.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_thickness_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 74 of file grease_pencil_sculpt_thickness.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_tint_operation | ( | ) |
Definition at line 257 of file grease_pencil_tint.cc.
References new_tint_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_tint_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_twist_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 91 of file grease_pencil_sculpt_twist.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_vertex_average_operation | ( | ) |
Definition at line 131 of file grease_pencil_vertex_average.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_vertex_blur_operation | ( | ) |
Definition at line 88 of file grease_pencil_vertex_blur.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_vertex_paint_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 115 of file sculpt_paint/grease_pencil_vertex_paint.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_vertex_replace_operation | ( | ) |
Definition at line 84 of file grease_pencil_vertex_replace.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_vertex_smear_operation | ( | ) |
Definition at line 195 of file grease_pencil_vertex_smear.cc.
Referenced by blender::ed::sculpt_paint::get_stroke_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_weight_paint_average_operation | ( | ) |
Definition at line 111 of file grease_pencil_weight_average.cc.
References new_weight_paint_average_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_weight_paint_average_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_weight_paint_blur_operation | ( | ) |
Definition at line 134 of file grease_pencil_weight_blur.cc.
References new_weight_paint_blur_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_weight_paint_blur_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_weight_paint_draw_operation | ( | const BrushStrokeMode & | brush_mode | ) |
Definition at line 100 of file grease_pencil_weight_draw.cc.
References new_weight_paint_draw_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_weight_paint_draw_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_weight_paint_smear_operation | ( | ) |
Definition at line 191 of file grease_pencil_weight_smear.cc.
References new_weight_paint_smear_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_weight_paint_smear_operation().
|
static |
Definition at line 1238 of file grease_pencil_paint.cc.
References blender::ed::greasepencil::create_curves_outline(), blender::bke::curves_new_nomain(), blender::bke::GeometrySet::from_curves(), blender::IndexRange::from_single(), blender::geometry::join_geometries(), outline_stroke(), blender::bke::CurvesGeometry::positions(), blender::bke::CurvesGeometry::positions_for_write(), blender::bke::CurvesGeometry::remove_curves(), blender::ed::greasepencil::DrawingPlacement::reproject(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and outline_stroke().
| IndexMask blender::ed::sculpt_paint::greasepencil::point_selection_mask | ( | const GreasePencilStrokeParams & | params, |
| const bool | use_masking, | ||
| IndexMaskMemory & | memory ) |
Definition at line 302 of file grease_pencil_paint_common.cc.
References params, blender::ed::greasepencil::retrieve_editable_and_selected_points(), and blender::ed::greasepencil::retrieve_editable_points().
Referenced by blender::ed::sculpt_paint::greasepencil::GrabOperation::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().
|
static |
Definition at line 1374 of file grease_pencil_paint.cc.
References blender::bke::greasepencil::assign_to_vertex_group_from_mask(), BKE_object_defgroup_active_index_get(), BKE_object_defgroup_list(), BKE_pose_channel_find_name(), BLI_findlink(), bPoseChannel::chan_mat, blender::StringRefBase::data(), eModifierMode_Realtime, eModifierType_GreasePencilArmature, blender::MutableSpan< T >::index_range(), blender::math::invert(), LISTBASE_FOREACH, bDeformGroup::name, OB_ARMATURE, GreasePencilArmatureModifierData::object, blender::threading::parallel_for(), Object::pose, process_stroke_weights(), blender::bke::greasepencil::Drawing::strokes_for_write(), Scene::toolsettings, Object::type, and ToolSettings::vgroup_weight.
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and process_stroke_weights().
|
static |
Definition at line 33 of file grease_pencil_sculpt_twist.cc.
References angle(), blender::math::cos(), and blender::math::sin().
Referenced by blender::ed::sculpt_paint::greasepencil::TwistOperation::on_stroke_extended().
|
static |
Sample a bezier curve at a fixed resolution and return the sampled points in an array.
Definition at line 91 of file grease_pencil_paint.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), BLI_assert, blender::Span< T >::drop_back(), blender::Span< T >::drop_front(), blender::bke::curves::bezier::evaluate_segment(), blender::threading::parallel_for(), and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::active_smoothing().
|
static |
Definition at line 1149 of file grease_pencil_paint.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), BLI_assert, blender::geometry::curve_simplify(), IndexMask::from_bools(), blender::VArrayCommon< T >::get_internal_span(), blender::index_mask::IndexMask::is_empty(), blender::VArrayCommon< T >::is_span(), blender::bke::AttributeAccessor::lookup(), blender::bke::CurvesGeometry::points_num(), blender::bke::CurvesGeometry::remove_points(), simplify_stroke(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and simplify_stroke().
|
static |
Definition at line 1096 of file grease_pencil_paint.cc.
References blender::bke::GSpanAttributeWriter::finish(), VArray< T >::ForSingle(), IndexRange::from_single(), blender::VArrayCommon< T >::is_span(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::greasepencil::Drawing::opacities(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::greasepencil::Drawing::radii(), blender::geometry::smooth_curve_attribute(), smooth_stroke(), blender::bke::GSpanAttributeWriter::span, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_positions_changed().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and smooth_stroke().
| IndexMask blender::ed::sculpt_paint::greasepencil::stroke_selection_mask | ( | const GreasePencilStrokeParams & | params, |
| const bool | use_masking, | ||
| IndexMaskMemory & | memory ) |
Definition at line 313 of file grease_pencil_paint_common.cc.
References params, blender::ed::greasepencil::retrieve_editable_and_selected_strokes(), and blender::ed::greasepencil::retrieve_editable_strokes().
Referenced by blender::ed::sculpt_paint::greasepencil::VertexBlurOperation::on_stroke_extended().
|
static |
Definition at line 1279 of file grease_pencil_paint.cc.
References blender::bke::attribute_math::convert_to_static_type(), blender::bke::AttributeIter::domain, blender::IndexRange::first(), blender::bke::AttributeAccessor::foreach_attribute(), blender::IndexRange::last(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::AttributeIter::name, blender::bke::Point, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::greasepencil::Drawing::radii(), blender::IndexRange::size(), blender::bke::GSpanAttributeWriter::span, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), trim_end_points(), and blender::GMutableSpan::type().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and trim_end_points().
|
static |
Definition at line 1179 of file grease_pencil_paint.cc.
References BLI_assert, BLI_rcti_init(), blender::bke::curves_copy_curve_selection(), blender::bke::curves_new_nomain(), blender::bke::GeometrySet::from_curves(), blender::IndexRange::from_single(), IndexRange::from_single(), blender::VArrayCommon< T >::get_internal_span(), blender::IndexRange::index_range(), int, blender::VArrayCommon< T >::is_span(), blender::geometry::join_geometries(), blender::IndexRange::last(), blender::bke::AttributeAccessor::lookup(), blender::bounds::min_max(), blender::bke::CurvesGeometry::points_num(), blender::bke::CurvesGeometry::remove_curves(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::ed::greasepencil::trim::trim_curve_segments(), and trim_stroke_ends().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and trim_stroke_ends().
|
staticconstexpr |
Definition at line 34 of file grease_pencil_weight_paint.hh.
Definition at line 33 of file grease_pencil_weight_paint.hh.
|
static |
Definition at line 142 of file grease_pencil_interpolate.cc.
Referenced by GREASE_PENCIL_OT_interpolate(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 149 of file grease_pencil_interpolate.cc.
Referenced by GREASE_PENCIL_OT_interpolate(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 82 of file grease_pencil_interpolate.cc.
Referenced by GREASE_PENCIL_OT_interpolate_sequence().
|
constexpr |
Definition at line 156 of file grease_pencil_interpolate.cc.
Referenced by grease_pencil_interpolate_modal().
|
constexpr |
Definition at line 155 of file grease_pencil_interpolate.cc.
Referenced by grease_pencil_interpolate_modal().
|
staticconstexpr |
Definition at line 35 of file grease_pencil_weight_paint.hh.