Blender
V3.3
|
Public Member Functions | |
BuiltinPointAttributeProvider (std::string attribute_name, const CreatableEnum creatable, const DeletableEnum deletable, const GetSpan get_span, const GetMutableSpan get_mutable_span, const UpdateOnWrite update_on_write, const bool stored_in_custom_data) | |
GVArray | try_get_for_read (const void *owner) const override |
GAttributeWriter | try_get_for_write (void *owner) const override |
bool | try_delete (void *owner) const final |
bool | try_create (void *owner, const AttributeInit &initializer) const final |
bool | exists (const void *owner) const final |
![]() | |
BuiltinAttributeProvider (std::string name, const eAttrDomain domain, const eCustomDataType data_type, const CreatableEnum createable, const WritableEnum writable, const DeletableEnum deletable) | |
StringRefNull | name () const |
eAttrDomain | domain () const |
eCustomDataType | data_type () const |
Protected Types | |
using | GetSpan = Span< T >(*)(const Spline &spline) |
using | GetMutableSpan = MutableSpan< T >(*)(Spline &spline) |
using | UpdateOnWrite = void(*)(Spline &spline) |
Protected Attributes | |
const GetSpan | get_span_ |
const GetMutableSpan | get_mutable_span_ |
const UpdateOnWrite | update_on_write_ |
bool | stored_in_custom_data_ |
![]() | |
const std::string | name_ |
const eAttrDomain | domain_ |
const eCustomDataType | data_type_ |
const CreatableEnum | createable_ |
const WritableEnum | writable_ |
const DeletableEnum | deletable_ |
Additional Inherited Members | |
![]() | |
enum | CreatableEnum { Creatable , NonCreatable } |
enum | WritableEnum { Writable , Readonly } |
enum | DeletableEnum { Deletable , NonDeletable } |
Provider for any builtin control point attribute that doesn't need special handling like access to other arrays in the spline.
Definition at line 871 of file geometry_component_curve.cc.
|
protected |
Definition at line 874 of file geometry_component_curve.cc.
|
protected |
Definition at line 873 of file geometry_component_curve.cc.
|
protected |
Definition at line 875 of file geometry_component_curve.cc.
|
inline |
Definition at line 882 of file geometry_component_curve.cc.
|
inlinefinalvirtual |
Implements blender::bke::BuiltinAttributeProvider.
Definition at line 984 of file geometry_component_curve.cc.
References curve, blender::bke::BuiltinAttributeProvider::name_, splines, and blender::bke::BuiltinPointAttributeProvider< T >::stored_in_custom_data_.
Referenced by blender::bke::BuiltinPointAttributeProvider< T >::try_get_for_read(), and blender::bke::BuiltinPointAttributeProvider< T >::try_get_for_write().
|
inlinefinalvirtual |
Implements blender::bke::BuiltinAttributeProvider.
Definition at line 975 of file geometry_component_curve.cc.
References CD_PROP_INT32, blender::bke::create_point_attribute(), blender::bke::BuiltinAttributeProvider::createable_, curve, and blender::bke::BuiltinAttributeProvider::name_.
|
inlinefinalvirtual |
Implements blender::bke::BuiltinAttributeProvider.
Definition at line 966 of file geometry_component_curve.cc.
References curve, blender::bke::BuiltinAttributeProvider::deletable_, blender::bke::BuiltinAttributeProvider::name_, and blender::bke::remove_point_attribute().
|
inlineoverridevirtual |
Implements blender::bke::BuiltinAttributeProvider.
Definition at line 902 of file geometry_component_curve.cc.
References curve, blender::Span< T >::data(), blender::bke::BuiltinPointAttributeProvider< T >::exists(), ListBase::first, blender::GVArray::ForSpan(), blender::bke::BuiltinPointAttributeProvider< T >::get_span_, blender::bke::point_data_varray(), blender::Span< T >::size(), splines, and T.
|
inlineoverridevirtual |
Implements blender::bke::BuiltinAttributeProvider.
Definition at line 930 of file geometry_component_curve.cc.
References curve, blender::bke::BuiltinAttributeProvider::domain_, blender::bke::BuiltinPointAttributeProvider< T >::exists(), ListBase::first, blender::GVMutableArray::ForSpan(), blender::bke::BuiltinPointAttributeProvider< T >::get_mutable_span_, blender::bke::point_data_varray_mutable(), splines, update(), blender::bke::BuiltinPointAttributeProvider< T >::update_on_write_, and void.
Referenced by blender::bke::PositionAttributeProvider::try_get_for_write().
|
protected |
Definition at line 877 of file geometry_component_curve.cc.
Referenced by blender::bke::BuiltinPointAttributeProvider< T >::try_get_for_write().
|
protected |
Definition at line 876 of file geometry_component_curve.cc.
Referenced by blender::bke::BuiltinPointAttributeProvider< T >::try_get_for_read().
|
protected |
Definition at line 879 of file geometry_component_curve.cc.
Referenced by blender::bke::BuiltinPointAttributeProvider< T >::exists().
|
protected |
Definition at line 878 of file geometry_component_curve.cc.
Referenced by blender::bke::BuiltinPointAttributeProvider< T >::try_get_for_write().