|
Blender V5.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 | StrokeSnapMode { AllPoints , EndPoints , FirstPoint } |
| 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 | |
| constexpr float | invalid_screen_position = -1e10f |
| 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 198 of file interpolate.cc.
|
strong |
Definition at line 797 of file ED_grease_pencil.hh.
|
strong |
Definition at line 806 of file ED_grease_pencil.hh.
|
strong |
| Enumerator | |
|---|---|
| Cancel | |
| Confirm | |
| Increase | |
| Decrease | |
Definition at line 915 of file 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 62 of file interpolate.cc.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| AllPoints | |
| EndPoints | |
| FirstPoint | |
Definition at line 1033 of file editors/sculpt_paint/grease_pencil/paint.cc.
|
strong |
|
strong |
|
strong |
Definition at line 49 of file trace_util.hh.
|
static |
Definition at line 1379 of file editors/sculpt_paint/grease_pencil/paint.cc.
References add_strokes_to_drawing(), blender::bke::curves_new_nomain(), blender::bke::GeometrySet::from_curves(), blender::geometry::join_geometries(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
Referenced by add_strokes_to_drawing(), append_stroke_to_multiframe_drawings(), outline_stroke(), and trim_stroke_ends().
|
static |
Definition at line 1658 of file editors/sculpt_paint/grease_pencil/paint.cc.
References add_strokes_to_drawing(), append_stroke_to_multiframe_drawings(), blender::bke::curves_new_nomain(), and get_single_stroke().
Referenced by append_stroke_to_multiframe_drawings(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().
Definition at line 81 of file editors/sculpt_paint/grease_pencil/paint.cc.
References arithmetic_mean(), blender::Span< T >::begin(), blender::Span< T >::end(), and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::active_smoothing(), and arithmetic_mean().
| float blender::ed::sculpt_paint::greasepencil::brush_fill_influence | ( | const Paint & | paint, |
| const Brush & | brush, | ||
| Span< float2 > | fill_positions, | ||
| const InputSample & | sample, | ||
| float | multi_frame_falloff ) |
Definition at line 137 of file paint_common.cc.
References blender::BKE_brush_alpha_get(), blender::BKE_brush_curve_strength(), blender::BKE_brush_use_alpha_pressure(), brush_fill_influence(), brush_radius(), closest_distance_to_surface_2d(), distance(), and sample.
Referenced by brush_fill_influence(), 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 Paint & | paint, |
| const Brush & | brush, | ||
| const float2 & | co, | ||
| const InputSample & | sample, | ||
| float | multi_frame_falloff ) |
Definition at line 98 of file paint_common.cc.
References blender::BKE_brush_alpha_get(), blender::BKE_brush_curve_strength(), blender::BKE_brush_use_alpha_pressure(), brush_point_influence(), brush_radius(), blender::math::distance(), distance(), and sample.
Referenced by brush_point_influence(), 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 Paint & | paint, |
| 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 157 of file paint_common.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_brush_alpha_get(), blender::BKE_brush_curve_strength(), blender::BKE_brush_use_alpha_pressure(), brush_point_influence_mask(), brush_radius(), blender::math::distance_squared(), distance_squared(), blender::IndexMask::from_predicate(), blender::array_utils::gather(), invalid_screen_position, blender::index_mask::IndexMask::is_empty(), blender::Span< T >::is_empty(), blender::index_mask::IndexMask::min_array_size(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::math::round(), blender::index_mask::IndexMask::size(), and blender::math::sqrt().
Referenced by brush_point_influence_mask(), and blender::ed::sculpt_paint::greasepencil::GrabOperation::on_stroke_begin().
| float blender::ed::sculpt_paint::greasepencil::brush_radius | ( | const Paint & | paint, |
| const Brush & | brush, | ||
| float | pressure = 1.0f ) |
Definition at line 89 of file paint_common.cc.
References blender::BKE_brush_radius_get(), blender::BKE_brush_use_size_pressure(), blender::BKE_curvemapping_evaluateF(), and brush_radius().
Referenced by brush_fill_influence(), brush_point_influence(), brush_point_influence_mask(), brush_radius(), 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 60 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::BKE_brush_radius_get(), blender::BKE_brush_unprojected_radius_get(), blender::BRUSH_LOCK_SIZE, brush_radius_to_pixel_radius(), blender::ED_view3d_pixel_size(), and float.
Referenced by brush_radius_to_pixel_radius(), and 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 205 of file paint_common.cc.
References brush_using_vertex_color(), blender::GP_BRUSH_MODE_ACTIVE, blender::GP_BRUSH_MODE_VERTEXCOLOR, blender::GPPAINT_FLAG_USE_VERTEXCOLOR, and blender::GpPaint::mode.
Referenced by brush_using_vertex_color(), blender::ed::sculpt_paint::grease_pencil_cursor_draw(), blender::ed::sculpt_paint::grease_pencil_fill_overlay_delaunay_cb(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::PaintOperationExecutor(), and blender::ed::sculpt_paint::set_fill_attributes().
| 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 118 of file paint_common.cc.
References closest_distance_to_surface_2d(), blender::math::distance(), distance(), FLT_MAX, blender::math::min(), blender::Span< T >::size(), and y.
Referenced by brush_fill_influence(), closest_distance_to_surface_2d(), and blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended().
|
static |
Definition at line 427 of file interpolate.cc.
References blender::math::angle_between(), compute_auto_flip(), DEG2RADF, blender::math::distance_squared(), blender::math::dot(), blender::Span< T >::first(), ISECT_LINE_LINE_CROSS, blender::isect_seg_seg_v2(), blender::Span< T >::last(), blender::math::normalize(), and blender::Span< T >::size().
Referenced by compute_auto_flip(), and interpolate_between_curves().
| float3 blender::ed::sculpt_paint::greasepencil::compute_orig_delta | ( | const DeltaProjectionFunc & | projection_fn, |
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| int | index, | ||
| const float2 & | screen_delta ) |
Compute position offset for a point in the original geometry from a screen offset and crazyspace deformation info.
| projection_fn | Projection from screen space to the evaluated object. |
| deformation | Converts evaluated position delta to original geometry. |
Definition at line 274 of file paint_common.cc.
References compute_orig_delta(), blender::bke::crazyspace::GeometryDeformation::positions, and blender::bke::crazyspace::GeometryDeformation::translation_from_deformed_to_original().
Referenced by compute_orig_delta(), 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().
|
static |
Definition at line 1675 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::geometry::convert_curves(), convert_stroke_type(), blender::CURVE_TYPE_CATMULL_ROM, blender::CURVE_TYPE_NURBS, blender::geometry::fit_poly_to_bezier_curves(), blender::IndexRange::from_single(), blender::VArray< T >::from_single(), options, blender::geometry::Refit, and blender::bke::greasepencil::Drawing::strokes_for_write().
Referenced by convert_stroke_type(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().
|
static |
Creates a temporary brush with the fill guide settings.
Definition at line 136 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::BrushGpencilSettings::active_smooth, blender::BKE_brush_init_gpencil_settings(), blender::BKE_curvemapping_init(), blender::BKE_id_new_nomain(), blender::BRUSH_ALPHA_PRESSURE, blender::BrushGpencilSettings::brush_draw_mode, blender::BRUSH_SIZE_PRESSURE, blender::Brush::color, blender::copy_v3_fl3(), create_fill_guide_brush(), blender::BrushGpencilSettings::curve_jitter, blender::Brush::curve_rand_hue, blender::BrushGpencilSettings::curve_rand_pressure, blender::Brush::curve_rand_saturation, blender::BrushGpencilSettings::curve_rand_strength, blender::BrushGpencilSettings::curve_rand_uv, blender::Brush::curve_rand_value, blender::BrushGpencilSettings::curve_sensitivity, blender::BrushGpencilSettings::curve_strength, blender::Brush::flag, blender::BrushGpencilSettings::flag, blender::BrushGpencilSettings::flag2, blender::GP_BRUSH_GROUP_SETTINGS, blender::GP_BRUSH_MODE_VERTEXCOLOR, blender::GP_BRUSH_USE_PRESSURE, blender::GP_BRUSH_USE_STRENGTH_PRESSURE, blender::GP_BRUSH_USE_STROKE, blender::Brush::gpencil_settings, blender::BrushGpencilSettings::hardness, blender::Brush::ob_mode, blender::OB_MODE_PAINT_GREASE_PENCIL, blender::BrushGpencilSettings::simplify_px, blender::Brush::size, blender::Brush::spacing, blender::Brush::unified_paint_flags, and blender::BrushGpencilSettings::vertex_factor.
Referenced by create_fill_guide_brush(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::toggle_fill_guides_brush_on().
| IndexMask blender::ed::sculpt_paint::greasepencil::curve_mask_for_stroke_operation | ( | const GreasePencilStrokeParams & | params, |
| bool | use_selection_masking, | ||
| IndexMaskMemory & | memory ) |
Definition at line 325 of file paint_common.cc.
References curve_mask_for_stroke_operation(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::layer_index, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::ob_orig, blender::ed::greasepencil::retrieve_editable_and_selected_strokes(), and blender::ed::greasepencil::retrieve_editable_strokes().
Referenced by curve_mask_for_stroke_operation(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::init_auto_masking(), and blender::ed::sculpt_paint::greasepencil::VertexBlurOperation::on_stroke_extended().
|
static |
Definition at line 1521 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::bke::Bool, blender::bke::Curve, deselect_stroke(), blender::ED_grease_pencil_edit_selection_domain_get(), blender::ed::curves::ensure_selection_attribute(), blender::ed::curves::fill_selection_false(), blender::bke::GSpanAttributeWriter::finish(), blender::IndexRange::from_single(), blender::ed::curves::get_curves_selection_attribute_names(), blender::bke::Point, blender::bke::CurvesGeometry::points_by_curve(), blender::GMutableSpan::slice(), blender::bke::GSpanAttributeWriter::span, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::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 509 of file paint_common.cc.
References do_vertex_color_fill(), ELEM, blender::GPPAINT_MODE_BOTH, and blender::GPPAINT_MODE_FILL.
Referenced by do_vertex_color_fill(), 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 503 of file paint_common.cc.
References do_vertex_color_points(), ELEM, blender::GPPAINT_MODE_BOTH, and blender::GPPAINT_MODE_STROKE.
Referenced by do_vertex_color_points(), 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 723 of file interpolate.cc.
References blender::BEZT_KEYTYPE_BREAKDOWN, ensure_drawing_at_exact_frame(), get_drawing_at_exact_frame(), layer, and blender::ed::sculpt_paint::greasepencil::InterpolateOpData::LayerData::orig_curves.
Referenced by ensure_drawing_at_exact_frame(), grease_pencil_interpolate_init(), and grease_pencil_interpolate_sequence_exec().
| IndexMask blender::ed::sculpt_paint::greasepencil::fill_mask_for_stroke_operation | ( | const GreasePencilStrokeParams & | params, |
| bool | use_selection_masking, | ||
| IndexMaskMemory & | memory ) |
Definition at line 335 of file paint_common.cc.
References blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, fill_mask_for_stroke_operation(), blender::bke::greasepencil::Drawing::fills(), blender::IndexMask::from_predicate(), blender::offset_indices::GroupedSpan< T >::index_range(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::layer_index, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::ob_orig, and blender::ed::greasepencil::retrieve_editable_and_selected_strokes().
Referenced by fill_mask_for_stroke_operation(), 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 244 of file interpolate.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append_n_times(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::BLI_assert(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::MutableSpan< T >::fill(), blender::array_utils::fill_index_range(), find_curve_mapping_from_index(), find_frames_interval(), blender::IndexMask::foreach_segment_zipped(), blender::ed::sculpt_paint::greasepencil::InterpolationPairs::from_curves, blender::ed::sculpt_paint::greasepencil::InterpolationPairs::from_frames, blender::ed::curves::has_anything_selected(), blender::OffsetSpan< T, BaseT >::index_range(), layer, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::curves::retrieve_selected_curves(), blender::index_mask::IndexMask::size(), blender::OffsetSpan< T, BaseT >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::index_mask::IndexMask::slice(), blender::bke::greasepencil::Drawing::strokes(), blender::ed::sculpt_paint::greasepencil::InterpolationPairs::to_curves, and blender::ed::sculpt_paint::greasepencil::InterpolationPairs::to_frames.
Referenced by find_curve_mapping_from_index(), and blender::ed::sculpt_paint::greasepencil::InterpolateOpData::from_operator().
|
static |
Definition at line 391 of file interpolate.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), find_curve_pair_offsets(), blender::ed::sculpt_paint::greasepencil::InterpolationPairs::from_frames, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), and blender::ed::sculpt_paint::greasepencil::InterpolationPairs::to_frames.
Referenced by find_curve_pair_offsets(), and interpolate_between_curves().
|
static |
Definition at line 200 of file interpolate.cc.
References blender::Span< T >::begin(), blender::BEZT_KEYTYPE_BREAKDOWN, blender::Span< T >::end(), find_frames_interval(), layer, and blender::GreasePencilFrame::type.
Referenced by find_curve_mapping_from_index(), find_frames_interval(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::from_operator(), and grease_pencil_interpolate_sequence_exec().
|
static |
Definition at line 710 of file interpolate.cc.
References get_drawing_at_exact_frame(), and layer.
Referenced by ensure_drawing_at_exact_frame(), get_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 363 of file paint_common.cc.
References blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, get_drawing_deformation(), blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::ob_eval, and blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::ob_orig.
Referenced by get_drawing_deformation(), 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(), blender::ed::sculpt_paint::greasepencil::TwistOperation::on_stroke_extended(), view_positions_from_curve_mask(), view_positions_from_point_mask(), and view_radii_from_point_selection().
| Vector< ed::greasepencil::MutableDrawingInfo > blender::ed::sculpt_paint::greasepencil::get_drawings_for_stroke_operation | ( | const bContext & | C | ) |
Definition at line 32 of file paint_common.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::Object::data, get_drawings_for_stroke_operation(), 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(), and get_drawings_for_stroke_operation().
| Vector< ed::greasepencil::MutableDrawingInfo > blender::ed::sculpt_paint::greasepencil::get_drawings_with_masking_for_stroke_operation | ( | const bContext & | C | ) |
Definition at line 44 of file paint_common.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::Object::data, blender::GP_Sculpt_Settings::flag, get_drawings_with_masking_for_stroke_operation(), blender::ToolSettings::gp_sculpt, blender::GP_SCULPT_SETT_FLAG_AUTOMASK_LAYER_ACTIVE, blender::ed::greasepencil::retrieve_editable_drawings_from_layer_with_falloff(), and blender::ed::greasepencil::retrieve_editable_drawings_with_falloff().
Referenced by get_drawings_with_masking_for_stroke_operation(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::init_auto_masking(), 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 222 of file paint_common.cc.
References BLI_assert_unreachable, blender::Scene::cursor, blender::math::dot(), blender::ED_view3d_calc_zfac(), blender::ED_view3d_win_to_delta(), get_screen_projection_fn(), blender::GP_LOCKAXIS_CURSOR, blender::GP_LOCKAXIS_VIEW, blender::GP_LOCKAXIS_X, blender::GP_LOCKAXIS_Y, blender::GP_LOCKAXIS_Z, blender::ToolSettings::gp_sculpt, blender::math::invert(), layer, blender::GP_Sculpt_Settings::lock_axis, position, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::region, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::rv3d, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::scene, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::toolsettings, blender::math::transform_direction(), blender::math::transform_point(), blender::RegionView3D::viewinv, blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis(), blender::MatBase< T, NumCol, NumRow, Alignment >::y_axis(), and blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis().
Referenced by blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing(), blender::ed::sculpt_paint::greasepencil::GrabOperation::foreach_grabbed_drawing(), and get_screen_projection_fn().
|
static |
Definition at line 1626 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), blender::bke::copy_attributes_group_to_group(), blender::bke::Curve, blender::IndexRange::first(), get_single_stroke(), blender::IndexRange::one_after_last(), blender::bke::Point, blender::bke::CurvesGeometry::points_by_curve(), and blender::IndexRange::size().
Referenced by append_stroke_to_multiframe_drawings(), and get_single_stroke().
|
static |
Definition at line 1039 of file editors/sculpt_paint/grease_pencil/paint.cc.
References AllPoints, EndPoints, FirstPoint, get_snap_mode(), blender::GP_PROJECT_DEPTH_STROKE_ENDPOINTS, blender::GP_PROJECT_DEPTH_STROKE_FIRST, blender::ToolSettings::gpencil_v3d_align, and blender::Scene::toolsettings.
Referenced by get_snap_mode(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::update_stroke_depth_placement().
|
static |
Definition at line 1000 of file interpolate.cc.
References C, grease_pencil_interpolate_cancel(), grease_pencil_interpolate_exit(), and grease_pencil_interpolate_restore().
Referenced by grease_pencil_interpolate_cancel(), and GREASE_PENCIL_OT_interpolate().
|
static |
Definition at line 857 of file interpolate.cc.
References C, blender::CTX_wm_area(), blender::wmOperator::customdata, blender::ED_area_status_text(), blender::ED_workspace_status_text(), and grease_pencil_interpolate_exit().
Referenced by grease_pencil_interpolate_cancel(), grease_pencil_interpolate_exit(), grease_pencil_interpolate_invoke(), and grease_pencil_interpolate_modal().
|
static |
Definition at line 830 of file interpolate.cc.
References C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::wmOperator::customdata, blender::data, ensure_drawing_at_exact_frame(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::from_operator(), grease_pencil_interpolate_init(), layer, and blender::Scene::r.
Referenced by grease_pencil_interpolate_init(), and grease_pencil_interpolate_invoke().
|
static |
Definition at line 891 of file interpolate.cc.
References C, blender::CTX_wm_window(), blender::wmOperator::customdata, grease_pencil_interpolate_exit(), grease_pencil_interpolate_init(), grease_pencil_interpolate_invoke(), grease_pencil_interpolate_status_indicators(), NA_EDITED, NC_GPENCIL, blender::OPERATOR_CANCELLED, blender::OPERATOR_RUNNING_MODAL, blender::WM_CURSOR_EW_SCROLL, blender::WM_cursor_modal_set(), blender::WM_event_add_modal_handler(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_interpolate_invoke(), and GREASE_PENCIL_OT_interpolate().
|
static |
Definition at line 923 of file interpolate.cc.
References blender::applyNumInput(), C, Cancel, Confirm, blender::CTX_wm_area(), blender::CTX_wm_region(), blender::CTX_wm_window(), blender::wmOperator::customdata, Decrease, blender::ED_area_status_text(), blender::ED_workspace_status_text(), blender::EVT_MODAL_MAP, grease_pencil_interpolate_exit(), grease_pencil_interpolate_modal(), grease_pencil_interpolate_restore(), grease_pencil_interpolate_update(), blender::handleNumInput(), blender::hasNumInput(), Increase, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::init_factor, interpolate_factor_max, interpolate_factor_min, blender::KM_PRESS, blender::MOUSEMOVE, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::numeric_input, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::OPERATOR_PASS_THROUGH, blender::OPERATOR_RUNNING_MODAL, blender::wmOperator::ptr, blender::RNA_float_set(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::shift, blender::wmEvent::type, blender::wmEvent::val, blender::ARegion::winx, and blender::WM_cursor_modal_restore().
Referenced by grease_pencil_interpolate_modal(), and GREASE_PENCIL_OT_interpolate().
|
static |
Definition at line 872 of file interpolate.cc.
References blender::ed::greasepencil::active_grease_pencil_poll(), C, blender::CTX_data_tool_settings(), blender::CTX_wm_area(), blender::ToolSettings::gp_paint, grease_pencil_interpolate_poll(), blender::SPACE_VIEW3D, and blender::ScrArea::spacetype.
Referenced by grease_pencil_interpolate_poll(), GREASE_PENCIL_OT_interpolate(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 792 of file interpolate.cc.
References C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::wmOperator::customdata, blender::data, blender::DEG_id_tag_update(), grease_pencil_interpolate_restore(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_TRANSFORM, layer, NA_EDITED, NC_GPENCIL, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::LayerData::orig_curves, blender::Scene::r, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_interpolate_cancel(), grease_pencil_interpolate_modal(), and grease_pencil_interpolate_restore().
|
static |
Definition at line 1084 of file interpolate.cc.
References Back, blender::begin(), blender::BEZT_IPO_EASE_IN, blender::BEZT_IPO_EASE_IN_OUT, blender::BEZT_IPO_EASE_OUT, blender::BKE_curvemapping_evaluateF(), BLI_assert_unreachable, blender::BLI_easing_back_ease_in(), blender::BLI_easing_back_ease_in_out(), blender::BLI_easing_back_ease_out(), blender::BLI_easing_bounce_ease_in(), blender::BLI_easing_bounce_ease_in_out(), blender::BLI_easing_bounce_ease_out(), blender::BLI_easing_circ_ease_in(), blender::BLI_easing_circ_ease_in_out(), blender::BLI_easing_circ_ease_out(), blender::BLI_easing_cubic_ease_in(), blender::BLI_easing_cubic_ease_in_out(), blender::BLI_easing_cubic_ease_out(), blender::BLI_easing_elastic_ease_in(), blender::BLI_easing_elastic_ease_in_out(), blender::BLI_easing_elastic_ease_out(), blender::BLI_easing_expo_ease_in(), blender::BLI_easing_expo_ease_in_out(), blender::BLI_easing_expo_ease_out(), blender::BLI_easing_quad_ease_in(), blender::BLI_easing_quad_ease_in_out(), blender::BLI_easing_quad_ease_out(), blender::BLI_easing_quart_ease_in(), blender::BLI_easing_quart_ease_in_out(), blender::BLI_easing_quart_ease_out(), blender::BLI_easing_quint_ease_in(), blender::BLI_easing_quint_ease_in_out(), blender::BLI_easing_quint_ease_out(), blender::BLI_easing_sine_ease_in(), blender::BLI_easing_sine_ease_in_out(), blender::BLI_easing_sine_ease_out(), Bounce, Circular, Cubic, CurveMap, Elastic, Exponential, grease_pencil_interpolate_sequence_easing_calc(), Linear, Quadratic, Quartic, Quintic, and Sine.
Referenced by grease_pencil_interpolate_sequence_easing_calc(), and grease_pencil_interpolate_sequence_exec().
|
static |
Definition at line 1251 of file interpolate.cc.
References blender::BKE_curvemapping_add(), blender::BKE_curvemapping_init(), C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::LayerData::curve_pairs, blender::bke::CurvesGeometry::curves_range(), blender::GP_Interpolate_Settings::custom_ipo, blender::wmOperator::customdata, blender::bke::CurvesGeometry::cyclic(), blender::data, blender::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::ed::sculpt_paint::greasepencil::InterpolateOpData::from_operator(), blender::VArray< T >::from_single(), get_drawing_at_exact_frame(), blender::ToolSettings::gp_interpolate, grease_pencil_interpolate_sequence_easing_calc(), grease_pencil_interpolate_sequence_exec(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_TRANSFORM, interpolate_between_curves(), layer, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::layer_data, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::layer_mask, NA_EDITED, NC_GPENCIL, ND_DATA, blender::OPERATOR_FINISHED, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::points_num(), blender::bke::CurvesGeometry::positions_for_write(), blender::wmOperator::ptr, blender::Scene::r, blender::RNA_enum_get(), blender::RNA_float_get(), blender::RNA_int_get(), blender::geometry::smooth_curve_attribute(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::smooth_factor, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::smooth_steps, step, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::bke::CurvesGeometry::tag_positions_changed(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::WM_event_add_notifier().
Referenced by grease_pencil_interpolate_sequence_exec(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 1338 of file interpolate.cc.
References Back, C, blender::ui::Layout::column(), blender::CTX_data_mode_enum(), blender::CTX_data_scene(), blender::CTX_MODE_EDIT_GPENCIL_LEGACY, CurveMap, Elastic, blender::ToolSettings::gp_interpolate, grease_pencil_interpolate_sequence_ui(), blender::Scene::id, blender::wmOperator::layout, Linear, blender::ui::Layout::prop(), blender::wmOperator::ptr, blender::RNA_enum_get(), blender::RNA_pointer_create_discrete(), blender::ui::Layout::row(), blender::Scene::toolsettings, UI_ITEM_NONE, blender::ui::Layout::use_property_decorate_set(), and blender::ui::Layout::use_property_split_set().
Referenced by grease_pencil_interpolate_sequence_ui(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 686 of file interpolate.cc.
References C, blender::CTX_data_scene(), blender::CTX_wm_area(), blender::ED_area_status_text(), blender::ED_workspace_status_text(), grease_pencil_interpolate_status_indicators(), blender::hasNumInput(), IFACE_, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::init_factor, NUM_STR_REP_LEN, blender::ed::sculpt_paint::greasepencil::InterpolateOpData::numeric_input, blender::outputNumInput(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::shift, and blender::Scene::unit.
Referenced by grease_pencil_interpolate_invoke(), grease_pencil_interpolate_status_indicators(), and grease_pencil_interpolate_update().
|
static |
Definition at line 740 of file interpolate.cc.
References C, blender::RenderData::cfra, blender::CTX_data_active_object(), blender::CTX_data_scene(), blender::ed::sculpt_paint::greasepencil::InterpolateOpData::LayerData::curve_pairs, blender::bke::CurvesGeometry::curves_range(), blender::wmOperator::customdata, blender::bke::CurvesGeometry::cyclic(), blender::data, blender::DEG_id_tag_update(), blender::VArray< T >::from_single(), get_drawing_at_exact_frame(), grease_pencil_interpolate_status_indicators(), grease_pencil_interpolate_update(), blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_TRANSFORM, interpolate_between_curves(), layer, NA_EDITED, NC_GPENCIL, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::points_num(), blender::bke::CurvesGeometry::positions_for_write(), blender::wmOperator::ptr, blender::Scene::r, blender::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 blender::WM_event_add_notifier().
Referenced by grease_pencil_interpolate_modal(), and grease_pencil_interpolate_update().
|
static |
Definition at line 1006 of file interpolate.cc.
References blender::wmOperatorType::cancel, blender::wmOperatorType::description, blender::wmOperatorType::flag, 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(), GREASE_PENCIL_OT_interpolate(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_BLOCKING, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_float(), blender::RNA_def_float_factor(), blender::RNA_def_int(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_grease_pencil_interpolate(), and GREASE_PENCIL_OT_interpolate().
|
static |
Definition at line 1398 of file interpolate.cc.
References blender::BEZT_IPO_LIN, BLT_I18NCONTEXT_ID_GPENCIL, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, 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, GREASE_PENCIL_OT_interpolate_sequence(), blender::wmOperatorType::idname, MAXFRAME, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_float(), blender::RNA_def_int(), blender::RNA_def_property_translation_context(), blender::rna_enum_beztriple_interpolation_easing_items, blender::wmOperatorType::srna, blender::wmOperatorType::translation_context, and blender::wmOperatorType::ui.
Referenced by blender::ED_operatortypes_grease_pencil_interpolate(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 30 of file sculpt_randomize.cc.
References blender::BLI_hash_int_01(), blender::BLI_hash_int_3d(), and hash_rng().
Referenced by hash_rng(), and blender::ed::sculpt_paint::greasepencil::RandomizeOperation::on_stroke_extended().
| void blender::ed::sculpt_paint::greasepencil::init_brush | ( | Brush & | brush | ) |
Definition at line 71 of file paint_common.cc.
References blender::BKE_brush_init_gpencil_settings(), blender::BKE_curvemapping_init(), blender::BLI_assert(), and init_brush().
Referenced by init_brush(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::init_stroke(), and blender::ed::sculpt_paint::greasepencil::GrabOperation::on_stroke_begin().
|
static |
Definition at line 463 of file interpolate.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), b, blender::BKE_defgroup_copy_list(), blender::BLI_assert(), compute_auto_flip(), blender::bke::CurvesGeometry::cyclic(), blender::Array< T, InlineBufferCapacity, Allocator >::fill(), blender::array_utils::fill_index_range(), find_curve_pair_offsets(), blender::IndexRange::first(), blender::ed::sculpt_paint::greasepencil::InterpolationPairs::from_curves, blender::ed::sculpt_paint::greasepencil::InterpolationPairs::from_frames, blender::IndexMask::from_indices(), blender::IndexRange::index_range(), blender::offset_indices::OffsetIndices< T >::index_range(), interpolate_between_curves(), blender::geometry::interpolate_curves_with_samples(), blender::IndexRange::is_empty(), blender::offset_indices::OffsetIndices< T >::is_empty(), layer, blender::bke::CurvesGeometry::offsets_for_write(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions(), blender::geometry::sample_curve_padded(), 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(), and blender::CurvesGeometry::vertex_group_names.
Referenced by grease_pencil_interpolate_sequence_exec(), grease_pencil_interpolate_update(), and interpolate_between_curves().
| bool blender::ed::sculpt_paint::greasepencil::is_brush_inverted | ( | const Brush & | brush, |
| BrushStrokeMode | stroke_mode ) |
Definition at line 215 of file paint_common.cc.
References blender::BRUSH_DIR_IN, blender::Invert, and is_brush_inverted().
Referenced by is_brush_inverted(), and blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::is_inverted().
|
inlinestatic |
Definition at line 73 of file editors/sculpt_paint/grease_pencil/paint.cc.
References b, float, blender::MutableSpan< T >::index_range(), linear_interpolation(), blender::bke::attribute_math::mix2(), blender::MutableSpan< T >::size(), step, and T.
Referenced by linear_interpolation(), and 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 116 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::length_parameterize::accumulate_lengths(), blender::BLI_assert(), blender::MutableSpan< T >::drop_back(), blender::length_parameterize::interpolate(), blender::MutableSpan< T >::last(), blender::Span< T >::last(), morph_points_to_curve(), 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(), and morph_points_to_curve().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_clone_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 126 of file sculpt_clone.cc.
References new_clone_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_clone_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_erase_operation | ( | const bool | temp_eraser | ) |
Definition at line 1189 of file 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 288 of file 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 | do_fill_guides = false | ) |
Definition at line 1836 of file editors/sculpt_paint/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 119 of file grease_pencil/sculpt_pinch.cc.
References new_pinch_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_pinch_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_push_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 103 of file sculpt_push.cc.
References new_push_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_push_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_randomize_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 196 of file sculpt_randomize.cc.
References new_randomize_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_randomize_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_smooth_operation | ( | BrushStrokeMode | stroke_mode, |
| bool | temp_smooth = false ) |
Definition at line 214 of file grease_pencil/sculpt_smooth.cc.
References new_smooth_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_smooth_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_strength_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 68 of file sculpt_strength.cc.
References new_strength_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_strength_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_thickness_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 71 of file sculpt_thickness.cc.
References new_thickness_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_thickness_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_tint_operation | ( | bool | temp_eraser = false | ) |
Definition at line 344 of file 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 128 of file sculpt_twist.cc.
References new_twist_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_twist_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_vertex_average_operation | ( | ) |
Definition at line 166 of file vertex_average.cc.
References new_vertex_average_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_vertex_average_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_vertex_blur_operation | ( | ) |
Definition at line 98 of file vertex_blur.cc.
References new_vertex_blur_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_vertex_blur_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_vertex_paint_operation | ( | BrushStrokeMode | stroke_mode | ) |
Definition at line 180 of file vertex_paint.cc.
References new_vertex_paint_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_vertex_paint_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_vertex_replace_operation | ( | ) |
Definition at line 120 of file vertex_replace.cc.
References new_vertex_replace_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_vertex_replace_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_vertex_smear_operation | ( | ) |
Definition at line 205 of file vertex_smear.cc.
References new_vertex_smear_operation().
Referenced by blender::ed::sculpt_paint::get_stroke_operation(), and new_vertex_smear_operation().
| std::unique_ptr< GreasePencilStrokeOperation > blender::ed::sculpt_paint::greasepencil::new_weight_paint_average_operation | ( | ) |
Definition at line 117 of file 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 140 of file 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 & | stroke_mode | ) |
Definition at line 104 of file 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 197 of file 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 1432 of file editors/sculpt_paint/grease_pencil/paint.cc.
References add_strokes_to_drawing(), blender::ed::greasepencil::create_curves_outline(), blender::bke::curves_new_nomain(), blender::IndexRange::from_single(), outline_stroke(), blender::bke::CurvesGeometry::positions(), blender::bke::CurvesGeometry::positions_for_write(), blender::bke::CurvesGeometry::remove_curves(), blender::ed::greasepencil::DrawingPlacement::reproject(), and blender::bke::greasepencil::Drawing::strokes_for_write().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and outline_stroke().
| IndexMask blender::ed::sculpt_paint::greasepencil::point_mask_for_stroke_operation | ( | const GreasePencilStrokeParams & | params, |
| bool | use_selection_masking, | ||
| IndexMaskMemory & | memory ) |
Definition at line 315 of file paint_common.cc.
References blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::layer_index, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::ob_orig, point_mask_for_stroke_operation(), blender::ed::greasepencil::retrieve_editable_and_selected_points(), and blender::ed::greasepencil::retrieve_editable_points().
Referenced by blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::init_auto_masking(), blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexSmearOperation::on_stroke_extended(), and point_mask_for_stroke_operation().
|
static |
Definition at line 1549 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::bke::greasepencil::assign_to_vertex_group_from_mask(), blender::BKE_object_defgroup_active_index_get(), blender::BKE_object_defgroup_list(), blender::BKE_pose_channel_find_name(), blender::BLI_findlink(), blender::bPoseChannel::chan_mat, blender::blender::StringRefBase::data(), blender::eModifierMode_Realtime, blender::eModifierType_GreasePencilArmature, blender::IndexMask::IndexMask(), blender::math::invert(), blender::bDeformGroup::name, blender::OB_ARMATURE, blender::GreasePencilArmatureModifierData::object, blender::Object::pose, process_stroke_weights(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::Scene::toolsettings, blender::math::transform_points(), blender::Object::type, and blender::ToolSettings::vgroup_weight.
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and process_stroke_weights().
|
static |
Definition at line 1138 of file erase.cc.
References blender::IndexMask::from_predicate(), blender::geometry::grease_pencil_remove_points_and_split(), blender::bke::Point, and remove_points_with_low_opacity().
Referenced by blender::ed::sculpt_paint::greasepencil::EraseOperation::on_stroke_done(), and remove_points_with_low_opacity().
|
static |
Definition at line 33 of file sculpt_twist.cc.
References angle(), blender::math::cos(), rotate_by_angle(), and blender::math::sin().
Referenced by blender::ed::sculpt_paint::greasepencil::TwistOperation::on_stroke_extended(), and rotate_by_angle().
|
static |
Sample a bezier curve at a fixed resolution and return the sampled points in an array.
Definition at line 87 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::Array(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::BLI_assert(), blender::Span< T >::drop_back(), blender::Span< T >::drop_front(), blender::bke::curves::bezier::evaluate_segment(), blender::IndexRange::IndexRange(), blender::threading::parallel_for(), sample_curve_2d(), and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::active_smoothing(), and sample_curve_2d().
|
static |
Definition at line 1098 of file erase.cc.
References blender::math::abs(), blender::BLI_assert(), blender::math::distance(), blender::e, blender::index_mask::IndexMask::foreach_range(), blender::IndexMask::from_bools(), blender::math::interpolate(), blender::IndexRange::one_before_start(), blender::bke::Point, blender::ed::greasepencil::ramer_douglas_peucker_simplify(), simplify_opacities(), and blender::IndexRange::size().
Referenced by blender::ed::sculpt_paint::greasepencil::EraseOperation::on_stroke_done(), and simplify_opacities().
|
static |
Definition at line 1349 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::BLI_assert(), blender::geometry::curve_simplify(), blender::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 1280 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::bke::GSpanAttributeWriter::finish(), blender::IndexRange::from_single(), blender::VArray< T >::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().
|
static |
Definition at line 1333 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::IndexRange::from_single(), blender::VArray< T >::from_span(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::geometry::subdivide_curves(), and subdivide_stroke().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and subdivide_stroke().
|
static |
Definition at line 1460 of file editors/sculpt_paint/grease_pencil/paint.cc.
References blender::bke::AttributeIter::domain, blender::bke::GSpanAttributeWriter::finish(), blender::IndexRange::first(), blender::bke::AttributeAccessor::foreach_attribute(), blender::IndexRange::last(), blender::MutableSpan< T >::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::bke::attribute_math::shift_left(), blender::GMutableSpan::size(), blender::IndexRange::size(), blender::bke::GSpanAttributeWriter::span, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and trim_end_points().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and trim_end_points().
|
static |
Definition at line 1398 of file editors/sculpt_paint/grease_pencil/paint.cc.
References add_strokes_to_drawing(), blender::BLI_assert(), blender::bke::curves_copy_curve_selection(), blender::bke::curves_new_nomain(), blender::IndexRange::from_single(), blender::VArrayCommon< T >::get_internal_span(), blender::bke::CurvesGeometry::is_empty(), blender::VArrayCommon< T >::is_span(), blender::bke::AttributeAccessor::lookup(), blender::bke::CurvesGeometry::remove_curves(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), blender::ed::greasepencil::trim::trim_curve_segment_ends(), and trim_stroke_ends().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), and trim_stroke_ends().
| Array< float2 > blender::ed::sculpt_paint::greasepencil::view_positions_from_curve_mask | ( | const GreasePencilStrokeParams & | params, |
| const IndexMask & | curve_mask ) |
Definition at line 395 of file paint_common.cc.
References blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, blender::ED_view3d_project_float_global(), blender::index_mask::IndexMask::foreach_index(), get_drawing_deformation(), blender::exec_mode::grain_size(), invalid_screen_position, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::layer, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::ob_eval, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::crazyspace::GeometryDeformation::positions, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::region, blender::result, blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Layer::to_world_space(), blender::math::transform_point(), blender::V3D_PROJ_RET_OK, blender::V3D_PROJ_TEST_CLIP_FAR, blender::V3D_PROJ_TEST_CLIP_NEAR, and view_positions_from_curve_mask().
Referenced by blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::init_auto_masking(), 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 view_positions_from_curve_mask().
| Array< float2 > blender::ed::sculpt_paint::greasepencil::view_positions_from_point_mask | ( | const GreasePencilStrokeParams & | params, |
| const IndexMask & | point_mask ) |
Definition at line 370 of file paint_common.cc.
References blender::ED_view3d_project_float_global(), blender::index_mask::IndexMask::foreach_index(), get_drawing_deformation(), blender::exec_mode::grain_size(), invalid_screen_position, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::layer, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::ob_eval, blender::bke::crazyspace::GeometryDeformation::positions, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::region, blender::result, blender::bke::greasepencil::Layer::to_world_space(), blender::math::transform_point(), blender::V3D_PROJ_RET_OK, blender::V3D_PROJ_TEST_CLIP_FAR, blender::V3D_PROJ_TEST_CLIP_NEAR, and view_positions_from_point_mask().
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::VertexPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexReplaceOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexSmearOperation::on_stroke_extended(), and view_positions_from_point_mask().
| Array< float2 > blender::ed::sculpt_paint::greasepencil::view_positions_left_from_point_mask | ( | const GreasePencilStrokeParams & | params, |
| const IndexMask & | selection ) |
Definition at line 424 of file paint_common.cc.
References blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, blender::ED_view3d_project_float_global(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::bke::CurvesGeometry::handle_positions_left(), invalid_screen_position, blender::Span< T >::is_empty(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::layer, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::ob_eval, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::region, blender::result, blender::Span< T >::size(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Layer::to_world_space(), blender::math::transform_point(), blender::V3D_PROJ_RET_OK, blender::V3D_PROJ_TEST_CLIP_FAR, blender::V3D_PROJ_TEST_CLIP_NEAR, and view_positions_left_from_point_mask().
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::TwistOperation::on_stroke_extended(), and view_positions_left_from_point_mask().
| Array< float2 > blender::ed::sculpt_paint::greasepencil::view_positions_right_from_point_mask | ( | const GreasePencilStrokeParams & | params, |
| const IndexMask & | selection ) |
Definition at line 453 of file paint_common.cc.
References blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, blender::ED_view3d_project_float_global(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::bke::CurvesGeometry::handle_positions_right(), invalid_screen_position, blender::Span< T >::is_empty(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::layer, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::ob_eval, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::region, blender::result, blender::Span< T >::size(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Layer::to_world_space(), blender::math::transform_point(), blender::V3D_PROJ_RET_OK, blender::V3D_PROJ_TEST_CLIP_FAR, blender::V3D_PROJ_TEST_CLIP_NEAR, and view_positions_right_from_point_mask().
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::TwistOperation::on_stroke_extended(), and view_positions_right_from_point_mask().
| Array< float > blender::ed::sculpt_paint::greasepencil::view_radii_from_point_selection | ( | const GreasePencilStrokeParams & | params, |
| const IndexMask & | selection ) |
Definition at line 482 of file paint_common.cc.
References blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::drawing, blender::ED_view3d_pixel_size(), blender::index_mask::IndexMask::foreach_index(), get_drawing_deformation(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::layer, blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::ob_eval, blender::bke::crazyspace::GeometryDeformation::positions, blender::bke::greasepencil::Drawing::radii(), blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeParams::region, blender::ARegion::regiondata, blender::VArrayCommon< T >::size(), blender::bke::greasepencil::Layer::to_world_space(), blender::math::transform_point(), and view_radii_from_point_selection().
Referenced by view_radii_from_point_selection().
|
staticconstexpr |
Definition at line 36 of file weight_paint.hh.
Definition at line 35 of file weight_paint.hh.
|
static |
Definition at line 144 of file interpolate.cc.
Referenced by GREASE_PENCIL_OT_interpolate(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 151 of file interpolate.cc.
Referenced by GREASE_PENCIL_OT_interpolate(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 84 of file interpolate.cc.
Referenced by GREASE_PENCIL_OT_interpolate_sequence().
|
constexpr |
Definition at line 158 of file interpolate.cc.
Referenced by grease_pencil_interpolate_modal().
|
constexpr |
Definition at line 157 of file interpolate.cc.
Referenced by grease_pencil_interpolate_modal().
|
constexpr |
Definition at line 142 of file grease_pencil_intern.hh.
Referenced by brush_point_influence_mask(), view_positions_from_curve_mask(), view_positions_from_point_mask(), view_positions_left_from_point_mask(), and view_positions_right_from_point_mask().
|
staticconstexpr |
Definition at line 37 of file weight_paint.hh.