|
Blender V5.3
|
Namespaces | |
| namespace | add_bezier |
| namespace | add_circle |
| namespace | clear_tilt |
| namespace | convert_from_particle_system |
| namespace | convert_to_particle_system |
| namespace | curve_type_set |
| namespace | curves_delete |
| namespace | curves_duplicate |
| namespace | cyclic_toggle |
| namespace | pen_tool |
| namespace | set_handle_type |
| namespace | set_selection_domain |
| namespace | snap_curves_to_surface |
| namespace | split |
| namespace | subdivide |
| namespace | surface_set |
| namespace | switch_direction |
| namespace | tests |
| namespace | undo |
Classes | |
| struct | ClosestCurveDataBlock |
| struct | CurveDrawData |
| class | CurvesGeometry |
| struct | FindClosestData |
| struct | StrokeElem |
Typedefs | |
| using | SelectionRangeFn |
Functions | |
| static bool | has_surface_deformation_node (const bNodeTree &ntree) |
| static bool | has_surface_deformation_node (const Object &curves_ob) |
| void | ensure_surface_deformation_node_exists (bContext &C, Object &curves_ob) |
| bke::CurvesGeometry | primitive_random_sphere (const int curves_size, const int points_per_curve) |
| static bool | active_attribute_poll (bContext *C) |
| static IndexMask | retrieve_selected_elements (const Curves &curves_id, const bke::AttrDomain domain, IndexMaskMemory &memory) |
| static void | validate_value (const bke::AttributeAccessor attributes, const StringRef name, const CPPType &type, void *buffer) |
| static wmOperatorStatus | set_attribute_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | set_attribute_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | set_attribute_ui (bContext *C, wmOperator *op) |
| Vector< MutableSpan< float3 > > | get_curves_positions_for_write (bke::CurvesGeometry &curves) |
| Vector< Span< float3 > > | get_curves_positions (const bke::CurvesGeometry &curves) |
| static std::array< IndexMask, 3 > | transverts_curves_selection (const bke::CurvesGeometry &curves, const bool skip_handles, IndexMaskMemory &memory) |
| void | transverts_from_curves_positions_create (bke::CurvesGeometry &curves, TransVertStore *tvs, const bool skip_handles) |
| void | transverts_update_curves (bke::CurvesGeometry &curves, const TransVertStore *tvs, const bool skip_handles) |
| float(* | point_normals_array_create (const Curves *curves_id))[3] |
| static void | curve_draw_stroke_3d (const bContext *, ARegion *, void *arg) |
| static void | curve_draw_event_add (wmOperator *op, const wmEvent *event) |
| static void | curve_draw_event_add_first (wmOperator *op, const wmEvent *event) |
| static void | curve_draw_exit (wmOperator *op) |
| static bool | curve_draw_init (bContext *C, wmOperator *op, bool is_invoke) |
| static void | create_Bezier (bke::CurvesGeometry &curves, bke::MutableAttributeAccessor &attributes, const CurveDrawData *cdd, const int curve_index, const bool is_cyclic, const uint cubic_spline_len, const int dims, const int radius_index, const float radius_max, const float *cubic_spline, const uint *corners_index, const uint corners_index_len) |
| static void | create_NURBS (bke::CurvesGeometry &curves, bke::MutableAttributeAccessor &attributes, const CurveDrawData *cdd, const int curve_index, const bool is_cyclic, const uint cubic_spline_len, const int dims, const int radius_index, const float radius_max, const float *cubic_spline) |
| static wmOperatorStatus | curves_draw_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | curves_draw_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | curve_draw_cancel (bContext *, wmOperator *op) |
| static void | curve_draw_exec_precalc (wmOperator *op) |
| static wmOperatorStatus | curves_draw_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | curve_offsets_from_selection (const Span< IndexRange > selected_points, const IndexRange points, const int curve, const bool cyclic, Vector< int > &r_new_curve_offsets, Vector< bool > &r_new_cyclic, Vector< IndexRange > &r_src_ranges, Vector< int > &r_dst_offsets, Vector< int > &r_dst_to_src_curve) |
| static void | append_point_knots (const Span< IndexRange > src_ranges, const OffsetIndices< int > dst_offsets, const Span< int > dst_to_src_curve, const bke::CurvesGeometry &src_curves, bke::CurvesGeometry &curves) |
| static void | append_curve_knots (const IndexMask &mask, bke::CurvesGeometry &curves) |
| static void | invert_ranges (const IndexRange universe, const Span< IndexRange > ranges, Array< IndexRange > &inverted) |
| static IndexRange | extend_range (const IndexRange range, const IndexRange universe) |
| static void | extend_range_by_1_within_bounds (const IndexRange universe, const bool cyclic, const Span< IndexRange > ranges, Vector< IndexRange > &extended_ranges) |
| static bke::CurvesGeometry | copy_data_to_geometry (const bke::CurvesGeometry &src_curves, const Span< int > dst_to_src_curve, const Span< int > offsets, const Span< bool > cyclic, const Span< IndexRange > src_ranges, const OffsetIndices< int > dst_offsets) |
| static Span< int > | compress_intervals (const OffsetIndices< int > intervals_by_curve, MutableSpan< int > intervals) |
| static void | calc_curves_extrusion (const IndexMask &selection, const OffsetIndices< int > points_by_curve, MutableSpan< int > copy_intervals, MutableSpan< int > curves_intervals_offsets, MutableSpan< bool > is_first_selected) |
| static void | calc_new_offsets (const Span< int > old_offsets, const Span< int > curves_intervals_offsets, MutableSpan< int > new_offsets) |
| static IndexRange | shift_end_by (const IndexRange &range, const int n) |
| static float | clamp_to_zero (const float value) |
| static void | extrude_knots (const bke::CurvesGeometry &curves, const OffsetIndices< int > intervals_by_curve, const OffsetIndices< int > copy_intervals, const Span< bool > is_first_selected, bke::CurvesGeometry &dst_curves) |
| static bke::CurvesGeometry | extrude_curves (const bke::CurvesGeometry &curves, const IndexMask &extruded_points) |
| static wmOperatorStatus | curves_extrude_exec (bContext *C, wmOperator *) |
| static eHandleDisplay | view3d_handle_type_or_default (const View3D *v3d) |
| bool | object_has_editable_curves (const Main &bmain, const Object &object) |
| VectorSet< Curves * > | get_unique_editable_curves (const bContext &C) |
| static bool | curves_poll_impl (bContext *C, const bool check_editable, const bool check_surface, const bool check_edit_mode) |
| static bool | editable_curves_point_domain_poll (bContext *C) |
| static void | CURVES_OT_convert_to_particle_system (wmOperatorType *ot) |
| static void | CURVES_OT_convert_from_particle_system (wmOperatorType *ot) |
| static void | CURVES_OT_snap_curves_to_surface (wmOperatorType *ot) |
| static void | CURVES_OT_set_selection_domain (wmOperatorType *ot) |
| static bool | has_anything_selected (const Span< Curves * > curves_ids) |
| static wmOperatorStatus | select_all_exec (bContext *C, wmOperator *op) |
| static void | CURVES_OT_select_all (wmOperatorType *ot) |
| static wmOperatorStatus | select_random_exec (bContext *C, wmOperator *op) |
| static void | select_random_ui (bContext *, wmOperator *op) |
| static void | CURVES_OT_select_random (wmOperatorType *ot) |
| static wmOperatorStatus | select_ends_exec (bContext *C, wmOperator *op) |
| static void | select_ends_ui (bContext *, wmOperator *op) |
| static void | CURVES_OT_select_ends (wmOperatorType *ot) |
| static wmOperatorStatus | select_linked_exec (bContext *C, wmOperator *) |
| static void | CURVES_OT_select_linked (wmOperatorType *ot) |
| static wmOperatorStatus | select_more_exec (bContext *C, wmOperator *) |
| static void | CURVES_OT_select_more (wmOperatorType *ot) |
| static wmOperatorStatus | select_less_exec (bContext *C, wmOperator *) |
| static void | CURVES_OT_select_less (wmOperatorType *ot) |
| static void | CURVES_OT_split (wmOperatorType *ot) |
| static void | CURVES_OT_surface_set (wmOperatorType *ot) |
| static void | CURVES_OT_delete (wmOperatorType *ot) |
| static void | CURVES_OT_duplicate (wmOperatorType *ot) |
| static void | CURVES_OT_tilt_clear (wmOperatorType *ot) |
| static void | CURVES_OT_cyclic_toggle (wmOperatorType *ot) |
| static void | CURVES_OT_curve_type_set (wmOperatorType *ot) |
| static void | CURVES_OT_switch_direction (wmOperatorType *ot) |
| static void | CURVES_OT_subdivide (wmOperatorType *ot) |
| static void | append_primitive_curve (bContext *C, Curves &curves_id, CurvesGeometry new_curves, wmOperator &op) |
| static void | CURVES_OT_add_circle (wmOperatorType *ot) |
| static void | CURVES_OT_add_bezier (wmOperatorType *ot) |
| static void | CURVES_OT_handle_type_set (wmOperatorType *ot) |
| void | operatortypes_curves () |
| void | operatormacros_curves () |
| void | keymap_curves (wmKeyConfig *keyconf) |
| static void | CURVES_OT_pen (wmOperatorType *ot) |
| void | ED_operatortypes_curves_pen () |
| void | ED_curves_pentool_modal_keymap (wmKeyConfig *keyconf) |
| Span< StringRef > | get_curves_selection_attribute_names (const bke::CurvesGeometry &curves) |
| Span< StringRef > | get_curves_all_selection_attribute_names () |
| Span< StringRef > | get_curves_bezier_selection_attribute_names (const bke::CurvesGeometry &curves) |
| void | remove_selection_attributes (bke::MutableAttributeAccessor &attributes, Span< StringRef > selection_attribute_names) |
| std::optional< Span< float3 > > | get_selection_attribute_positions (const bke::CurvesGeometry &curves, const bke::crazyspace::GeometryDeformation &deformation, const StringRef attribute_name) |
| static Vector< bke::GSpanAttributeWriter > | init_selection_writers (bke::CurvesGeometry &curves, bke::AttrDomain selection_domain) |
| static void | finish_attribute_writers (MutableSpan< bke::GSpanAttributeWriter > attribute_writers) |
| static bke::GSpanAttributeWriter & | selection_attribute_writer_by_name (MutableSpan< bke::GSpanAttributeWriter > selections, StringRef attribute_name) |
| static void | init_selectable_foreach (const bke::CurvesGeometry &curves, const bke::crazyspace::GeometryDeformation &deformation, eHandleDisplay handle_display, Span< StringRef > &r_bezier_attribute_names, Span< float3 > &r_positions, std::optional< std::array< Span< float3 >, 2 > > &r_bezier_handle_positions, IndexMaskMemory &r_memory, IndexMask &r_bezier_curves) |
| void | foreach_selectable_point_range (const bke::CurvesGeometry &curves, const bke::crazyspace::GeometryDeformation &deformation, eHandleDisplay handle_display, SelectionRangeFn range_consumer) |
| void | foreach_selectable_curve_range (const bke::CurvesGeometry &curves, const bke::crazyspace::GeometryDeformation &deformation, eHandleDisplay handle_display, SelectionRangeFn range_consumer) |
| static void | invert_selection (MutableSpan< float > selection, const IndexMask &mask) |
| static void | invert_selection (GMutableSpan selection, const IndexMask &mask) |
| static void | invert_selection (GMutableSpan selection) |
| static bool | is_everything_selected (GMutableSpan &selection_curve) |
| static FindClosestData | closer_elem (const FindClosestData &a, const FindClosestData &b) |
| static std::optional< FindClosestData > | find_closest_point_to_screen_co (const ARegion *region, const Span< float3 > positions, const float4x4 &projection, const IndexMask &points_mask, const float2 mouse_pos, const float radius, const FindClosestData &initial_closest) |
| static std::optional< FindClosestData > | find_closest_curve_to_screen_co (const ARegion *region, const OffsetIndices< int > points_by_curve, const Span< float3 > positions, const VArray< bool > &cyclic, const float4x4 &projection, const IndexMask &curves_mask, const float2 mouse_pos, float radius, const FindClosestData &initial_closest) |
| template<typename PointSelectFn, typename LineSelectFn> | |
| IndexMask | select_mask_from_predicates (const bke::CurvesGeometry &curves, const IndexMask &mask, const bke::AttrDomain selection_domain, IndexMaskMemory &memory, PointSelectFn &&point_predicate, LineSelectFn &&line_predicate) |
| void | undosys_type_register (UndoType *ut) |
| static ClosestCurveDataBlock | find_closest_curve (const Depsgraph &depsgraph, const ViewContext &vc, const Span< Base * > bases, const int2 &mval) |
| static bool | select_linked_pick (bContext &C, const int2 &mval, const SelectPick_Params ¶ms) |
| static wmOperatorStatus | select_linked_pick_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | separate_exec (bContext *C, wmOperator *) |
Operators | |
| void | CURVES_OT_attribute_set (wmOperatorType *ot) |
| void | CURVES_OT_draw (wmOperatorType *ot) |
| void | CURVES_OT_extrude (wmOperatorType *ot) |
| void | CURVES_OT_select_linked_pick (wmOperatorType *ot) |
| void | CURVES_OT_separate (wmOperatorType *ot) |
Operator/Stroke Conversion | |
| static void | curve_draw_stroke_to_operator_elem (wmOperator *op, const StrokeElem *selem) |
| static void | curve_draw_stroke_from_operator_elem (wmOperator *op, PointerRNA *itemptr) |
| static void | curve_draw_stroke_to_operator (wmOperator *op) |
| static void | curve_draw_stroke_from_operator (wmOperator *op) |
Mask Functions | |
| IndexMask | end_points (const bke::CurvesGeometry &curves, const IndexMask &curves_mask, const int amount_start, const int amount_end, const bool inverted, IndexMaskMemory &memory) |
| IndexMask | end_points (const bke::CurvesGeometry &curves, const int amount_start, const int amount_end, const bool inverted, IndexMaskMemory &memory) |
Poll Functions | |
| bool | editable_curves_in_edit_mode_poll (bContext *C) |
| bool | editable_curves_with_surface_poll (bContext *C) |
| bool | curves_with_surface_poll (bContext *C) |
| bool | editable_curves_poll (bContext *C) |
| bool | curves_poll (bContext *C) |
Selection | |
Selection on curves can be stored on either attribute domain: either per-curve or per-point. It can be stored with a float or boolean data-type. The boolean data-type is faster, smaller, and corresponds better to edit-mode selections, but the float data type is useful for soft selection (like masking) in sculpt mode. The attribute API is used to do the necessary type and domain conversions when necessary, and can handle most interaction with the selection attribute, but these functions implement some helpful utilities on top of that. | |
| IndexMask | retrieve_selected_curves (const bke::CurvesGeometry &curves, LinearAllocator<> &memory) |
| IndexMask | retrieve_selected_curves (const Curves &curves_id, LinearAllocator<> &memory) |
| IndexMask | retrieve_selected_points (const bke::CurvesGeometry &curves, LinearAllocator<> &memory) |
| IndexMask | retrieve_all_selected_points (const bke::CurvesGeometry &curves, const int handle_display, LinearAllocator<> &memory) |
| IndexMask | retrieve_selected_points (const bke::CurvesGeometry &curves, StringRef attribute_name, const IndexMask &bezier_points, LinearAllocator<> &memory) |
| IndexMask | retrieve_selected_points (const Curves &curves_id, LinearAllocator<> &memory) |
| void | foreach_selection_attribute_writer (bke::CurvesGeometry &curves, bke::AttrDomain selection_domain, FunctionRef< void(bke::GSpanAttributeWriter &selection)> fn) |
| bke::GSpanAttributeWriter | ensure_selection_attribute (bke::CurvesGeometry &curves, bke::AttrDomain selection_domain, bke::AttrType create_type, StringRef attribute_name) |
| void | fill_selection_false (GMutableSpan selection) |
| void | fill_selection_true (GMutableSpan selection) |
| void | fill_selection (GMutableSpan selection, bool value) |
| void | fill_selection_false (GMutableSpan selection, const IndexMask &mask) |
| void | fill_selection_true (GMutableSpan selection, const IndexMask &mask) |
| bool | has_anything_selected (const VArray< bool > &varray, const IndexRange range_to_check) |
| bool | has_anything_selected (const VArray< bool > &varray, const IndexMask &indices_to_check) |
| bool | has_anything_selected (const bke::CurvesGeometry &curves) |
| bool | has_anything_selected (const bke::CurvesGeometry &curves, bke::AttrDomain selection_domain) |
| bool | has_anything_selected (const bke::CurvesGeometry &curves, bke::AttrDomain selection_domain, const IndexMask &mask) |
| bool | has_anything_selected (const GSpan selection) |
| void | select_all (bke::CurvesGeometry &curves, const IndexMask &mask, const bke::AttrDomain selection_domain, int action) |
| void | select_all (bke::CurvesGeometry &curves, const bke::AttrDomain selection_domain, int action) |
| void | select_linked (bke::CurvesGeometry &curves, const IndexMask &curves_mask, const bool unselect) |
| void | select_linked (bke::CurvesGeometry &curves, const bool unselect) |
| void | select_alternate (bke::CurvesGeometry &curves, const IndexMask &curves_mask, const bool deselect_ends) |
| void | select_alternate (bke::CurvesGeometry &curves, const bool deselect_ends) |
| void | select_adjacent (bke::CurvesGeometry &curves, const IndexMask &curves_mask, const bool deselect) |
| void | select_adjacent (bke::CurvesGeometry &curves, const bool deselect) |
| void | apply_selection_operation_at_index (GMutableSpan selection, const int index, const eSelectOp sel_op) |
| std::optional< FindClosestData > | closest_elem_find_screen_space (const ViewContext &vc, const OffsetIndices< int > points_by_curve, const Span< float3 > positions, const VArray< bool > &cyclic, const float4x4 &projection, const IndexMask &mask, const bke::AttrDomain domain, const int2 coord, const FindClosestData &initial_closest) |
| bool | select_box (const ViewContext &vc, bke::CurvesGeometry &curves, const bke::crazyspace::GeometryDeformation &deformation, const float4x4 &projection, const IndexMask &selection_mask, const IndexMask &bezier_mask, const bke::AttrDomain selection_domain, const rcti &rect, const eSelectOp sel_op) |
| bool | select_lasso (const ViewContext &vc, bke::CurvesGeometry &curves, const bke::crazyspace::GeometryDeformation &deformation, const float4x4 &projection, const IndexMask &selection_mask, const IndexMask &bezier_mask, const bke::AttrDomain selection_domain, const Span< int2 > lasso_coords, const eSelectOp sel_op) |
| bool | select_circle (const ViewContext &vc, bke::CurvesGeometry &curves, const bke::crazyspace::GeometryDeformation &deformation, const float4x4 &projection, const IndexMask &selection_mask, const IndexMask &bezier_mask, const bke::AttrDomain selection_domain, const int2 coord, const float radius, const eSelectOp sel_op) |
| IndexMask | select_adjacent_mask (const bke::CurvesGeometry &curves, const IndexMask &curves_mask, const StringRef attribute_name, const bool deselect, IndexMaskMemory &memory) |
| IndexMask | select_adjacent_mask (const bke::CurvesGeometry &curves, const StringRef attribute_name, const bool deselect, IndexMaskMemory &memory) |
| IndexMask | select_box_mask (const ViewContext &vc, const bke::CurvesGeometry &curves, const bke::crazyspace::GeometryDeformation &deformation, const float4x4 &projection, const IndexMask &selection_mask, const IndexMask &bezier_mask, const bke::AttrDomain selection_domain, const StringRef attribute_name, const rcti &rect, IndexMaskMemory &memory) |
| IndexMask | select_lasso_mask (const ViewContext &vc, const bke::CurvesGeometry &curves, const bke::crazyspace::GeometryDeformation &deformation, const float4x4 &projection, const IndexMask &selection_mask, const IndexMask &bezier_mask, const bke::AttrDomain selection_domain, const StringRef attribute_name, const Span< int2 > lasso_coords, IndexMaskMemory &memory) |
| IndexMask | select_circle_mask (const ViewContext &vc, const bke::CurvesGeometry &curves, const bke::crazyspace::GeometryDeformation &deformation, const float4x4 &projection, const IndexMask &selection_mask, const IndexMask &bezier_mask, const bke::AttrDomain selection_domain, const StringRef attribute_name, const int2 coord, const float radius, IndexMaskMemory &memory) |
StrokeElem / #RNA_OperatorStrokeElement Conversion Functions | |
| enum | CurveDrawState { CURVE_DRAW_IDLE = 0 , CURVE_DRAW_PAINTING = 1 } |
| static float | stroke_elem_radius_from_pressure (const CurveDrawData *cdd, const float pressure) |
| static float | stroke_elem_radius (const CurveDrawData *cdd, const StrokeElem *selem) |
| static void | stroke_elem_pressure_set (const CurveDrawData *cdd, StrokeElem *selem, float pressure) |
| static void | stroke_elem_interp (StrokeElem *selem_out, const StrokeElem *selem_a, const StrokeElem *selem_b, float t) |
| static bool | stroke_elem_project (const CurveDrawData *cdd, const int mval_i[2], const float mval_fl[2], float surface_offset, const float radius, float r_location_world[3], float r_normal_world[3]) |
| static bool | stroke_elem_project_fallback (const CurveDrawData *cdd, const int mval_i[2], const float mval_fl[2], const float surface_offset, const float radius, const float location_fallback_depth[3], float r_location_world[3], float r_location_local[3], float r_normal_world[3], float r_normal_local[3]) |
| static bool | stroke_elem_project_fallback_elem (const CurveDrawData *cdd, const float location_fallback_depth[3], StrokeElem *selem) |
The code below uses a suffix naming convention to indicate the coordinate space: cu: Local space of the curves object that is being edited. su: Local space of the surface object. wo: World space. ha: Local space of an individual hair in the legacy hair system.
Definition at line 196 of file ED_curves.hh.
| Enumerator | |
|---|---|
| CURVE_DRAW_IDLE | |
| CURVE_DRAW_PAINTING | |
Definition at line 79 of file curves_draw.cc.
|
strong |
| Enumerator | |
|---|---|
| Free | |
| Auto | |
| Vector | |
| Align | |
| Toggle | |
Definition at line 581 of file ED_curves.hh.
|
static |
Definition at line 42 of file curves_attribute_set.cc.
References active_attribute_poll(), blender::ed::geometry::attribute_set_poll(), C, blender::CTX_data_active_object(), and editable_curves_in_edit_mode_poll().
Referenced by active_attribute_poll(), and CURVES_OT_attribute_set().
| void blender::ed::curves::add_curves | ( | bke::CurvesGeometry & | curves, |
| Span< int > | new_sizes ) |
Adds new curves to curves.
| new_sizes | The new size for each curve. Sizes must be > 0. |
Definition at line 620 of file curves_edit.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), add_curves(), blender::MutableSpan< T >::copy_from(), blender::bke::Curve, blender::MutableSpan< T >::drop_back(), blender::bke::fill_attribute_range_default(), blender::bke::Point, and blender::Span< T >::size().
Referenced by add_curves().
|
static |
Definition at line 247 of file curves_edit.cc.
References append_curve_knots(), and blender::bke::curves::nurbs::gather_custom_knots().
Referenced by append_curve_knots(), and duplicate_curves().
|
static |
Definition at line 83 of file curves_edit.cc.
References append_point_knots(), blender::MutableSpan< T >::copy_from(), blender::IndexRange::first(), blender::IndexRange::from_begin_size(), blender::IndexRange::index_range(), blender::Span< T >::index_range(), blender::bke::CurvesGeometry::nurbs_custom_knots(), blender::bke::CurvesGeometry::nurbs_custom_knots_by_curve(), blender::NURBS_KNOT_MODE_CUSTOM, blender::bke::CurvesGeometry::nurbs_orders(), blender::IndexRange::one_before_start(), blender::bke::CurvesGeometry::points_by_curve(), blender::IndexRange::shift(), blender::IndexRange::size(), blender::Span< T >::size(), blender::MutableSpan< T >::slice(), blender::Span< T >::slice(), blender::IndexRange::take_back(), and blender::IndexRange::take_front().
Referenced by append_point_knots(), copy_data_to_geometry(), and duplicate_points().
|
static |
Add new curves primitive to an existing curves object in edit mode.
Definition at line 1568 of file curves_ops.cc.
References blender::ed::object::add_generic_get_opts(), append_primitive_curve(), C, blender::bke::curves_new_nomain(), blender::bke::CurvesGeometry::curves_num(), blender::GMutableSpan::drop_back(), fill_selection_false(), fill_selection_true(), foreach_selection_attribute_writer(), blender::bke::GeometrySet::from_curves(), blender::math::from_loc_rot_scale(), blender::bke::GeometrySet::get_curves_for_write(), blender::geometry::join_geometries(), blender::bke::Point, blender::bke::CurvesGeometry::points_num(), blender::bke::ReadOnly, scale(), blender::bke::GSpanAttributeWriter::span, blender::bke::CurvesGeometry::tag_topology_changed(), blender::GMutableSpan::take_back(), and blender::geometry::transform_geometry().
Referenced by append_primitive_curve(), blender::ed::curves::add_bezier::exec(), and blender::ed::curves::add_circle::exec().
| void blender::ed::curves::apply_selection_operation_at_index | ( | GMutableSpan | selection, |
| int | index, | ||
| eSelectOp | sel_op ) |
Apply a change to a single curve or point. Avoid using this when affecting many elements.
Definition at line 721 of file curves_selection.cc.
References apply_selection_operation_at_index(), blender::CPPType::is(), blender::SEL_OP_ADD, blender::SEL_OP_SET, blender::SEL_OP_SUB, blender::SEL_OP_XOR, blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
Referenced by blender::ed::greasepencil::apply_mask_as_segment_selection(), blender::ed::greasepencil::apply_mask_as_selection(), apply_selection_operation_at_index(), and select_linked_pick().
|
static |
Definition at line 46 of file curves_extrude.cc.
References calc_curves_extrusion(), blender::IndexRange::first(), blender::MutableSpan< T >::first(), blender::Span< T >::first(), blender::bke::curves::foreach_selected_point_ranges_per_curve(), blender::IndexRange::last(), blender::MutableSpan< T >::last(), blender::IndexRange::size(), and blender::IndexRange::start().
Referenced by calc_curves_extrusion(), and extrude_curves().
|
static |
Definition at line 98 of file curves_extrude.cc.
References calc_new_offsets(), blender::IndexRange::drop_back(), blender::MutableSpan< T >::first(), blender::Span< T >::index_range(), blender::threading::parallel_for(), and blender::IndexRange::shift().
Referenced by calc_new_offsets(), and extrude_curves().
Definition at line 123 of file curves_extrude.cc.
References blender::math::abs(), and clamp_to_zero().
Referenced by clamp_to_zero(), and extrude_knots().
|
static |
Definition at line 761 of file curves_selection.cc.
References b, closer_elem(), and blender::ed::curves::FindClosestData::distance_sq.
Referenced by closer_elem().
| std::optional< FindClosestData > blender::ed::curves::closest_elem_find_screen_space | ( | const ViewContext & | vc, |
| OffsetIndices< int > | points_by_curve, | ||
| Span< float3 > | deformed_positions, | ||
| const VArray< bool > & | cyclic, | ||
| const float4x4 & | projection, | ||
| const IndexMask & | mask, | ||
| bke::AttrDomain | domain, | ||
| int2 | coord, | ||
| const FindClosestData & | initial ) |
Find the closest screen-space point or curve in projected region-space.
Definition at line 876 of file curves_selection.cc.
References BLI_assert_unreachable, closest_elem_find_screen_space(), blender::bke::Curve, blender::ED_view3d_select_dist_px(), find_closest_curve_to_screen_co(), find_closest_point_to_screen_co(), blender::bke::Point, and blender::ViewContext::region.
Referenced by closest_elem_find_screen_space(), blender::ed_curves_select_pick(), blender::ed_grease_pencil_select_pick(), and blender::ed::greasepencil::weight_sample_invoke().
|
static |
Merges copy intervals at curve endings to minimize number of copy operations. For example given in function 'extrude_curves' intervals [0, 3, 4, 4, 4] became [0, 4, 4]. Leading to only two copy operations.
Definition at line 26 of file curves_extrude.cc.
References compress_intervals(), blender::MutableSpan< T >::data(), blender::IndexRange::drop_front(), blender::IndexRange::first(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::IndexRange::size(), and blender::offset_indices::OffsetIndices< T >::size().
Referenced by compress_intervals().
|
static |
Definition at line 379 of file curves_edit.cc.
References append_point_knots(), attribute, blender::bke::attribute_filter_from_skip_ref(), blender::bke::CurvesGeometry::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), blender::BKE_defgroup_copy_list(), blender::array_utils::copy(), copy_data_to_geometry(), blender::bke::Curve, blender::bke::CurvesGeometry::cyclic_for_write(), blender::bke::gather_attributes(), blender::bke::attribute_math::gather_ranges_to_groups(), get_curves_selection_attribute_names(), blender::bke::CurvesGeometry::is_empty(), blender::Span< T >::last(), blender::bke::CurvesGeometry::nurbs_has_custom_knots(), blender::bke::CurvesGeometry::offsets_for_write(), blender::bke::Point, blender::bke::retrieve_attributes_for_transfer(), blender::Span< T >::size(), blender::bke::CurvesGeometry::update_curve_types(), and blender::CurvesGeometry::vertex_group_names.
Referenced by copy_data_to_geometry(), separate_points(), and split_points().
|
static |
Definition at line 638 of file curves_draw.cc.
References blender::BEZIER_HANDLE_ALIGN, blender::BEZIER_HANDLE_FREE, blender::copy_v3_v3(), create_Bezier(), blender::bke::SpanAttributeWriter< T >::finish(), blender::IndexRange::IndexRange(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::Point, blender::ed::curves::CurveDrawData::radius, and blender::bke::SpanAttributeWriter< T >::span.
Referenced by create_Bezier(), and curves_draw_exec().
|
static |
Definition at line 704 of file curves_draw.cc.
References blender::copy_v3_v3(), create_NURBS(), blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::Point, blender::ed::curves::CurveDrawData::radius, and blender::bke::SpanAttributeWriter< T >::span.
Referenced by create_NURBS(), and curves_draw_exec().
|
static |
Definition at line 1151 of file curves_draw.cc.
References curve_draw_cancel(), and curve_draw_exit().
Referenced by curve_draw_cancel(), and curves_draw_modal().
|
static |
Definition at line 448 of file curves_draw.cc.
References ARRAY_SET_ITEMS, blender::BLI_mempool_calloc(), ceil, blender::copy_v2_v2(), blender::copy_v3_v3(), curve_draw_event_add(), blender::wmOperator::customdata, blender::ED_region_tag_redraw(), blender::invert_m4_m4(), blender::len_squared_v2v2(), blender::ed::curves::StrokeElem::location_world, blender::ed::curves::StrokeElem::mval, blender::wmEvent::mval, blender::ViewContext::obedit, blender::ed::curves::StrokeElem::pressure, blender::ed::curves::CurveDrawData::prev, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ViewContext::region, blender::Object::runtime, blender::ed::curves::CurveDrawData::sample, blender::sqrt(), blender::square_f(), stroke_elem_interp(), blender::ed::curves::CurveDrawData::stroke_elem_pool, stroke_elem_project_fallback_elem(), STROKE_SAMPLE_DIST_MAX_PX, blender::ed::curves::CurveDrawData::vc, and blender::bke::ObjectRuntime::world_to_object.
Referenced by curve_draw_event_add(), curve_draw_event_add_first(), and curves_draw_modal().
|
static |
Definition at line 504 of file curves_draw.cc.
References blender::copy_v3_v3(), blender::cross_v3_v3v3(), curve_draw_event_add(), curve_draw_event_add_first(), CURVE_DRAW_PAINTING, blender::CURVE_PAINT_FLAG_DEPTH_STROKE_ENDPOINTS, blender::CURVE_PAINT_PROJECT_SURFACE, blender::ToolSettings::curve_paint_settings, blender::CURVE_PAINT_SURFACE_PLANE_NORMAL_SURFACE, blender::CURVE_PAINT_SURFACE_PLANE_NORMAL_VIEW, blender::wmOperator::customdata, blender::CurvePaintSettings::depth_mode, blender::ed::curves::CurveDrawData::depths, blender::dot_v3v3(), blender::ED_view3d_depth_read_cached_normal(), ELEM, blender::CurvePaintSettings::flag, float, blender::ed::curves::CurveDrawData::init_event_type, blender::is_zero_v3(), blender::wmEvent::mval, blender::normalize_v3_v3(), blender::ed::curves::CurveDrawData::prev, blender::ed::curves::CurveDrawData::project, blender::ViewContext::region, blender::ViewContext::rv3d, blender::ViewContext::scene, blender::ed::curves::CurveDrawData::state, stroke_elem_project(), blender::sub_v3_v3v3(), blender::CurvePaintSettings::surface_plane, blender::Scene::toolsettings, blender::ed::curves::CurveDrawData::vc, and blender::RegionView3D::viewinv.
Referenced by curve_draw_event_add_first(), curves_draw_invoke(), and curves_draw_modal().
|
static |
Initialize values before calling 'exec' (when running interactively).
Definition at line 1159 of file curves_draw.cc.
References blender::BLI_mempool_iternew(), blender::BLI_mempool_iterstep(), blender::BLI_mempool_len(), blender::CurvePaintSettings::corner_angle, curve_draw_exec_precalc(), blender::CURVE_PAINT_FLAG_CORNERS_DETECT, blender::ToolSettings::curve_paint_settings, blender::wmOperator::customdata, blender::CurvePaintSettings::error_threshold, blender::CurvePaintSettings::fit_method, blender::CurvePaintSettings::flag, float, blender::len_squared_v2v2(), blender::len_v2v2(), blender::len_v3v3(), blender::ed::curves::StrokeElem::location_local, M_PI, blender::MEM_new_array_uninitialized(), blender::ed::curves::StrokeElem::mval, blender::ed::curves::StrokeElem::pressure, blender::wmOperator::ptr, blender::CurvePaintSettings::radius_taper_end, blender::CurvePaintSettings::radius_taper_start, blender::RNA_property_boolean_set(), blender::RNA_property_enum_set(), blender::RNA_property_float_set(), blender::RNA_property_is_set(), blender::RNA_struct_find_property(), blender::ViewContext::scene, blender::square_f(), STROKE_CYCLIC_DIST_PX, blender::ed::curves::CurveDrawData::stroke_elem_pool, stroke_elem_pressure_set(), blender::Scene::toolsettings, UI_SCALE_FAC, and blender::ed::curves::CurveDrawData::vc.
Referenced by curve_draw_exec_precalc(), and curves_draw_modal().
|
static |
Definition at line 565 of file curves_draw.cc.
References blender::BLI_mempool_destroy(), curve_draw_exit(), blender::wmOperator::customdata, blender::ed::curves::CurveDrawData::depths, blender::ed::curves::CurveDrawData::draw_handle_view, blender::ED_region_draw_cb_exit(), blender::ED_view3d_depths_free(), blender::ViewContext::region, blender::ARegion::runtime, blender::ed::curves::CurveDrawData::stroke_elem_pool, blender::bke::ARegionRuntime::type, blender::ed::curves::CurveDrawData::vc, blender::ViewContext::win, and blender::WM_cursor_modal_restore().
Referenced by curve_draw_cancel(), curve_draw_exit(), and curves_draw_exec().
|
static |
Definition at line 586 of file curves_draw.cc.
References blender::ed::curves::CurveDrawData::bevel_radius, blender::BKE_report(), blender::BLI_assert(), blender::BLI_MEMPOOL_ALLOW_ITER, blender::BLI_mempool_create(), blender::ViewContext::bmain, C, blender::CTX_data_edit_object(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_view_layer(), curve_draw_init(), blender::CURVE_PAINT_FLAG_DEPTH_STROKE_OFFSET_ABS, blender::ToolSettings::curve_paint_settings, blender::CurvePaintSettings::curve_type, blender::ed::curves::CurveDrawData::curve_type, blender::wmOperator::customdata, blender::ViewContext::depsgraph, blender::ED_view3d_viewcontext_init(), ELEM, blender::CurvePaintSettings::flag, blender::ed::curves::CurveDrawData::is_curve_2d, blender::MEM_new_zeroed(), blender::ViewContext::obedit, blender::ed::curves::CurveDrawData::project, blender::wmOperator::ptr, blender::ed::curves::CurveDrawData::radius, blender::CurvePaintSettings::radius_max, blender::CurvePaintSettings::radius_min, blender::ViewContext::region, blender::wmOperator::reports, blender::RNA_boolean_get(), blender::RNA_collection_is_empty(), blender::RPT_ERROR, blender::ViewContext::rv3d, blender::ViewContext::scene, blender::ed::curves::CurveDrawData::stroke_elem_pool, blender::CurvePaintSettings::surface_offset, blender::Scene::toolsettings, blender::ViewContext::v3d, blender::ed::curves::CurveDrawData::vc, blender::ViewContext::view_layer, and blender::ViewContext::win.
Referenced by curve_draw_init(), curves_draw_exec(), and curves_draw_invoke().
Definition at line 341 of file curves_draw.cc.
References blender::ed::curves::CurveDrawData::bevel_radius, blender::BLI_mempool_iternew(), blender::BLI_mempool_iterstep(), blender::BLI_mempool_len(), blender::copy_v3_v3(), curve_draw_stroke_3d(), blender::wmOperator::customdata, float, blender::ui::theme::get_color_3fv(), blender::GPU_batch_draw(), blender::GPU_batch_preset_sphere(), blender::GPU_batch_program_set_builtin(), GPU_batch_uniform_3fv, blender::GPU_blend(), blender::GPU_BLEND_ALPHA, blender::GPU_BLEND_NONE, blender::GPU_DEPTH_LESS_EQUAL, blender::GPU_DEPTH_NONE, blender::GPU_depth_test(), blender::GPU_line_smooth(), blender::GPU_line_width(), blender::GPU_matrix_mul(), blender::GPU_matrix_pop(), blender::GPU_matrix_push(), blender::GPU_matrix_scale_1f(), blender::GPU_matrix_translate_3f(), blender::GPU_PRIM_LINE_STRIP, blender::GPU_SHADER_3D_UNIFORM_COLOR, blender::GPU_vertformat_attr_add(), blender::imm_cpack(), blender::immBegin(), blender::immBindBuiltinProgram(), blender::immEnd(), blender::immUnbindProgram(), blender::immVertex3fv(), blender::immVertexFormat(), blender::ed::curves::StrokeElem::location_local, blender::ed::curves::StrokeElem::location_world, blender::MEM_new_array_uninitialized(), blender::ViewContext::obedit, blender::ed::curves::CurveDrawData::stroke_elem_pool, stroke_elem_radius(), blender::TH_WIRE, and blender::ed::curves::CurveDrawData::vc.
Referenced by curve_draw_stroke_3d(), and curves_draw_invoke().
|
static |
Definition at line 331 of file curves_draw.cc.
References curve_draw_stroke_from_operator(), curve_draw_stroke_from_operator_elem(), blender::wmOperator::ptr, RNA_BEGIN, and RNA_END.
Referenced by curve_draw_stroke_from_operator(), and curves_draw_exec().
|
static |
Definition at line 303 of file curves_draw.cc.
References blender::BLI_mempool_calloc(), curve_draw_stroke_from_operator_elem(), blender::wmOperator::customdata, blender::ed::curves::StrokeElem::location_local, blender::ed::curves::StrokeElem::location_world, blender::mul_v3_m4v3(), blender::ed::curves::StrokeElem::mval, blender::ViewContext::obedit, blender::ed::curves::StrokeElem::pressure, blender::RNA_float_get(), blender::RNA_float_get_array(), blender::ed::curves::CurveDrawData::stroke_elem_pool, and blender::ed::curves::CurveDrawData::vc.
Referenced by curve_draw_stroke_from_operator(), and curve_draw_stroke_from_operator_elem().
|
static |
Definition at line 316 of file curves_draw.cc.
References blender::BLI_mempool_iternew(), blender::BLI_mempool_iterstep(), curve_draw_stroke_to_operator(), curve_draw_stroke_to_operator_elem(), blender::wmOperator::customdata, and blender::ed::curves::CurveDrawData::stroke_elem_pool.
Referenced by curve_draw_stroke_to_operator(), and curves_draw_modal().
|
static |
Definition at line 293 of file curves_draw.cc.
References curve_draw_stroke_to_operator_elem(), blender::ed::curves::StrokeElem::location_world, blender::ed::curves::StrokeElem::mval, blender::ed::curves::StrokeElem::pressure, blender::wmOperator::ptr, blender::RNA_collection_add(), blender::RNA_float_set(), and blender::RNA_float_set_array().
Referenced by curve_draw_stroke_to_operator(), and curve_draw_stroke_to_operator_elem().
|
static |
Definition at line 45 of file curves_edit.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_n_times(), curve_offsets_from_selection(), blender::Span< T >::drop_front(), blender::IndexRange::first(), blender::Span< T >::first(), blender::Span< T >::is_empty(), blender::IndexRange::last(), blender::Span< T >::last(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), blender::IndexRange::size(), and blender::Span< T >::size().
Referenced by curve_offsets_from_selection(), duplicate_points(), separate_points(), and split_points().
|
static |
Definition at line 742 of file curves_draw.cc.
References blender::bke::attribute_filter_from_skip_ref(), blender::BLI_mempool_iternew(), blender::BLI_mempool_iterstep(), blender::BLI_mempool_len(), C, blender::bke::AttributeAccessor::contains(), blender::copy_v3_v3(), create_Bezier(), create_NURBS(), blender::CU_BEZIER, blender::bke::Curve, curve_draw_exit(), curve_draw_init(), curve_draw_stroke_from_operator(), blender::CURVE_PAINT_FIT_METHOD_REFIT, blender::CURVE_PAINT_FIT_METHOD_SPLIT, blender::CURVE_PAINT_FLAG_PRESSURE_RADIUS, blender::ToolSettings::curve_paint_settings, blender::ed::curves::CurveDrawData::curve_type, blender::CURVE_TYPE_BEZIER, blender::CURVE_TYPE_NURBS, blender::CURVE_TYPE_POLY, curves_draw_exec(), blender::wmOperator::customdata, blender::Object::data, blender::DEG_id_tag_update(), blender::bke::fill_attribute_range_default(), blender::bke::AttributeWriter< T >::finish(), blender::bke::SpanAttributeWriter< T >::finish(), blender::CurvePaintSettings::flag, blender::bke::subdiv::free(), get_curves_all_selection_attribute_names(), get_curves_bezier_selection_attribute_names(), get_curves_selection_attribute_names(), blender::ID_RECALC_GEOMETRY, blender::IndexRange::IndexRange(), blender::invert_m4_m4(), blender::ed::curves::CurveDrawData::is_curve_2d, blender::ed::curves::StrokeElem::location_local, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), M_PI, blender::MEM_new_array_uninitialized(), NC_GEOM, ND_DATA, blender::NURBS_KNOT_MODE_BEZIER, blender::NURBS_KNOT_MODE_ENDPOINT_BEZIER, blender::ViewContext::obedit, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::bke::Point, blender::ed::curves::StrokeElem::pressure, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::wmOperator::ptr, blender::CurvePaintSettings::radius_max, blender::CurvePaintSettings::radius_min, blender::CurvePaintSettings::radius_taper_end, blender::CurvePaintSettings::radius_taper_start, remove_selection_attributes(), blender::result, blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::Object::runtime, blender::ViewContext::scene, blender::bke::SpanAttributeWriter< T >::span, blender::ed::curves::CurveDrawData::stroke_elem_pool, blender::Scene::toolsettings, UNLIKELY, blender::bke::AttributeWriter< T >::varray, blender::ed::curves::CurveDrawData::vc, blender::WM_event_add_notifier(), and blender::bke::ObjectRuntime::world_to_object.
Referenced by curves_draw_exec(), curves_draw_invoke(), curves_draw_modal(), and CURVES_OT_draw().
|
static |
Definition at line 1053 of file curves_draw.cc.
References blender::BKE_report(), C, blender::copy_v3_v3(), blender::CU_POLY, blender::Scene::cursor, curve_draw_event_add_first(), curve_draw_init(), curve_draw_stroke_3d(), blender::CURVE_PAINT_FLAG_DEPTH_ONLY_SELECTED, blender::CURVE_PAINT_PROJECT_SURFACE, blender::ToolSettings::curve_paint_settings, blender::ed::curves::CurveDrawData::curve_type, curves_draw_exec(), curves_draw_invoke(), blender::wmOperator::customdata, blender::ViewContext::depsgraph, blender::CurvePaintSettings::depth_mode, blender::ed::curves::CurveDrawData::depths, blender::dot_v3v3(), blender::ed::curves::CurveDrawData::draw_handle_view, blender::ED_region_draw_cb_activate(), blender::ED_view3d_depth_override(), blender::ED_view3d_win_to_3d(), blender::CurvePaintSettings::flag, float, blender::ed::curves::CurveDrawData::is_curve_2d, blender::View3DCursor::location, blender::wmEvent::mval, blender::negate_v3_v3(), blender::normalize_v3_v3(), blender::OB_WIRE, blender::ViewContext::obedit, blender::RegionView3D::ofs, blender::OPERATOR_CANCELLED, blender::OPERATOR_RUNNING_MODAL, blender::ed::curves::CurveDrawData::prev, blender::ed::curves::CurveDrawData::project, blender::wmOperator::ptr, blender::ViewContext::region, REGION_DRAW_POST_VIEW, blender::wmOperator::reports, blender::RNA_boolean_get(), blender::RNA_struct_property_is_set(), blender::RPT_WARNING, blender::ARegion::runtime, blender::ViewContext::rv3d, blender::ed::curves::CurveDrawData::sample, blender::ViewContext::scene, blender::View3D::shading, blender::Scene::toolsettings, blender::bke::ARegionRuntime::type, blender::View3DShading::type, blender::ViewContext::v3d, blender::V3D_DEPTH_ALL, blender::V3D_DEPTH_SELECTED_ONLY, blender::ed::curves::CurveDrawData::vc, blender::view3d_operator_needs_gpu(), blender::RegionView3D::viewinv, blender::ViewContext::win, blender::WM_cursor_modal_set(), blender::WM_CURSOR_PAINT_BRUSH, and blender::WM_event_add_modal_handler().
Referenced by curves_draw_invoke(), and CURVES_OT_draw().
|
static |
Definition at line 1277 of file curves_draw.cc.
References C, curve_draw_cancel(), curve_draw_event_add(), curve_draw_event_add_first(), curve_draw_exec_precalc(), CURVE_DRAW_PAINTING, curve_draw_stroke_to_operator(), curves_draw_exec(), curves_draw_modal(), blender::wmOperator::customdata, blender::ED_region_tag_redraw(), ELEM, blender::EVT_ESCKEY, float, blender::ed::curves::CurveDrawData::init_event_type, ISMOUSE_MOTION, blender::KM_PRESS, blender::KM_RELEASE, blender::LEFTMOUSE, blender::len_squared_v2v2(), blender::wmEvent::mval, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::OPERATOR_RUNNING_MODAL, blender::ed::curves::CurveDrawData::prev, blender::ViewContext::region, blender::ret, blender::RIGHTMOUSE, blender::square_f(), blender::ed::curves::CurveDrawData::state, STROKE_SAMPLE_DIST_MIN_PX, blender::wmEvent::type, UNUSED_VARS, blender::wmEvent::val, and blender::ed::curves::CurveDrawData::vc.
Referenced by curves_draw_modal(), and CURVES_OT_draw().
|
static |
Definition at line 341 of file curves_extrude.cc.
References C, curves_extrude_exec(), blender::DEG_id_tag_update(), extrude_curves(), get_unique_editable_curves(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::bke::Point, and retrieve_selected_points().
Referenced by curves_extrude_exec(), and CURVES_OT_extrude().
|
static |
Definition at line 1716 of file curves_ops.cc.
References blender::ed::object::add_generic_props(), blender::ed::object::add_unit_props_radius(), CURVES_OT_add_bezier(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::ed::curves::add_bezier::exec(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by CURVES_OT_add_bezier(), and operatortypes_curves().
|
static |
Definition at line 1656 of file curves_ops.cc.
References blender::ed::object::add_generic_props(), blender::ed::object::add_unit_props_radius(), CURVES_OT_add_circle(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::ed::curves::add_circle::exec(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by CURVES_OT_add_circle(), and operatortypes_curves().
| void blender::ed::curves::CURVES_OT_attribute_set | ( | wmOperatorType * | ot | ) |
Definition at line 213 of file curves_attribute_set.cc.
References active_attribute_poll(), CURVES_OT_attribute_set(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::ed::geometry::register_rna_properties_for_attribute_types(), set_attribute_exec(), set_attribute_invoke(), set_attribute_ui(), blender::wmOperatorType::srna, and blender::wmOperatorType::ui.
Referenced by CURVES_OT_attribute_set(), and operatortypes_curves().
|
static |
Definition at line 571 of file curves_ops.cc.
References blender::ed::curves::convert_from_particle_system::curves_convert_from_particle_system_exec(), blender::ed::curves::convert_from_particle_system::curves_convert_from_particle_system_poll(), CURVES_OT_convert_from_particle_system(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by CURVES_OT_convert_from_particle_system(), and operatortypes_curves().
|
static |
Definition at line 436 of file curves_ops.cc.
References blender::ed::curves::convert_to_particle_system::curves_convert_to_particle_system_exec(), CURVES_OT_convert_to_particle_system(), curves_with_surface_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by CURVES_OT_convert_to_particle_system(), and operatortypes_curves().
|
static |
Definition at line 1445 of file curves_ops.cc.
References blender::CURVE_TYPE_POLY, CURVES_OT_curve_type_set(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::ed::curves::curve_type_set::exec(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::rna_enum_curves_type_items, and blender::wmOperatorType::srna.
Referenced by CURVES_OT_curve_type_set(), and operatortypes_curves().
|
static |
Definition at line 1402 of file curves_ops.cc.
References CURVES_OT_cyclic_toggle(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::ed::curves::cyclic_toggle::exec(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by CURVES_OT_cyclic_toggle(), and operatortypes_curves().
|
static |
Definition at line 1279 of file curves_ops.cc.
References CURVES_OT_delete(), blender::ed::curves::curves_delete::delete_exec(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by CURVES_OT_delete(), and operatortypes_curves().
| void blender::ed::curves::CURVES_OT_draw | ( | wmOperatorType * | ot | ) |
Definition at line 1319 of file curves_draw.cc.
References BLT_I18NCONTEXT_AMOUNT, blender::CURVE_PAINT_FIT_METHOD_REFIT, curves_draw_exec(), curves_draw_invoke(), curves_draw_modal(), CURVES_OT_draw(), DEG2RADF, blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, M_PI, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_ANGLE, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_collection_runtime(), blender::RNA_def_enum(), blender::RNA_def_float_distance(), blender::RNA_def_property_flag(), blender::RNA_def_property_subtype(), blender::RNA_def_property_translation_context(), blender::RNA_def_property_ui_range(), blender::rna_enum_curve_fit_method_items, and blender::wmOperatorType::srna.
Referenced by CURVES_OT_draw(), and operatortypes_curves().
|
static |
Definition at line 1317 of file curves_ops.cc.
References CURVES_OT_duplicate(), blender::wmOperatorType::description, blender::ed::curves::curves_duplicate::duplicate_exec(), editable_curves_in_edit_mode_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by CURVES_OT_duplicate(), and operatortypes_curves().
| void blender::ed::curves::CURVES_OT_extrude | ( | wmOperatorType * | ot | ) |
Definition at line 364 of file curves_extrude.cc.
References curves_extrude_exec(), CURVES_OT_extrude(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by CURVES_OT_extrude(), and operatortypes_curves().
|
static |
Definition at line 1821 of file curves_ops.cc.
References Auto, CURVES_OT_handle_type_set(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::ed::curves::set_handle_type::exec(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::RNA_def_enum(), rna_enum_set_handle_type_items, blender::wmOperatorType::srna, and blender::WM_menu_invoke().
Referenced by CURVES_OT_handle_type_set(), and operatortypes_curves().
|
static |
Definition at line 1523 of file curves_pen.cc.
References CURVES_OT_pen(), blender::ed::curves::pen_tool::curves_pen_invoke(), blender::ed::curves::pen_tool::curves_pen_modal(), blender::wmOperatorType::description, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::OPTYPE_UNDO, and blender::ed::curves::pen_tool::pen_tool_common_props().
Referenced by CURVES_OT_pen(), and ED_operatortypes_curves_pen().
|
static |
Definition at line 884 of file curves_ops.cc.
References CURVES_OT_select_all(), blender::wmOperatorType::description, editable_curves_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, select_all_exec(), and blender::WM_operator_properties_select_all().
Referenced by CURVES_OT_select_all(), and operatortypes_curves().
|
static |
Definition at line 1021 of file curves_ops.cc.
References CURVES_OT_select_ends(), blender::wmOperatorType::description, editable_curves_point_domain_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, INT32_MAX, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_int(), select_ends_exec(), select_ends_ui(), blender::wmOperatorType::srna, and blender::wmOperatorType::ui.
Referenced by CURVES_OT_select_ends(), and operatortypes_curves().
|
static |
Definition at line 1122 of file curves_ops.cc.
References CURVES_OT_select_less(), blender::wmOperatorType::description, editable_curves_point_domain_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, and select_less_exec().
Referenced by CURVES_OT_select_less(), and operatortypes_curves().
|
static |
Definition at line 1068 of file curves_ops.cc.
References CURVES_OT_select_linked(), blender::wmOperatorType::description, editable_curves_point_domain_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, and select_linked_exec().
Referenced by CURVES_OT_select_linked(), and operatortypes_curves().
| void blender::ed::curves::CURVES_OT_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 131 of file select_linked_pick.cc.
References CURVES_OT_select_linked_pick(), blender::wmOperatorType::description, editable_curves_poll(), blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), select_linked_pick_invoke(), and blender::wmOperatorType::srna.
Referenced by CURVES_OT_select_linked_pick(), and operatortypes_curves().
|
static |
Definition at line 1095 of file curves_ops.cc.
References CURVES_OT_select_more(), blender::wmOperatorType::description, editable_curves_point_domain_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, and select_more_exec().
Referenced by CURVES_OT_select_more(), and operatortypes_curves().
|
static |
Definition at line 940 of file curves_ops.cc.
References CURVES_OT_select_random(), blender::wmOperatorType::description, editable_curves_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, INT32_MAX, INT32_MIN, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_float(), blender::RNA_def_int(), select_random_exec(), select_random_ui(), blender::wmOperatorType::srna, and blender::wmOperatorType::ui.
Referenced by CURVES_OT_select_random(), and operatortypes_curves().
| void blender::ed::curves::CURVES_OT_separate | ( | wmOperatorType * | ot | ) |
Definition at line 127 of file curves/intern/separate.cc.
References CURVES_OT_separate(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, and separate_exec().
Referenced by CURVES_OT_separate(), and operatortypes_curves().
|
static |
Definition at line 836 of file curves_ops.cc.
References CURVES_OT_set_selection_domain(), blender::ed::curves::set_selection_domain::curves_set_selection_domain_exec(), blender::wmOperatorType::description, editable_curves_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_enum(), blender::RNA_def_property_flag(), blender::rna_enum_attribute_curves_domain_items, and blender::wmOperatorType::srna.
Referenced by CURVES_OT_set_selection_domain(), and operatortypes_curves().
|
static |
Definition at line 743 of file curves_ops.cc.
References CURVES_OT_snap_curves_to_surface(), blender::wmOperatorType::description, editable_curves_with_surface_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by CURVES_OT_snap_curves_to_surface(), and operatortypes_curves().
|
static |
Definition at line 1161 of file curves_ops.cc.
References CURVES_OT_split(), blender::wmOperatorType::description, editable_curves_point_domain_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, and blender::ed::curves::split::split_exec().
Referenced by CURVES_OT_split(), and operatortypes_curves().
|
static |
Definition at line 1550 of file curves_ops.cc.
References CURVES_OT_subdivide(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::ed::curves::subdivide::exec(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::PROP_SKIP_SAVE, blender::RNA_def_int(), blender::RNA_def_property_flag(), and blender::wmOperatorType::srna.
Referenced by CURVES_OT_subdivide(), and operatortypes_curves().
|
static |
Definition at line 1249 of file curves_ops.cc.
References CURVES_OT_surface_set(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::ed::curves::surface_set::surface_set_exec(), and blender::ed::curves::surface_set::surface_set_poll().
Referenced by CURVES_OT_surface_set(), and operatortypes_curves().
|
static |
Definition at line 1488 of file curves_ops.cc.
References CURVES_OT_switch_direction(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::ed::curves::switch_direction::exec(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by CURVES_OT_switch_direction(), and operatortypes_curves().
|
static |
Definition at line 1357 of file curves_ops.cc.
References CURVES_OT_tilt_clear(), blender::wmOperatorType::description, editable_curves_in_edit_mode_poll(), blender::ed::curves::clear_tilt::exec(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, and blender::wmOperatorType::poll.
Referenced by CURVES_OT_tilt_clear(), and operatortypes_curves().
| bool blender::ed::curves::curves_poll | ( | bContext * | C | ) |
Definition at line 171 of file curves_ops.cc.
References C, curves_poll(), and curves_poll_impl().
Referenced by blender::ed::sculpt_paint::CURVES_OT_sculptmode_toggle(), and curves_poll().
|
static |
Definition at line 122 of file curves_ops.cc.
References C, blender::CTX_data_active_object(), blender::CTX_wm_operator_poll_msg_set(), curves_poll_impl(), blender::ED_operator_object_active_editable_ex(), blender::OB_CURVES, blender::OB_MESH, and blender::OB_MODE_EDIT.
Referenced by curves_poll(), curves_poll_impl(), curves_with_surface_poll(), editable_curves_in_edit_mode_poll(), editable_curves_poll(), and editable_curves_with_surface_poll().
| bool blender::ed::curves::curves_with_surface_poll | ( | bContext * | C | ) |
Definition at line 161 of file curves_ops.cc.
References C, curves_poll_impl(), and curves_with_surface_poll().
Referenced by CURVES_OT_convert_to_particle_system(), curves_with_surface_poll(), and blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_poll().
| void blender::ed::curves::duplicate_curves | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | mask ) |
Definition at line 254 of file curves_edit.cc.
References append_curve_knots(), attribute, BLI_assert_unreachable, blender::bke::Curve, blender::bke::AttributeIter::domain, blender::MutableSpan< T >::drop_front(), duplicate_curves(), blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::array_utils::gather(), blender::bke::attribute_math::gather_group_to_group(), blender::offset_indices::gather_selected_offsets(), get_curves_selection_attribute_names(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::AttributeIter::name, blender::bke::Point, remove_selection_attributes(), blender::bke::Single, blender::offset_indices::OffsetIndices< T >::slice(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::AttributeIter::storage_type, blender::MutableSpan< T >::take_front(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by duplicate_curves(), blender::ed::curves::curves_duplicate::duplicate_exec(), blender::ed::greasepencil::grease_pencil_duplicate_exec(), and blender::ed::greasepencil::grease_pencil_reproject_exec().
| void blender::ed::curves::duplicate_points | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | mask ) |
Definition at line 138 of file curves_edit.cc.
References append_point_knots(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), attribute, BLI_assert_unreachable, blender::array_utils::copy(), blender::bke::Curve, curve_offsets_from_selection(), blender::offset_indices::OffsetIndices< T >::data(), blender::bke::AttributeIter::domain, duplicate_points(), blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::curves::foreach_selected_point_ranges_per_curve(), blender::bke::attribute_math::gather(), blender::bke::attribute_math::gather_ranges_to_groups(), get_curves_selection_attribute_names(), blender::VArrayCommon< T >::get_internal_single(), blender::VArrayCommon< T >::is_single(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::AttributeIter::name, blender::bke::Point, remove_selection_attributes(), blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), blender::bke::Single, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::bke::SpanAttributeWriter< T >::span, and blender::bke::AttributeIter::storage_type.
Referenced by blender::ed::curves::curves_duplicate::duplicate_exec(), duplicate_points(), blender::ed::greasepencil::grease_pencil_duplicate_exec(), blender::ed::greasepencil::grease_pencil_reproject_exec(), blender::ed::curves::tests::TEST_F(), blender::ed::curves::tests::TEST_F(), and blender::ed::curves::tests::TEST_F().
| void blender::ed::curves::ED_curves_pentool_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1546 of file curves_pen.cc.
References ED_curves_pentool_modal_keymap(), blender::ed::curves::pen_tool::ensure_keymap(), and blender::WM_modalkeymap_assign().
Referenced by ED_curves_pentool_modal_keymap(), and keymap_curves().
| void blender::ed::curves::ED_operatortypes_curves_pen | ( | ) |
Definition at line 1541 of file curves_pen.cc.
References CURVES_OT_pen(), ED_operatortypes_curves_pen(), and blender::WM_operatortype_append().
Referenced by ED_operatortypes_curves_pen(), and operatortypes_curves().
| bool blender::ed::curves::editable_curves_in_edit_mode_poll | ( | bContext * | C | ) |
Definition at line 151 of file curves_ops.cc.
References C, curves_poll_impl(), and editable_curves_in_edit_mode_poll().
Referenced by active_attribute_poll(), CURVES_OT_add_bezier(), CURVES_OT_add_circle(), CURVES_OT_curve_type_set(), CURVES_OT_cyclic_toggle(), CURVES_OT_delete(), CURVES_OT_draw(), CURVES_OT_duplicate(), CURVES_OT_extrude(), CURVES_OT_handle_type_set(), CURVES_OT_separate(), CURVES_OT_subdivide(), CURVES_OT_switch_direction(), CURVES_OT_tilt_clear(), editable_curves_in_edit_mode_poll(), keymap_curves(), and undosys_type_register().
|
static |
Definition at line 176 of file curves_ops.cc.
References C, blender::CTX_data_active_object(), blender::CTX_wm_operator_poll_msg_set(), blender::data, editable_curves_point_domain_poll(), editable_curves_poll(), and blender::bke::Point.
Referenced by CURVES_OT_select_ends(), CURVES_OT_select_less(), CURVES_OT_select_linked(), CURVES_OT_select_more(), CURVES_OT_split(), and editable_curves_point_domain_poll().
| bool blender::ed::curves::editable_curves_poll | ( | bContext * | C | ) |
Definition at line 166 of file curves_ops.cc.
References C, curves_poll_impl(), and editable_curves_poll().
Referenced by CURVES_OT_select_all(), CURVES_OT_select_linked_pick(), CURVES_OT_select_random(), CURVES_OT_set_selection_domain(), editable_curves_point_domain_poll(), editable_curves_poll(), blender::ed::sculpt_paint::SCULPT_CURVES_OT_select_grow(), and blender::ed::sculpt_paint::SCULPT_CURVES_OT_select_random().
| bool blender::ed::curves::editable_curves_with_surface_poll | ( | bContext * | C | ) |
Definition at line 156 of file curves_ops.cc.
References C, curves_poll_impl(), and editable_curves_with_surface_poll().
Referenced by CURVES_OT_snap_curves_to_surface(), and editable_curves_with_surface_poll().
| IndexMask blender::ed::curves::end_points | ( | const bke::CurvesGeometry & | curves, |
| const IndexMask & | curves_mask, | ||
| const int | amount_start, | ||
| const int | amount_end, | ||
| const bool | inverted, | ||
| IndexMaskMemory & | memory ) |
Definition at line 18 of file curves_masks.cc.
References end_points(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), inverted(), and blender::index_mask::IndexMask::slice().
Referenced by end_points(), end_points(), select_ends_exec(), and blender::ed::greasepencil::select_ends_exec().
| IndexMask blender::ed::curves::end_points | ( | const bke::CurvesGeometry & | curves, |
| int | amount_start, | ||
| int | amount_end, | ||
| bool | inverted, | ||
| IndexMaskMemory & | memory ) |
Return a mask of all the end points in the curves.
| curves_mask | (optional) The curves that should be used in the resulting point mask. |
| amount_start | The amount of points to mask from the front. |
| amount_end | The amount of points to mask from the back. |
| inverted | Invert the resulting mask. |
Definition at line 39 of file curves_masks.cc.
References end_points(), and inverted().
| bke::GSpanAttributeWriter blender::ed::curves::ensure_selection_attribute | ( | bke::CurvesGeometry & | curves, |
| bke::AttrDomain | selection_domain, | ||
| bke::AttrType | create_type, | ||
| StringRef | attribute_name = ".selection" ) |
If the selection_id attribute doesn't exist, create it with the requested type (bool or float).
Definition at line 319 of file curves_selection.cc.
References blender::bke::MutableAttributeAccessor::add(), BLI_assert_unreachable, blender::bke::Bool, blender::bke::AttributeAccessor::contains(), blender::bke::GSpanAttributeWriter::domain, ensure_selection_attribute(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::Float, blender::bke::MutableAttributeAccessor::lookup_for_write_span(), and blender::bke::MutableAttributeAccessor::remove().
Referenced by blender::ed::curves::pen_tool::add_single_point_and_curve(), blender::ed::greasepencil::apply_mask_as_segment_selection(), blender::ed::greasepencil::apply_mask_as_selection(), blender::ed::curves::pen_tool::close_curve_and_select(), blender::ed::sculpt_paint::greasepencil::deselect_stroke(), ensure_selection_attribute(), blender::ed::greasepencil::ensure_selection_domain(), extrude_curves(), blender::ed::curves::pen_tool::extrude_curves(), blender::ed::greasepencil::extrude_grease_pencil_curves(), blender::ed::greasepencil::grease_pencil_material_select_exec(), blender::ed::greasepencil::grease_pencil_paste_strokes_exec(), init_selection_writers(), blender::ed::curves::pen_tool::insert_point_to_curve(), select_adjacent(), select_ends_exec(), blender::ed::greasepencil::select_fill_exec(), select_linked_pick(), select_random_exec(), blender::ed::greasepencil::select_similar_by_value(), and blender::ed::object::vgroup_grease_pencil_select_verts().
| void blender::ed::curves::ensure_surface_deformation_node_exists | ( | bContext & | C, |
| Object & | curves_ob ) |
Definition at line 64 of file curves_add.cc.
References blender::BKE_main_ensure_invariants(), C, blender::CTX_data_main(), blender::CTX_data_scene(), DATA_, blender::eModifierType_Nodes, ensure_surface_deformation_node_exists(), blender::GeometryNodeAssetTraits::flag, blender::GEO_NODE_ASSET_MODIFIER, GEO_NODE_DEFORM_CURVES_ON_SURFACE, blender::bNodeTree::geometry_node_asset_traits, has_surface_deformation_node(), blender::bNodeTree::id, blender::bNode::inputs, blender::bNode::location, blender::ed::object::modifier_add(), blender::bke::node_add_link(), blender::bke::node_add_static_node(), blender::bke::node_find_socket(), blender::NodesModifierData::node_group, NODE_GROUP_INPUT, NODE_GROUP_OUTPUT, blender::NODE_INTERFACE_SOCKET_INPUT, blender::NODE_INTERFACE_SOCKET_OUTPUT, blender::bke::node_tree_add_tree(), blender::bNode::outputs, blender::SOCK_IN, blender::SOCK_OUT, and blender::bNodeTree::tree_interface.
Referenced by ensure_surface_deformation_node_exists(), and blender::ed::curves::surface_set::surface_set_exec().
|
static |
Definition at line 336 of file curves_edit.cc.
References extend_range(), blender::IndexRange::from_begin_end_inclusive(), blender::IndexRange::last(), blender::math::max(), blender::math::min(), blender::IndexRange::one_after_last(), and blender::IndexRange::start().
Referenced by extend_range(), and extend_range_by_1_within_bounds().
|
static |
Extends each range by one point at both ends of it. Merges adjacent ranges if intersections occur.
Definition at line 346 of file curves_edit.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::Span< T >::drop_front(), extend_range(), extend_range_by_1_within_bounds(), blender::IndexRange::first(), blender::Span< T >::first(), blender::IndexRange::from_begin_end_inclusive(), blender::IndexRange::from_single(), blender::Span< T >::is_empty(), blender::IndexRange::last(), blender::Span< T >::last(), and blender::IndexRange::start().
Referenced by extend_range_by_1_within_bounds(), separate_points(), and split_points().
|
static |
Definition at line 221 of file curves_extrude.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::bke::Bool, calc_curves_extrusion(), calc_new_offsets(), blender::bke::curves::copy_only_curve_domain(), blender::bke::CurvesGeometry::curves_num(), ensure_selection_attribute(), extrude_curves(), blender::bke::Float, blender::VArray< T >::from_single(), get_curves_selection_attribute_names(), blender::Span< T >::index_range(), blender::CPPType::is(), blender::Array< T, InlineBufferCapacity, Allocator >::last(), blender::MutableSpan< T >::last(), blender::bke::AttributeAccessor::lookup(), blender::bke::CurvesGeometry::offsets_for_write(), blender::threading::parallel_for(), blender::bke::Point, blender::bke::CurvesGeometry::resize(), blender::index_mask::IndexMask::size(), and blender::GVArrayCommon::type().
Referenced by curves_extrude_exec(), and extrude_curves().
|
static |
Definition at line 128 of file curves_extrude.cc.
References abs, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), clamp_to_zero(), blender::offset_indices::OffsetIndices< T >::data(), blender::IndexRange::drop_back(), blender::IndexRange::drop_front(), extrude_knots(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::MutableSpan< T >::index_range(), blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), blender::bke::CurvesGeometry::nurbs_custom_knots_by_curve(), blender::bke::CurvesGeometry::nurbs_custom_knots_for_write(), blender::bke::CurvesGeometry::nurbs_custom_knots_update_size(), blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), blender::Span< T >::size(), blender::MutableSpan< T >::slice(), and blender::Span< T >::slice().
Referenced by extrude_knots().
| void blender::ed::curves::fill_selection | ( | GMutableSpan | selection, |
| bool | value ) |
Definition at line 369 of file curves_selection.cc.
References fill_selection(), blender::CPPType::is(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
Referenced by fill_selection(), blender::ed::greasepencil::grease_pencil_material_select_exec(), and select_linked().
| void blender::ed::curves::fill_selection_false | ( | GMutableSpan | selection | ) |
Definition at line 349 of file curves_selection.cc.
References fill_selection_false(), blender::CPPType::is(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
Referenced by append_primitive_curve(), blender::ed::curves::pen_tool::close_curve_and_select(), blender::ed::sculpt_paint::greasepencil::deselect_stroke(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::execute(), fill_selection_false(), fill_selection_false(), blender::ed::greasepencil::grease_pencil_paste_strokes_exec(), blender::ed::curves::pen_tool::insert_point_to_curve(), select_all(), select_box(), select_circle(), select_lasso(), select_random_exec(), blender::ed::greasepencil::selection_update(), separate_points(), and split_points().
| void blender::ed::curves::fill_selection_false | ( | GMutableSpan | selection, |
| const IndexMask & | mask ) |
Definition at line 379 of file curves_selection.cc.
References fill_selection_false(), blender::CPPType::is(), blender::index_mask::masked_fill(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
| void blender::ed::curves::fill_selection_true | ( | GMutableSpan | selection | ) |
Definition at line 359 of file curves_selection.cc.
References fill_selection_true(), blender::CPPType::is(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
Referenced by blender::ed::curves::pen_tool::add_single_point_and_curve(), append_primitive_curve(), blender::ed::curves::pen_tool::close_curve_and_select(), blender::ed::greasepencil::ensure_selection_domain(), blender::ed::sculpt_paint::AddOperationExecutor::execute(), fill_selection_true(), fill_selection_true(), blender::ed::curves::pen_tool::insert_point_to_curve(), select_all(), select_ends_exec(), blender::ed::greasepencil::select_fill_exec(), and select_random_exec().
| void blender::ed::curves::fill_selection_true | ( | GMutableSpan | selection, |
| const IndexMask & | mask ) |
Definition at line 389 of file curves_selection.cc.
References fill_selection_true(), blender::CPPType::is(), blender::index_mask::masked_fill(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
|
static |
Definition at line 30 of file select_linked_pick.cc.
References blender::Object::data, blender::ED_view3d_ob_project_mat_get(), find_closest_curve(), foreach_selectable_curve_range(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::View3DOverlay::handle_display, blender::Span< T >::index_range(), blender::bke::subdiv::init(), blender::View3D::overlay, blender::threading::parallel_reduce(), blender::ViewContext::rv3d, blender::Span< T >::slice(), and blender::ViewContext::v3d.
Referenced by find_closest_curve(), and select_linked_pick().
|
static |
Definition at line 808 of file curves_selection.cc.
References blender::Editor, find_closest_curve_to_screen_co(), blender::index_mask::IndexMask::index_range(), blender::bke::subdiv::init(), blender::threading::parallel_reduce(), blender::pow2f(), and PRF_scope.
Referenced by closest_elem_find_screen_space(), and find_closest_curve_to_screen_co().
|
static |
Definition at line 769 of file curves_selection.cc.
References blender::Editor, find_closest_point_to_screen_co(), blender::index_mask::IndexMask::index_range(), blender::bke::subdiv::init(), blender::threading::parallel_reduce(), blender::pow2f(), and PRF_scope.
Referenced by closest_elem_find_screen_space(), and find_closest_point_to_screen_co().
|
static |
Definition at line 192 of file curves_selection.cc.
References finish_attribute_writers().
Referenced by finish_attribute_writers(), foreach_selection_attribute_writer(), select_alternate(), and select_linked().
| void blender::ed::curves::foreach_selectable_curve_range | ( | const bke::CurvesGeometry & | curves, |
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| eHandleDisplay | handle_display, | ||
| SelectionRangeFn | range_consumer ) |
Same logic as in foreach_selectable_point_range, just ranges reference curves instead of positions directly. Further positions can be referenced by using curves.points_by_curve() in a callback function.
Definition at line 286 of file curves_selection.cc.
References blender::CURVE_HANDLE_NONE, blender::index_mask::IndexMask::foreach_range(), foreach_selectable_curve_range(), blender::Span< T >::index_range(), and init_selectable_foreach().
Referenced by blender::ed_curves_select_pick(), blender::ed_grease_pencil_select_pick(), find_closest_curve(), and foreach_selectable_curve_range().
| void blender::ed::curves::foreach_selectable_point_range | ( | const bke::CurvesGeometry & | curves, |
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| eHandleDisplay | handle_display, | ||
| SelectionRangeFn | range_consumer ) |
Traverses all ranges of control points possible select. Callback function is provided with a range being visited, positions (deformed if possible) referenced by the range and selection attribute name positions belongs to: curves.positions() belong to ".selection", curves.handle_positions_left() belong to ".selection_handle_left", curves.handle_positions_right() belong to ".selection_handle_right".
Definition at line 249 of file curves_selection.cc.
References blender::CURVE_HANDLE_NONE, blender::index_mask::IndexMask::foreach_index(), foreach_selectable_point_range(), blender::exec_mode::grain_size(), blender::Span< T >::index_range(), and init_selectable_foreach().
Referenced by blender::ed_curves_select_pick(), blender::ed_grease_pencil_select_pick(), foreach_selectable_point_range(), select_box(), select_circle(), and select_lasso().
| void blender::ed::curves::foreach_selection_attribute_writer | ( | bke::CurvesGeometry & | curves, |
| bke::AttrDomain | selection_domain, | ||
| FunctionRef< void(bke::GSpanAttributeWriter &selection)> | fn ) |
Definition at line 215 of file curves_selection.cc.
References finish_attribute_writers(), foreach_selection_attribute_writer(), and init_selection_writers().
Referenced by append_primitive_curve(), foreach_selection_attribute_writer(), select_all(), select_linked_pick(), separate_points(), and split_points().
Definition at line 136 of file curves_selection.cc.
References get_curves_all_selection_attribute_names().
Referenced by curves_draw_exec(), get_curves_all_selection_attribute_names(), get_curves_selection_attribute_names(), select_linked(), and selection_attribute_writer_by_name().
| Span< StringRef > blender::ed::curves::get_curves_bezier_selection_attribute_names | ( | const bke::CurvesGeometry & | curves | ) |
Returns [".selection_handle_left", ".selection_handle_right"] if argument contains Bezier curves, empty span otherwise.
Definition at line 143 of file curves_selection.cc.
References blender::bke::AttributeAccessor::contains(), get_curves_bezier_selection_attribute_names(), and blender::Span< T >::Span().
Referenced by curves_draw_exec(), get_curves_bezier_selection_attribute_names(), and init_selectable_foreach().
| Vector< Span< float3 > > blender::ed::curves::get_curves_positions | ( | const bke::CurvesGeometry & | curves | ) |
Get read-only positions per selection attribute for given curve.
Definition at line 30 of file curves_data.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), and get_curves_positions().
Referenced by get_curves_positions().
| Vector< MutableSpan< float3 > > blender::ed::curves::get_curves_positions_for_write | ( | bke::CurvesGeometry & | curves | ) |
Get writable positions per selection attribute for given curve.
Definition at line 19 of file curves_data.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::CURVE_TYPE_BEZIER, and get_curves_positions_for_write().
Referenced by get_curves_positions_for_write(), blender::ed::transform::curves::recalcData_curves(), blender::ed::transform::greasepencil::recalcData_grease_pencil(), transverts_from_curves_positions_create(), and transverts_update_curves().
| Span< StringRef > blender::ed::curves::get_curves_selection_attribute_names | ( | const bke::CurvesGeometry & | curves | ) |
Get selection attribute names need for given curve and domain. Possible outcomes: [".selection", ".selection_handle_left", ".selection_handle_right"] if Bezier curves are present, [".selection"] otherwise.
Definition at line 128 of file curves_selection.cc.
References blender::CURVE_TYPE_BEZIER, get_curves_all_selection_attribute_names(), and get_curves_selection_attribute_names().
Referenced by blender::ed::curves::pen_tool::add_single_point_and_curve(), blender::ed::greasepencil::apply_mask_as_selection(), blender::ed::transform::curves::calculate_single_aligned_handles(), blender::ed::curves::pen_tool::close_curve_and_select(), copy_data_to_geometry(), blender::ed::transform::curves::createTransCurvesVerts(), blender::ed::transform::greasepencil::createTransGreasePencilVerts(), blender::ed::transform::curves::curve_populate_trans_data_structs(), curves_draw_exec(), blender::ed::curves::set_selection_domain::curves_set_selection_domain_exec(), blender::ed::sculpt_paint::greasepencil::deselect_stroke(), duplicate_curves(), duplicate_points(), blender::ed::greasepencil::ensure_selection_domain(), extrude_curves(), blender::ed::greasepencil::extrude_grease_pencil_curves(), get_curves_selection_attribute_names(), blender::ed::greasepencil::grease_pencil_material_select_exec(), blender::ed::greasepencil::grease_pencil_reproject_exec(), blender::ed::greasepencil::grease_pencil_snap_to_grid_exec(), has_anything_selected(), init_selection_writers(), blender::ed::curves::pen_tool::insert_point_to_curve(), retrieve_all_selected_points(), blender::ed::greasepencil::select_fill_exec(), blender::ed::greasepencil::select_similar_by_value(), blender::ed::greasepencil::selection_update(), and transverts_curves_selection().
| std::optional< Span< float3 > > blender::ed::curves::get_selection_attribute_positions | ( | const bke::CurvesGeometry & | curves, |
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| StringRef | attribute_name ) |
Get the position span associated with the given selection attribute name.
Definition at line 161 of file curves_selection.cc.
References BLI_assert_unreachable, get_selection_attribute_positions(), and blender::bke::crazyspace::GeometryDeformation::positions.
Referenced by get_selection_attribute_positions(), select_box_mask(), select_circle_mask(), and select_lasso_mask().
Definition at line 101 of file curves_ops.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), C, blender::CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, blender::CTX_data_main(), get_unique_editable_curves(), and object_has_editable_curves().
Referenced by curves_extrude_exec(), blender::ed::curves::set_selection_domain::curves_set_selection_domain_exec(), blender::ed::curves::curves_delete::delete_exec(), blender::ed::curves::curves_duplicate::duplicate_exec(), blender::ed::curves::clear_tilt::exec(), blender::ed::curves::curve_type_set::exec(), blender::ed::curves::cyclic_toggle::exec(), blender::ed::curves::set_handle_type::exec(), blender::ed::curves::subdivide::exec(), blender::ed::curves::switch_direction::exec(), get_unique_editable_curves(), select_all_exec(), select_ends_exec(), select_less_exec(), select_linked_exec(), select_more_exec(), select_random_exec(), blender::ed::sculpt_paint::select_random::select_random_exec(), set_attribute_exec(), and blender::ed::curves::split::split_exec().
| bool blender::ed::curves::has_anything_selected | ( | const bke::CurvesGeometry & | curves | ) |
Return true if any element is selected, on either domain with either type.
Definition at line 409 of file curves_selection.cc.
References blender::array_utils::contains(), has_anything_selected(), and blender::VArrayCommon< T >::index_range().
| bool blender::ed::curves::has_anything_selected | ( | const bke::CurvesGeometry & | curves, |
| bke::AttrDomain | selection_domain ) |
Definition at line 415 of file curves_selection.cc.
References has_anything_selected(), and blender::IndexRange::IndexRange().
| bool blender::ed::curves::has_anything_selected | ( | const bke::CurvesGeometry & | curves, |
| bke::AttrDomain | selection_domain, | ||
| const IndexMask & | mask ) |
Definition at line 421 of file curves_selection.cc.
References blender::array_utils::contains(), get_curves_selection_attribute_names(), and has_anything_selected().
| bool blender::ed::curves::has_anything_selected | ( | GSpan | selection | ) |
Return true if any element in the span is selected, on either domain with either type.
Definition at line 435 of file curves_selection.cc.
References has_anything_selected(), blender::CPPType::is(), blender::GSpan::type(), and blender::GSpan::typed().
Definition at line 854 of file curves_ops.cc.
References blender::Span< T >::begin(), blender::Span< T >::end(), and has_anything_selected().
Referenced by has_anything_selected(), select_all_exec(), select_ends_exec(), and select_random_exec().
| bool blender::ed::curves::has_anything_selected | ( | const VArray< bool > & | varray, |
| const IndexMask & | indices_to_check ) |
Definition at line 404 of file curves_selection.cc.
References blender::array_utils::contains(), and has_anything_selected().
| bool blender::ed::curves::has_anything_selected | ( | const VArray< bool > & | varray, |
| const IndexRange | range_to_check ) |
Definition at line 399 of file curves_selection.cc.
References blender::array_utils::contains(), and has_anything_selected().
Referenced by blender::ed::curves::pen_tool::close_curve_and_select(), blender::ed::transform::curves::curve_populate_trans_data_structs(), blender::ed::sculpt_paint::greasepencil::find_curve_mapping_from_index(), blender::ed::greasepencil::grease_pencil_copy_strokes_exec(), blender::ed::greasepencil::grease_pencil_snap_compute_centroid(), blender::ed::greasepencil::grease_pencil_snap_to_cursor_exec(), blender::ed::greasepencil::grease_pencil_snap_to_grid_exec(), has_anything_selected(), has_anything_selected(), has_anything_selected(), has_anything_selected(), has_anything_selected(), has_anything_selected(), blender::ed::greasepencil::select_all_exec(), select_alternate(), select_linked(), and blender::ed::sculpt_paint::select_random::select_random_exec().
|
static |
Definition at line 32 of file curves_add.cc.
References has_surface_deformation_node(), and node.
Referenced by ensure_surface_deformation_node_exists(), has_surface_deformation_node(), and has_surface_deformation_node().
|
static |
Definition at line 47 of file curves_add.cc.
References blender::eModifierType_Nodes, has_surface_deformation_node(), ID_MISSING, blender::Object::modifiers, blender::NodesModifierData::node_group, and blender::ModifierData::type.
|
static |
Definition at line 227 of file curves_selection.cc.
References blender::CURVE_HANDLE_NONE, blender::CURVE_TYPE_BEZIER, get_curves_bezier_selection_attribute_names(), init_selectable_foreach(), blender::bke::crazyspace::GeometryDeformation::positions, and blender::Span< T >::size().
Referenced by foreach_selectable_curve_range(), foreach_selectable_point_range(), and init_selectable_foreach().
|
static |
Definition at line 179 of file curves_selection.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::Bool, ensure_selection_attribute(), get_curves_selection_attribute_names(), blender::Span< T >::index_range(), and init_selection_writers().
Referenced by foreach_selection_attribute_writer(), init_selection_writers(), select_alternate(), select_box(), select_circle(), select_lasso(), and select_linked().
|
static |
Definition at line 317 of file curves_edit.cc.
References blender::Span< T >::drop_front(), blender::IndexRange::first(), blender::Span< T >::first(), blender::IndexRange::from_begin_end(), invert_ranges(), inverted(), blender::IndexRange::last(), blender::Span< T >::last(), blender::IndexRange::one_after_last(), and blender::Span< T >::size().
Referenced by invert_ranges(), separate_points(), and split_points().
|
static |
Definition at line 466 of file curves_selection.cc.
References blender::IndexRange::IndexRange(), invert_selection(), and blender::GMutableSpan::size().
|
static |
Definition at line 456 of file curves_selection.cc.
References blender::array_utils::invert_booleans(), invert_selection(), blender::CPPType::is(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
|
static |
Definition at line 450 of file curves_selection.cc.
References blender::exec_mode::grain_size(), and invert_selection().
Referenced by invert_selection(), invert_selection(), invert_selection(), select_adjacent(), and select_all().
|
static |
Definition at line 507 of file curves_selection.cc.
References blender::CPPType::is(), is_everything_selected(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
Referenced by is_everything_selected(), and select_linked().
| wmOperatorStatus blender::ed::curves::join_objects_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 28 of file curves/intern/join.cc.
References blender::bke::Instances::add_new_reference(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::object::base_free_and_unlink(), blender::BKE_curves_copy_for_eval(), blender::BKE_report(), blender::BLI_assert(), C, blender::CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, blender::CTX_data_main(), blender::CTX_data_scene(), blender::data, blender::Object::data, blender::DEG_id_tag_update(), blender::DEG_relations_tag_update(), blender::bke::GeometrySet::from_curves(), blender::bke::GeometrySet::from_instances(), blender::geometry::RealizeInstancesResult::geometry, blender::bke::GeometrySet::get_curves_for_write(), blender::bke::GeometrySet::has_curves(), blender::Object::id, blender::Scene::id, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SELECT, blender::ID_RECALC_TRANSFORM, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), join_objects_exec(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_cb(), NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, blender::OB_CURVES, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::bke::ReadOnly, blender::geometry::realize_instances(), blender::bke::Instances::reference_handles_for_write(), blender::wmOperator::reports, blender::bke::Instances::resize(), blender::RPT_WARNING, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::bke::Instances::transforms_for_write(), blender::Object::type, and blender::WM_event_add_notifier().
Referenced by join_objects_exec(), and blender::ed::object::object_join_exec().
| void blender::ed::curves::keymap_curves | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1898 of file curves_ops.cc.
References ED_curves_pentool_modal_keymap(), editable_curves_in_edit_mode_poll(), keymap_curves(), blender::wmKeyMap::poll, blender::RGN_TYPE_WINDOW, blender::SPACE_EMPTY, and blender::WM_keymap_ensure().
Referenced by blender::ED_spacetypes_keymap(), and keymap_curves().
Definition at line 87 of file curves_ops.cc.
References blender::BKE_id_is_editable(), blender::data, ELEM, blender::OB_CURVES, blender::OB_MODE_EDIT, blender::OB_MODE_SCULPT_CURVES, and object_has_editable_curves().
Referenced by get_unique_editable_curves(), blender::ed::curves::pen_tool::CurvesPenToolOperation::initialize(), and object_has_editable_curves().
| void blender::ed::curves::operatormacros_curves | ( | ) |
Definition at line 1874 of file curves_ops.cc.
References operatormacros_curves(), blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorTypeMacro::ptr, blender::RNA_boolean_set(), blender::WM_operatortype_append_macro(), and blender::WM_operatortype_macro_define().
Referenced by blender::ED_spacemacros_init(), and operatormacros_curves().
| void blender::ed::curves::operatortypes_curves | ( | ) |
Definition at line 1841 of file curves_ops.cc.
References CURVES_OT_add_bezier(), CURVES_OT_add_circle(), CURVES_OT_attribute_set(), CURVES_OT_convert_from_particle_system(), CURVES_OT_convert_to_particle_system(), CURVES_OT_curve_type_set(), CURVES_OT_cyclic_toggle(), CURVES_OT_delete(), CURVES_OT_draw(), CURVES_OT_duplicate(), CURVES_OT_extrude(), CURVES_OT_handle_type_set(), CURVES_OT_select_all(), CURVES_OT_select_ends(), CURVES_OT_select_less(), CURVES_OT_select_linked(), CURVES_OT_select_linked_pick(), CURVES_OT_select_more(), CURVES_OT_select_random(), CURVES_OT_separate(), CURVES_OT_set_selection_domain(), CURVES_OT_snap_curves_to_surface(), CURVES_OT_split(), CURVES_OT_subdivide(), CURVES_OT_surface_set(), CURVES_OT_switch_direction(), CURVES_OT_tilt_clear(), ED_operatortypes_curves_pen(), operatortypes_curves(), and blender::WM_operatortype_append().
Referenced by blender::ED_spacetypes_init(), and operatortypes_curves().
Return an owning pointer to an array of point normals the same size as the number of control points. The normals depend on the normal mode for each curve and the "tilt" attribute and may be calculated for the evaluated points and sampled back to the control points.
Definition at line 131 of file curves_data.cc.
References blender::bke::curves_normals_point_domain_calc(), blender::data, float, blender::MEM_new_array_uninitialized(), and point_normals_array_create().
Referenced by point_normals_array_create().
| bke::CurvesGeometry blender::ed::curves::primitive_random_sphere | ( | const int | curves_size, |
| const int | points_per_curve ) |
Definition at line 113 of file curves_add.cc.
References float, blender::RandomNumberGenerator::get_float(), blender::MutableSpan< T >::index_range(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), M_PI, blender::math::normalize(), blender::bke::Point, primitive_random_sphere(), blender::safe_acosf(), and blender::MutableSpan< T >::slice().
Referenced by blender::ed::object::object_curves_random_add_exec(), and primitive_random_sphere().
| bool blender::ed::curves::remove_selection | ( | bke::CurvesGeometry & | curves, |
| bke::AttrDomain | selection_domain ) |
Remove (dissolve) selected curves or points based on the ".selection" attribute.
Definition at line 23 of file curves_edit.cc.
References BLI_assert_unreachable, blender::bke::Curve, blender::bke::AttributeAccessor::domain_size(), blender::IndexMask::from_bools(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::Point, and remove_selection().
Referenced by blender::ed::curves::curves_delete::delete_exec(), and remove_selection().
| void blender::ed::curves::remove_selection_attributes | ( | bke::MutableAttributeAccessor & | attributes, |
| Span< StringRef > | selection_attribute_names = get_curves_all_selection_attribute_names() ) |
Used to select everything or to delete selection attribute so that it will not have to be resized.
Definition at line 153 of file curves_selection.cc.
References blender::bke::MutableAttributeAccessor::remove(), and remove_selection_attributes().
Referenced by curves_draw_exec(), duplicate_curves(), duplicate_points(), remove_selection_attributes(), select_all(), and separate_points().
| void blender::ed::curves::reorder_curves | ( | bke::CurvesGeometry & | curves, |
| Span< int > | old_by_new_indices_map ) |
Reorders the curves in curves.
| old_by_new_indices_map | An index mapping where each value is the target index for the reorder curves. |
Definition at line 728 of file curves_edit.cc.
References reorder_curves(), and blender::geometry::reorder_curves_geometry().
Referenced by reorder_curves().
| void blender::ed::curves::resize_curves | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | curves_to_resize, | ||
| Span< int > | new_sizes ) |
Resizes the curves in curves.
| curves_to_resize | The curves that should be resized. |
| new_sizes | The new size for each curve in curves_to_resize. If the size is smaller, the curve is trimmed from the end. If the size is larger, the end is extended and all attributes are default initialized. Sizes must be > 0. |
Definition at line 643 of file curves_edit.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::bke::MutableAttributeAccessor::add(), blender::bke::CurvesGeometry::attributes_for_write(), blender::BLI_assert(), blender::GVArrayCommon::common_info(), blender::index_mask::IndexMask::complement(), blender::GMutableSpan::copy_from(), blender::offset_indices::copy_group_sizes(), blender::array_utils::copy_group_to_group(), blender::bke::curves::copy_only_curve_domain(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::CommonVArrayInfo::data, blender::GMutableSpan::data(), blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, blender::IndexRange::drop_back(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::index_mask::IndexMask::foreach_index(), blender::bke::AttributeIter::get(), blender::GPointer::GPointer(), blender::exec_mode::grain_size(), blender::bke::subdiv::init(), blender::index_mask::IndexMask::is_empty(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, blender::bke::CurvesGeometry::nurbs_has_custom_knots(), blender::NURBS_KNOT_MODE_NORMAL, blender::bke::CurvesGeometry::offsets(), blender::bke::CurvesGeometry::offsets_for_write(), blender::bke::Point, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::resize(), resize_curves(), blender::array_utils::scatter(), blender::CommonVArrayInfo::Single, blender::GMutableSpan::size(), blender::index_mask::IndexMask::size(), blender::IndexRange::size(), blender::Span< T >::size(), blender::GMutableSpan::slice(), blender::GSpan::slice(), blender::bke::GSpanAttributeWriter::span, blender::IndexRange::take_back(), blender::index_mask::IndexMask::to_range(), blender::CommonVArrayInfo::type, blender::GVArrayCommon::type(), blender::bke::CurvesGeometry::update_curve_types(), blender::bke::curves::nurbs::update_custom_knot_modes(), and blender::CPPType::value_initialize_n().
Referenced by resize_curves().
| IndexMask blender::ed::curves::retrieve_all_selected_points | ( | const bke::CurvesGeometry & | curves, |
| int | handle_display, | ||
| LinearAllocator<> & | memory ) |
Find points that are selected (a selection factor greater than zero) or have any of their Bezier handle selected.
Definition at line 87 of file curves_selection.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::CURVE_HANDLE_NONE, blender::CURVE_TYPE_BEZIER, blender::bke::curves::curve_type_point_selection(), blender::IndexMask::from_union(), get_curves_selection_attribute_names(), retrieve_all_selected_points(), and retrieve_selected_points().
Referenced by blender::ed::curves::pen_tool::CurvesPenToolOperation::all_selected_points(), retrieve_all_selected_points(), blender::ed::greasepencil::retrieve_editable_and_all_selected_points(), and blender::ed::curves::split::split_exec().
| IndexMask blender::ed::curves::retrieve_selected_curves | ( | const bke::CurvesGeometry & | curves, |
| LinearAllocator<> & | memory ) |
Find curves that have any point selected (a selection factor greater than zero), or curves that have their own selection factor greater than zero.
Definition at line 28 of file curves_selection.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::bke::Curve, blender::CURVE_TYPE_BEZIER, blender::CURVE_TYPE_POLY, blender::Editor, blender::IndexMask::from_bools(), blender::IndexMask::from_predicate(), blender::VArrayCommon< T >::get_internal_single(), blender::IndexMask::IndexMask(), blender::VArrayCommon< T >::is_single(), blender::bke::AttributeAccessor::lookup_meta_data(), blender::bke::AttributeAccessor::lookup_or_default(), blender::VArrayCommon< T >::materialize_compressed(), blender::bke::Point, PRF_scope, retrieve_selected_curves(), and blender::IndexRange::size().
Referenced by blender::ed::spreadsheet::GeometryDataSource::apply_selection_filter(), blender::apply_to_active_object(), blender::ed::curves::curves_duplicate::duplicate_exec(), blender::ed::greasepencil::ensure_selection_domain(), blender::ed::curves::curve_type_set::exec(), blender::ed::curves::cyclic_toggle::exec(), blender::ed::curves::switch_direction::exec(), blender::ed::sculpt_paint::CombOperationExecutor::execute(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::execute(), blender::ed::sculpt_paint::CutOperationExecutor::execute(), blender::ed::sculpt_paint::DeleteOperationExecutor::execute(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::execute(), blender::ed::sculpt_paint::PinchOperationExecutor::execute(), blender::ed::sculpt_paint::PuffOperationExecutor::execute(), blender::ed::sculpt_paint::SlideOperationExecutor::execute(), blender::ed::sculpt_paint::SmoothOperationExecutor::execute(), blender::ed::sculpt_paint::SnakeHookOperatorExecutor::execute(), blender::ed::sculpt_paint::greasepencil::find_curve_mapping_from_index(), blender::ed::greasepencil::grease_pencil_copy_strokes_exec(), blender::ed::greasepencil::grease_pencil_move_to_layer_exec(), blender::ed::greasepencil::grease_pencil_snap_to_cursor_exec(), blender::ed::greasepencil::retrieve_editable_and_selected_fill_strokes(), blender::ed::greasepencil::retrieve_editable_and_selected_strokes(), retrieve_selected_curves(), retrieve_selected_curves(), retrieve_selected_elements(), and blender::ed::greasepencil::retrieve_visible_bezier_handle_strokes().
| IndexMask blender::ed::curves::retrieve_selected_curves | ( | const Curves & | curves_id, |
| LinearAllocator<> & | memory ) |
Definition at line 74 of file curves_selection.cc.
References retrieve_selected_curves().
|
static |
Definition at line 55 of file curves_attribute_set.cc.
References BLI_assert_unreachable, blender::bke::Curve, blender::bke::Point, retrieve_selected_curves(), retrieve_selected_elements(), and retrieve_selected_points().
Referenced by retrieve_selected_elements(), set_attribute_exec(), and set_attribute_invoke().
| IndexMask blender::ed::curves::retrieve_selected_points | ( | const bke::CurvesGeometry & | curves, |
| LinearAllocator<> & | memory ) |
Find points that are selected (a selection factor greater than zero), or points in curves with a selection factor greater than zero.
Definition at line 80 of file curves_selection.cc.
References blender::IndexMask::from_bools(), blender::bke::Point, and retrieve_selected_points().
Referenced by blender::ed::spreadsheet::GeometryDataSource::apply_selection_filter(), blender::ed::transform::curves::createTransCurvesVerts(), blender::ed::transform::greasepencil::createTransGreasePencilVerts(), curves_extrude_exec(), blender::ed::curves::curves_duplicate::duplicate_exec(), blender::ED_view3d_minmax_verts(), blender::ed::greasepencil::ensure_selection_domain(), blender::ed::curves::clear_tilt::exec(), blender::ed::curves::subdivide::exec(), blender::ed::transform::gizmo_3d_foreach_selected(), blender::ed::greasepencil::grease_pencil_copy_strokes_exec(), blender::ed::greasepencil::grease_pencil_reproject_exec(), blender::ed::greasepencil::grease_pencil_separate_selected(), blender::ed::greasepencil::grease_pencil_snap_compute_centroid(), blender::ed::greasepencil::grease_pencil_snap_to_cursor_exec(), blender::ed::greasepencil::grease_pencil_snap_to_grid_exec(), retrieve_all_selected_points(), blender::ed::greasepencil::retrieve_editable_and_selected_points(), retrieve_selected_elements(), retrieve_selected_points(), retrieve_selected_points(), retrieve_selected_points(), blender::ed::sculpt_paint::select_grow::select_grow_invoke_per_curve(), and transverts_curves_selection().
| IndexMask blender::ed::curves::retrieve_selected_points | ( | const bke::CurvesGeometry & | curves, |
| StringRef | attribute_name, | ||
| const IndexMask & | bezier_points, | ||
| LinearAllocator<> & | memory ) |
Find points that are selected, for a given attribute_name, requires mask of all Bezier points. Note: When retrieving ".selection_handle_left" or ".selection_handle_right" all non-Bezier points will be deselected even if the raw attribute is selected.
Definition at line 106 of file curves_selection.cc.
References blender::Editor, blender::IndexMask::from_bools(), blender::bke::Point, PRF_scope, and retrieve_selected_points().
| IndexMask blender::ed::curves::retrieve_selected_points | ( | const Curves & | curves_id, |
| LinearAllocator<> & | memory ) |
Definition at line 122 of file curves_selection.cc.
References retrieve_selected_points().
| void blender::ed::curves::select_adjacent | ( | bke::CurvesGeometry & | curves, |
| bool | deselect ) |
(De)select all the adjacent points of the current selected points.
| curves_mask | (optional) The curves that should be affected. |
Definition at line 716 of file curves_selection.cc.
References select_adjacent().
| void blender::ed::curves::select_adjacent | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | curves_mask, | ||
| const bool | deselect ) |
Definition at line 628 of file curves_selection.cc.
References blender::bke::Bool, ensure_selection_attribute(), blender::bke::GSpanAttributeWriter::finish(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), invert_selection(), blender::CPPType::is(), blender::IndexRange::last(), blender::bke::Point, select_adjacent(), blender::bke::GSpanAttributeWriter::span, blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
Referenced by select_adjacent(), select_adjacent(), select_less_exec(), and select_more_exec().
| IndexMask blender::ed::curves::select_adjacent_mask | ( | const bke::CurvesGeometry & | curves, |
| const IndexMask & | curves_mask, | ||
| const StringRef | attribute_name, | ||
| const bool | deselect, | ||
| IndexMaskMemory & | memory ) |
Definition at line 1293 of file curves_selection.cc.
References blender::IndexRange::drop_back(), blender::IndexRange::drop_front(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::IndexRange::last(), blender::bke::Point, select_adjacent_mask(), and blender::IndexRange::size().
Referenced by select_adjacent_mask(), select_adjacent_mask(), blender::ed::greasepencil::select_less_exec(), and blender::ed::greasepencil::select_more_exec().
| IndexMask blender::ed::curves::select_adjacent_mask | ( | const bke::CurvesGeometry & | curves, |
| StringRef | attribute_name, | ||
| bool | deselect, | ||
| IndexMaskMemory & | memory ) |
Mask of points adjacent to a selected point, or unselected point if deselect is true.
Definition at line 1345 of file curves_selection.cc.
References select_adjacent_mask().
| void blender::ed::curves::select_all | ( | bke::CurvesGeometry & | curves, |
| bke::AttrDomain | selection_domain, | ||
| int | action ) |
(De)select all the curves.
| mask | (optional) The elements that should be affected. This mask should be in the domain of the selection_domain. |
| action | One of SEL_TOGGLE, SEL_SELECT, SEL_DESELECT, or SEL_INVERT. See ED_select_utils.hh. |
Definition at line 501 of file curves_selection.cc.
References select_all().
| void blender::ed::curves::select_all | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | mask, | ||
| const bke::AttrDomain | selection_domain, | ||
| int | action ) |
Definition at line 471 of file curves_selection.cc.
References fill_selection_false(), fill_selection_true(), foreach_selection_attribute_writer(), invert_selection(), remove_selection_attributes(), blender::SEL_DESELECT, blender::SEL_INVERT, blender::SEL_SELECT, select_all(), and blender::bke::GSpanAttributeWriter::span.
Referenced by blender::ed::greasepencil::grease_pencil_select_by_stroke_type_exec(), select_all(), select_all(), select_all_exec(), blender::ed::greasepencil::select_all_exec(), and blender::ed::greasepencil::select_similar_by_layer().
|
static |
Definition at line 861 of file curves_ops.cc.
References C, blender::DEG_id_tag_update(), get_unique_editable_curves(), has_anything_selected(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_enum_get(), blender::SEL_DESELECT, blender::SEL_SELECT, blender::SEL_TOGGLE, select_all(), select_all_exec(), and blender::WM_event_add_notifier().
Referenced by CURVES_OT_select_all(), and select_all_exec().
| void blender::ed::curves::select_alternate | ( | bke::CurvesGeometry & | curves, |
| const bool | deselect_ends ) |
Select alternated points in strokes with already selected points
| curves_mask | (optional) The curves that should be affected. |
Definition at line 623 of file curves_selection.cc.
References select_alternate().
| void blender::ed::curves::select_alternate | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | curves_mask, | ||
| const bool | deselect_ends ) |
Definition at line 570 of file curves_selection.cc.
References blender::IndexRange::drop_back(), blender::IndexRange::drop_front(), finish_attribute_writers(), blender::IndexRange::first(), blender::index_mask::IndexMask::foreach_index(), has_anything_selected(), blender::IndexRange::IndexRange(), init_selection_writers(), blender::IndexRange::is_empty(), blender::IndexRange::last(), blender::bke::Point, select_alternate(), blender::IndexRange::shift(), and blender::IndexRange::size().
Referenced by select_alternate(), select_alternate(), and blender::ed::greasepencil::select_alternate_exec().
| bool blender::ed::curves::select_box | ( | const ViewContext & | vc, |
| bke::CurvesGeometry & | curves, | ||
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| const float4x4 & | projection, | ||
| const IndexMask & | selection_mask, | ||
| const IndexMask & | bezier_mask, | ||
| bke::AttrDomain | selection_domain, | ||
| const rcti & | rect, | ||
| eSelectOp | sel_op ) |
Select points or curves in a (screen-space) rectangle.
Definition at line 912 of file curves_selection.cc.
References fill_selection_false(), foreach_selectable_point_range(), blender::exec_mode::grain_size(), blender::View3DOverlay::handle_display, init_selection_writers(), blender::View3D::overlay, blender::bke::Point, blender::SEL_OP_SET, select_box(), and blender::ViewContext::v3d.
Referenced by blender::do_curves_select_box(), and select_box().
| IndexMask blender::ed::curves::select_box_mask | ( | const ViewContext & | vc, |
| const bke::CurvesGeometry & | curves, | ||
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| const float4x4 & | projection, | ||
| const IndexMask & | selection_mask, | ||
| const IndexMask & | bezier_mask, | ||
| bke::AttrDomain | selection_domain, | ||
| StringRef | attribute_name, | ||
| const rcti & | rect, | ||
| IndexMaskMemory & | memory ) |
Select points or curves in a (screen-space) rectangle.
Definition at line 1353 of file curves_selection.cc.
References blender::BLI_rcti_isect_pt_v(), blender::BLI_rcti_isect_segment(), blender::ED_view3d_project_float_v2_m4(), get_selection_attribute_positions(), blender::ViewContext::region, select_box_mask(), and select_mask_from_predicates().
Referenced by blender::do_grease_pencil_box_select(), and select_box_mask().
| bool blender::ed::curves::select_circle | ( | const ViewContext & | vc, |
| bke::CurvesGeometry & | curves, | ||
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| const float4x4 & | projection, | ||
| const IndexMask & | selection_mask, | ||
| const IndexMask & | bezier_mask, | ||
| bke::AttrDomain | selection_domain, | ||
| int2 | coord, | ||
| float | radius, | ||
| eSelectOp | sel_op ) |
Select points or curves in a (screen-space) circle.
Definition at line 1141 of file curves_selection.cc.
References fill_selection_false(), foreach_selectable_point_range(), blender::exec_mode::grain_size(), blender::View3DOverlay::handle_display, init_selection_writers(), blender::View3D::overlay, blender::bke::Point, blender::pow2f(), blender::SEL_OP_SET, select_circle(), and blender::ViewContext::v3d.
Referenced by blender::curves_select_circle(), and select_circle().
| IndexMask blender::ed::curves::select_circle_mask | ( | const ViewContext & | vc, |
| const bke::CurvesGeometry & | curves, | ||
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| const float4x4 & | projection, | ||
| const IndexMask & | selection_mask, | ||
| const IndexMask & | bezier_mask, | ||
| bke::AttrDomain | selection_domain, | ||
| StringRef | attribute_name, | ||
| int2 | coord, | ||
| float | radius, | ||
| IndexMaskMemory & | memory ) |
Select points or curves in a (screen-space) circle.
Definition at line 1432 of file curves_selection.cc.
References blender::dist_squared_to_line_segment_v2(), blender::math::distance_squared(), blender::ED_view3d_project_float_v2_m4(), get_selection_attribute_positions(), blender::pow2f(), blender::ViewContext::region, select_circle_mask(), and select_mask_from_predicates().
Referenced by blender::grease_pencil_circle_select(), and select_circle_mask().
|
static |
Definition at line 972 of file curves_ops.cc.
References blender::bke::Bool, C, blender::DEG_id_tag_update(), end_points(), ensure_selection_attribute(), fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), get_unique_editable_curves(), has_anything_selected(), blender::ID_RECALC_GEOMETRY, blender::CPPType::is(), blender::index_mask::masked_fill(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::bke::Point, blender::wmOperator::ptr, blender::RNA_int_get(), select_ends_exec(), blender::bke::GSpanAttributeWriter::span, blender::GMutableSpan::type(), blender::GMutableSpan::typed(), and blender::WM_event_add_notifier().
Referenced by CURVES_OT_select_ends(), and select_ends_exec().
|
static |
Definition at line 1009 of file curves_ops.cc.
References blender::ui::Layout::column(), IFACE_, blender::wmOperator::layout, blender::ui::Layout::prop(), blender::wmOperator::ptr, select_ends_ui(), UI_ITEM_NONE, blender::ui::Layout::use_property_decorate_set(), and blender::ui::Layout::use_property_split_set().
Referenced by CURVES_OT_select_ends(), and select_ends_ui().
| bool blender::ed::curves::select_lasso | ( | const ViewContext & | vc, |
| bke::CurvesGeometry & | curves, | ||
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| const float4x4 & | projection, | ||
| const IndexMask & | selection_mask, | ||
| const IndexMask & | bezier_mask, | ||
| bke::AttrDomain | selection_domain, | ||
| Span< int2 > | lasso_coords, | ||
| eSelectOp | sel_op ) |
Select points or curves in a (screen-space) poly shape.
Definition at line 1018 of file curves_selection.cc.
References blender::BLI_lasso_boundbox(), fill_selection_false(), foreach_selectable_point_range(), blender::exec_mode::grain_size(), blender::View3DOverlay::handle_display, init_selection_writers(), blender::View3D::overlay, blender::bke::Point, blender::SEL_OP_SET, select_lasso(), and blender::ViewContext::v3d.
Referenced by blender::curves_select_lasso(), and select_lasso().
| IndexMask blender::ed::curves::select_lasso_mask | ( | const ViewContext & | vc, |
| const bke::CurvesGeometry & | curves, | ||
| const bke::crazyspace::GeometryDeformation & | deformation, | ||
| const float4x4 & | projection, | ||
| const IndexMask & | selection_mask, | ||
| const IndexMask & | bezier_mask, | ||
| bke::AttrDomain | selection_domain, | ||
| StringRef | attribute_name, | ||
| Span< int2 > | lasso_coords, | ||
| IndexMaskMemory & | memory ) |
Select points or curves in a (screen-space) poly shape.
Definition at line 1388 of file curves_selection.cc.
References blender::BLI_lasso_boundbox(), blender::BLI_lasso_is_edge_inside(), blender::BLI_lasso_is_point_inside(), blender::BLI_rcti_isect_pt_v(), blender::BLI_rcti_isect_segment(), blender::ED_view3d_project_float_v2_m4(), get_selection_attribute_positions(), IS_CLIPPED, blender::ViewContext::region, select_lasso_mask(), and select_mask_from_predicates().
Referenced by blender::do_lasso_select_grease_pencil(), and select_lasso_mask().
|
static |
Definition at line 1107 of file curves_ops.cc.
References C, blender::DEG_id_tag_update(), get_unique_editable_curves(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, select_adjacent(), select_less_exec(), and blender::WM_event_add_notifier().
Referenced by CURVES_OT_select_less(), and select_less_exec().
| void blender::ed::curves::select_linked | ( | bke::CurvesGeometry & | curves, |
| const bool | unselect = false ) |
Select the points of all curves that have at least one point selected.
| curves_mask | (optional) The curves that should be affected. |
Definition at line 565 of file curves_selection.cc.
References select_linked().
| void blender::ed::curves::select_linked | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | curves_mask, | ||
| const bool | unselect ) |
Definition at line 520 of file curves_selection.cc.
References blender::CURVE_TYPE_BEZIER, fill_selection(), finish_attribute_writers(), blender::index_mask::IndexMask::foreach_index(), get_curves_all_selection_attribute_names(), blender::exec_mode::grain_size(), has_anything_selected(), blender::IndexRange::IndexRange(), init_selection_writers(), is_everything_selected(), blender::bke::Point, select_linked(), blender::GMutableSpan::slice(), and blender::bke::GSpanAttributeWriter::span.
Referenced by blender::ed::greasepencil::select_fill_exec(), select_linked(), select_linked(), select_linked_exec(), and blender::ed::greasepencil::select_linked_exec().
|
static |
Definition at line 1053 of file curves_ops.cc.
References C, blender::DEG_id_tag_update(), get_unique_editable_curves(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, select_linked(), select_linked_exec(), and blender::WM_event_add_notifier().
Referenced by CURVES_OT_select_linked(), and select_linked_exec().
|
static |
Definition at line 76 of file select_linked_pick.cc.
References apply_selection_operation_at_index(), blender::BKE_view_layer_array_from_bases_in_edit_mode_unique_data(), blender::ViewContext::bmain, blender::bke::Bool, C, closest(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::bke::Curve, blender::DEG_id_tag_update(), blender::ED_view3d_viewcontext_init(), ensure_selection_attribute(), find_closest_curve(), blender::bke::GSpanAttributeWriter::finish(), foreach_selection_attribute_writer(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::bke::Point, blender::bke::CurvesGeometry::points_by_curve(), blender::ViewContext::scene, blender::SelectPick_Params::sel_op, select_linked_pick(), blender::bke::GSpanAttributeWriter::span, blender::ViewContext::v3d, blender::ViewContext::view_layer, and blender::WM_event_add_notifier().
Referenced by select_linked_pick(), and select_linked_pick_invoke().
|
static |
Definition at line 115 of file select_linked_pick.cc.
References C, blender::SelectPick_Params::deselect_all, blender::wmEvent::mval, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), blender::SelectPick_Params::sel_op, blender::SEL_OP_ADD, blender::SEL_OP_SUB, select_linked_pick(), select_linked_pick_invoke(), and blender::SelectPick_Params::select_passthrough.
Referenced by CURVES_OT_select_linked_pick(), and select_linked_pick_invoke().
| IndexMask blender::ed::curves::select_mask_from_predicates | ( | const bke::CurvesGeometry & | curves, |
| const IndexMask & | mask, | ||
| const bke::AttrDomain | selection_domain, | ||
| IndexMaskMemory & | memory, | ||
| PointSelectFn && | point_predicate, | ||
| LineSelectFn && | line_predicate ) |
Definition at line 1251 of file curves_selection.cc.
References blender::bke::Curve, blender::IndexMask::from_predicate(), blender::bke::Point, and select_mask_from_predicates().
Referenced by select_box_mask(), select_circle_mask(), select_lasso_mask(), and select_mask_from_predicates().
|
static |
Definition at line 1080 of file curves_ops.cc.
References C, blender::DEG_id_tag_update(), get_unique_editable_curves(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, select_adjacent(), select_more_exec(), and blender::WM_event_add_notifier().
Referenced by CURVES_OT_select_more(), and select_more_exec().
|
static |
Definition at line 898 of file curves_ops.cc.
References blender::bke::Bool, C, blender::index_mask::IndexMask::complement(), blender::DEG_id_tag_update(), ensure_selection_attribute(), fill_selection_false(), fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), get_unique_editable_curves(), has_anything_selected(), blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_float_get(), blender::RNA_int_get(), select_random_exec(), blender::bke::GSpanAttributeWriter::span, and blender::WM_event_add_notifier().
Referenced by CURVES_OT_select_random(), and select_random_exec().
|
static |
Definition at line 932 of file curves_ops.cc.
References IFACE_, blender::ui::ITEM_R_SLIDER, blender::wmOperator::layout, blender::ui::Layout::prop(), blender::wmOperator::ptr, select_random_ui(), and UI_ITEM_NONE.
Referenced by CURVES_OT_select_random(), and select_random_ui().
|
static |
Definition at line 199 of file curves_selection.cc.
References blender::BLI_assert(), BLI_assert_unreachable, blender::Span< T >::contains(), get_curves_all_selection_attribute_names(), blender::MutableSpan< T >::index_range(), selection_attribute_writer_by_name(), blender::blender::StringRefBase::size(), and blender::Span< T >::size().
Referenced by selection_attribute_writer_by_name().
|
static |
Definition at line 33 of file curves/intern/separate.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BKE_view_layer_array_from_bases_in_edit_mode(), C, blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_view_layer(), blender::CTX_wm_view3d(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::threading::parallel_for(), separate_exec(), and blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by CURVES_OT_separate(), and separate_exec().
| void blender::ed::curves::separate_points | ( | const bke::CurvesGeometry & | curves, |
| const IndexMask & | points_to_separate, | ||
| bke::CurvesGeometry & | separated, | ||
| bke::CurvesGeometry & | retained ) |
Definition at line 515 of file curves_edit.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::bke::CurvesGeometry::attributes_for_write(), copy_data_to_geometry(), curve_offsets_from_selection(), extend_range_by_1_within_bounds(), fill_selection_false(), blender::Array< T, InlineBufferCapacity, Allocator >::first(), blender::IndexRange::first(), blender::bke::curves::foreach_selected_point_ranges_per_curve(), foreach_selection_attribute_writer(), invert_ranges(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Array< T, InlineBufferCapacity, Allocator >::last(), blender::IndexRange::last(), blender::bke::Point, remove_selection_attributes(), separate_points(), blender::IndexRange::size(), and blender::bke::GSpanAttributeWriter::span.
Referenced by separate_points().
|
static |
Definition at line 92 of file curves_attribute_set.cc.
References blender::bke::MutableAttributeAccessor::assign_data(), attribute, blender::bke::attribute_type_to_cpp_type(), blender::BKE_attributes_active_name_get(), BLI_SCOPED_DEFER, BUFFER_FOR_CPP_TYPE_VALUE, C, blender::bke::DataTypeConversions::convert_to_uninitialized(), blender::CTX_data_active_object(), blender::Object::data, blender::bke::AttributeMetaData::data_type, blender::DEG_id_tag_update(), blender::CPPType::destruct(), blender::bke::AttributeAccessor::domain_size(), blender::CPPType::fill_assign_indices(), blender::AttributeOwner::from_id(), blender::CPPType::get(), blender::GPointer::get(), blender::bke::get_implicit_type_conversions(), get_unique_editable_curves(), blender::ID_RECALC_GEOMETRY, blender::bke::DataTypeConversions::is_convertible(), blender::index_mask::IndexMask::is_empty(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::AttributeAccessor::lookup_meta_data(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, retrieve_selected_elements(), blender::ed::geometry::rna_property_for_attribute_type_retrieve_value(), set_attribute_exec(), blender::index_mask::IndexMask::size(), validate_value(), and blender::WM_event_add_notifier().
Referenced by CURVES_OT_attribute_set(), and set_attribute_exec().
|
static |
Definition at line 156 of file curves_attribute_set.cc.
References attribute, blender::BKE_attributes_active_name_get(), BLI_SCOPED_DEFER, BUFFER_FOR_CPP_TYPE_VALUE, C, blender::bke::cpp_type_to_attribute_type(), blender::CTX_data_active_object(), blender::Object::data, blender::CPPType::destruct(), blender::index_mask::IndexMask::foreach_index(), blender::AttributeOwner::from_id(), blender::bke::AttributeAccessor::lookup(), blender::MutableSpan< T >::MutableSpan(), blender::wmOperator::ptr, retrieve_selected_elements(), blender::ed::geometry::rna_property_for_attribute_type_set_value(), blender::ed::geometry::rna_property_for_type(), blender::RNA_property_is_set(), set_attribute_invoke(), T, blender::bke::attribute_math::to_static_type(), and blender::WM_operator_props_popup().
Referenced by CURVES_OT_attribute_set(), and set_attribute_invoke().
|
static |
Definition at line 196 of file curves_attribute_set.cc.
References blender::BKE_attributes_active_name_get(), C, blender::ui::Layout::column(), blender::CTX_data_active_object(), blender::bke::AttributeMetaData::data_type, blender::AttributeOwner::from_id(), blender::wmOperator::layout, blender::ui::Layout::prop(), blender::wmOperator::ptr, blender::ed::geometry::rna_property_name_for_type(), set_attribute_ui(), UI_ITEM_NONE, blender::ui::Layout::use_property_decorate_set(), and blender::ui::Layout::use_property_split_set().
Referenced by CURVES_OT_attribute_set(), and set_attribute_ui().
|
static |
Creates a new index range with the same beginning but a shifted end.
Definition at line 118 of file curves_extrude.cc.
References blender::IndexRange::from_begin_size(), shift_end_by(), blender::IndexRange::size(), and blender::IndexRange::start().
Referenced by shift_end_by().
| bke::CurvesGeometry blender::ed::curves::split_points | ( | const bke::CurvesGeometry & | curves, |
| const IndexMask & | points_to_split ) |
Definition at line 424 of file curves_edit.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), copy_data_to_geometry(), curve_offsets_from_selection(), extend_range_by_1_within_bounds(), fill_selection_false(), blender::Array< T, InlineBufferCapacity, Allocator >::first(), blender::IndexRange::first(), blender::bke::curves::foreach_selected_point_ranges_per_curve(), foreach_selection_attribute_writer(), blender::IndexRange::from_begin_end(), blender::IndexRange::from_begin_size(), invert_ranges(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Array< T, InlineBufferCapacity, Allocator >::last(), blender::IndexRange::last(), blender::bke::Point, blender::IndexRange::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::GMutableSpan::slice(), blender::bke::GSpanAttributeWriter::span, and split_points().
Referenced by blender::ed::greasepencil::grease_pencil_stroke_split_exec(), blender::ed::curves::split::split_exec(), split_points(), blender::ed::curves::tests::TEST_F(), blender::ed::curves::tests::TEST_F(), blender::ed::curves::tests::TEST_F(), blender::ed::curves::tests::TEST_F(), blender::ed::curves::tests::TEST_F(), blender::ed::curves::tests::TEST_F(), and blender::ed::curves::tests::TEST_F().
|
static |
Definition at line 160 of file curves_draw.cc.
References blender::interp_v2_v2v2(), blender::interp_v3_v3v3(), blender::interpf(), blender::ed::curves::StrokeElem::location_local, blender::ed::curves::StrokeElem::location_world, blender::ed::curves::StrokeElem::mval, blender::ed::curves::StrokeElem::pressure, and stroke_elem_interp().
Referenced by curve_draw_event_add(), and stroke_elem_interp().
|
static |
Definition at line 146 of file curves_draw.cc.
References blender::is_zero_v3(), blender::ed::curves::StrokeElem::location_local, blender::ed::curves::StrokeElem::location_world, blender::madd_v3_v3fl(), blender::mul_v3_m4v3(), blender::ed::curves::StrokeElem::normal_local, blender::ViewContext::obedit, blender::ed::curves::StrokeElem::pressure, blender::ed::curves::CurveDrawData::project, stroke_elem_pressure_set(), stroke_elem_radius_from_pressure(), and blender::ed::curves::CurveDrawData::vc.
Referenced by curve_draw_exec_precalc(), and stroke_elem_pressure_set().
|
static |
Sets the depth from #StrokeElem.mval
Definition at line 174 of file curves_draw.cc.
References blender::add_v3_v3(), blender::copy_v3_v3(), blender::ViewDepths::depth_range, blender::ed::curves::CurveDrawData::depths, blender::ED_view3d_depth_read_cached(), blender::ED_view3d_depth_read_cached_normal(), blender::ED_view3d_depth_unproject_v3(), blender::ED_view3d_win_to_3d_on_plane(), blender::ViewDepths::h, blender::madd_v3_v3fl(), blender::ed::curves::CurveDrawData::project, blender::ViewContext::region, stroke_elem_project(), blender::ed::curves::CurveDrawData::vc, blender::ViewDepths::w, and blender::zero_v3().
Referenced by curve_draw_event_add_first(), stroke_elem_project(), and stroke_elem_project_fallback().
|
static |
Definition at line 234 of file curves_draw.cc.
References blender::copy_v3_v3(), blender::ED_view3d_win_to_3d(), blender::is_zero_v3(), blender::mul_transposed_mat3_m4_v3(), blender::mul_v3_m4v3(), blender::normalize_v3(), blender::ViewContext::obedit, blender::ViewContext::region, stroke_elem_project(), stroke_elem_project_fallback(), blender::ViewContext::v3d, blender::ed::curves::CurveDrawData::vc, and blender::zero_v3().
Referenced by stroke_elem_project_fallback(), and stroke_elem_project_fallback_elem().
|
static |
Definition at line 269 of file curves_draw.cc.
References blender::ed::curves::StrokeElem::location_local, blender::ed::curves::StrokeElem::location_world, blender::ed::curves::StrokeElem::mval, blender::ed::curves::StrokeElem::normal_local, blender::ed::curves::StrokeElem::normal_world, blender::ed::curves::CurveDrawData::project, stroke_elem_project_fallback(), stroke_elem_project_fallback_elem(), and stroke_elem_radius().
Referenced by curve_draw_event_add(), and stroke_elem_project_fallback_elem().
|
static |
Definition at line 141 of file curves_draw.cc.
References blender::ed::curves::StrokeElem::pressure, stroke_elem_radius(), and stroke_elem_radius_from_pressure().
Referenced by curve_draw_stroke_3d(), stroke_elem_project_fallback_elem(), and stroke_elem_radius().
|
static |
Definition at line 136 of file curves_draw.cc.
References blender::ed::curves::CurveDrawData::bevel_radius, blender::ed::curves::CurveDrawData::radius, and stroke_elem_radius_from_pressure().
Referenced by stroke_elem_pressure_set(), stroke_elem_radius(), and stroke_elem_radius_from_pressure().
|
static |
Definition at line 43 of file curves_data.cc.
References blender::CURVE_TYPE_BEZIER, blender::bke::curves::curve_type_point_selection(), blender::IndexMask::from_difference(), get_curves_selection_attribute_names(), blender::Span< T >::index_range(), retrieve_selected_points(), blender::Span< T >::size(), and transverts_curves_selection().
Referenced by transverts_curves_selection(), transverts_from_curves_positions_create(), and transverts_update_curves().
| void blender::ed::curves::transverts_from_curves_positions_create | ( | bke::CurvesGeometry & | curves, |
| TransVertStore * | tvs, | ||
| const bool | skip_handles ) |
Allocate an array of TransVert for cursor/selection snapping (See ED_transverts_create_from_obedit in view3d_snap.cc).
Definition at line 71 of file curves_data.cc.
References blender::copy_v3_v3(), blender::TransVert::flag, get_curves_positions_for_write(), blender::exec_mode::grain_size(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::TransVert::loc, blender::MEM_new_array_zeroed(), blender::TransVert::oldloc, SELECT, blender::TransVertStore::transverts, transverts_curves_selection(), transverts_from_curves_positions_create(), and blender::TransVertStore::transverts_tot.
Referenced by blender::ED_transverts_create_from_obedit(), and transverts_from_curves_positions_create().
| void blender::ed::curves::transverts_update_curves | ( | bke::CurvesGeometry & | curves, |
| const TransVertStore * | tvs, | ||
| bool | skip_handles ) |
Update original curve positions with transform changes.
Definition at line 100 of file curves_data.cc.
References get_curves_positions_for_write(), blender::exec_mode::grain_size(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::TransVert::loc, blender::TransVert::oldloc, blender::Span< T >::size(), blender::Span< T >::slice_safe(), blender::TransVertStore::transverts, transverts_curves_selection(), blender::TransVertStore::transverts_tot, and transverts_update_curves().
Referenced by blender::ED_transverts_update_obedit(), and transverts_update_curves().
| void blender::ed::curves::undosys_type_register | ( | UndoType * | ut | ) |
Definition at line 137 of file curves_undo.cc.
References editable_curves_in_edit_mode_poll(), blender::UndoType::flags, blender::ed::curves::undo::foreach_ID_ref(), blender::UndoType::identifier, blender::UndoType::poll, blender::ed::curves::undo::step_decode(), blender::UndoType::step_decode, blender::ed::curves::undo::step_encode(), blender::UndoType::step_encode, blender::UndoType::step_foreach_ID_ref, blender::ed::curves::undo::step_free(), blender::UndoType::step_free, blender::UndoType::step_size, undosys_type_register(), blender::UNDOTYPE_FLAG_ENCODE_PRE_MEMFILE_SUPPORTED, and blender::UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE.
Referenced by blender::ED_undosys_type_init(), and undosys_type_register().
|
static |
Definition at line 70 of file curves_attribute_set.cc.
References BLI_SCOPED_DEFER, BUFFER_FOR_CPP_TYPE_VALUE, blender::fn::multi_function::MultiFunction::call(), blender::CPPType::copy_assign(), blender::CPPType::destruct(), blender::bke::AttributeValidator::function, blender::GPointer::GPointer(), blender::bke::AttributeAccessor::lookup_validator(), and validate_value().
Referenced by set_attribute_exec(), and validate_value().
|
static |
Definition at line 82 of file curves_ops.cc.
References blender::CURVE_HANDLE_SELECTED, blender::View3DOverlay::handle_display, blender::View3D::overlay, and view3d_handle_type_or_default().
Referenced by blender::ed::curves::split::split_exec(), and view3d_handle_type_or_default().
| const EnumPropertyItem blender::ed::curves::rna_enum_set_handle_type_items |
Definition at line 1792 of file curves_ops.cc.
Referenced by CURVES_OT_handle_type_set(), and blender::ed::greasepencil::GREASE_PENCIL_OT_set_handle_type().