|
Blender V4.5
|
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 bool | contains (const VArray< bool > &varray, const IndexMask &indices_to_check, const bool value) |
| static bool | contains (const VArray< bool > &varray, const IndexRange range_to_check, const bool value) |
| 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 span) |
| 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, eCustomDataType 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 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 197 of file selection.cc.
References apply_selection_operation(), CD_PROP_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 apply_selection_operation(), select_box(), select_circle(), and select_lasso().
|
static |
Definition at line 296 of file selection.cc.
References b, closer_elem(), and blender::ed::pointcloud::FindClosestData::distance_sq.
Referenced by closer_elem().
|
static |
Definition at line 25 of file selection.cc.
References blender::VArrayCommon< T >::common_info(), blender::CommonVArrayInfo::data, for(), if(), blender::index_mask::IndexMask::index_range(), init(), blender::threading::parallel_reduce(), blender::CommonVArrayInfo::Single, blender::VArrayCommon< T >::size(), blender::index_mask::IndexMask::slice(), blender::CommonVArrayInfo::Span, and blender::CommonVArrayInfo::type.
Referenced by contains(), and has_anything_selected().
|
static |
Definition at line 85 of file selection.cc.
References contains().
| 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 72 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 67 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, |
| eCustomDataType | create_type ) |
If the selection_id attribute doesn't exist, create it with the requested type (bool or float).
Definition at line 96 of file selection.cc.
References blender::bke::MutableAttributeAccessor::add(), BLI_assert_unreachable, CD_PROP_BOOL, CD_PROP_FLOAT, blender::bke::AttributeAccessor::contains(), ensure_selection_attribute(), blender::VArray< T >::ForSingle(), 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 126 of file selection.cc.
References fill_selection_false(), blender::CPPType::is(), mask(), 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, |
| const IndexMask & | mask ) |
Definition at line 141 of file selection.cc.
References fill_selection_true(), 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 136 of file selection.cc.
References fill_selection_true(), and blender::GMutableSpan::size().
Referenced by apply_selection_operation(), fill_selection_true(), 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 304 of file selection.cc.
References find_closest_point_to_screen_co(), blender::index_mask::IndexMask::index_range(), init(), and blender::threading::parallel_reduce().
Referenced by find_closest_point_to_screen_co(), and pointcloud_select_pick().
| VectorSet< PointCloud * > blender::ed::pointcloud::get_unique_editable_pointclouds | ( | const bContext & | C | ) |
Definition at line 77 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 90 of file selection.cc.
References contains(), has_anything_selected(), and blender::VArrayCommon< T >::index_range().
Referenced by has_anything_selected(), select_all_exec(), and select_random_exec().
|
static |
Definition at line 98 of file operators.cc.
References blender::Span< T >::begin(), and blender::Span< T >::end().
|
static |
Definition at line 157 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 151 of file selection.cc.
References i, invert_selection(), and mask().
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 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::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 263 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 32 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 248 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 238 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 187 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 226 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 128 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 178 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 46 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 342 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 167 of file selection.cc.
References CD_PROP_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, 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 192 of file selection.cc.
References select_all().
Referenced by select_all(), select_all(), and select_all_exec().
|
static |
Definition at line 105 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 226 of file selection.cc.
References apply_selection_operation(), BLI_rcti_isect_pt_v(), ED_view3d_project_float_v2_m4(), IndexMask::from_predicate(), blender::Span< T >::index_range(), mask(), and select_box().
Referenced by select_box(), and 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 274 of file selection.cc.
References apply_selection_operation(), blender::math::distance_squared(), ED_view3d_project_float_v2_m4(), IndexMask::from_predicate(), blender::Span< T >::index_range(), mask(), and select_circle().
Referenced by 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 245 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(), IndexMask::from_predicate(), blender::Span< T >::index_range(), IS_CLIPPED, mask(), and select_lasso().
Referenced by select_lasso(), and view3d_lasso_select().
|
static |
Definition at line 142 of file operators.cc.
References C, CD_PROP_BOOL, 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 170 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 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::bke::custom_data_type_to_cpp_type(), 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(), 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_custom_data_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(), 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, uiLayout::prop(), wmOperator::ptr, blender::ed::geometry::rna_property_name_for_type(), UI_ITEM_NONE, uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by POINTCLOUD_OT_attribute_set().
| void blender::ed::pointcloud::undosys_type_register | ( | UndoType * | ut | ) |
Definition at line 152 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(), and params.
Referenced by set_attribute_exec().