Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_collection_types.h"
#include "DNA_freestyle_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_string_utils.h"
#include "BKE_freestyle.h"
#include "BKE_lib_id.h"
#include "BKE_linestyle.h"
Go to the source code of this file.
|
static |
Definition at line 157 of file freestyle.c.
References MEM_callocN.
Referenced by BKE_freestyle_config_copy(), and BKE_freestyle_lineset_add().
|
static |
Definition at line 109 of file freestyle.c.
References MEM_callocN.
Referenced by BKE_freestyle_config_copy(), and BKE_freestyle_module_add().
void BKE_freestyle_config_copy | ( | FreestyleConfig * | new_config, |
const FreestyleConfig * | config, | ||
const int | flag | ||
) |
Definition at line 62 of file freestyle.c.
References alloc_lineset(), alloc_module(), BLI_addtail(), BLI_listbase_clear(), copy_lineset(), copy_module(), FreestyleConfig::crease_angle, FreestyleConfig::dkr_epsilon, ListBase::first, FreestyleConfig::flags, FreestyleConfig::linesets, FreestyleConfig::mode, module, FreestyleConfig::modules, FreestyleLineSet::next, and FreestyleConfig::sphere_radius.
void BKE_freestyle_config_free | ( | FreestyleConfig * | config, |
const bool | do_id_user | ||
) |
Definition at line 40 of file freestyle.c.
References BLI_freelistN(), ListBase::first, FreestyleLineSet::group, Collection::id, FreestyleLineStyle::id, id_us_min(), FreestyleConfig::linesets, FreestyleLineSet::linestyle, FreestyleConfig::modules, FreestyleLineSet::next, and NULL.
Referenced by BKE_view_layer_free_ex(), do_version_layers_to_collections(), and do_versions_after_linking_280().
void BKE_freestyle_config_init | ( | FreestyleConfig * | config | ) |
Definition at line 27 of file freestyle.c.
References BLI_listbase_clear(), FreestyleConfig::crease_angle, DEG2RADF, FreestyleConfig::dkr_epsilon, FreestyleConfig::flags, FREESTYLE_CONTROL_EDITOR_MODE, FreestyleConfig::linesets, FreestyleConfig::mode, FreestyleConfig::modules, and FreestyleConfig::sphere_radius.
Referenced by blo_do_versions_280(), and view_layer_add().
FreestyleLineSet* BKE_freestyle_lineset_add | ( | struct Main * | bmain, |
FreestyleConfig * | config, | ||
const char * | name | ||
) |
Definition at line 162 of file freestyle.c.
References alloc_lineset(), BKE_freestyle_lineset_set_active_index(), BKE_freestyle_lineset_unique_name(), BKE_linestyle_new(), BLI_addtail(), BLI_listbase_count(), BLI_strncpy(), FreestyleLineSet::edge_types, FreestyleLineSet::exclude_edge_types, FreestyleLineSet::flags, FREESTYLE_FE_BORDER, FREESTYLE_FE_CREASE, FREESTYLE_FE_SILHOUETTE, FREESTYLE_LINESET_ENABLED, FREESTYLE_QI_VISIBLE, FREESTYLE_SEL_EDGE_TYPES, FREESTYLE_SEL_IMAGE_BORDER, FREESTYLE_SEL_VISIBILITY, FreestyleLineSet::group, FreestyleConfig::linesets, FreestyleLineSet::linestyle, FreestyleLineSet::name, NULL, FreestyleLineSet::qi, FreestyleLineSet::qi_end, FreestyleLineSet::qi_start, and FreestyleLineSet::selection.
bool BKE_freestyle_lineset_delete | ( | FreestyleConfig * | config, |
FreestyleLineSet * | lineset | ||
) |
Definition at line 196 of file freestyle.c.
References BKE_freestyle_lineset_set_active_index(), BLI_findindex(), BLI_remlink(), FreestyleLineSet::group, Collection::id, FreestyleLineStyle::id, id_us_min(), FreestyleConfig::linesets, FreestyleLineSet::linestyle, and MEM_freeN.
Referenced by FRS_delete_active_lineset().
FreestyleLineSet* BKE_freestyle_lineset_get_active | ( | FreestyleConfig * | config | ) |
Definition at line 213 of file freestyle.c.
References ListBase::first, FreestyleLineSet::flags, FREESTYLE_LINESET_CURRENT, FreestyleConfig::linesets, FreestyleLineSet::next, and NULL.
Referenced by BKE_linestyle_active_from_view_layer(), FRS_copy_active_lineset(), FRS_delete_active_lineset(), FRS_move_active_lineset(), and FRS_paste_active_lineset().
short BKE_freestyle_lineset_get_active_index | ( | FreestyleConfig * | config | ) |
Definition at line 225 of file freestyle.c.
References ListBase::first, FreestyleLineSet::flags, FREESTYLE_LINESET_CURRENT, FreestyleConfig::linesets, and FreestyleLineSet::next.
void BKE_freestyle_lineset_set_active_index | ( | FreestyleConfig * | config, |
short | index | ||
) |
Definition at line 239 of file freestyle.c.
References ListBase::first, FreestyleLineSet::flags, FREESTYLE_LINESET_CURRENT, FreestyleConfig::linesets, and FreestyleLineSet::next.
Referenced by BKE_freestyle_lineset_add(), and BKE_freestyle_lineset_delete().
void BKE_freestyle_lineset_unique_name | ( | FreestyleConfig * | config, |
FreestyleLineSet * | lineset | ||
) |
Definition at line 147 of file freestyle.c.
References BLI_uniquename(), FreestyleConfig::linesets, and FreestyleLineSet::name.
Referenced by BKE_freestyle_lineset_add(), and FRS_paste_active_lineset().
FreestyleModuleConfig* BKE_freestyle_module_add | ( | FreestyleConfig * | config | ) |
Definition at line 115 of file freestyle.c.
References alloc_module(), BLI_addtail(), FreestyleModuleConfig::is_displayed, FreestyleConfig::modules, NULL, and FreestyleModuleConfig::script.
bool BKE_freestyle_module_delete | ( | FreestyleConfig * | config, |
FreestyleModuleConfig * | module_conf | ||
) |
Definition at line 130 of file freestyle.c.
References BLI_findindex(), BLI_freelinkN(), and FreestyleConfig::modules.
bool BKE_freestyle_module_move | ( | struct FreestyleConfig * | config, |
struct FreestyleModuleConfig * | module_conf, | ||
int | direction | ||
) |
Reinsert module_conf offset by direction from current position.
Definition at line 139 of file freestyle.c.
References BLI_findindex(), BLI_listbase_link_move(), and FreestyleConfig::modules.
|
static |
Definition at line 90 of file freestyle.c.
References FreestyleLineSet::edge_types, FreestyleLineSet::exclude_edge_types, FreestyleLineSet::flags, FreestyleLineSet::group, id_us_plus(), LIB_ID_CREATE_NO_USER_REFCOUNT, FreestyleLineSet::linestyle, FreestyleLineSet::name, FreestyleLineSet::qi, FreestyleLineSet::qi_end, FreestyleLineSet::qi_start, and FreestyleLineSet::selection.
Referenced by BKE_freestyle_config_copy().
|
static |
Definition at line 124 of file freestyle.c.
References FreestyleModuleConfig::is_displayed, module, and FreestyleModuleConfig::script.
Referenced by BKE_freestyle_config_copy().