Blender  V3.3
Namespaces | Functions | Variables
curves.cc File Reference
#include <cmath>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_curves_types.h"
#include "DNA_defaults.h"
#include "DNA_material_types.h"
#include "DNA_object_types.h"
#include "BLI_bounds.hh"
#include "BLI_index_range.hh"
#include "BLI_listbase.h"
#include "BLI_math_base.h"
#include "BLI_math_vector.hh"
#include "BLI_rand.hh"
#include "BLI_span.hh"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLI_vector.hh"
#include "BKE_anim_data.h"
#include "BKE_curves.hh"
#include "BKE_customdata.h"
#include "BKE_geometry_set.hh"
#include "BKE_global.h"
#include "BKE_idtype.h"
#include "BKE_lib_id.h"
#include "BKE_lib_query.h"
#include "BKE_lib_remap.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BLT_translation.h"
#include "DEG_depsgraph_query.h"
#include "BLO_read_write.h"

Go to the source code of this file.

Namespaces

 blender
 
 blender::bke
 

Functions

static void curves_init_data (ID *id)
 
static void curves_copy_data (Main *UNUSED(bmain), ID *id_dst, const ID *id_src, const int flag)
 
static void curves_free_data (ID *id)
 
static void curves_foreach_id (ID *id, LibraryForeachIDData *data)
 
static void curves_blend_write (BlendWriter *writer, ID *id, const void *id_address)
 
static void curves_blend_read_data (BlendDataReader *reader, ID *id)
 
static void curves_blend_read_lib (BlendLibReader *reader, ID *id)
 
static void curves_blend_read_expand (BlendExpander *expander, ID *id)
 
voidBKE_curves_add (Main *bmain, const char *name)
 
BoundBoxBKE_curves_boundbox_get (Object *ob)
 
bool BKE_curves_customdata_required (const Curves *UNUSED(curves), const char *name)
 
CurvesBKE_curves_copy_for_eval (Curves *curves_src, bool reference)
 
static void curves_evaluate_modifiers (struct Depsgraph *depsgraph, struct Scene *scene, Object *object, GeometrySet &geometry_set)
 
void BKE_curves_data_update (struct Depsgraph *depsgraph, struct Scene *scene, Object *object)
 
void BKE_curves_batch_cache_dirty_tag (Curves *curves, int mode)
 
void BKE_curves_batch_cache_free (Curves *curves)
 
Curvesblender::bke::curves_new_nomain (int points_num, int curves_num)
 
Curvesblender::bke::curves_new_nomain_single (int points_num, CurveType type)
 
Curvesblender::bke::curves_new_nomain (CurvesGeometry curves)
 
void blender::bke::curves_copy_parameters (const Curves &src, Curves &dst)
 

Variables

static const char * ATTR_POSITION = "position"
 
IDTypeInfo IDType_ID_CV
 
void(* BKE_curves_batch_cache_dirty_tag_cb )(Curves *curves, int mode) = nullptr
 
void(* BKE_curves_batch_cache_free_cb )(Curves *curves) = nullptr
 

Function Documentation

◆ BKE_curves_add()

void* BKE_curves_add ( Main bmain,
const char *  name 
)

Definition at line 231 of file curves.cc.

References BKE_id_new(), curves, and ID_CV.

Referenced by BKE_object_obdata_add_from_type().

◆ BKE_curves_batch_cache_dirty_tag()

void BKE_curves_batch_cache_dirty_tag ( Curves curves,
int  mode 
)

Definition at line 351 of file curves.cc.

References BKE_curves_batch_cache_dirty_tag_cb, and curves.

Referenced by BKE_object_data_batch_cache_dirty_tag().

◆ BKE_curves_batch_cache_free()

void BKE_curves_batch_cache_free ( Curves curves)

Definition at line 358 of file curves.cc.

References BKE_curves_batch_cache_free_cb, and curves.

Referenced by curves_free_data().

◆ BKE_curves_boundbox_get()

BoundBox* BKE_curves_boundbox_get ( Object ob)

◆ BKE_curves_copy_for_eval()

