Blender
V3.3
|
#include <stdio.h>
#include <string.h>
#include "BLI_hash.h"
#include "BLI_listbase.h"
#include "BLI_math_base.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "DNA_defaults.h"
#include "DNA_gpencil_modifier_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BKE_context.h"
#include "BKE_gpencil_geom.h"
#include "BKE_gpencil_modifier.h"
#include "BKE_lib_query.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
#include "BKE_screen.h"
#include "MEM_guardedalloc.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "MOD_gpencil_modifiertypes.h"
#include "MOD_gpencil_ui_common.h"
#include "MOD_gpencil_util.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
Go to the source code of this file.
Variables | |
GpencilModifierTypeInfo | modifierType_Gpencil_Length |
|
static |
Definition at line 109 of file MOD_gpencillength.c.
References BKE_gpencil_stroke_geometry_update(), BKE_gpencil_stroke_length(), BLI_findindex(), BLI_halton_2d(), BLI_hash_int_01(), BLI_hash_string(), ceil(), DEG_get_ctime(), depsgraph, LengthGpencilModifierData::end_fac, fabs(), LengthGpencilModifierData::flag, blender::math::floor(), fmodf, fractf(), GP_LENGTH_ABSOLUTE, GP_LENGTH_INVERT_CURVATURE, GP_LENGTH_USE_CURVATURE, GP_LENGTH_USE_RANDOM, gpencil_modify_stroke(), Object::id, len, LengthGpencilModifierData::max_angle, MEM_SAFE_FREE, LengthGpencilModifierData::mode, GpencilModifierData::name, ID::name, noise(), noise_table(), offset, LengthGpencilModifierData::overshoot_fac, LengthGpencilModifierData::point_density, r, LengthGpencilModifierData::rand_end_fac, LengthGpencilModifierData::rand_offset, LengthGpencilModifierData::rand_start_fac, seed, LengthGpencilModifierData::seed, LengthGpencilModifierData::segment_influence, KDL::sin(), LengthGpencilModifierData::start_fac, LengthGpencilModifierData::step, bGPDframe::strokes, SWAP, table_sample(), and bGPDstroke::totpoints.
Referenced by deformStroke().
|
static |
Definition at line 238 of file MOD_gpencillength.c.
References deformStroke(), depsgraph, and generic_bake_deform_stroke().
|
static |
Definition at line 57 of file MOD_gpencillength.c.
References BKE_gpencil_modifier_copydata_generic().
Definition at line 316 of file MOD_gpencillength.c.
References gpencil_modifier_panel_get_property_pointers(), IFACE_, Panel::layout, NULL, ptr, and uiItemR().
Referenced by panelRegister().
Definition at line 325 of file MOD_gpencillength.c.
References col, gpencil_modifier_panel_get_property_pointers(), IFACE_, Panel::layout, NULL, ptr, RNA_boolean_get(), uiItemR(), uiLayoutColumn(), uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panelRegister().
|
static |
Definition at line 208 of file MOD_gpencillength.c.
References applyLength(), Object::data, depsgraph, LengthGpencilModifierData::flag, bGPDstroke::flag, GP_LENGTH_INVERT_LAYER, GP_LENGTH_INVERT_LAYERPASS, GP_LENGTH_INVERT_MATERIAL, GP_LENGTH_INVERT_PASS, GP_STROKE_CYCLIC, is_stroke_affected_by_modifier(), LengthGpencilModifierData::layer_pass, LengthGpencilModifierData::layername, LengthGpencilModifierData::material, and LengthGpencilModifierData::pass_index.
Referenced by bakeModifier().
|
static |
Definition at line 246 of file MOD_gpencillength.c.
References IDWALK_CB_USER, and LengthGpencilModifierData::material.
|
static |
Definition at line 76 of file MOD_gpencillength.c.
References BKE_gpencil_stroke_shrink(), BKE_gpencil_stroke_stretch(), fabs(), and blender::math::length().
Referenced by applyLength().
|
static |
Definition at line 48 of file MOD_gpencillength.c.
References BLI_assert, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
Definition at line 311 of file MOD_gpencillength.c.
References gpencil_modifier_masking_panel_draw().
Referenced by panelRegister().
|
static |
Definition at line 62 of file MOD_gpencillength.c.
References BLI_hash_int_01(), BLI_hash_int_2d(), len, MEM_callocN, offset, and seed.
Referenced by applyLength().
Definition at line 275 of file MOD_gpencillength.c.
References gpencil_modifier_panel_get_property_pointers(), IFACE_, Panel::layout, NULL, ptr, uiItemR(), and uiLayoutSetPropSep().
Referenced by panelRegister().
Definition at line 286 of file MOD_gpencillength.c.
References col, GP_LENGTH_RELATIVE, gpencil_modifier_panel_end(), gpencil_modifier_panel_get_property_pointers(), IFACE_, Panel::layout, NULL, ptr, RNA_enum_get(), UI_ITEM_R_SLIDER, uiItemR(), uiLayoutColumn(), and uiLayoutSetPropSep().
Referenced by panelRegister().
|
static |
Definition at line 343 of file MOD_gpencillength.c.
References curvature_header_draw(), curvature_panel_draw(), eGpencilModifierType_Length, gpencil_modifier_panel_register(), gpencil_modifier_subpanel_register(), mask_panel_draw(), NULL, offset_panel_draw(), panel_draw(), random_header_draw(), and random_panel_draw().
Definition at line 253 of file MOD_gpencillength.c.
References gpencil_modifier_panel_get_property_pointers(), IFACE_, Panel::layout, NULL, ptr, and uiItemR().
Referenced by panelRegister().
Definition at line 262 of file MOD_gpencillength.c.
References gpencil_modifier_panel_get_property_pointers(), Panel::layout, NULL, ptr, RNA_boolean_get(), uiItemR(), uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panelRegister().
BLI_INLINE float table_sample | ( | float * | table, |
float | x | ||
) |
Definition at line 71 of file MOD_gpencillength.c.
References ceilf, blender::math::floor(), fractf(), interpf(), and x.
Referenced by applyLength().
GpencilModifierTypeInfo modifierType_Gpencil_Length |
Definition at line 357 of file MOD_gpencillength.c.