Blender V4.3
freestyle.cc File Reference
#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.

Functions

static FreestyleLineSetalloc_lineset (void)
 
static void copy_lineset (FreestyleLineSet *new_lineset, FreestyleLineSet *lineset, const int flag)
 
static FreestyleModuleConfigalloc_module (void)
 
static void copy_module (FreestyleModuleConfig *new_module, FreestyleModuleConfig *module)
 
void BKE_freestyle_config_init (FreestyleConfig *config)
 
void BKE_freestyle_config_free (FreestyleConfig *config, const bool do_id_user)
 
void BKE_freestyle_config_copy (FreestyleConfig *new_config, const FreestyleConfig *config, const int flag)
 
FreestyleModuleConfigBKE_freestyle_module_add (FreestyleConfig *config)
 
bool BKE_freestyle_module_delete (FreestyleConfig *config, FreestyleModuleConfig *module_conf)
 
bool BKE_freestyle_module_move (FreestyleConfig *config, FreestyleModuleConfig *module_conf, int direction)
 
void BKE_freestyle_lineset_unique_name (FreestyleConfig *config, FreestyleLineSet *lineset)
 
FreestyleLineSetBKE_freestyle_lineset_add (Main *bmain, FreestyleConfig *config, const char *name)
 
bool BKE_freestyle_lineset_delete (FreestyleConfig *config, FreestyleLineSet *lineset)
 
FreestyleLineSetBKE_freestyle_lineset_get_active (FreestyleConfig *config)
 
short BKE_freestyle_lineset_get_active_index (FreestyleConfig *config)
 
void BKE_freestyle_lineset_set_active_index (FreestyleConfig *config, short index)
 

Function Documentation

◆ alloc_lineset()

static FreestyleLineSet * alloc_lineset ( void )
static

Definition at line 158 of file freestyle.cc.

References MEM_callocN.

Referenced by BKE_freestyle_config_copy(), and BKE_freestyle_lineset_add().

◆ alloc_module()

static FreestyleModuleConfig * alloc_module ( void )
static

Definition at line 110 of file freestyle.cc.

References MEM_callocN.

Referenced by BKE_freestyle_config_copy(), and BKE_freestyle_module_add().

◆ BKE_freestyle_config_copy()

◆ BKE_freestyle_config_free()

void BKE_freestyle_config_free ( FreestyleConfig * config,
const bool do_id_user )

◆ BKE_freestyle_config_init()

◆ BKE_freestyle_lineset_add()

◆ BKE_freestyle_lineset_delete()

◆ BKE_freestyle_lineset_get_active()

◆ BKE_freestyle_lineset_get_active_index()

short BKE_freestyle_lineset_get_active_index ( FreestyleConfig * config)

◆ BKE_freestyle_lineset_set_active_index()

void BKE_freestyle_lineset_set_active_index ( FreestyleConfig * config,
short index )

◆ BKE_freestyle_lineset_unique_name()

void BKE_freestyle_lineset_unique_name ( FreestyleConfig * config,
FreestyleLineSet * lineset )

◆ BKE_freestyle_module_add()

◆ BKE_freestyle_module_delete()

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.

◆ BKE_freestyle_module_move()

bool BKE_freestyle_module_move ( struct FreestyleConfig * config,
struct FreestyleModuleConfig * module_conf,
int direction )

Reinsert module_conf offset by direction from current position.

Returns
if position of module_conf changed.

Definition at line 140 of file freestyle.cc.

References BLI_findindex(), BLI_listbase_link_move(), and FreestyleConfig::modules.

◆ copy_lineset()

◆ copy_module()

static void copy_module ( FreestyleModuleConfig * new_module,
FreestyleModuleConfig * module )
static