Blender  V3.3
Functions | Variables
rna_attribute.c File Reference
#include <stdlib.h>
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "rna_internal.h"
#include "DNA_curves_types.h"
#include "DNA_customdata_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_pointcloud_types.h"
#include "BKE_attribute.h"
#include "BKE_customdata.h"
#include "WM_types.h"

Go to the source code of this file.

Functions

static void rna_def_attribute_float (BlenderRNA *brna)
 
static void rna_def_attribute_float_vector (BlenderRNA *brna)
 
static void rna_def_attribute_float_color (BlenderRNA *brna)
 
static void rna_def_attribute_byte_color (BlenderRNA *brna)
 
static void rna_def_attribute_int (BlenderRNA *brna)
 
static void rna_def_attribute_string (BlenderRNA *brna)
 
static void rna_def_attribute_bool (BlenderRNA *brna)
 
static void rna_def_attribute_int8 (BlenderRNA *brna)
 
static void rna_def_attribute_float2 (BlenderRNA *brna)
 
static void rna_def_attribute (BlenderRNA *brna)
 
static void rna_def_attribute_group (BlenderRNA *brna)
 
void rna_def_attributes_common (StructRNA *srna)
 
void RNA_def_attribute (BlenderRNA *brna)
 

Variables

const EnumPropertyItem rna_enum_attribute_type_items []
 
const EnumPropertyItem rna_enum_color_attribute_type_items []
 
const EnumPropertyItem rna_enum_attribute_type_with_auto_items []
 
const EnumPropertyItem rna_enum_attribute_domain_items []
 
const EnumPropertyItem rna_enum_attribute_domain_without_corner_items []
 
const EnumPropertyItem rna_enum_attribute_domain_with_auto_items []
 
const EnumPropertyItem rna_enum_color_attribute_domain_items []
 
const EnumPropertyItem rna_enum_attribute_curves_domain_items []
 

Function Documentation

◆ rna_def_attribute()

static void rna_def_attribute ( BlenderRNA brna)
static

◆ RNA_def_attribute()

void RNA_def_attribute ( BlenderRNA brna)

Definition at line 1089 of file rna_attribute.c.

References rna_def_attribute(), and rna_def_attribute_group().

◆ rna_def_attribute_bool()

static void rna_def_attribute_bool ( BlenderRNA brna)
static

◆ rna_def_attribute_byte_color()

static void rna_def_attribute_byte_color ( BlenderRNA brna)
static

◆ rna_def_attribute_float()

static void rna_def_attribute_float ( BlenderRNA brna)
static

◆ rna_def_attribute_float2()

static void rna_def_attribute_float2 ( BlenderRNA brna)
static

◆ rna_def_attribute_float_color()

static void rna_def_attribute_float_color ( BlenderRNA brna)
static

◆ rna_def_attribute_float_vector()

static void rna_def_attribute_float_vector ( BlenderRNA brna)
static

◆ rna_def_attribute_group()

static void rna_def_attribute_group ( BlenderRNA brna)
static

◆ rna_def_attribute_int()

static void rna_def_attribute_int ( BlenderRNA brna)
static

◆ rna_def_attribute_int8()

static void rna_def_attribute_int8 ( BlenderRNA brna)
static

◆ rna_def_attribute_string()

static void rna_def_attribute_string ( BlenderRNA brna)
static

◆ rna_def_attributes_common()

void rna_def_attributes_common ( StructRNA srna)

Variable Documentation

◆ rna_enum_attribute_curves_domain_items

const EnumPropertyItem rna_enum_attribute_curves_domain_items[]
Initial value:
= {
{ATTR_DOMAIN_POINT, "POINT", 0, "Control Point", ""},
{ATTR_DOMAIN_CURVE, "CURVE", 0, "Curve", ""},
{0, NULL, 0, NULL, NULL}}
@ ATTR_DOMAIN_CURVE
Definition: BKE_attribute.h:31
@ ATTR_DOMAIN_POINT
Definition: BKE_attribute.h:27

Definition at line 109 of file rna_attribute.c.

Referenced by blender::ed::curves::CURVES_OT_set_selection_domain(), and rna_def_curves().

◆ rna_enum_attribute_domain_items

