|
Blender V4.5
|
Classes | |
| class | EraseOperation |
| struct | SegmentCircleIntersection |
| struct | EraseOperationExecutor |
| struct | GreasePencilStrokeParams |
| class | GreasePencilStrokeOperationCommon |
| struct | InterpolationPairs |
| struct | InterpolateOpData |
| class | PaintOperation |
| struct | PaintOperationExecutor |
| class | CloneOperation |
| class | GrabOperation |
| class | PinchOperation |
| class | PushOperation |
| class | RandomizeOperation |
| class | SmoothOperation |
| class | StrengthOperation |
| class | ThicknessOperation |
| class | TwistOperation |
| class | TintOperation |
| class | VertexAverageOperation |
| class | VertexBlurOperation |
| class | VertexPaintOperation |
| class | VertexReplaceOperation |
| struct | ColorGrid |
| class | VertexSmearOperation |
| class | AverageWeightPaintOperation |
| class | BlurWeightPaintOperation |
| class | DrawWeightPaintOperation |
| class | WeightPaintOperation |
| class | SmearWeightPaintOperation |
| struct | MutableDrawingInfo |
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 | |
| static constexpr float | FIND_NEAREST_POINT_EPSILON = 1e-6f |
| static constexpr int | BLUR_NEIGHBOUR_NUM = 5 |
| static constexpr int | SMEAR_NEIGHBOUR_NUM = 8 |
Common Utilities for Interpolation Operators | |
| enum class | InterpolationType { Linear , CurveMap , Back , Bounce , Circular , Cubic , Elastic , Exponential , Quadratic , Quartic , Quintic , Sine } |
| using | FramesMapKeyIntervalT = std::pair<int, int> |
| static const EnumPropertyItem | grease_pencil_interpolation_type_items [] |
| static const EnumPropertyItem | grease_pencil_interpolate_flip_mode_items [] |
| static const EnumPropertyItem | grease_pencil_interpolate_layer_items [] |
| constexpr float | interpolate_factor_min = -1.0f |
| constexpr float | interpolate_factor_max = 2.0f |
| static std::optional< FramesMapKeyIntervalT > | find_frames_interval (const bke::greasepencil::Layer &layer, const int frame_number, const bool exclude_breakdowns) |
| static bool | find_curve_mapping_from_index (const GreasePencil &grease_pencil, const bke::greasepencil::Layer &layer, const int current_frame, const bool exclude_breakdowns, const bool only_selected, InterpolationPairs &pairs) |
| static Vector< int > | find_curve_pair_offsets (const InterpolationPairs &curve_pairs, const Span< int > order) |
| static bool | compute_auto_flip (const Span< float3float3 > from_positions, const Span< float3float3 > to_positions) |
| static bke::CurvesGeometry | interpolate_between_curves (const GreasePencil &grease_pencil, const bke::greasepencil::Layer &layer, const InterpolationPairs &curve_pairs, const float mix_factor, const InterpolateFlipMode flip_mode) |
| using blender::ed::sculpt_paint::greasepencil::FramesMapKeyIntervalT = std::pair<int, int> |
Definition at line 195 of file grease_pencil_interpolate.cc.
|
strong |
Definition at line 733 of file ED_grease_pencil.hh.
|
strong |
Definition at line 742 of file ED_grease_pencil.hh.
|
strong |
| Enumerator | |
|---|---|
| Cancel | |
| Confirm | |
| Increase | |
| Decrease | |
Definition at line 913 of file grease_pencil_interpolate.cc.
| Enumerator | |
|---|---|
| Linear | Traditional Linear Interpolation. |
| CurveMap | CurveMap Defined Interpolation. |
| Back | |
| Bounce | |
| Circular | |
| Cubic | |
| Elastic | |
| Exponential | |
| Quadratic | |
| Quartic | |
| Quintic | |
| Sine | |
Definition at line 59 of file grease_pencil_interpolate.cc.
| Enumerator | |
|---|---|
| Outside | |
| OutsideInsideBoundary | |
| InsideOutsideBoundary | |
| Inside | |
Definition at line 84 of file grease_pencil_erase.cc.
| Enumerator | |
|---|---|
| AllPoints | |
| EndPoints | |
| FirstPoint | |
Definition at line 996 of file grease_pencil_paint.cc.
|
strong |
| Enumerator | |
|---|---|
| New | |
| Selected | |
Definition at line 59 of file grease_pencil_trace.cc.
|
strong |
| Enumerator | |
|---|---|
| Single | |
| Sequence | |
Definition at line 64 of file grease_pencil_trace.cc.
|
strong |
Definition at line 47 of file grease_pencil_trace_util.hh.
|
static |
Definition at line 1332 of file grease_pencil_paint.cc.
References 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 append_stroke_to_multiframe_drawings(), outline_stroke(), and trim_stroke_ends().
|
static |
Definition at line 1633 of file 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().
|
static |
Definition at line 87 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().
| float blender::ed::sculpt_paint::greasepencil::brush_fill_influence | ( | const Scene & | scene, |
| const Brush & | brush, | ||
| Span< float2float2 > | fill_positions, | ||
| const InputSample & | sample, | ||
| float | multi_frame_falloff ) |
Definition at line 136 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 float2float2 & | co, | ||
| const InputSample & | sample, | ||
| float | multi_frame_falloff ) |
Definition at line 97 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(), 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 float2float2 & | mouse_position, | ||
| float | pressure, | ||
| float | multi_frame_falloff, | ||
| const IndexMask & | selection, | ||
| Span< float2float2 > | view_positions, | ||
| Vector< float > & | influences, | ||
| IndexMaskMemory & | memory ) |
Definition at line 156 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(), blender::index_mask::IndexMask::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 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 88 of file grease_pencil_paint_common.cc.
References BKE_brush_size_get(), BKE_brush_use_size_pressure(), and BKE_curvemapping_evaluateF().
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 56 of file grease_pencil_paint.cc.
References BRUSH_LOCK_SIZE, ED_view3d_pixel_size(), Brush::flag, 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 198 of file grease_pencil_paint_common.cc.
References GP_BRUSH_MODE_ACTIVE, GP_BRUSH_MODE_VERTEXCOLOR, 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< float2float2 > blender::ed::sculpt_paint::greasepencil::calculate_view_positions | ( | const GreasePencilStrokeParams & | params, |
| const IndexMask & | selection ) |
Definition at line 344 of file grease_pencil_paint_common.cc.
References ED_view3d_project_float_global(), blender::index_mask::IndexMask::foreach_index(), get_drawing_deformation(), params, blender::bke::crazyspace::GeometryDeformation::positions, result, blender::math::transform_point(), V3D_PROJ_RET_OK, and V3D_PROJ_TEST_NOP.
Referenced by blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::init_auto_masking(), 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 367 of file grease_pencil_paint_common.cc.
References ED_view3d_pixel_size(), blender::index_mask::IndexMask::foreach_index(), get_drawing_deformation(), params, blender::bke::crazyspace::GeometryDeformation::positions, blender::VArrayCommon< T >::size(), and blender::math::transform_point().
| float blender::ed::sculpt_paint::greasepencil::closest_distance_to_surface_2d | ( | const float2float2 | pt, |
| const Span< float2float2 > | 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 117 of file grease_pencil_paint_common.cc.
References blender::math::distance(), distance(), FLT_MAX, i, 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 425 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().
| float3float3 blender::ed::sculpt_paint::greasepencil::compute_orig_delta | ( | const DeltaProjectionFunc & | projection_fn, |
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| int | index, | ||
| const float2float2 & | 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 267 of file grease_pencil_paint_common.cc.
References blender::bke::crazyspace::GeometryDeformation::positions, and blender::bke::crazyspace::GeometryDeformation::translation_from_deformed_to_original().
Referenced by 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 |
Creates a temporary brush with the fill guide settings.
Definition at line 142 of file grease_pencil_paint.cc.
References BrushGpencilSettings::active_smooth, BKE_brush_init_gpencil_settings(), BKE_curvemapping_init(), BKE_id_new_nomain(), BrushGpencilSettings::brush_draw_mode, BRUSH_LOCK_SIZE, copy_v3_fl3(), BrushGpencilSettings::curve_jitter, Brush::curve_rand_hue, BrushGpencilSettings::curve_rand_pressure, Brush::curve_rand_saturation, BrushGpencilSettings::curve_rand_strength, BrushGpencilSettings::curve_rand_uv, Brush::curve_rand_value, BrushGpencilSettings::curve_sensitivity, BrushGpencilSettings::curve_strength, Brush::flag, BrushGpencilSettings::flag, GP_BRUSH_GROUP_SETTINGS, GP_BRUSH_MODE_VERTEXCOLOR, GP_BRUSH_USE_PRESSURE, Brush::gpencil_settings, BrushGpencilSettings::hardness, Brush::ob_mode, OB_MODE_PAINT_GREASE_PENCIL, Brush::rgb, BrushGpencilSettings::simplify_px, Brush::spacing, Brush::unprojected_radius, and BrushGpencilSettings::vertex_factor.
Referenced by 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 318 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::GreasePencilStrokeOperationCommon::init_auto_masking(), and blender::ed::sculpt_paint::greasepencil::VertexBlurOperation::on_stroke_extended().
|
static |
Definition at line 1496 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::bke::GSpanAttributeWriter::finish(), blender::IndexRange::from_single(), 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 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 392 of file grease_pencil_paint_common.cc.
References ELEM, GPPAINT_MODE_BOTH, and GPPAINT_MODE_FILL.
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 386 of file grease_pencil_paint_common.cc.
References ELEM, GPPAINT_MODE_BOTH, and GPPAINT_MODE_STROKE.
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 721 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().
| IndexMask blender::ed::sculpt_paint::greasepencil::fill_mask_for_stroke_operation | ( | const GreasePencilStrokeParams & | params, |
| bool | use_selection_masking, | ||
| IndexMaskMemory & | memory ) |
Definition at line 328 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 241 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_num(), blender::bke::CurvesGeometry::curves_range(), blender::MutableSpan< T >::fill(), blender::array_utils::fill_index_range(), 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::bke::greasepencil::Layer::has_drawing_at(), i, blender::OffsetSpan< T, BaseT >::index_range(), 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(), MutableSpan< T >::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 blender::ed::sculpt_paint::greasepencil::InterpolateOpData::from_operator().
|
static |
Definition at line 389 of file grease_pencil_interpolate.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), 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 interpolate_between_curves().
|
static |
Definition at line 197 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 708 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 337 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_stroke_operation | ( | const bContext & | C | ) |
Definition at line 31 of file grease_pencil_paint_common.cc.
References C, CTX_data_active_object(), CTX_data_scene(), Object::data, 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 blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::foreach_editable_drawing().
| Vector< ed::greasepencil::MutableDrawingInfo > blender::ed::sculpt_paint::greasepencil::get_drawings_with_masking_for_stroke_operation | ( | const bContext & | C | ) |
Definition at line 43 of file grease_pencil_paint_common.cc.
References C, CTX_data_active_object(), CTX_data_scene(), CTX_data_tool_settings(), Object::data, GP_Sculpt_Settings::flag, ToolSettings::gp_sculpt, 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 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 215 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(), 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(), and blender::ed::sculpt_paint::greasepencil::GrabOperation::foreach_grabbed_drawing().
|
static |
Definition at line 1601 of file 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 1002 of file grease_pencil_paint.cc.
References AllPoints, C, CTX_data_scene(), EndPoints, FirstPoint, GP_PROJECT_DEPTH_STROKE_ENDPOINTS, GP_PROJECT_DEPTH_STROKE_FIRST, ToolSettings::gpencil_v3d_align, and Scene::toolsettings.
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::update_stroke_depth_placement().
|
static |
Definition at line 998 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 855 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 828 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 889 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 921 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 870 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 790 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 1082 of file grease_pencil_interpolate.cc.
References Back, begin(), 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(), BLI_easing_sine_ease_out(), Bounce, Circular, Cubic, CurveMap, Elastic, Exponential, Linear, Quadratic, Quartic, Quintic, and Sine.
Referenced by grease_pencil_interpolate_sequence_exec().
|
static |
Definition at line 1249 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, 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, step, 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 1336 of file grease_pencil_interpolate.cc.
References Back, C, col, uiLayout::column(), CTX_data_mode_enum(), CTX_data_scene(), CTX_MODE_EDIT_GPENCIL_LEGACY, CurveMap, Elastic, ToolSettings::gp_interpolate, Scene::id, wmOperator::layout, Linear, uiLayout::prop(), wmOperator::ptr, RNA_enum_get(), RNA_pointer_create_discrete(), uiLayout::row(), Scene::toolsettings, UI_ITEM_NONE, uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateCurveMapping().
Referenced by GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 684 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 738 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 1004 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 1397 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 30 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 70 of file grease_pencil_paint_common.cc.
References BKE_brush_init_gpencil_settings(), BKE_curvemapping_init(), and BLI_assert.
Referenced by blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::init_stroke(), and blender::ed::sculpt_paint::greasepencil::GrabOperation::on_stroke_begin().
|
static |
Definition at line 461 of file grease_pencil_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::Array< T, InlineBufferCapacity, Allocator >::begin(), BKE_defgroup_copy_list(), BLI_assert, compute_auto_flip(), MutableSpan< T >::copy_from(), blender::bke::CurvesGeometry::cyclic(), blender::Array< T, InlineBufferCapacity, Allocator >::end(), 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(), i, blender::IndexRange::index_range(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::geometry::interpolate_curves_with_samples(), blender::IndexRange::is_empty(), blender::offset_indices::OffsetIndices< T >::is_empty(), 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(), 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 208 of file grease_pencil_paint_common.cc.
References BRUSH_DIR_IN, and BRUSH_STROKE_INVERT.
Referenced by blender::ed::sculpt_paint::greasepencil::GreasePencilStrokeOperationCommon::is_inverted().
|
inlinestatic |
Definition at line 68 of file grease_pencil_paint.cc.
References b, i, blender::MutableSpan< T >::index_range(), blender::bke::attribute_math::mix2(), blender::math::safe_rcp(), blender::MutableSpan< T >::size(), step, 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 122 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 110 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 1160 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 212 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 | do_fill_guides = false | ) |
Definition at line 1756 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 77 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 73 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 221 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 64 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 67 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 | ( | bool | temp_eraser = false | ) |
Definition at line 344 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 88 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 137 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 92 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 119 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 88 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 200 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 117 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 140 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 & | stroke_mode | ) |
Definition at line 104 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 197 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 1397 of file grease_pencil_paint.cc.
References add_strokes_to_drawing(), blender::ed::greasepencil::create_curves_outline(), blender::bke::curves_new_nomain(), blender::IndexRange::from_single(), 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().
| IndexMask blender::ed::sculpt_paint::greasepencil::point_mask_for_stroke_operation | ( | const GreasePencilStrokeParams & | params, |
| bool | use_selection_masking, | ||
| IndexMaskMemory & | memory ) |
Definition at line 308 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::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 blender::ed::sculpt_paint::greasepencil::VertexSmearOperation::on_stroke_extended().
|
static |
Definition at line 1520 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 1119 of file grease_pencil_erase.cc.
References IndexMask::from_predicate(), blender::geometry::remove_points_and_split(), 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 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 93 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 1079 of file grease_pencil_erase.cc.
References blender::math::abs(), BLI_assert, blender::math::distance(), e, blender::index_mask::IndexMask::foreach_range(), 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 1302 of file grease_pencil_paint.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), 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(), 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().
|
static |
Definition at line 1249 of file grease_pencil_paint.cc.
References blender::bke::GSpanAttributeWriter::finish(), blender::VArray< T >::ForSingle(), blender::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(), 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().
|
static |
Definition at line 1425 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(), and blender::GMutableSpan::type().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().
|
static |
Definition at line 1351 of file grease_pencil_paint.cc.
References add_strokes_to_drawing(), BLI_assert, BLI_rcti_init(), blender::bke::curves_copy_curve_selection(), blender::bke::curves_new_nomain(), blender::IndexRange::from_single(), blender::VArrayCommon< T >::get_internal_span(), blender::IndexRange::index_range(), blender::bke::CurvesGeometry::is_empty(), blender::VArrayCommon< T >::is_span(), blender::IndexRange::last(), blender::bke::AttributeAccessor::lookup(), blender::bounds::min_max(), blender::bke::CurvesGeometry::remove_curves(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::ed::greasepencil::trim::trim_curve_segments().
Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().
|
staticconstexpr |
Definition at line 36 of file grease_pencil_weight_paint.hh.
|
staticconstexpr |
Definition at line 35 of file grease_pencil_weight_paint.hh.
|
static |
Definition at line 141 of file grease_pencil_interpolate.cc.
Referenced by GREASE_PENCIL_OT_interpolate(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 148 of file grease_pencil_interpolate.cc.
Referenced by GREASE_PENCIL_OT_interpolate(), and GREASE_PENCIL_OT_interpolate_sequence().
|
static |
Definition at line 81 of file grease_pencil_interpolate.cc.
Referenced by GREASE_PENCIL_OT_interpolate_sequence().
|
constexpr |
Definition at line 155 of file grease_pencil_interpolate.cc.
Referenced by grease_pencil_interpolate_modal().
|
constexpr |
Definition at line 154 of file grease_pencil_interpolate.cc.
Referenced by grease_pencil_interpolate_modal().
|
staticconstexpr |
Definition at line 37 of file grease_pencil_weight_paint.hh.