Blender
V3.3
|
#include <stdio.h>
#include <string.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_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "BKE_colortools.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_gpencil_modifier.h"
#include "BKE_lib_query.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
#include "BKE_screen.h"
#include "DEG_depsgraph.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"
Go to the source code of this file.
Functions | |
static void | initData (GpencilModifierData *md) |
static void | copyData (const GpencilModifierData *md, GpencilModifierData *target) |
static void | deformStroke (GpencilModifierData *md, Depsgraph *UNUSED(depsgraph), Object *ob, bGPDlayer *gpl, bGPDframe *UNUSED(gpf), bGPDstroke *gps) |
static void | bakeModifier (Main *UNUSED(bmain), Depsgraph *depsgraph, GpencilModifierData *md, Object *ob) |
static void | freeData (GpencilModifierData *md) |
static void | foreachIDLink (GpencilModifierData *md, Object *ob, IDWalkFunc walk, void *userData) |
static void | panel_draw (const bContext *UNUSED(C), Panel *panel) |
static void | mask_panel_draw (const bContext *UNUSED(C), Panel *panel) |
static void | curve_header_draw (const bContext *C, Panel *panel) |
static void | curve_panel_draw (const bContext *C, Panel *panel) |
static void | panelRegister (ARegionType *region_type) |
Variables | |
GpencilModifierTypeInfo | modifierType_Gpencil_Opacity |
|
static |
Definition at line 177 of file MOD_gpencilopacity.c.
References deformStroke(), depsgraph, and generic_bake_deform_stroke().
|
static |
Definition at line 54 of file MOD_gpencilopacity.c.
References BKE_curvemapping_copy(), BKE_curvemapping_free(), BKE_gpencil_modifier_copydata_generic(), OpacityGpencilModifierData::curve_intensity, and NULL.
Definition at line 246 of file MOD_gpencilopacity.c.
References C, GP_MODIFY_COLOR_HARDNESS, gpencil_modifier_curve_header_draw(), gpencil_modifier_panel_get_property_pointers(), Panel::layout, NULL, ptr, RNA_enum_get(), and uiLayoutSetActive().
Referenced by panelRegister().
Definition at line 258 of file MOD_gpencilopacity.c.
References C, GP_MODIFY_COLOR_HARDNESS, gpencil_modifier_curve_panel_draw(), gpencil_modifier_panel_get_property_pointers(), Panel::layout, NULL, ptr, RNA_enum_get(), and uiLayoutSetActive().
Referenced by panelRegister().
|
static |
Definition at line 70 of file MOD_gpencilopacity.c.
References BKE_curvemapping_evaluateF(), BKE_object_defgroup_name_index(), CLAMP, OpacityGpencilModifierData::curve_intensity, bGPDstroke::dvert, OpacityGpencilModifierData::factor, bGPDstroke::fill_opacity_fac, OpacityGpencilModifierData::flag, float(), get_modifier_point_weight(), GP_MODIFY_COLOR_FILL, GP_MODIFY_COLOR_HARDNESS, GP_MODIFY_COLOR_STROKE, GP_OPACITY_CUSTOM_CURVE, GP_OPACITY_INVERT_LAYER, GP_OPACITY_INVERT_LAYERPASS, GP_OPACITY_INVERT_MATERIAL, GP_OPACITY_INVERT_PASS, GP_OPACITY_INVERT_VGROUP, GP_OPACITY_NORMALIZE, GP_OPACITY_WEIGHT_FACTOR, OpacityGpencilModifierData::hardeness, bGPDstroke::hardeness, is_stroke_affected_by_modifier(), OpacityGpencilModifierData::layer_pass, OpacityGpencilModifierData::layername, OpacityGpencilModifierData::material, OpacityGpencilModifierData::modify_color, NULL, OpacityGpencilModifierData::pass_index, bGPDstroke::points, bGPDspoint::strength, bGPDstroke::totpoints, and OpacityGpencilModifierData::vgname.
Referenced by bakeModifier().
|
static |
Definition at line 194 of file MOD_gpencilopacity.c.
References IDWALK_CB_USER, and OpacityGpencilModifierData::material.
|
static |
Definition at line 185 of file MOD_gpencilopacity.c.
References BKE_curvemapping_free(), and OpacityGpencilModifierData::curve_intensity.
|
static |
Definition at line 42 of file MOD_gpencilopacity.c.
References BKE_curvemapping_add(), BKE_curvemapping_init(), BLI_assert, OpacityGpencilModifierData::curve_intensity, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
Definition at line 236 of file MOD_gpencilopacity.c.
References GP_MODIFY_COLOR_HARDNESS, gpencil_modifier_masking_panel_draw(), gpencil_modifier_panel_get_property_pointers(), NULL, ptr, and RNA_enum_get().
Referenced by panelRegister().
Definition at line 201 of file MOD_gpencilopacity.c.
References GP_MODIFY_COLOR_HARDNESS, gpencil_modifier_panel_end(), gpencil_modifier_panel_get_property_pointers(), IFACE_, Panel::layout, NULL, ptr, RNA_boolean_get(), RNA_enum_get(), uiItemR(), uiLayoutRow(), uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panelRegister().
|
static |
Definition at line 270 of file MOD_gpencilopacity.c.
References curve_header_draw(), curve_panel_draw(), eGpencilModifierType_Opacity, gpencil_modifier_panel_register(), gpencil_modifier_subpanel_register(), mask_panel_draw(), NULL, and panel_draw().
GpencilModifierTypeInfo modifierType_Gpencil_Opacity |
Definition at line 281 of file MOD_gpencilopacity.c.