|
Blender V5.0
|
Namespaces | |
| namespace | pointcloud_delete |
| namespace | undo |
Classes | |
| struct | FindClosestData |
|
static |
Definition at line 44 of file attribute_set.cc.
References blender::ed::geometry::attribute_set_poll(), C, CTX_data_active_object(), and editable_pointcloud_in_edit_mode_poll().
Referenced by POINTCLOUD_OT_attribute_set().
|
static |
Definition at line 133 of file selection.cc.
References blender::bke::Bool, ensure_selection_attribute(), fill_selection_false(), fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), invert_selection(), mask(), SEL_OP_ADD, SEL_OP_SET, SEL_OP_SUB, SEL_OP_XOR, blender::GMutableSpan::size(), and blender::bke::GSpanAttributeWriter::span.
Referenced by select_box(), select_circle(), and select_lasso().
|
static |
Definition at line 233 of file selection.cc.
References b, and blender::ed::pointcloud::FindClosestData::distance_sq.
| PointCloud * blender::ed::pointcloud::copy_selection | ( | const PointCloud & | src, |
| const IndexMask & | mask ) |
Definition at line 16 of file edit.cc.
References Geometry::attributes, BKE_pointcloud_copy_for_eval(), BKE_pointcloud_new_nomain(), blender::bke::gather_attributes(), mask(), blender::bke::Point, pointcloud_copy_parameters(), and PointCloud::totpoint.
Referenced by remove_selection().
|
static |
Definition at line 35 of file duplicate.cc.
References C, DEG_id_tag_update(), duplicate_points(), blender::bke::SpanAttributeWriter< T >::finish(), get_unique_editable_pointclouds(), ID_RECALC_GEOMETRY, blender::index_mask::IndexMask::is_empty(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, blender::bke::Point, retrieve_selected_points(), blender::index_mask::IndexMask::size(), blender::bke::SpanAttributeWriter< T >::span, and WM_event_add_notifier().
Referenced by POINTCLOUD_OT_duplicate().
|
static |
Definition at line 20 of file duplicate.cc.
References BKE_pointcloud_new_nomain(), BKE_pointcloud_nomain_to_pointcloud(), blender::array_utils::copy(), blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, blender::bke::GSpanAttributeWriter::finish(), blender::array_utils::gather(), blender::bke::AttributeIter::get(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), mask(), blender::bke::AttributeIter::name, blender::bke::GSpanAttributeWriter::span, blender::GMutableSpan::take_back(), and blender::GMutableSpan::take_front().
Referenced by duplicate_exec().
| bool blender::ed::pointcloud::editable_pointcloud_in_edit_mode_poll | ( | bContext * | C | ) |
Definition at line 73 of file operators.cc.
References C, and pointcloud_poll_impl().
Referenced by active_attribute_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, and pointcloud_poll_impl().
Referenced by 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(), blender::bke::Float, blender::VArray< T >::from_single(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), and blender::bke::Point.
Referenced by apply_selection_operation(), select_all(), and select_random_exec().
| void blender::ed::pointcloud::fill_selection_false | ( | GMutableSpan | selection, |
| const IndexMask & | mask ) |
Definition at line 61 of file selection.cc.
References blender::CPPType::is(), mask(), blender::index_mask::masked_fill(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
Referenced by apply_selection_operation(), select_all(), and select_random_exec().
| void blender::ed::pointcloud::fill_selection_true | ( | GMutableSpan | selection, |
| const IndexMask & | mask ) |
Definition at line 76 of file selection.cc.
References blender::CPPType::is(), mask(), blender::index_mask::masked_fill(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
| void blender::ed::pointcloud::fill_selection_true | ( | GMutableSpan | span | ) |
Definition at line 71 of file selection.cc.
References fill_selection_true(), and blender::GMutableSpan::size().
Referenced by apply_selection_operation(), fill_selection_true(), select_all(), and select_random_exec().
| 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 241 of file selection.cc.
References blender::index_mask::IndexMask::index_range(), init(), and blender::threading::parallel_reduce().
Referenced by 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, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), and object_has_editable_pointcloud().
Referenced by blender::ed::pointcloud::pointcloud_delete::delete_exec(), duplicate_exec(), 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(), and blender::VArrayCommon< T >::index_range().
Referenced by select_all_exec(), and select_random_exec().
|
static |
Definition at line 99 of file operators.cc.
References blender::Span< T >::begin(), and blender::Span< T >::end().
|
static |
Definition at line 92 of file selection.cc.
References blender::array_utils::invert_booleans(), invert_selection(), blender::CPPType::is(), mask(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
|
static |
Definition at line 86 of file selection.cc.
Referenced by apply_selection_operation(), invert_selection(), and select_all().
| wmOperatorStatus blender::ed::pointcloud::join_objects_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 27 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(), BKE_pointcloud_copy_for_eval(), BKE_pointcloud_nomain_to_pointcloud(), BKE_report(), BLI_assert, C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), Object::data, DEG_id_tag_update(), 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(), i, Object::id, Scene::id, ID_RECALC_GEOMETRY, ID_RECALC_SELECT, ID_RECALC_TRANSFORM, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_cb(), NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, OB_POINTCLOUD, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::ReadOnly, blender::geometry::realize_instances(), blender::bke::Instances::reference_handles_for_write(), wmOperator::reports, blender::bke::Instances::resize(), RPT_WARNING, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::bke::Instances::transforms_for_write(), Object::type, and WM_event_add_notifier().
Referenced by 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(), wmKeyMap::poll, RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
|
static |
Definition at line 33 of file operators.cc.
References BKE_id_is_editable(), data, OB_MODE_EDIT, and OB_POINTCLOUD.
Referenced by get_unique_editable_pointclouds().
| void blender::ed::pointcloud::operatormacros_pointcloud | ( | ) |
Definition at line 250 of file operators.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
| void blender::ed::pointcloud::operatortypes_pointcloud | ( | ) |
Definition at line 240 of file operators.cc.
References POINTCLOUD_OT_attribute_set(), POINTCLOUD_OT_delete(), POINTCLOUD_OT_duplicate(), POINTCLOUD_OT_select_all(), POINTCLOUD_OT_select_random(), POINTCLOUD_OT_separate(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
| void blender::ed::pointcloud::POINTCLOUD_OT_attribute_set | ( | wmOperatorType * | ot | ) |
Definition at line 186 of file attribute_set.cc.
References active_attribute_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, blender::ed::geometry::register_rna_properties_for_attribute_types(), set_attribute_exec(), set_attribute_invoke(), and set_attribute_ui().
Referenced by operatortypes_pointcloud().
|
static |
Definition at line 228 of file operators.cc.
References blender::ed::pointcloud::pointcloud_delete::delete_exec(), editable_pointcloud_in_edit_mode_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by operatortypes_pointcloud().
| void blender::ed::pointcloud::POINTCLOUD_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 60 of file duplicate.cc.
References duplicate_exec(), editable_pointcloud_in_edit_mode_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by operatortypes_pointcloud().
|
static |
Definition at line 129 of file operators.cc.
References editable_pointcloud_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, select_all_exec(), and WM_operator_properties_select_all().
Referenced by operatortypes_pointcloud().
|
static |
Definition at line 180 of file operators.cc.
References editable_pointcloud_poll(), INT32_MAX, INT32_MIN, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_float(), RNA_def_int(), select_random_exec(), and select_random_ui().
Referenced by operatortypes_pointcloud().
| void blender::ed::pointcloud::POINTCLOUD_OT_separate | ( | wmOperatorType * | ot | ) |
Definition at line 100 of file pointcloud/intern/separate.cc.
References editable_pointcloud_in_edit_mode_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, POINTCLOUD_OT_separate(), and separate_exec().
Referenced by operatortypes_pointcloud(), and POINTCLOUD_OT_separate().
|
static |
Definition at line 47 of file operators.cc.
References C, CTX_data_active_object(), ED_operator_object_active_editable_ex(), OB_MODE_EDIT, and OB_POINTCLOUD.
Referenced by editable_pointcloud_in_edit_mode_poll(), and editable_pointcloud_poll().
| 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 BKE_pointcloud_nomain_to_pointcloud(), copy_selection(), blender::IndexMask::from_bools_inverse(), blender::bke::AttributeAccessor::lookup_or_default(), mask(), and blender::bke::Point.
Referenced by blender::ed::pointcloud::pointcloud_delete::delete_exec().
| IndexMask blender::ed::pointcloud::retrieve_selected_points | ( | const PointCloud & | pointcloud, |
| IndexMaskMemory & | memory ) |
Definition at line 279 of file selection.cc.
References IndexMask::from_bools(), blender::bke::Point, and retrieve_selected_points().
Referenced by duplicate_exec(), ED_transverts_create_from_obedit(), ED_view3d_minmax_verts(), retrieve_selected_points(), set_attribute_exec(), and set_attribute_invoke().
|
static |
Definition at line 102 of file selection.cc.
References blender::bke::Bool, ensure_selection_attribute(), fill_selection_false(), fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), invert_selection(), mask(), blender::bke::MutableAttributeAccessor::remove(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, 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 128 of file selection.cc.
References select_all().
Referenced by select_all(), and select_all_exec().
|
static |
Definition at line 106 of file operators.cc.
References C, DEG_id_tag_update(), get_unique_editable_pointclouds(), has_anything_selected(), ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_SELECT, SEL_TOGGLE, select_all(), and WM_event_add_notifier().
Referenced by POINTCLOUD_OT_select_all().
| bool blender::ed::pointcloud::select_box | ( | PointCloud & | pointcloud, |
| const ARegion & | region, | ||
| const float4x4 & | projection, | ||
| const rcti & | rect, | ||
| const eSelectOp | sel_op ) |
Definition at line 163 of file selection.cc.
References apply_selection_operation(), BLI_rcti_isect_pt_v(), ED_view3d_project_float_v2_m4(), blender::IndexMask::from_predicate(), blender::Span< T >::index_range(), and mask().
Referenced by 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 211 of file selection.cc.
References apply_selection_operation(), blender::math::distance_squared(), ED_view3d_project_float_v2_m4(), blender::IndexMask::from_predicate(), blender::Span< T >::index_range(), and mask().
Referenced by obedit_circle_select().
| 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 182 of file selection.cc.
References apply_selection_operation(), BLI_lasso_boundbox(), BLI_lasso_is_point_inside(), BLI_rcti_isect_pt_v(), ED_view3d_project_float_v2_m4(), blender::IndexMask::from_predicate(), blender::Span< T >::index_range(), IS_CLIPPED, and mask().
Referenced by view3d_lasso_select().
|
static |
Definition at line 143 of file operators.cc.
References blender::bke::Bool, C, blender::index_mask::IndexMask::complement(), DEG_id_tag_update(), ensure_selection_attribute(), fill_selection_false(), fill_selection_true(), blender::bke::GSpanAttributeWriter::finish(), get_unique_editable_pointclouds(), has_anything_selected(), ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), RNA_int_get(), seed, blender::bke::GSpanAttributeWriter::span, and WM_event_add_notifier().
Referenced by POINTCLOUD_OT_select_random().
|
static |
Definition at line 172 of file operators.cc.
References wmOperator::layout, uiLayout::prop(), wmOperator::ptr, UI_ITEM_NONE, and UI_ITEM_R_SLIDER.
Referenced by POINTCLOUD_OT_select_random().
|
static |
Definition at line 28 of file pointcloud/intern/separate.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_view_layer_array_from_bases_in_edit_mode(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::threading::parallel_for(), and blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by POINTCLOUD_OT_separate().
|
static |
Definition at line 79 of file attribute_set.cc.
References blender::bke::attribute_type_to_cpp_type(), Geometry::attributes, BKE_attributes_active_name_get(), BLI_SCOPED_DEFER, BUFFER_FOR_CPP_TYPE_VALUE, C, blender::bke::DataTypeConversions::convert_to_uninitialized(), CTX_data_active_object(), blender::GMutableSpan::data(), Object::data, blender::bke::AttributeMetaData::data_type, DEG_id_tag_update(), blender::CPPType::destruct(), blender::CPPType::fill_assign_indices(), blender::bke::GSpanAttributeWriter::finish(), AttributeOwner::from_id(), blender::CPPType::get(), blender::GPointer::get(), blender::bke::get_implicit_type_conversions(), get_unique_editable_pointclouds(), PointCloud::id, ID_RECALC_GEOMETRY, blender::bke::DataTypeConversions::is_convertible(), blender::index_mask::IndexMask::is_empty(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), name, NC_GEOM, ND_DATA, OPERATOR_FINISHED, wmOperator::ptr, retrieve_selected_points(), blender::ed::geometry::rna_property_for_attribute_type_retrieve_value(), blender::bke::GSpanAttributeWriter::span, blender::GMutableSpan::type(), validate_value(), and WM_event_add_notifier().
Referenced by POINTCLOUD_OT_attribute_set().
|
static |
Definition at line 133 of file attribute_set.cc.
References Geometry::attributes, BKE_attributes_active_name_get(), BLI_SCOPED_DEFER, BUFFER_FOR_CPP_TYPE_VALUE, C, blender::bke::attribute_math::convert_to_static_type(), blender::bke::cpp_type_to_attribute_type(), CTX_data_active_object(), Object::data, blender::CPPType::destruct(), blender::index_mask::IndexMask::foreach_index(), AttributeOwner::from_id(), i, PointCloud::id, blender::bke::AttributeAccessor::lookup(), name, wmOperator::ptr, retrieve_selected_points(), blender::ed::geometry::rna_property_for_attribute_type_set_value(), blender::ed::geometry::rna_property_for_type(), RNA_property_is_set(), T, blender::GVArrayCommon::type(), blender::GVArray::typed(), blender::bke::GAttributeReader::varray, and WM_operator_props_popup().
Referenced by POINTCLOUD_OT_attribute_set().
|
static |
Definition at line 170 of file attribute_set.cc.
References BKE_attributes_active_name_get(), C, uiLayout::column(), CTX_data_active_object(), blender::bke::AttributeMetaData::data_type, AttributeOwner::from_id(), wmOperator::layout, name, uiLayout::prop(), wmOperator::ptr, blender::ed::geometry::rna_property_name_for_type(), UI_ITEM_NONE, uiLayout::use_property_decorate_set(), and uiLayout::use_property_split_set().
Referenced by POINTCLOUD_OT_attribute_set().
| void blender::ed::pointcloud::undosys_type_register | ( | UndoType * | ut | ) |
Definition at line 158 of file undo.cc.
References editable_pointcloud_in_edit_mode_poll(), UndoType::flags, blender::ed::pointcloud::undo::foreach_ID_ref(), UndoType::name, UndoType::poll, blender::ed::pointcloud::undo::step_decode(), UndoType::step_decode, blender::ed::pointcloud::undo::step_encode(), UndoType::step_encode, UndoType::step_foreach_ID_ref, blender::ed::pointcloud::undo::step_free(), UndoType::step_free, UndoType::step_size, undosys_type_register(), and UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE.
Referenced by ED_undosys_type_init(), and undosys_type_register().
|
static |
Definition at line 57 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::bke::AttributeAccessor::lookup_validator(), name, and params.
Referenced by set_attribute_exec().