Blender  V2.93
Classes | Typedefs | Functions | Variables
MOD_gpencilbuild.c File Reference
#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
 

Functions

static void initData (GpencilModifierData *md)
 
static void copyData (const GpencilModifierData *md, GpencilModifierData *target)
 
static bool dependsOnTime (GpencilModifierData *UNUSED(md))
 
static void clear_stroke (bGPDframe *gpf, bGPDstroke *gps)
 
static void gpf_clear_all_strokes (bGPDframe *gpf)
 
static void reduce_stroke_points (bGPdata *gpd, bGPDstroke *gps, const int num_points, const eBuildGpencil_Transition transition)
 
static void build_sequential (BuildGpencilModifierData *mmd, bGPdata *gpd, bGPDframe *gpf, float fac)
 
static void build_concurrent (BuildGpencilModifierData *mmd, bGPdata *gpd, bGPDframe *gpf, float fac)
 
static void generate_geometry (GpencilModifierData *md, Depsgraph *depsgraph, bGPdata *gpd, bGPDlayer *gpl, bGPDframe *gpf)
 
static void generateStrokes (GpencilModifierData *md, Depsgraph *depsgraph, Object *ob)
 
static void panel_draw (const bContext *UNUSED(C), Panel *panel)
 
static void frame_range_header_draw (const bContext *UNUSED(C), Panel *panel)
 
static void frame_range_panel_draw (const bContext *UNUSED(C), Panel *panel)
 
static void mask_panel_draw (const bContext *UNUSED(C), Panel *panel)
 
static void panelRegister (ARegionType *region_type)
 

Variables

GpencilModifierTypeInfo modifierType_Gpencil_Build
 

Typedef Documentation

◆ tStrokeBuildDetails

Function Documentation

◆ build_concurrent()

static void build_concurrent ( BuildGpencilModifierData mmd,
bGPdata gpd,
bGPDframe gpf,
float  fac 
)
static

◆ build_sequential()

static void build_sequential ( BuildGpencilModifierData mmd,
bGPdata gpd,
bGPDframe gpf,
float  fac 
)
static

◆ clear_stroke()

static void clear_stroke ( bGPDframe gpf,
bGPDstroke gps 
)
static

◆ copyData()

static void copyData ( const GpencilModifierData md,
GpencilModifierData target 
)
static

Definition at line 69 of file MOD_gpencilbuild.c.

References BKE_gpencil_modifier_copydata_generic().

◆ dependsOnTime()

static bool dependsOnTime ( GpencilModifierData UNUSEDmd)
static

Definition at line 74 of file MOD_gpencilbuild.c.

Referenced by mesh_calc_modifiers().

◆ frame_range_header_draw()

static void frame_range_header_draw ( const bContext UNUSEDC,
Panel panel 
)
static

◆ frame_range_panel_draw()

static void frame_range_panel_draw ( const bContext UNUSEDC,
Panel panel 
)
static

◆ generate_geometry()

static void generate_geometry ( GpencilModifierData md,
Depsgraph depsgraph,
bGPdata gpd,
bGPDlayer gpl,
bGPDframe gpf 
)
static

◆ generateStrokes()

static void generateStrokes ( GpencilModifierData md,
Depsgraph depsgraph,
Object ob 
)
static

◆ gpf_clear_all_strokes()

static void gpf_clear_all_strokes ( bGPDframe gpf)
static

◆ initData()

static void initData ( GpencilModifierData md)
static

◆ mask_panel_draw()

static void mask_panel_draw ( const bContext UNUSEDC,
Panel panel 
)
static

Definition at line 607 of file MOD_gpencilbuild.c.

References gpencil_modifier_masking_panel_draw().

Referenced by panelRegister().

◆ panel_draw()

static void panel_draw ( const bContext UNUSEDC,
Panel panel 
)
static

◆ panelRegister()

static void panelRegister ( ARegionType region_type)
static

◆ reduce_stroke_points()

static void reduce_stroke_points ( bGPdata gpd,
bGPDstroke gps,
const int  num_points,
const eBuildGpencil_Transition  transition 
)
static

Variable Documentation

◆ modifierType_Gpencil_Build

GpencilModifierTypeInfo modifierType_Gpencil_Build
Initial value:
= {
"Build",
"BuildGpencilModifierData",
}
@ eGpencilModifierTypeFlag_NoApply
@ eGpencilModifierTypeType_Gpencil
struct BuildGpencilModifierData BuildGpencilModifierData
static bool dependsOnTime(GpencilModifierData *UNUSED(md))
static void copyData(const GpencilModifierData *md, GpencilModifierData *target)
static void panelRegister(ARegionType *region_type)
static void initData(GpencilModifierData *md)
static void generateStrokes(GpencilModifierData *md, Depsgraph *depsgraph, Object *ob)

Definition at line 624 of file MOD_gpencilbuild.c.