Blender  V2.93
Typedefs | Enumerations | Functions
BKE_attribute.h File Reference

Generic geometry attributes built on CustomData. More...

#include "BLI_sys_types.h"
#include "BKE_customdata.h"

Go to the source code of this file.

Typedefs

typedef enum AttributeDomain AttributeDomain
 

Enumerations

enum  AttributeDomain {
  ATTR_DOMAIN_AUTO = -1 , ATTR_DOMAIN_POINT = 0 , ATTR_DOMAIN_EDGE = 1 , ATTR_DOMAIN_CORNER = 2 ,
  ATTR_DOMAIN_FACE = 3 , ATTR_DOMAIN_CURVE = 4 , ATTR_DOMAIN_NUM
}
 

Functions

bool BKE_id_attributes_supported (struct ID *id)
 
struct CustomDataLayerBKE_id_attribute_new (struct ID *id, const char *name, const int type, const AttributeDomain domain, struct ReportList *reports)
 
bool BKE_id_attribute_remove (struct ID *id, struct CustomDataLayer *layer, struct ReportList *reports)
 
AttributeDomain BKE_id_attribute_domain (struct ID *id, struct CustomDataLayer *layer)
 
int BKE_id_attribute_data_length (struct ID *id, struct CustomDataLayer *layer)
 
bool BKE_id_attribute_required (struct ID *id, struct CustomDataLayer *layer)
 
bool BKE_id_attribute_rename (struct ID *id, struct CustomDataLayer *layer, const char *new_name, struct ReportList *reports)
 
int BKE_id_attributes_length (struct ID *id, const CustomDataMask mask)
 
struct CustomDataLayerBKE_id_attributes_active_get (struct ID *id)
 
void BKE_id_attributes_active_set (struct ID *id, struct CustomDataLayer *layer)
 
int * BKE_id_attributes_active_index_p (struct ID *id)
 
CustomDataBKE_id_attributes_iterator_next_domain (struct ID *id, struct CustomDataLayer *layers)
 

Detailed Description

Generic geometry attributes built on CustomData.

Definition in file BKE_attribute.h.

Typedef Documentation

◆ AttributeDomain

Enumeration Type Documentation

◆ AttributeDomain

Enumerator
ATTR_DOMAIN_AUTO 
ATTR_DOMAIN_POINT 
ATTR_DOMAIN_EDGE 
ATTR_DOMAIN_CORNER 
ATTR_DOMAIN_FACE 
ATTR_DOMAIN_CURVE 
ATTR_DOMAIN_NUM 

Definition at line 41 of file BKE_attribute.h.

Function Documentation

◆ BKE_id_attribute_data_length()

int BKE_id_attribute_data_length ( struct ID id,
struct CustomDataLayer layer 
)

◆ BKE_id_attribute_domain()

AttributeDomain BKE_id_attribute_domain ( struct ID id,
struct CustomDataLayer layer 
)

◆ BKE_id_attribute_new()

struct CustomDataLayer* BKE_id_attribute_new ( struct ID id,
const char *  name,
const int  type,
const AttributeDomain  domain,
struct ReportList reports 
)

◆ BKE_id_attribute_remove()

bool BKE_id_attribute_remove ( struct ID id,
struct CustomDataLayer layer,
struct ReportList reports 
)

◆ BKE_id_attribute_rename()

bool BKE_id_attribute_rename ( struct ID id,
struct CustomDataLayer layer,
const char *  new_name,
struct ReportList reports 
)

◆ BKE_id_attribute_required()

bool BKE_id_attribute_required ( struct ID id,
struct CustomDataLayer layer 
)

◆ BKE_id_attributes_active_get()

struct CustomDataLayer* BKE_id_attributes_active_get ( struct ID id)

◆ BKE_id_attributes_active_index_p()

int* BKE_id_attributes_active_index_p ( struct ID id)

Definition at line 293 of file attribute.c.

References GS, id, ID_HA, ID_ME, ID_PT, ID::name, and NULL.

Referenced by BKE_id_attributes_active_get(), and BKE_id_attributes_active_set().

◆ BKE_id_attributes_active_set()

void BKE_id_attributes_active_set ( struct ID id,
struct CustomDataLayer layer 
)

◆ BKE_id_attributes_iterator_next_domain()

CustomData* BKE_id_attributes_iterator_next_domain ( struct ID id,
struct CustomDataLayer layers 
)

◆ BKE_id_attributes_length()

int BKE_id_attributes_length ( struct ID id,
const CustomDataMask  mask 
)

◆ BKE_id_attributes_supported()

bool BKE_id_attributes_supported ( struct ID id)

Definition at line 104 of file attribute.c.

References ATTR_DOMAIN_NUM, and get_domains().

Referenced by geometry_attributes_poll().