|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "DNA_collection_types.h"#include "DNA_freestyle_types.h"#include "BLI_blenlib.h"#include "BLI_math_rotation.h"#include "BLI_string_utils.hh"#include "BLT_translation.hh"#include "BKE_freestyle.h"#include "BKE_lib_id.hh"#include "BKE_linestyle.h"Go to the source code of this file.
|
static |
Definition at line 158 of file freestyle.cc.
References MEM_callocN.
Referenced by BKE_freestyle_config_copy(), and BKE_freestyle_lineset_add().
|
static |
Definition at line 110 of file freestyle.cc.
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 63 of file freestyle.cc.
References alloc_lineset(), alloc_module(), BLI_addtail(), BLI_listbase_clear(), copy_lineset(), copy_module(), FreestyleConfig::crease_angle, FreestyleConfig::dkr_epsilon, flag, FreestyleConfig::flags, FreestyleConfig::linesets, LISTBASE_FOREACH, FreestyleConfig::mode, module, FreestyleConfig::modules, and FreestyleConfig::sphere_radius.
| void BKE_freestyle_config_free | ( | FreestyleConfig * | config, |
| const bool | do_id_user ) |
Definition at line 43 of file freestyle.cc.
References BLI_freelistN(), id_us_min(), FreestyleConfig::linesets, LISTBASE_FOREACH, and FreestyleConfig::modules.
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 30 of file freestyle.cc.
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 view_layer_add().
| FreestyleLineSet * BKE_freestyle_lineset_add | ( | Main * | bmain, |
| FreestyleConfig * | config, | ||
| const char * | name ) |
Definition at line 163 of file freestyle.cc.
References alloc_lineset(), BKE_freestyle_lineset_set_active_index(), BKE_freestyle_lineset_unique_name(), BKE_linestyle_new(), BLI_addtail(), BLI_listbase_count(), DATA_, 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, FreestyleLineSet::qi, FreestyleLineSet::qi_end, FreestyleLineSet::qi_start, FreestyleLineSet::selection, SNPRINTF, and STRNCPY.
| bool BKE_freestyle_lineset_delete | ( | FreestyleConfig * | config, |
| FreestyleLineSet * | lineset ) |
Definition at line 195 of file freestyle.cc.
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 212 of file freestyle.cc.
References FREESTYLE_LINESET_CURRENT, FreestyleConfig::linesets, and LISTBASE_FOREACH.
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 222 of file freestyle.cc.
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 237 of file freestyle.cc.
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 148 of file freestyle.cc.
References BLI_uniquename(), FreestyleConfig::linesets, FreestyleLineSet::name, and offsetof.
Referenced by BKE_freestyle_lineset_add(), and FRS_paste_active_lineset().
| FreestyleModuleConfig * BKE_freestyle_module_add | ( | FreestyleConfig * | config | ) |
Definition at line 116 of file freestyle.cc.
References alloc_module(), BLI_addtail(), FreestyleModuleConfig::is_displayed, FreestyleConfig::modules, and FreestyleModuleConfig::script.
| bool BKE_freestyle_module_delete | ( | FreestyleConfig * | config, |
| FreestyleModuleConfig * | module_conf ) |
Definition at line 131 of file freestyle.cc.
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 140 of file freestyle.cc.
References BLI_findindex(), BLI_listbase_link_move(), and FreestyleConfig::modules.
|
static |
Definition at line 91 of file freestyle.cc.
References FreestyleLineSet::edge_types, FreestyleLineSet::exclude_edge_types, flag, 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, FreestyleLineSet::selection, and STRNCPY.
Referenced by BKE_freestyle_config_copy().
|
static |
Definition at line 125 of file freestyle.cc.
References FreestyleModuleConfig::is_displayed, and FreestyleModuleConfig::script.
Referenced by BKE_freestyle_config_copy().