|
Blender V4.3
|
Namespaces | |
| namespace | tests |
Classes | |
| struct | DictionaryEntryParser |
| Helper class for parsing DictionaryValues. More... | |
| class | IDPArraySerializer |
| IDPSerializer for IDP_ARRAY. More... | |
| class | IDPBoolSerializer |
| IDPSerializer for IDP_INT. More... | |
| class | IDPDoubleSerializer |
| IDPSerializer for IDP_DOUBLE. More... | |
| class | IDPFloatSerializer |
| IDPSerializer for IDP_FLOAT. More... | |
| class | IDPGroupSerializer |
| IDPSerializer for IDP_GROUP. More... | |
| class | IDPIntSerializer |
| IDPSerializer for IDP_INT. More... | |
| class | IDPropertyDeleter |
| class | IDPropertySerializer |
| Base class for (de)serializing IDProperties. More... | |
| class | IDPStringSerializer |
| IDPSerializer for IDP_STRING. More... | |
| class | IDPUnknownSerializer |
| Dummy serializer for unknown and unsupported types. More... | |
Functions | |
IDProperty to Value | |
| std::unique_ptr< blender::io::serialize::ArrayValue > | convert_to_serialize_values (const IDProperty *properties) |
Convert the given properties to Value objects for serialization. | |
IDProperty from Value | |
| IDProperty * | convert_from_serialize_value (const blender::io::serialize::Value &value) |
Convert the given value to an IDProperty. | |
| static IDProperty * | idprop_from_value (const DictionaryValue &value) |
| static IDProperty * | idprop_from_value (const ArrayValue &value) |
Create Functions | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create_bool (StringRefNull prop_name, bool value, eIDPropertyFlag flags={}) |
| Allocate a new IDProperty of type IDP_BOOLEAN, set its name and value. | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create (StringRefNull prop_name, int32_t value, eIDPropertyFlag flags={}) |
| Allocate a new IDProperty of type IDP_INT, set its name and value. | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create (StringRefNull prop_name, float value, eIDPropertyFlag flags={}) |
| Allocate a new IDProperty of type IDP_FLOAT, set its name and value. | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create (StringRefNull prop_name, double value, eIDPropertyFlag flags={}) |
| Allocate a new IDProperty of type IDP_DOUBLE, set its name and value. | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create (StringRefNull prop_name, const StringRefNull value, eIDPropertyFlag flags={}) |
| Allocate a new IDProperty of type IDP_STRING, set its name and value. | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create (StringRefNull prop_name, ID *value, eIDPropertyFlag flags={}) |
| Allocate a new IDProperty of type IDP_ID, set its name and value. | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create (StringRefNull prop_name, Span< int32_t > values, eIDPropertyFlag flags={}) |
| Allocate a new IDProperty of type IDP_ARRAY and sub-type IDP_INT. | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create (StringRefNull prop_name, Span< float > values, eIDPropertyFlag flags={}) |
| Allocate a new IDProperty of type IDP_ARRAY and sub-type IDP_FLOAT. | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create (StringRefNull prop_name, Span< double > values, eIDPropertyFlag flags={}) |
| Allocate a new IDProperty of type IDP_ARRAY and sub-type IDP_DOUBLE. | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create_group (StringRefNull prop_name, eIDPropertyFlag flags={}) |
| Allocate a new IDProperty of type IDP_GROUP. | |
| static std::unique_ptr< IDProperty, IDPropertyDeleter > | array_create (const StringRefNull prop_name, eIDPropertyType subtype, size_t array_len, const eIDPropertyFlag flags) |
| static void | array_values_set (IDProperty *property, const void *values, size_t values_len, size_t value_size) |
| template<typename PrimitiveType , eIDPropertyType id_property_subtype> | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | create_array (StringRefNull prop_name, Span< PrimitiveType > values, const eIDPropertyFlag flags) |
|
static |
Definition at line 78 of file idprop_create.cc.
References IDPropertyTemplate::array, blender::StringRefNull::c_str(), IDP_ARRAY, IDP_New(), and IDPropertyTemplate::len.
Referenced by create_array().
|
static |
Definition at line 90 of file idprop_create.cc.
References BLI_assert, IDP_Array, and IDProperty::len.
Referenced by create_array().
| IDProperty * blender::bke::idprop::convert_from_serialize_value | ( | const blender::io::serialize::Value & | value | ) |
Convert the given value to an IDProperty.
Definition at line 860 of file idprop_serialize.cc.
References idprop_from_value().
Referenced by blender::ed::asset::index::init_indexer_entry_from_value(), blender::bke::idprop::tests::TEST(), blender::bke::idprop::tests::TEST(), blender::bke::idprop::tests::TEST(), and blender::bke::idprop::tests::test_convert_idprop_from_value().
| std::unique_ptr< ArrayValue > blender::bke::idprop::convert_to_serialize_values | ( | const IDProperty * | properties | ) |
Convert the given properties to Value objects for serialization.
IDP_ID and IDP_IDPARRAY are not supported and will be ignored.
UI data such as max/min will not be serialized.
Definition at line 796 of file idprop_serialize.cc.
References BLI_assert, blender::bke::idprop::IDPropertySerializer::idprop_to_dictionary(), IDProperty::next, result, serializer_for(), blender::bke::idprop::IDPropertySerializer::supports_serializing(), and IDProperty::type.
Referenced by blender::ed::asset::index::init_value_from_file_indexer_entry(), blender::bke::idprop::tests::TEST(), blender::bke::idprop::tests::test_array_to_value(), blender::bke::idprop::tests::test_double_to_value(), blender::bke::idprop::tests::test_float_to_value(), blender::bke::idprop::tests::test_int_to_value(), and blender::bke::idprop::tests::test_string_to_value().
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create | ( | StringRefNull | prop_name, |
| const StringRefNull | value, | ||
| eIDPropertyFlag | flags = {} ) |
Allocate a new IDProperty of type IDP_STRING, set its name and value.
Definition at line 57 of file idprop_create.cc.
References blender::StringRefNull::c_str(), and IDP_NewString().
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create | ( | StringRefNull | prop_name, |
| double | value, | ||
| eIDPropertyFlag | flags = {} ) |
Allocate a new IDProperty of type IDP_DOUBLE, set its name and value.
Definition at line 47 of file idprop_create.cc.
References blender::StringRefNull::c_str(), IDPropertyTemplate::d, IDP_DOUBLE, and IDP_New().
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create | ( | StringRefNull | prop_name, |
| float | value, | ||
| eIDPropertyFlag | flags = {} ) |
Allocate a new IDProperty of type IDP_FLOAT, set its name and value.
Definition at line 37 of file idprop_create.cc.
References blender::StringRefNull::c_str(), IDPropertyTemplate::f, IDP_FLOAT, and IDP_New().
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create | ( | StringRefNull | prop_name, |
| ID * | value, | ||
| eIDPropertyFlag | flags = {} ) |
Allocate a new IDProperty of type IDP_ID, set its name and value.
Definition at line 65 of file idprop_create.cc.
References BLI_assert, blender::StringRefNull::c_str(), IDPropertyTemplate::id, ID_FLAG_EMBEDDED_DATA, IDP_ID, and IDP_New().
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create | ( | StringRefNull | prop_name, |
| int32_t | value, | ||
| eIDPropertyFlag | flags = {} ) |
Allocate a new IDProperty of type IDP_INT, set its name and value.
Definition at line 17 of file idprop_create.cc.
References blender::StringRefNull::c_str(), IDPropertyTemplate::i, IDP_INT, and IDP_New().
Referenced by blender::bke::action_asset_type_property(), bc_set_IDPropertyMatrix(), BKE_keyconfig_pref_set_select_mouse(), camera_write_cycles_compatibility_data_create(), blender::bke::create_auto_smooth_modifier(), blender::bke::idprop::IDPDoubleSerializer::entry_to_idprop(), blender::bke::idprop::IDPFloatSerializer::entry_to_idprop(), blender::bke::idprop::IDPIntSerializer::entry_to_idprop(), blender::bke::idprop::IDPStringSerializer::entry_to_idprop(), blender::nodes::id_name_or_value_prop(), blender::nodes::id_property_create_from_socket(), idp_from_DatablockPointer(), idp_from_PyFloat(), idp_from_PyLong(), IMB_metadata_set_field(), RNA_property_boolean_set(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_int_set(), RNA_property_pointer_set(), blender::bke::tests::IDSubDataTestData::setup(), blender::bke::idprop::tests::test_array_to_value(), blender::bke::idprop::tests::test_double_to_value(), blender::bke::idprop::tests::test_float_to_value(), blender::bke::idprop::tests::test_int_to_value(), blender::bke::idprop::tests::test_string_to_value(), blender::nodes::update_input_properties_from_node_tree(), and version_cycles_property_int_set().
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create | ( | StringRefNull | prop_name, |
| Span< double > | values, | ||
| eIDPropertyFlag | flags = {} ) |
Allocate a new IDProperty of type IDP_ARRAY and sub-type IDP_DOUBLE.
| values | The values will be copied into the IDProperty. |
Definition at line 145 of file idprop_create.cc.
References create_array().
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create | ( | StringRefNull | prop_name, |
| Span< float > | values, | ||
| eIDPropertyFlag | flags = {} ) |
Allocate a new IDProperty of type IDP_ARRAY and sub-type IDP_FLOAT.
| values | The values will be copied into the IDProperty. |
Definition at line 138 of file idprop_create.cc.
References create_array().
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create | ( | StringRefNull | prop_name, |
| Span< int32_t > | values, | ||
| eIDPropertyFlag | flags = {} ) |
Allocate a new IDProperty of type IDP_ARRAY and sub-type IDP_INT.
| values | The values will be copied into the IDProperty. |
Definition at line 131 of file idprop_create.cc.
References create_array().
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create_array | ( | StringRefNull | prop_name, |
| Span< PrimitiveType > | values, | ||
| const eIDPropertyFlag | flags ) |
Create a IDProperty array of id_property_subtype and fill it with the given values.
Definition at line 108 of file idprop_create.cc.
References array_create(), array_values_set(), BLI_assert, blender::StringRefNull::c_str(), IDP_DOUBLE, IDP_FLOAT, and IDP_INT.
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create_bool | ( | StringRefNull | prop_name, |
| bool | value, | ||
| eIDPropertyFlag | flags = {} ) |
Allocate a new IDProperty of type IDP_BOOLEAN, set its name and value.
Definition at line 27 of file idprop_create.cc.
References blender::StringRefNull::c_str(), IDPropertyTemplate::i, IDP_BOOLEAN, and IDP_New().
Referenced by blender::bke::idprop::IDPBoolSerializer::entry_to_idprop(), blender::nodes::id_property_create_from_socket(), idp_from_PyBool(), RNA_property_boolean_set(), and blender::nodes::update_input_properties_from_node_tree().
| std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create_group | ( | StringRefNull | prop_name, |
| eIDPropertyFlag | flags = {} ) |
Allocate a new IDProperty of type IDP_GROUP.
| prop_name | The name of the newly created property. |
Definition at line 152 of file idprop_create.cc.
References blender::StringRefNull::c_str(), IDP_GROUP, and IDP_New().
Referenced by bc_set_IDPropertyMatrix(), BKE_keyconfig_pref_ensure(), camera_write_cycles_compatibility_data_create(), blender::bke::create_auto_smooth_modifier(), blender::bke::idprop::IDPGroupSerializer::entry_to_idprop(), idp_from_PyMapping(), idp_resize_group_array(), idprops_ensure_named_group(), IMB_metadata_ensure(), operator_last_properties_init_impl(), blender::ed::geometry::replace_strings_with_id_pointers(), RNA_property_collection_add(), RNA_property_pointer_add(), RNA_struct_idprops(), blender::bke::tests::IDSubDataTestData::setup(), shortcut_get_operator_property(), template_operator_property_buts_draw_single(), ui_but_event_operator_string_from_menu(), ui_but_event_property_operator_string(), uiItemFullO_ptr_ex(), wm_gizmo_create(), WM_gizmo_operator_invoke(), WM_gizmo_properties_alloc(), wm_operator_create(), WM_operator_last_properties_ensure_idprops(), WM_operator_last_properties_store(), WM_operator_properties_alloc(), WM_toolsystem_ref_properties_ensure_idprops(), and WM_toolsystem_ref_properties_init_for_keymap().
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
Referenced by blender::bke::idprop::DictionaryEntryParser::get_array_double_value(), blender::bke::idprop::DictionaryEntryParser::get_array_float_value(), blender::bke::idprop::DictionaryEntryParser::get_array_int_value(), blender::bke::idprop::DictionaryEntryParser::get_array_value(), blender::bke::idprop::DictionaryEntryParser::get_bool_value(), blender::bke::idprop::DictionaryEntryParser::get_double_value(), blender::bke::idprop::DictionaryEntryParser::get_enum_value(), blender::bke::idprop::DictionaryEntryParser::get_float_value(), blender::bke::idprop::DictionaryEntryParser::get_int_value(), blender::bke::idprop::DictionaryEntryParser::get_string_value(), blender::bke::idprop::IDPArraySerializer::idprop_to_dictionary(), blender::bke::idprop::IDPBoolSerializer::idprop_to_dictionary(), blender::bke::idprop::IDPDoubleSerializer::idprop_to_dictionary(), blender::bke::idprop::IDPFloatSerializer::idprop_to_dictionary(), blender::bke::idprop::IDPGroupSerializer::idprop_to_dictionary(), blender::bke::idprop::IDPIntSerializer::idprop_to_dictionary(), and blender::bke::idprop::IDPStringSerializer::idprop_to_dictionary().
|
staticconstexpr |
Referenced by serializer_for(), and blender::bke::idprop::IDPArraySerializer::type_name().
|
staticconstexpr |
Referenced by serializer_for(), and blender::bke::idprop::IDPBoolSerializer::type_name().
|
staticconstexpr |
Referenced by serializer_for(), and blender::bke::idprop::IDPDoubleSerializer::type_name().
|
staticconstexpr |
Referenced by serializer_for(), and blender::bke::idprop::IDPFloatSerializer::type_name().
|
staticconstexpr |
Referenced by serializer_for(), and blender::bke::idprop::IDPGroupSerializer::type_name().
|
staticconstexpr |
Referenced by serializer_for(), and blender::bke::idprop::IDPIntSerializer::type_name().
|
staticconstexpr |
Referenced by serializer_for(), and blender::bke::idprop::IDPStringSerializer::type_name().
|
staticconstexpr |
Referenced by blender::bke::idprop::IDPUnknownSerializer::type_name().
|
static |
Definition at line 831 of file idprop_serialize.cc.
References blender::io::serialize::Value::as_dictionary_value(), idprop_from_value(), IDProperty::next, IDProperty::prev, and result.
|
static |
Definition at line 819 of file idprop_serialize.cc.
References blender::bke::idprop::IDPropertySerializer::entry_to_idprop(), blender::bke::idprop::DictionaryEntryParser::get_type(), and serializer_for().
Referenced by convert_from_serialize_value(), blender::bke::idprop::IDPGroupSerializer::entry_to_idprop(), and idprop_from_value().
|
static |
get the serializer for the given property type.
Definition at line 734 of file idprop_serialize.cc.
References BLI_assert_msg, IDP_ARRAY, IDP_BOOLEAN, IDP_DOUBLE, IDP_FLOAT, IDP_GROUP, IDP_INT, IDP_SERIALIZER_ARRAY, IDP_SERIALIZER_BOOL, IDP_SERIALIZER_DOUBLE, IDP_SERIALIZER_FLOAT, IDP_SERIALIZER_GROUP, IDP_SERIALIZER_INT, IDP_SERIALIZER_STRING, IDP_SERIALIZER_UNKNOWN, and IDP_STRING.
Referenced by convert_to_serialize_values(), idprop_from_value(), blender::bke::idprop::IDPArraySerializer::idprop_to_dictionary(), and blender::bke::idprop::IDPGroupSerializer::idprop_to_dictionary().
|
static |
get serializer for the given typename.
Definition at line 765 of file idprop_serialize.cc.
References IDP_PROPERTY_TYPENAME_ARRAY(), IDP_PROPERTY_TYPENAME_BOOL(), IDP_PROPERTY_TYPENAME_DOUBLE(), IDP_PROPERTY_TYPENAME_FLOAT(), IDP_PROPERTY_TYPENAME_GROUP(), IDP_PROPERTY_TYPENAME_INT(), IDP_PROPERTY_TYPENAME_STRING(), IDP_SERIALIZER_ARRAY, IDP_SERIALIZER_BOOL, IDP_SERIALIZER_DOUBLE, IDP_SERIALIZER_FLOAT, IDP_SERIALIZER_GROUP, IDP_SERIALIZER_INT, IDP_SERIALIZER_STRING, and IDP_SERIALIZER_UNKNOWN.
|
staticconstexpr |
Definition at line 729 of file idprop_serialize.cc.
Referenced by serializer_for(), and serializer_for().
|
staticconstexpr |
Definition at line 725 of file idprop_serialize.cc.
Referenced by serializer_for(), and serializer_for().
|
staticconstexpr |
Definition at line 728 of file idprop_serialize.cc.
Referenced by serializer_for(), and serializer_for().
|
staticconstexpr |
Definition at line 727 of file idprop_serialize.cc.
Referenced by serializer_for(), and serializer_for().
|
staticconstexpr |
Definition at line 730 of file idprop_serialize.cc.
Referenced by serializer_for(), and serializer_for().
|
staticconstexpr |
Definition at line 726 of file idprop_serialize.cc.
Referenced by serializer_for(), and serializer_for().
|
staticconstexpr |
Definition at line 724 of file idprop_serialize.cc.
Referenced by serializer_for(), and serializer_for().
|
staticconstexpr |
Definition at line 731 of file idprop_serialize.cc.
Referenced by serializer_for(), and serializer_for().