|
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(), 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, 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::Span< T >::contains(), blender::index_mask::IndexMask::index_range(), info, init(), blender::threading::parallel_reduce(), range, blender::CommonVArrayInfo::Single, blender::VArrayCommon< T >::size(), blender::index_mask::IndexMask::slice(), blender::Span< T >::slice(), blender::CommonVArrayInfo::Span, and value.
Referenced by contains(), and has_anything_selected().
|
static |
Definition at line 85 of file selection.cc.
References contains(), and value.
| 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 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 Geometry::attributes, 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(), blender::GMutableSpan::take_front(), and PointCloud::totpoint.
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 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 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(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), and PointCloud::totpoint.
Referenced by select_random_exec().
| void blender::ed::pointcloud::fill_selection_false | ( | GMutableSpan | selection, |
| const IndexMask & | mask ) |
Definition at line 126 of file selection.cc.
References blender::CPPType::is(), mask(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
Referenced by select_random_exec().
| void blender::ed::pointcloud::fill_selection_true | ( | GMutableSpan | selection, |
| const IndexMask & | mask ) |
Definition at line 141 of file selection.cc.
References blender::CPPType::is(), mask(), 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 blender::GMutableSpan::size().
Referenced by 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 range.
Referenced by find_closest_point_to_screen_co().
| 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(), CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), Object::data, 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 Geometry::attributes, contains(), and blender::VArrayCommon< T >::index_range().
Referenced by 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 invert_selection(), blender::CPPType::is(), mask(), blender::GMutableSpan::type(), and blender::GMutableSpan::typed().
|
static |
Definition at line 151 of file selection.cc.
References 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::ed::object::base_free_and_unlink(), BKE_pointcloud_copy_for_eval(), BKE_pointcloud_nomain_to_pointcloud(), BKE_report(), BLI_assert, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), 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(), Object::id, Scene::id, ID_RECALC_GEOMETRY, ID_RECALC_SELECT, ID_RECALC_TRANSFORM, 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, scene, blender::bke::Instances::transforms_for_write(), Object::type, and WM_event_add_notifier().
| 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().
|
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().
| 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().
| void blender::ed::pointcloud::POINTCLOUD_OT_attribute_set | ( | wmOperatorType * | ot | ) |
Definition at line 187 of file attribute_set.cc.
References active_attribute_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, blender::ed::geometry::register_rna_properties_for_attribute_types(), set_attribute_exec(), set_attribute_invoke(), set_attribute_ui(), wmOperatorType::srna, and wmOperatorType::ui.
Referenced by operatortypes_pointcloud().
|
static |
Definition at line 226 of file operators.cc.
References blender::ed::pointcloud::pointcloud_delete::delete_exec(), wmOperatorType::description, editable_pointcloud_in_edit_mode_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by operatortypes_pointcloud().
| void blender::ed::pointcloud::POINTCLOUD_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 60 of file duplicate.cc.
References wmOperatorType::description, duplicate_exec(), editable_pointcloud_in_edit_mode_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by operatortypes_pointcloud().
|
static |
Definition at line 128 of file operators.cc.
References wmOperatorType::description, editable_pointcloud_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, select_all_exec(), and WM_operator_properties_select_all().
Referenced by operatortypes_pointcloud().
|
static |
Definition at line 178 of file operators.cc.
References wmOperatorType::description, editable_pointcloud_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, INT32_MAX, INT32_MIN, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), RNA_def_int(), select_random_exec(), select_random_ui(), wmOperatorType::srna, and wmOperatorType::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 wmOperatorType::description, editable_pointcloud_in_edit_mode_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, POINTCLOUD_OT_separate(), wmOperatorType::poll, and separate_exec().
Referenced by operatortypes_pointcloud(), and POINTCLOUD_OT_separate().
|
static |
Definition at line 46 of file operators.cc.
References CTX_data_active_object(), ED_operator_object_active_editable_ex(), Object::mode, OB_MODE_EDIT, OB_POINTCLOUD, and Object::type.
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 Geometry::attributes, BKE_pointcloud_nomain_to_pointcloud(), copy_selection(), blender::index_mask::IndexMask::from_bools_inverse(), blender::bke::AttributeAccessor::lookup_or_default(), mask(), blender::bke::Point, and PointCloud::totpoint.
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 Geometry::attributes.
Referenced by duplicate_exec(), ED_transverts_create_from_obedit(), set_attribute_exec(), and set_attribute_invoke().
|
static |
Definition at line 167 of file selection.cc.
References CD_PROP_BOOL, blender::bke::GSpanAttributeWriter::finish(), invert_selection(), mask(), range, blender::bke::MutableAttributeAccessor::remove(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, blender::bke::GSpanAttributeWriter::span, and PointCloud::totpoint.
| 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 PointCloud::totpoint.
Referenced by select_all_exec().
|
static |
Definition at line 105 of file operators.cc.
References 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(), blender::Span< T >::index_range(), and mask().
| 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(), blender::Span< T >::index_range(), and mask().
| 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(), blender::Span< T >::index_range(), IS_CLIPPED, and mask().
|
static |
Definition at line 142 of file operators.cc.
References 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(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::threading::parallel_for(), range, scene, and blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
|
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, 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::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(), 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, 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(), 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(), 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 Geometry::attributes, BKE_attributes_active_name_get(), uiLayout::column(), CTX_data_active_object(), blender::bke::AttributeMetaData::data_type, AttributeOwner::from_id(), PointCloud::id, wmOperator::layout, name, 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, UndoType::name, UndoType::poll, UndoType::step_decode, UndoType::step_encode, UndoType::step_foreach_ID_ref, UndoType::step_free, UndoType::step_size, and UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE.
|
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().