Blender
V3.3
|
#include <attribute_access_intern.hh>
Public Types | |
enum | CreatableEnum { Creatable , NonCreatable } |
enum | WritableEnum { Writable , Readonly } |
enum | DeletableEnum { Deletable , NonDeletable } |
Public Member Functions | |
BuiltinAttributeProvider (std::string name, const eAttrDomain domain, const eCustomDataType data_type, const CreatableEnum createable, const WritableEnum writable, const DeletableEnum deletable) | |
virtual GVArray | try_get_for_read (const void *owner) const =0 |
virtual GAttributeWriter | try_get_for_write (void *owner) const =0 |
virtual bool | try_delete (void *owner) const =0 |
virtual bool | try_create (void *onwer, const AttributeInit &initializer) const =0 |
virtual bool | exists (const void *owner) const =0 |
StringRefNull | name () const |
eAttrDomain | domain () const |
eCustomDataType | data_type () const |
Protected Attributes | |
const std::string | name_ |
const eAttrDomain | domain_ |
const eCustomDataType | data_type_ |
const CreatableEnum | createable_ |
const WritableEnum | writable_ |
const DeletableEnum | deletable_ |
A BuiltinAttributeProvider is responsible for exactly one attribute on a geometry component. The attribute is identified by its name and has a fixed domain and type. Builtin attributes do not follow the same loose rules as other attributes, because they are mapped to internal "legacy" data structures. For example, some builtin attributes cannot be deleted.
Definition at line 34 of file attribute_access_intern.hh.
Enumerator | |
---|---|
Creatable | |
NonCreatable |
Definition at line 37 of file attribute_access_intern.hh.
Enumerator | |
---|---|
Deletable | |
NonDeletable |
Definition at line 45 of file attribute_access_intern.hh.
Enumerator | |
---|---|
Writable | |
Readonly |
Definition at line 41 of file attribute_access_intern.hh.
|
inline |
Definition at line 59 of file attribute_access_intern.hh.
|
inline |
Definition at line 90 of file attribute_access_intern.hh.
References data_type_.
|
inline |
Definition at line 85 of file attribute_access_intern.hh.
References domain_.
|
inline |
Definition at line 80 of file attribute_access_intern.hh.
References name_.
|
pure virtual |
|
pure virtual |
Implemented in blender::bke::BezierHandleAttributeProvider, blender::bke::BuiltinPointAttributeProvider< T >, blender::bke::BuiltinPointAttributeProvider< float3 >, blender::bke::NormalAttributeProvider, blender::bke::InstancePositionAttributeProvider, blender::bke::BuiltinSplineAttributeProvider, and blender::bke::BuiltinCustomDataLayerProvider.
|
pure virtual |
Implemented in blender::bke::BezierHandleAttributeProvider, blender::bke::BuiltinPointAttributeProvider< T >, blender::bke::BuiltinPointAttributeProvider< float3 >, blender::bke::InstancePositionAttributeProvider, blender::bke::PositionAttributeProvider, blender::bke::BuiltinSplineAttributeProvider, and blender::bke::BuiltinCustomDataLayerProvider.
|
protected |
Definition at line 54 of file attribute_access_intern.hh.
Referenced by blender::bke::BuiltinCustomDataLayerProvider::try_create(), and blender::bke::BuiltinPointAttributeProvider< T >::try_create().
|
protected |
Definition at line 53 of file attribute_access_intern.hh.
Referenced by data_type(), and blender::bke::BuiltinCustomDataLayerProvider::try_create().
|
protected |
Definition at line 56 of file attribute_access_intern.hh.
Referenced by blender::bke::BuiltinCustomDataLayerProvider::try_delete(), and blender::bke::BuiltinPointAttributeProvider< T >::try_delete().
|
protected |
Definition at line 52 of file attribute_access_intern.hh.
Referenced by domain(), blender::bke::BuiltinCustomDataLayerProvider::try_get_for_write(), blender::bke::BuiltinSplineAttributeProvider::try_get_for_write(), blender::bke::PositionAttributeProvider::try_get_for_write(), blender::bke::BuiltinPointAttributeProvider< T >::try_get_for_write(), and blender::bke::BezierHandleAttributeProvider::try_get_for_write().
|
protected |
Definition at line 51 of file attribute_access_intern.hh.
Referenced by blender::bke::BuiltinCustomDataLayerProvider::exists(), blender::bke::BuiltinPointAttributeProvider< T >::exists(), name(), blender::bke::BuiltinCustomDataLayerProvider::try_create(), blender::bke::BuiltinPointAttributeProvider< T >::try_create(), blender::bke::BuiltinCustomDataLayerProvider::try_delete(), blender::bke::BuiltinPointAttributeProvider< T >::try_delete(), blender::bke::BuiltinCustomDataLayerProvider::try_get_for_read(), and blender::bke::BuiltinCustomDataLayerProvider::try_get_for_write().
|
protected |
Definition at line 55 of file attribute_access_intern.hh.
Referenced by blender::bke::BuiltinCustomDataLayerProvider::try_get_for_write(), and blender::bke::BuiltinSplineAttributeProvider::try_get_for_write().