Blender V5.3
bpy_rna_array.cc File Reference
#include <Python.h>
#include "CLG_log.h"
#include "BLI_utildefines.hh"
#include "RNA_types.hh"
#include "bpy_rna.hh"
#include "MEM_guardedalloc.h"
#include "RNA_access.hh"
#include "BPY_extern_clog.hh"
#include "../generic/py_capi_utils.hh"
#include "../mathutils/mathutils.hh"

Go to the source code of this file.

Classes

struct  blender::ItemConvertArgData
struct  blender::ItemConvert_FuncArg

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define USE_MATHUTILS
#define MAX_ARRAY_DIMENSION   10

Typedefs

using blender::ItemConvertFunc = void (*)(const ItemConvertArgData *arg, PyObject *py_data, char *data)
using blender::ItemTypeCheckFunc = bool (*)(PyObject *py_data)
using blender::RNA_SetArrayFunc = void (*)(PointerRNA *ptr, PropertyRNA *prop, const char *data)
using blender::RNA_SetIndexFunc = void (*)(PointerRNA *ptr, PropertyRNA *prop, int index, void *data_item)

Functions

static int blender::validate_array_type (PyObject *seq, int dim, int totdim, int dimsize[], bool is_dynamic, ItemTypeCheckFunc check_item_type, const char *item_type_str, const char *error_prefix)
static int blender::validate_array_type_fast (PyObject *seq_fast, int dim, int totdim, int dimsize[], const bool is_dynamic, ItemTypeCheckFunc check_item_type, const char *item_type_str, const char *error_prefix)
static int blender::count_items (PyObject *seq, int dim)
static int blender::validate_array_length (PyObject *rvalue, PointerRNA *ptr, PropertyRNA *prop, const bool prop_is_param_dyn_alloc, int lvalue_dim, int *r_totitem, const char *error_prefix)
static int blender::validate_array (PyObject *rvalue, PointerRNA *ptr, PropertyRNA *prop, const bool prop_is_param_dyn_alloc, int lvalue_dim, ItemTypeCheckFunc check_item_type, const char *item_type_str, int *r_totitem, const char *error_prefix)
static char * blender::copy_value_single (PyObject *item, PointerRNA *ptr, PropertyRNA *prop, char *data, uint item_size, int *index, const ItemConvert_FuncArg *convert_item, RNA_SetIndexFunc rna_set_index)
static char * blender::copy_values_fast (PyObject *seq, PointerRNA *ptr, PropertyRNA *prop, int dim, int totdim, char *data, uint item_size, int *index, const ItemConvert_FuncArg *convert_item, RNA_SetIndexFunc rna_set_index)
static char * blender::copy_values (PyObject *seq, PointerRNA *ptr, PropertyRNA *prop, int dim, char *data, uint item_size, int *index, const ItemConvert_FuncArg *convert_item, RNA_SetIndexFunc rna_set_index)
static int blender::py_to_array (PyObject *seq, PointerRNA *ptr, PropertyRNA *prop, char *param_data, ItemTypeCheckFunc check_item_type, const char *item_type_str, int item_size, const ItemConvert_FuncArg *convert_item, RNA_SetArrayFunc rna_set_array, const char *error_prefix)
static int blender::py_to_array_index (PyObject *py, PointerRNA *ptr, PropertyRNA *prop, int lvalue_dim, int arrayoffset, int index, ItemTypeCheckFunc check_item_type, const char *item_type_str, const ItemConvert_FuncArg *convert_item, RNA_SetIndexFunc rna_set_index, const char *error_prefix)
static void blender::py_to_float (const ItemConvertArgData *arg, PyObject *py, char *data)
static void blender::py_to_int (const ItemConvertArgData *arg, PyObject *py, char *data)
static void blender::py_to_bool (const ItemConvertArgData *, PyObject *py, char *data)
static bool blender::py_float_check (PyObject *py)
static bool blender::py_int_check (PyObject *py)
static bool blender::py_bool_check (PyObject *py)
static void blender::float_set_index (PointerRNA *ptr, PropertyRNA *prop, int index, void *value)
static void blender::int_set_index (PointerRNA *ptr, PropertyRNA *prop, int index, void *value)
static void blender::bool_set_index (PointerRNA *ptr, PropertyRNA *prop, int index, void *value)
static void blender::convert_item_init_float (PointerRNA *ptr, PropertyRNA *prop, ItemConvert_FuncArg *convert_item)
static void blender::convert_item_init_int (PointerRNA *ptr, PropertyRNA *prop, ItemConvert_FuncArg *convert_item)
static void blender::convert_item_init_bool (PointerRNA *, PropertyRNA *, ItemConvert_FuncArg *convert_item)
int blender::pyrna_py_to_array (PointerRNA *ptr, PropertyRNA *prop, char *param_data, PyObject *py, const char *error_prefix)
int blender::pyrna_py_to_array_index (PointerRNA *ptr, PropertyRNA *prop, int arraydim, int arrayoffset, int index, PyObject *py, const char *error_prefix)
PyObject * blender::pyrna_array_index (PointerRNA *ptr, PropertyRNA *prop, int index)
PyObject * blender::pyrna_py_from_array_index (BPy_PropertyArrayRNA *self, PointerRNA *ptr, PropertyRNA *prop, int index)
PyObject * blender::pyrna_py_from_array (PointerRNA *ptr, PropertyRNA *prop)
int blender::pyrna_array_contains_py (PointerRNA *ptr, PropertyRNA *prop, PyObject *value)

Detailed Description

This file deals with array access for 'BPy_PropertyArrayRNA' from bpy_rna.cc.

Definition in file bpy_rna_array.cc.

Macro Definition Documentation

◆ MAX_ARRAY_DIMENSION

#define MAX_ARRAY_DIMENSION   10

◆ USE_MATHUTILS

#define USE_MATHUTILS

Definition at line 29 of file bpy_rna_array.cc.