const EnumPropertyItem rna_enum_attribute_domain_items[]
Initial value:
= {
{ATTR_DOMAIN_POINT, "POINT", 0, "Point", "Attribute on point"},
{ATTR_DOMAIN_EDGE, "EDGE", 0, "Edge", "Attribute on mesh edge"},
{ATTR_DOMAIN_FACE, "FACE", 0, "Face", "Attribute on mesh faces"},
{ATTR_DOMAIN_CORNER, "CORNER", 0, "Face Corner", "Attribute on mesh face corner"},
{ATTR_DOMAIN_CURVE, "CURVE", 0, "Spline", "Attribute on spline"},
{ATTR_DOMAIN_INSTANCE, "INSTANCE", 0, "Instance", "Attribute on instance"},
{0, NULL, 0, NULL, NULL},
}
@ ATTR_DOMAIN_INSTANCE
Definition: BKE_attribute.h:32
@ ATTR_DOMAIN_FACE
Definition: BKE_attribute.h:29
@ ATTR_DOMAIN_CORNER
Definition: BKE_attribute.h:30
@ ATTR_DOMAIN_EDGE
Definition: BKE_attribute.h:28

Definition at line 70 of file rna_attribute.c.

Referenced by blender::ui::attribute_domain_string(), def_geo_accumulate_field(), def_geo_attribute_capture(), def_geo_attribute_statistic(), def_geo_field_at_index(), def_geo_interpolate_domain(), def_geo_store_named_attribute(), def_geo_transfer_attribute(), blender::ed::geometry::GEOMETRY_OT_attribute_add(), blender::ed::geometry::GEOMETRY_OT_attribute_convert(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), rna_def_attribute(), rna_def_attribute_group(), rna_def_node_socket_interface(), and rna_def_space_spreadsheet().

◆ rna_enum_attribute_domain_with_auto_items

const EnumPropertyItem rna_enum_attribute_domain_with_auto_items[]
Initial value:
= {
{ATTR_DOMAIN_AUTO, "AUTO", 0, "Auto", ""},
{ATTR_DOMAIN_POINT, "POINT", 0, "Point", "Attribute on point"},
{ATTR_DOMAIN_EDGE, "EDGE", 0, "Edge", "Attribute on mesh edge"},
{ATTR_DOMAIN_FACE, "FACE", 0, "Face", "Attribute on mesh faces"},
{ATTR_DOMAIN_CORNER, "CORNER", 0, "Face Corner", "Attribute on mesh face corner"},
{ATTR_DOMAIN_CURVE, "CURVE", 0, "Spline", "Attribute on spline"},
{ATTR_DOMAIN_INSTANCE, "INSTANCE", 0, "Instance", "Attribute on instance"},
{0, NULL, 0, NULL, NULL},
}
@ ATTR_DOMAIN_AUTO
Definition: BKE_attribute.h:26

Definition at line 93 of file rna_attribute.c.

◆ rna_enum_attribute_domain_without_corner_items

const EnumPropertyItem rna_enum_attribute_domain_without_corner_items[]
Initial value:
= {
{ATTR_DOMAIN_POINT, "POINT", 0, "Point", "Attribute on point"},
{ATTR_DOMAIN_EDGE, "EDGE", 0, "Edge", "Attribute on mesh edge"},
{ATTR_DOMAIN_FACE, "FACE", 0, "Face", "Attribute on mesh faces"},
{ATTR_DOMAIN_CURVE, "CURVE", 0, "Spline", "Attribute on spline"},
{ATTR_DOMAIN_INSTANCE, "INSTANCE", 0, "Instance", "Attribute on instance"},
{0, NULL, 0, NULL, NULL},
}

Definition at line 84 of file rna_attribute.c.

Referenced by def_geo_delete_geometry(), and def_geo_separate_geometry().

◆ rna_enum_attribute_type_items

