Blender V5.3
blender::BrushGpencilSettings Struct Reference

#include <DNA_brush_types.h>

Public Attributes

float draw_smoothfac = 0
float fill_factor = 0
float draw_strength = 0
float draw_jitter = 0
float draw_angle = 0
float draw_angle_factor = 0
float draw_random_press = 0
float draw_random_strength = 0
short draw_smoothlvl = 0
short draw_subdivide = 0
eGP_FillLayerModes fill_layer_mode = GP_FILL_GPLMODE_VISIBLE
short fill_direction = 0
float fill_threshold = 0
short fill_solver = 0
int8_t caps_type = 0
char _pad1 [1] = {}
eGPDbrush_Flag2 flag2 = {}
int fill_simplylvl = 0
eGP_FillDrawModes fill_draw_mode = GP_FILL_DMODE_BOTH
eGP_FillExtendModes fill_extend_mode = GP_FILL_EMODE_EXTEND
int input_samples = 0
float uv_random = 0
DNA_DEPRECATED int brush_type = 0
eGP_BrushEraserMode eraser_mode = GP_BRUSH_ERASER_SOFT
float active_smooth = 0
float era_strength_f = 0
float era_thickness_f = 0
eGPDbrush_Flag flag = {}
float hardness = 0
float aspect_ratio [2] = {}
float simplify_f = 0
float vertex_factor = 0
eGp_Vertex_Mode vertex_mode = GPPAINT_MODE_STROKE
eGP_Sculpt_Flag sculpt_flag = {}
eGP_Sculpt_Mode_Flag sculpt_mode_flag = {}
char _pad2 [2] = {}
eGP_BrushMode brush_draw_mode = GP_BRUSH_MODE_ACTIVE
float random_hue = 0
float random_saturation = 0
float random_value = 0
eBrushColorJitterSettings_Flag color_jitter_flag = {}
char _pad3 [4] = {}
float fill_extend_fac = 0
int dilate_pixels = 0
struct CurveMapping * curve_sensitivity = nullptr
struct CurveMapping * curve_strength = nullptr
struct CurveMapping * curve_jitter = nullptr
struct CurveMapping * curve_rand_pressure = nullptr
struct CurveMapping * curve_rand_strength = nullptr
struct CurveMapping * curve_rand_uv = nullptr
struct CurveMapping * curve_rand_hue = nullptr
struct CurveMapping * curve_rand_saturation = nullptr
struct CurveMapping * curve_rand_value = nullptr
float outline_fac = 0
float simplify_px = 0
float conversion_threshold = 0
int8_t curve_type = 0
char _pad4 [3] = {}
float fill_gap_factor = 0
char _pad5 [4] = {}
struct Material * material = nullptr
struct Material * material_alt = nullptr

Detailed Description

Definition at line 26 of file DNA_brush_types.h.

Member Data Documentation

◆ _pad1

char blender::BrushGpencilSettings::_pad1[1] = {}

Definition at line 58 of file DNA_brush_types.h.

◆ _pad2

char blender::BrushGpencilSettings::_pad2[2] = {}

Definition at line 99 of file DNA_brush_types.h.

◆ _pad3

char blender::BrushGpencilSettings::_pad3[4] = {}

Definition at line 111 of file DNA_brush_types.h.

◆ _pad4

char blender::BrushGpencilSettings::_pad4[3] = {}

Definition at line 136 of file DNA_brush_types.h.

◆ _pad5

char blender::BrushGpencilSettings::_pad5[4] = {}

Definition at line 139 of file DNA_brush_types.h.

◆ active_smooth

float blender::BrushGpencilSettings::active_smooth = 0

◆ aspect_ratio

float blender::BrushGpencilSettings::aspect_ratio[2] = {}

◆ brush_draw_mode

eGP_BrushMode blender::BrushGpencilSettings::brush_draw_mode = GP_BRUSH_MODE_ACTIVE

Brush preselected mode (Active/Material/Vertex-color).

Definition at line 101 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::create_fill_guide_brush().

◆ brush_type

DNA_DEPRECATED int blender::BrushGpencilSettings::brush_type = 0

Moved to 'Brush.gpencil_brush_type'.

Definition at line 74 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ caps_type

◆ color_jitter_flag

eBrushColorJitterSettings_Flag blender::BrushGpencilSettings::color_jitter_flag = {}

Definition at line 110 of file DNA_brush_types.h.

◆ conversion_threshold

float blender::BrushGpencilSettings::conversion_threshold = 0

Threshold distance for converting curve types.

Definition at line 133 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ curve_jitter

◆ curve_rand_hue

struct CurveMapping* blender::BrushGpencilSettings::curve_rand_hue = nullptr

◆ curve_rand_pressure

◆ curve_rand_saturation

struct CurveMapping* blender::BrushGpencilSettings::curve_rand_saturation = nullptr

◆ curve_rand_strength

◆ curve_rand_uv

◆ curve_rand_value

struct CurveMapping* blender::BrushGpencilSettings::curve_rand_value = nullptr

◆ curve_sensitivity

◆ curve_strength

◆ curve_type

int8_t blender::BrushGpencilSettings::curve_type = 0

◆ dilate_pixels

int blender::BrushGpencilSettings::dilate_pixels = 0

Number of pixels to dilate fill area.

Definition at line 116 of file DNA_brush_types.h.

◆ draw_angle

float blender::BrushGpencilSettings::draw_angle = 0

Angle when the brush has full thickness.

Definition at line 38 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample().

◆ draw_angle_factor

float blender::BrushGpencilSettings::draw_angle_factor = 0

Factor to apply when angle change (only 90 degrees).

Definition at line 40 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample().

◆ draw_jitter

float blender::BrushGpencilSettings::draw_jitter = 0