Curves* BKE_curves_copy_for_eval ( Curves curves_src,
bool  reference 
)

◆ BKE_curves_customdata_required()

bool BKE_curves_customdata_required ( const Curves UNUSEDcurves,
const char *  name 
)

Definition at line 266 of file curves.cc.

References ATTR_POSITION, and STREQ.

◆ BKE_curves_data_update()

void BKE_curves_data_update ( struct Depsgraph depsgraph,
struct Scene scene,
Object object 
)

◆ curves_blend_read_data()

static void curves_blend_read_data ( BlendDataReader reader,
ID id 
)
static

◆ curves_blend_read_expand()

static void curves_blend_read_expand ( BlendExpander expander,
ID id 
)
static

Definition at line 192 of file curves.cc.

References Freestyle::a, BLO_expand, and curves.

◆ curves_blend_read_lib()

static void curves_blend_read_lib ( BlendLibReader reader,
ID id 
)
static

Definition at line 183 of file curves.cc.

References Freestyle::a, BLO_read_id_address, and curves.

◆ curves_blend_write()

static void curves_blend_write ( BlendWriter writer,
ID id,
const void id_address 
)
static

◆ curves_copy_data()

static void curves_copy_data ( Main UNUSEDbmain,
ID id_dst,
const ID id_src,
const int  flag 
)
static

◆ curves_evaluate_modifiers()

static void curves_evaluate_modifiers ( struct Depsgraph depsgraph,
struct Scene scene,
Object object,
GeometrySet geometry_set 
)
static

◆ curves_foreach_id()

static void curves_foreach_id ( ID id,
LibraryForeachIDData data 
)
static

Definition at line 114 of file curves.cc.

References BKE_LIB_FOREACHID_PROCESS_IDSUPER, curves, data, IDWALK_CB_NOP, and IDWALK_CB_USER.

◆ curves_free_data()

static void curves_free_data ( ID id)
static

◆ curves_init_data()

static void curves_init_data ( ID id)
static

Variable Documentation

◆ ATTR_POSITION

const char* ATTR_POSITION = "position"
static

◆ BKE_curves_batch_cache_dirty_tag_cb

void(* BKE_curves_batch_cache_dirty_tag_cb) (Curves *curves, int mode) ( Curves curves,
int  mode 
) = nullptr

Definition at line 348 of file curves.cc.

Referenced by BKE_curves_batch_cache_dirty_tag(), and DRW_engines_register().

◆ BKE_curves_batch_cache_free_cb

void(* BKE_curves_batch_cache_free_cb) (Curves *curves) ( Curves curves) = nullptr

Definition at line 349 of file curves.cc.

Referenced by BKE_curves_batch_cache_free(), and DRW_engines_register().

◆ IDType_ID_CV

IDTypeInfo IDType_ID_CV
Initial value:
= {
sizeof(Curves),
"Curves",
"hair_curves",
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
}
@ IDTYPE_FLAGS_APPEND_IS_REUSABLE
Definition: BKE_idtype.h:39
#define BLT_I18NCONTEXT_ID_CURVES
@ INDEX_ID_CV
Definition: DNA_ID.h:1029
#define FILTER_ID_CV
Definition: DNA_ID.h:930
@ ID_CV
Definition: DNA_ID_enums.h:81
struct Curves Curves
static void curves_copy_data(Main *UNUSED(bmain), ID *id_dst, const ID *id_src, const int flag)
Definition: curves.cc:66
static void curves_blend_read_lib(BlendLibReader *reader, ID *id)
Definition: curves.cc:183
static void curves_blend_read_data(BlendDataReader *reader, ID *id)
Definition: curves.cc:160
static void curves_init_data(ID *id)
Definition: curves.cc:56
static void curves_foreach_id(ID *id, LibraryForeachIDData *data)
Definition: curves.cc:114
static void curves_blend_read_expand(BlendExpander *expander, ID *id)
Definition: curves.cc:192
static void curves_blend_write(BlendWriter *writer, ID *id, const void *id_address)
Definition: curves.cc:123
static void curves_free_data(ID *id)
Definition: curves.cc:101

Definition at line 201 of file curves.cc.