const EnumPropertyItem rna_enum_attribute_type_items[]
Initial value:
= {
{CD_PROP_FLOAT, "FLOAT", 0, "Float", "Floating-point value"},
{CD_PROP_INT32, "INT", 0, "Integer", "32-bit integer"},
{CD_PROP_FLOAT3, "FLOAT_VECTOR", 0, "Vector", "3D vector with floating-point values"},
{CD_PROP_COLOR, "FLOAT_COLOR", 0, "Color", "RGBA color with 32-bit floating-point values"},
"BYTE_COLOR",
0,
"Byte Color",
"RGBA color with 8-bit positive integer values"},
{CD_PROP_STRING, "STRING", 0, "String", "Text string"},
{CD_PROP_BOOL, "BOOLEAN", 0, "Boolean", "True or false"},
{CD_PROP_FLOAT2, "FLOAT2", 0, "2D Vector", "2D vector with floating-point values"},
{CD_PROP_INT8, "INT8", 0, "8-Bit Integer", "Smaller integer with a range from -128 to 127"},
{0, NULL, 0, NULL, NULL},
}
@ CD_PROP_BYTE_COLOR
@ CD_PROP_FLOAT
@ CD_PROP_FLOAT3
@ CD_PROP_COLOR
@ CD_PROP_INT8
@ CD_PROP_INT32
@ CD_PROP_FLOAT2
@ CD_PROP_BOOL
@ CD_PROP_STRING

Definition at line 26 of file rna_attribute.c.

Referenced by blender::ui::attribute_data_type_string(), def_fn_random_value(), def_geo_accumulate_field(), def_geo_attribute_capture(), def_geo_attribute_statistic(), def_geo_field_at_index(), def_geo_input_named_attribute(), def_geo_interpolate_domain(), def_geo_raycast(), def_geo_store_named_attribute(), def_geo_transfer_attribute(), def_geo_viewer(), blender::ed::geometry::GEOMETRY_OT_attribute_add(), blender::ed::geometry::GEOMETRY_OT_attribute_convert(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), rna_def_attribute(), and rna_def_attribute_group().

◆ rna_enum_attribute_type_with_auto_items

const EnumPropertyItem rna_enum_attribute_type_with_auto_items[]
Initial value:
= {
{CD_AUTO_FROM_NAME, "AUTO", 0, "Auto", ""},
{CD_PROP_FLOAT, "FLOAT", 0, "Float", "Floating-point value"},
{CD_PROP_INT32, "INT", 0, "Integer", "32-bit integer"},
{CD_PROP_FLOAT3, "FLOAT_VECTOR", 0, "Vector", "3D vector with floating-point values"},
{CD_PROP_COLOR, "FLOAT_COLOR", 0, "Color", "RGBA color with 32-bit floating-point values"},
"BYTE_COLOR",
0,
"Byte Color",
"RGBA color with 8-bit positive integer values"},
{CD_PROP_STRING, "STRING", 0, "String", "Text string"},
{CD_PROP_BOOL, "BOOLEAN", 0, "Boolean", "True or false"},
{CD_PROP_FLOAT2, "FLOAT2", 0, "2D Vector", "2D vector with floating-point values"},
{CD_PROP_INT8, "INT8", 0, "8-Bit Integer", "Smaller integer with a range from -128 to 127"},
{0, NULL, 0, NULL, NULL},
}
@ CD_AUTO_FROM_NAME

Definition at line 52 of file rna_attribute.c.

◆ rna_enum_color_attribute_domain_items

const EnumPropertyItem rna_enum_color_attribute_domain_items[]
Initial value:
= {
{ATTR_DOMAIN_POINT, "POINT", 0, "Vertex", ""},
{ATTR_DOMAIN_CORNER, "CORNER", 0, "Face Corner", ""},
{0, NULL, 0, NULL, NULL}}

Definition at line 104 of file rna_attribute.c.

Referenced by blender::ed::geometry::GEOMETRY_OT_color_attribute_add().

◆ rna_enum_color_attribute_type_items

const EnumPropertyItem rna_enum_color_attribute_type_items[]
Initial value:
= {
{CD_PROP_COLOR, "FLOAT_COLOR", 0, "Color", "RGBA color 32-bit floating-point values"},
"BYTE_COLOR",
0,
"Byte Color",
"RGBA color with 8-bit positive integer values"},
{0, NULL, 0, NULL, NULL}}

Definition at line 43 of file rna_attribute.c.

Referenced by blender::ed::geometry::GEOMETRY_OT_color_attribute_add().