|
Blender
V2.93
|
#include <stdio.h>#include "MEM_guardedalloc.h"#include "BLI_utildefines.h"#include "BLI_blenlib.h"#include "BLI_math.h"#include "BLT_translation.h"#include "DNA_defaults.h"#include "DNA_gpencil_modifier_types.h"#include "DNA_gpencil_types.h"#include "DNA_meshdata_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "BKE_context.h"#include "BKE_gpencil.h"#include "BKE_gpencil_geom.h"#include "BKE_gpencil_modifier.h"#include "BKE_screen.h"#include "UI_interface.h"#include "UI_resources.h"#include "RNA_access.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_query.h"#include "MOD_gpencil_modifiertypes.h"#include "MOD_gpencil_ui_common.h"Go to the source code of this file.
Classes | |
| struct | tStrokeBuildDetails |
Typedefs | |
| typedef struct tStrokeBuildDetails | tStrokeBuildDetails |
Variables | |
| GpencilModifierTypeInfo | modifierType_Gpencil_Build |
| typedef struct tStrokeBuildDetails tStrokeBuildDetails |
|
static |
Definition at line 301 of file MOD_gpencilbuild.c.
References clear_stroke(), ListBase::first, float(), GP_BUILD_TIMEALIGN_END, GP_BUILD_TIMEALIGN_START, GP_BUILD_TRANSITION_GROW, MAX2, bGPDstroke::next, PSEUDOINVERSE_EPSILON, reduce_stroke_points(), bGPDframe::strokes, BuildGpencilModifierData::time_alignment, bGPDstroke::totpoints, and BuildGpencilModifierData::transition.
Referenced by generate_geometry().
|
static |
Definition at line 200 of file MOD_gpencilbuild.c.
References BLI_listbase_count(), clear_stroke(), tStrokeBuildDetails::end_idx, ListBase::first, GP_BUILD_TRANSITION_FADE, GP_BUILD_TRANSITION_GROW, GP_BUILD_TRANSITION_SHRINK, tStrokeBuildDetails::gps, MEM_callocN, MEM_freeN, bGPDstroke::next, reduce_stroke_points(), tStrokeBuildDetails::start_idx, bGPDframe::strokes, tStrokeBuildDetails::totpoints, bGPDstroke::totpoints, and BuildGpencilModifierData::transition.
Referenced by generate_geometry().
|
static |
Definition at line 96 of file MOD_gpencilbuild.c.
References BKE_gpencil_free_stroke(), BLI_remlink(), and bGPDframe::strokes.
Referenced by build_concurrent(), build_sequential(), gpencil_calc_points_factor(), gpencil_stroke_merge_exec(), and gpf_clear_all_strokes().
|
static |
Definition at line 69 of file MOD_gpencilbuild.c.
References BKE_gpencil_modifier_copydata_generic().
|
static |
Definition at line 74 of file MOD_gpencilbuild.c.
Referenced by mesh_calc_modifiers().
Definition at line 584 of file MOD_gpencilbuild.c.
References gpencil_modifier_panel_get_property_pointers(), IFACE_, Panel::layout, NULL, ptr, and uiItemR().
Referenced by panelRegister().
Definition at line 593 of file MOD_gpencilbuild.c.
References col, gpencil_modifier_panel_get_property_pointers(), IFACE_, Panel::layout, NULL, ptr, uiItemR(), uiLayoutColumn(), and uiLayoutSetPropSep().
Referenced by panelRegister().
|
static |
Definition at line 405 of file MOD_gpencilbuild.c.
References build_concurrent(), build_sequential(), DEG_get_ctime(), depsgraph, BuildGpencilModifierData::end_frame, ListBase::first, BuildGpencilModifierData::flag, bGPDframe::framenum, GP_BUILD_INVERT_LAYER, GP_BUILD_INVERT_LAYERPASS, GP_BUILD_MODE_CONCURRENT, GP_BUILD_MODE_SEQUENTIAL, GP_BUILD_PERCENTAGE, GP_BUILD_RESTRICT_TIME, GP_BUILD_TRANSITION_GROW, gpf_clear_all_strokes(), bGPDlayer::info, BuildGpencilModifierData::layer_pass, BuildGpencilModifierData::layername, BuildGpencilModifierData::length, MIN2, BuildGpencilModifierData::mode, BuildGpencilModifierData::modifier, GpencilModifierData::name, bGPDframe::next, NULL, bGPDlayer::pass_index, BuildGpencilModifierData::percentage_fac, BuildGpencilModifierData::start_delay, STREQ, bGPDframe::strokes, and BuildGpencilModifierData::transition.
Referenced by generateStrokes().
|
static |
Definition at line 527 of file MOD_gpencilbuild.c.
References BKE_gpencil_frame_retime_get(), Object::data, DEG_get_evaluated_scene(), depsgraph, generate_geometry(), bGPdata::layers, LISTBASE_FOREACH, NULL, and scene.
|
static |
Definition at line 103 of file MOD_gpencilbuild.c.
References BLI_listbase_clear(), clear_stroke(), ListBase::first, bGPDstroke::next, and bGPDframe::strokes.
Referenced by generate_geometry().
|
static |
Definition at line 60 of file MOD_gpencilbuild.c.
References BLI_assert, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
Definition at line 607 of file MOD_gpencilbuild.c.
References gpencil_modifier_masking_panel_draw().
Referenced by panelRegister().
Definition at line 541 of file MOD_gpencilbuild.c.
References BKE_gpencil_modifier_set_error(), BKE_gpencil_modifiers_findby_type(), PointerRNA::data, eGpencilModifierType_Time, GP_BUILD_MODE_CONCURRENT, gpencil_modifier_panel_end(), gpencil_modifier_panel_get_property_pointers(), IFACE_, Panel::layout, NULL, ptr, RNA_boolean_get(), RNA_enum_get(), uiItemDecoratorR(), uiItemR(), uiItemS(), uiLayoutRow(), uiLayoutRowWithHeading(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by panelRegister().
|
static |
Definition at line 612 of file MOD_gpencilbuild.c.
References eGpencilModifierType_Build, frame_range_header_draw(), frame_range_panel_draw(), gpencil_modifier_panel_register(), gpencil_modifier_subpanel_register(), mask_panel_draw(), NULL, and panel_draw().
|
static |
Definition at line 117 of file MOD_gpencilbuild.c.
References BKE_gpencil_free_point_weights(), BKE_gpencil_stroke_geometry_update(), bGPDstroke::dvert, GP_BUILD_TRANSITION_FADE, GP_BUILD_TRANSITION_GROW, GP_BUILD_TRANSITION_SHRINK, MEM_callocN, MEM_SAFE_FREE, NULL, bGPDstroke::points, and bGPDstroke::totpoints.
Referenced by build_concurrent(), and build_sequential().
| GpencilModifierTypeInfo modifierType_Gpencil_Build |
Definition at line 624 of file MOD_gpencilbuild.c.