|
Blender V5.3
|
Namespaces | |
| namespace | pointcloud_delete |
| namespace | undo |
Classes | |
| struct | FindClosestData |
Functions | |
| void | operatortypes_pointcloud () |
| void | operatormacros_pointcloud () |
| void | keymap_pointcloud (wmKeyConfig *keyconf) |
| void | undosys_type_register (UndoType *ut) |
| VectorSet< PointCloud * > | get_unique_editable_pointclouds (const bContext &C) |
| static bool | active_attribute_poll (bContext *C) |
| 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) |
| static void | duplicate_points (PointCloud &pointcloud, const IndexMask &mask) |
| static wmOperatorStatus | duplicate_exec (bContext *C, wmOperator *) |
| static bool | object_has_editable_pointcloud (const Main &bmain, const Object &object) |
| static bool | pointcloud_poll_impl (bContext *C, const bool check_editable, const bool check_edit_mode) |
| static bool | editable_pointcloud_poll (bContext *C) |
| static bool | has_anything_selected (const Span< PointCloud * > pointclouds) |
| static wmOperatorStatus | select_all_exec (bContext *C, wmOperator *op) |
| static void | POINTCLOUD_OT_select_all (wmOperatorType *ot) |
| static wmOperatorStatus | select_random_exec (bContext *C, wmOperator *op) |
| static void | select_random_ui (bContext *, wmOperator *op) |
| static void | POINTCLOUD_OT_select_random (wmOperatorType *ot) |
| static void | POINTCLOUD_OT_delete (wmOperatorType *ot) |
| static void | invert_selection (MutableSpan< float > selection, const IndexMask &mask) |
| static void | invert_selection (GMutableSpan selection, const IndexMask &mask) |
| static void | select_all (PointCloud &pointcloud, const IndexMask &mask, int action) |
| static bool | apply_selection_operation (PointCloud &pointcloud, const IndexMask &mask, eSelectOp sel_op) |
| static FindClosestData | closer_elem (const FindClosestData &a, const FindClosestData &b) |
| static wmOperatorStatus | separate_exec (bContext *C, wmOperator *) |
Selection | |
Selection on point cloud are stored 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. | |
| void | fill_selection_true (GMutableSpan selection) |
| void | fill_selection_false (GMutableSpan selection, const IndexMask &mask) |
| void | fill_selection_true (GMutableSpan selection, const IndexMask &mask) |
| bool | has_anything_selected (const PointCloud &pointcloud) |
| void | select_all (PointCloud &pointcloud, int action) |
| bke::GSpanAttributeWriter | ensure_selection_attribute (PointCloud &pointcloud, bke::AttrType create_type) |
| bool | select_box (PointCloud &pointcloud, const ARegion ®ion, const float4x4 &projection, const rcti &rect, const eSelectOp sel_op) |
| bool | select_lasso (PointCloud &pointcloud, const ARegion ®ion, const float4x4 &projection, const Span< int2 > lasso_coords, const eSelectOp sel_op) |
| bool | select_circle (PointCloud &pointcloud, const ARegion ®ion, const float4x4 &projection, const int2 coord, const float radius, const eSelectOp sel_op) |
| std::optional< FindClosestData > | find_closest_point_to_screen_co (const ARegion ®ion, const Span< float3 > positions, const float4x4 &projection, const IndexMask &points_mask, const float2 mouse_pos, const float radius, const FindClosestData &initial_closest) |
| IndexMask | retrieve_selected_points (const PointCloud &pointcloud, IndexMaskMemory &memory) |
Editing | |
| bool | remove_selection (PointCloud &pointcloud) |
| PointCloud * | copy_selection (const PointCloud &src, const IndexMask &mask) |
Poll Functions | |
| bool | editable_pointcloud_in_edit_mode_poll (bContext *C) |
Operators | |
| void | POINTCLOUD_OT_attribute_set (wmOperatorType *ot) |
| void | POINTCLOUD_OT_duplicate (wmOperatorType *ot) |
| void | POINTCLOUD_OT_separate (wmOperatorType *ot) |
| wmOperatorStatus | join_objects_exec (bContext *C, wmOperator *op) |
|
static |
Definition at line 45 of file attribute_set.cc.
References active_attribute_poll(), blender::ed::geometry::attribute_set_poll(), C, blender::CTX_data_active_object(), and editable_pointcloud_in_edit_mode_poll().
Referenced by active_attribute_poll(), and POINTCLOUD_OT_attribute_set().
|
static |
Definition at line 128 of file selection.cc.
References apply_selection_operation(), blender::bke::Bool, ensure_selection_attribute(), fill_selection_false(), fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), invert_selection(), blender::SEL_OP_ADD, blender::SEL_OP_SET, blender::SEL_OP_SUB, blender::SEL_OP_XOR, blender::GMutableSpan::size(), and blender::bke::GSpanAttributeWriter::span.
Referenced by apply_selection_operation(), select_box(), and select_circle().
|
static |
Definition at line 228 of file selection.cc.
References b, closer_elem(), and blender::ed::pointcloud::FindClosestData::distance_sq.
Referenced by closer_elem().
| PointCloud * blender::ed::pointcloud::copy_selection | ( | const PointCloud & | src, |
| const IndexMask & | mask ) |
Definition at line 16 of file edit.cc.
References blender::BKE_pointcloud_copy_for_eval(), blender::BKE_pointcloud_new_nomain(), copy_selection(), blender::bke::gather_attributes(), blender::bke::Point, blender::pointcloud_copy_parameters(), blender::PointCloud::totpoint, and blender::PointCloud::type.
Referenced by copy_selection(), and remove_selection().
|
static |
Definition at line 47 of file duplicate.cc.
References C, blender::DEG_id_tag_update(), duplicate_exec(), duplicate_points(), blender::bke::SpanAttributeWriter< T >::finish(), get_unique_editable_pointclouds(), blender::ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), NC_GEOM, ND_DATA, blender::OPERATOR_FINISHED, blender::bke::Point, retrieve_selected_points(), blender::index_mask::IndexMask::size(), blender::bke::SpanAttributeWriter< T >::span, and blender::WM_event_add_notifier().
Referenced by duplicate_exec(), and POINTCLOUD_OT_duplicate().
|
static |
Definition at line 24 of file duplicate.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::BKE_pointcloud_new_nomain(), blender::BKE_pointcloud_nomain_to_pointcloud(), blender::GVArrayCommon::common_info(), blender::array_utils::copy(), blender::CommonVArrayInfo::data, blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, duplicate_points(), blender::bke::GSpanAttributeWriter::finish(), blender::array_utils::gather(), blender::bke::AttributeIter::get(), blender::GPointer::GPointer(), blender::bke::subdiv::init(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, blender::CommonVArrayInfo::Single, blender::bke::GSpanAttributeWriter::span, blender::GMutableSpan::take_back(), blender::GMutableSpan::take_front(), blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
Referenced by duplicate_exec(), and duplicate_points().
| bool blender::ed::pointcloud::editable_pointcloud_in_edit_mode_poll | ( | bContext * | C | ) |
Definition at line 73 of file operators.cc.
References C, editable_pointcloud_in_edit_mode_poll(), and pointcloud_poll_impl().
Referenced by active_attribute_poll(), editable_pointcloud_in_edit_mode_poll(), keymap_pointcloud(), POINTCLOUD_OT_delete(), POINTCLOUD_OT_duplicate(), POINTCLOUD_OT_separate(), and undosys_type_register().
|
static |
Definition at line 68 of file operators.cc.
References C, editable_pointcloud_poll(), and pointcloud_poll_impl().
Referenced by editable_pointcloud_poll(), POINTCLOUD_OT_select_all(), and POINTCLOUD_OT_select_random().
| bke::GSpanAttributeWriter blender::ed::pointcloud::ensure_selection_attribute | ( | PointCloud & | pointcloud, |
| bke::AttrType | create_type ) |
If the selection_id attribute doesn't exist, create it with the requested type (bool or float).
Definition at line 31 of file selection.cc.
References blender::bke::MutableAttributeAccessor::add(), BLI_assert_unreachable, blender::bke::Bool, blender::bke::AttributeAccessor::contains(), ensure_selection_attribute(), blender::bke::Float, blender::bke::MutableAttributeAccessor::lookup_for_write_span(), and blender::bke::Point.
Referenced by apply_selection_operation(), ensure_selection_attribute(), select_all(), and select_random_exec().
| void blender::ed::pointcloud::fill_selection_false | ( | GMutableSpan | selection, |
| const IndexMask & | mask ) |
Definition at line 56 of file selection.cc.
References fill_selection_false(), blender::CPPType::is(), blender::index_mask::masked_fill(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
Referenced by apply_selection_operation(), fill_selection_false(), select_all(), and select_random_exec().
| void blender::ed::pointcloud::fill_selection_true | ( | GMutableSpan | selection | ) |
Definition at line 66 of file selection.cc.
References fill_selection_true(), blender::IndexMask::IndexMask(), and blender::GMutableSpan::size().
Referenced by apply_selection_operation(), fill_selection_true(), fill_selection_true(), select_all(), and select_random_exec().
| void blender::ed::pointcloud::fill_selection_true | ( | GMutableSpan | selection, |
| const IndexMask & | mask ) |
Definition at line 71 of file selection.cc.
References fill_selection_true(), blender::CPPType::is(), blender::index_mask::masked_fill(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
| std::optional< FindClosestData > blender::ed::pointcloud::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 ) |
Definition at line 236 of file selection.cc.
References find_closest_point_to_screen_co(), blender::index_mask::IndexMask::index_range(), blender::bke::subdiv::init(), and blender::threading::parallel_reduce().
Referenced by find_closest_point_to_screen_co(), and blender::pointcloud_select_pick().
| VectorSet< PointCloud * > blender::ed::pointcloud::get_unique_editable_pointclouds | ( | const bContext & | C | ) |
Definition at line 78 of file operators.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_pointclouds(), and object_has_editable_pointcloud().
Referenced by blender::ed::pointcloud::pointcloud_delete::delete_exec(), duplicate_exec(), get_unique_editable_pointclouds(), select_all_exec(), select_random_exec(), and set_attribute_exec().
| bool blender::ed::pointcloud::has_anything_selected | ( | const PointCloud & | pointcloud | ) |
Return true if any element is selected, on either domain with either type.
Definition at line 25 of file selection.cc.
References blender::array_utils::contains(), has_anything_selected(), and blender::VArrayCommon< T >::index_range().
Referenced by has_anything_selected(), has_anything_selected(), select_all_exec(), and select_random_exec().
|
static |
Definition at line 99 of file operators.cc.
References blender::Span< T >::begin(), blender::Span< T >::end(), and has_anything_selected().
|
static |
Definition at line 87 of file selection.cc.
References blender::array_utils::invert_booleans(), invert_selection(), blender::CPPType::is(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
|
static |
Definition at line 81 of file selection.cc.
References blender::exec_mode::grain_size(), and invert_selection().
Referenced by apply_selection_operation(), invert_selection(), invert_selection(), and select_all().
| wmOperatorStatus blender::ed::pointcloud::join_objects_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 31 of file pointcloud/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_pointcloud_copy_for_eval(), blender::BKE_pointcloud_nomain_to_pointcloud(), 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_instances(), blender::bke::GeometrySet::from_pointcloud(), blender::geometry::RealizeInstancesResult::geometry, blender::bke::GeometrySet::get_component_for_write(), blender::bke::GeometrySet::has_pointcloud(), 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_POINTCLOUD, 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::pointcloud::keymap_pointcloud | ( | wmKeyConfig * | keyconf | ) |
Definition at line 265 of file operators.cc.
References editable_pointcloud_in_edit_mode_poll(), keymap_pointcloud(), blender::wmKeyMap::poll, blender::RGN_TYPE_WINDOW, blender::SPACE_EMPTY, and blender::WM_keymap_ensure().
Referenced by blender::ED_spacetypes_keymap(), and keymap_pointcloud().
|
static |
Definition at line 33 of file operators.cc.
References blender::BKE_id_is_editable(), blender::data, blender::OB_MODE_EDIT, blender::OB_POINTCLOUD, and object_has_editable_pointcloud().
Referenced by get_unique_editable_pointclouds(), and object_has_editable_pointcloud().
| void blender::ed::pointcloud::operatormacros_pointcloud | ( | ) |
Definition at line 250 of file operators.cc.
References operatormacros_pointcloud(), 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_pointcloud().
| void blender::ed::pointcloud::operatortypes_pointcloud | ( | ) |
Definition at line 240 of file operators.cc.
References operatortypes_pointcloud(), POINTCLOUD_OT_attribute_set(), POINTCLOUD_OT_delete(), POINTCLOUD_OT_duplicate(), POINTCLOUD_OT_select_all(), POINTCLOUD_OT_select_random(), POINTCLOUD_OT_separate(), and blender::WM_operatortype_append().
Referenced by blender::ED_spacetypes_init(), and operatortypes_pointcloud().
| void blender::ed::pointcloud::POINTCLOUD_OT_attribute_set | ( | wmOperatorType * | ot | ) |
Definition at line 196 of file attribute_set.cc.
References active_attribute_poll(), blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, POINTCLOUD_OT_attribute_set(), 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 operatortypes_pointcloud(), and POINTCLOUD_OT_attribute_set().
|
static |
Definition at line 228 of file operators.cc.
References blender::ed::pointcloud::pointcloud_delete::delete_exec(), blender::wmOperatorType::description, editable_pointcloud_in_edit_mode_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, POINTCLOUD_OT_delete(), and blender::wmOperatorType::poll.
Referenced by operatortypes_pointcloud(), and POINTCLOUD_OT_delete().
| void blender::ed::pointcloud::POINTCLOUD_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 72 of file duplicate.cc.
References blender::wmOperatorType::description, duplicate_exec(), editable_pointcloud_in_edit_mode_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, POINTCLOUD_OT_duplicate(), and blender::wmOperatorType::poll.
Referenced by operatortypes_pointcloud(), and POINTCLOUD_OT_duplicate().
|
static |
Definition at line 129 of file operators.cc.
References blender::wmOperatorType::description, editable_pointcloud_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, POINTCLOUD_OT_select_all(), blender::wmOperatorType::poll, select_all_exec(), and blender::WM_operator_properties_select_all().
Referenced by operatortypes_pointcloud(), and POINTCLOUD_OT_select_all().
|
static |
Definition at line 180 of file operators.cc.
References blender::wmOperatorType::description, editable_pointcloud_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, INT32_MAX, INT32_MIN, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, POINTCLOUD_OT_select_random(), 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 operatortypes_pointcloud(), and POINTCLOUD_OT_select_random().
| void blender::ed::pointcloud::POINTCLOUD_OT_separate | ( | wmOperatorType * | ot | ) |
Definition at line 104 of file pointcloud/intern/separate.cc.
References blender::wmOperatorType::description, editable_pointcloud_in_edit_mode_poll(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, POINTCLOUD_OT_separate(), blender::wmOperatorType::poll, and separate_exec().
Referenced by operatortypes_pointcloud(), and POINTCLOUD_OT_separate().
|
static |
Definition at line 47 of file operators.cc.
References C, blender::CTX_data_active_object(), blender::ED_operator_object_active_editable_ex(), blender::OB_MODE_EDIT, blender::OB_POINTCLOUD, and pointcloud_poll_impl().
Referenced by editable_pointcloud_in_edit_mode_poll(), editable_pointcloud_poll(), and pointcloud_poll_impl().
| bool blender::ed::pointcloud::remove_selection | ( | PointCloud & | pointcloud | ) |
Remove selected points based on the ".selection" attribute.
Definition at line 32 of file edit.cc.
References blender::BKE_pointcloud_nomain_to_pointcloud(), copy_selection(), blender::IndexMask::from_bools_inverse(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::Point, and remove_selection().
Referenced by blender::ed::pointcloud::pointcloud_delete::delete_exec(), and remove_selection().
| IndexMask blender::ed::pointcloud::retrieve_selected_points | ( | const PointCloud & | pointcloud, |
| IndexMaskMemory & | memory ) |
Definition at line 274 of file selection.cc.
References blender::IndexMask::from_bools(), blender::bke::Point, and retrieve_selected_points().
Referenced by duplicate_exec(), blender::ED_transverts_create_from_obedit(), blender::ED_view3d_minmax_verts(), retrieve_selected_points(), set_attribute_exec(), and set_attribute_invoke().
|
static |
Definition at line 97 of file selection.cc.
References blender::bke::Bool, ensure_selection_attribute(), fill_selection_false(), fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), invert_selection(), blender::bke::MutableAttributeAccessor::remove(), blender::SEL_DESELECT, blender::SEL_INVERT, blender::SEL_SELECT, select_all(), and blender::bke::GSpanAttributeWriter::span.
| void blender::ed::pointcloud::select_all | ( | PointCloud & | pointcloud, |
| int | action ) |
(De)select all the points.
| action | One of SEL_TOGGLE, SEL_SELECT, SEL_DESELECT, or SEL_INVERT. See ED_select_utils.hh. |
Definition at line 123 of file selection.cc.
References blender::IndexRange::IndexRange(), and select_all().
Referenced by select_all(), select_all(), and select_all_exec().
|
static |
Definition at line 106 of file operators.cc.
References C, blender::DEG_id_tag_update(), get_unique_editable_pointclouds(), 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 POINTCLOUD_OT_select_all(), and select_all_exec().
| bool blender::ed::pointcloud::select_box | ( | PointCloud & | pointcloud, |
| const ARegion & | region, | ||
| const float4x4 & | projection, | ||
| const rcti & | rect, | ||
| const eSelectOp | sel_op ) |
Definition at line 158 of file selection.cc.
References apply_selection_operation(), blender::IndexMask::from_predicate(), blender::Span< T >::index_range(), and select_box().
Referenced by select_box(), and blender::view3d_box_select_exec().
| bool blender::ed::pointcloud::select_circle | ( | PointCloud & | pointcloud, |
| const ARegion & | region, | ||
| const float4x4 & | projection, | ||
| const int2 | coord, | ||
| const float | radius, | ||
| const eSelectOp | sel_op ) |
Definition at line 206 of file selection.cc.
References apply_selection_operation(), blender::IndexMask::from_predicate(), blender::Span< T >::index_range(), and select_circle().
Referenced by blender::obedit_circle_select(), and select_circle().
| bool blender::ed::pointcloud::select_lasso | ( | PointCloud & | pointcloud, |
| const ARegion & | region, | ||
| const float4x4 & | projection, | ||
| const Span< int2 > | lasso_coords, | ||
| const eSelectOp | sel_op ) |
Definition at line 177 of file selection.cc.
References blender::BLI_lasso_boundbox(), blender::BLI_lasso_is_point_inside(), blender::IndexMask::from_predicate(), blender::if(), blender::Span< T >::index_range(), IS_CLIPPED, and select_lasso().
Referenced by select_lasso(), and blender::view3d_lasso_select().
|
static |
Definition at line 143 of file operators.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_pointclouds(), has_anything_selected(), blender::ID_RECALC_GEOMETRY, blender::IndexRange::IndexRange(), 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 POINTCLOUD_OT_select_random(), and select_random_exec().
|
static |
Definition at line 172 of file operators.cc.
References blender::ui::ITEM_R_SLIDER, blender::wmOperator::layout, blender::ui::Layout::prop(), blender::wmOperator::ptr, select_random_ui(), and UI_ITEM_NONE.
Referenced by POINTCLOUD_OT_select_random(), and select_random_ui().
|
static |
Definition at line 32 of file pointcloud/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 POINTCLOUD_OT_separate(), and separate_exec().
|
static |
Definition at line 80 of file 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_pointclouds(), blender::PointCloud::id, 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_points(), 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 POINTCLOUD_OT_attribute_set(), and set_attribute_exec().
|
static |
Definition at line 142 of file 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::PointCloud::id, blender::bke::AttributeAccessor::lookup(), blender::MutableSpan< T >::MutableSpan(), blender::wmOperator::ptr, retrieve_selected_points(), 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 POINTCLOUD_OT_attribute_set(), and set_attribute_invoke().
|
static |
Definition at line 180 of file 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 POINTCLOUD_OT_attribute_set(), and set_attribute_ui().
| void blender::ed::pointcloud::undosys_type_register | ( | UndoType * | ut | ) |
Definition at line 163 of file undo.cc.
References editable_pointcloud_in_edit_mode_poll(), blender::UndoType::flags, blender::ed::pointcloud::undo::foreach_ID_ref(), blender::UndoType::identifier, blender::UndoType::poll, blender::ed::pointcloud::undo::step_decode(), blender::UndoType::step_decode, blender::ed::pointcloud::undo::step_encode(), blender::UndoType::step_encode, blender::UndoType::step_foreach_ID_ref, blender::ed::pointcloud::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 58 of file 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().