◆ draw_random_press

float blender::BrushGpencilSettings::draw_random_press = 0

◆ draw_random_strength

float blender::BrushGpencilSettings::draw_random_strength = 0

◆ draw_smoothfac

float blender::BrushGpencilSettings::draw_smoothfac = 0

Amount of smoothing to apply to newly created strokes.

Definition at line 30 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ draw_smoothlvl

short blender::BrushGpencilSettings::draw_smoothlvl = 0

Number of times to apply smooth factor to new strokes.

Definition at line 46 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ draw_strength

float blender::BrushGpencilSettings::draw_strength = 0

Amount of alpha strength to apply to newly created strokes.

Definition at line 34 of file DNA_brush_types.h.

◆ draw_subdivide

short blender::BrushGpencilSettings::draw_subdivide = 0

Number of times to subdivide new strokes.

Definition at line 48 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ era_strength_f

float blender::BrushGpencilSettings::era_strength_f = 0

Factor to apply to strength for soft eraser.

Definition at line 80 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ era_thickness_f

float blender::BrushGpencilSettings::era_thickness_f = 0

Factor to apply to thickness for soft eraser.

Definition at line 82 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ eraser_mode

eGP_BrushEraserMode blender::BrushGpencilSettings::eraser_mode = GP_BRUSH_ERASER_SOFT

Soft, hard or stroke.

Definition at line 76 of file DNA_brush_types.h.

◆ fill_direction

short blender::BrushGpencilSettings::fill_direction = 0

Definition at line 51 of file DNA_brush_types.h.

◆ fill_draw_mode

eGP_FillDrawModes blender::BrushGpencilSettings::fill_draw_mode = GP_FILL_DMODE_BOTH

Type of control lines drawing mode.

Definition at line 65 of file DNA_brush_types.h.

◆ fill_extend_fac

float blender::BrushGpencilSettings::fill_extend_fac = 0

Factor to extend stroke extremes using fill tool.

Definition at line 114 of file DNA_brush_types.h.

◆ fill_extend_mode

eGP_FillExtendModes blender::BrushGpencilSettings::fill_extend_mode = GP_FILL_EMODE_EXTEND

Type of gap filling extension to use.

Definition at line 67 of file DNA_brush_types.h.

◆ fill_factor

float blender::BrushGpencilSettings::fill_factor = 0

Fill zoom factor

Definition at line 32 of file DNA_brush_types.h.

◆ fill_gap_factor

float blender::BrushGpencilSettings::fill_gap_factor = 0

Definition at line 138 of file DNA_brush_types.h.

◆ fill_layer_mode

eGP_FillLayerModes blender::BrushGpencilSettings::fill_layer_mode = GP_FILL_GPLMODE_VISIBLE

Layers used for fill.

Definition at line 50 of file DNA_brush_types.h.

◆ fill_simplylvl

int blender::BrushGpencilSettings::fill_simplylvl = 0

Number of simplify steps.

Definition at line 63 of file DNA_brush_types.h.

◆ fill_solver

short blender::BrushGpencilSettings::fill_solver = 0

Definition at line 55 of file DNA_brush_types.h.

◆ fill_threshold

float blender::BrushGpencilSettings::fill_threshold = 0

Factor for transparency.

Definition at line 54 of file DNA_brush_types.h.

◆ flag

◆ flag2

◆ hardness

◆ input_samples

int blender::BrushGpencilSettings::input_samples = 0

Maximum distance before generate new point for very fast mouse movements.

Definition at line 70 of file DNA_brush_types.h.

◆ material

struct Material* blender::BrushGpencilSettings::material = nullptr

Material.

Definition at line 143 of file DNA_brush_types.h.

Referenced by blender::TEST_F().

◆ material_alt

struct Material* blender::BrushGpencilSettings::material_alt = nullptr

Material Alternative for secondary operations.

Definition at line 145 of file DNA_brush_types.h.

Referenced by blender::TEST_F().

◆ outline_fac

float blender::BrushGpencilSettings::outline_fac = 0

Factor for external line thickness conversion to outline.

Definition at line 129 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ random_hue

float blender::BrushGpencilSettings::random_hue = 0

Randomness for Hue.

Definition at line 104 of file DNA_brush_types.h.

Referenced by blender::do_version_convert_gp_jitter_values().

◆ random_saturation

float blender::BrushGpencilSettings::random_saturation = 0

Randomness for Saturation.

Definition at line 106 of file DNA_brush_types.h.

Referenced by blender::do_version_convert_gp_jitter_values().

◆ random_value

float blender::BrushGpencilSettings::random_value = 0

Randomness for Value.

Definition at line 108 of file DNA_brush_types.h.

Referenced by blender::do_version_convert_gp_jitter_values().

◆ sculpt_flag

eGP_Sculpt_Flag blender::BrushGpencilSettings::sculpt_flag = {}

Definition at line 97 of file DNA_brush_types.h.

◆ sculpt_mode_flag

eGP_Sculpt_Mode_Flag blender::BrushGpencilSettings::sculpt_mode_flag = {}

Definition at line 98 of file DNA_brush_types.h.

◆ simplify_f

float blender::BrushGpencilSettings::simplify_f = 0

Simplify adaptive factor

Definition at line 91 of file DNA_brush_types.h.

◆ simplify_px

float blender::BrushGpencilSettings::simplify_px = 0

Screen space simplify threshold. Points within this margin are treated as a straight line.

Definition at line 131 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::create_fill_guide_brush(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ uv_random

◆ vertex_factor

◆ vertex_mode

eGp_Vertex_Mode blender::BrushGpencilSettings::vertex_mode = GPPAINT_MODE_STROKE

Definition at line 95 of file DNA_brush_types.h.


The documentation for this struct was generated from the following file: