Blender V4.5
BrushGpencilSettings Struct Reference

#include <DNA_brush_types.h>

Public Attributes

float draw_smoothfac
 
float fill_factor
 
float draw_strength
 
float draw_jitter
 
float draw_angle
 
float draw_angle_factor
 
float draw_random_press
 
float draw_random_strength
 
short draw_smoothlvl
 
short draw_subdivide
 
short fill_layer_mode
 
short fill_direction
 
float fill_threshold
 
char _pad2 [2]
 
int8_t caps_type
 
char _pad [1]
 
int flag2
 
int fill_simplylvl
 
int fill_draw_mode
 
int fill_extend_mode
 
int input_samples
 
float uv_random
 
int brush_type DNA_DEPRECATED
 
int eraser_mode
 
float active_smooth
 
float era_strength_f
 
float era_thickness_f
 
int flag
 
float hardness
 
float aspect_ratio [2]
 
float simplify_f
 
float vertex_factor
 
int vertex_mode
 
int sculpt_flag
 
int sculpt_mode_flag
 
short preset_type
 
short brush_draw_mode
 
float random_hue
 
float random_saturation
 
float random_value
 
int color_jitter_flag
 
char _pad1 [4]
 
float fill_extend_fac
 
int dilate_pixels
 
struct CurveMappingcurve_sensitivity
 
struct CurveMappingcurve_strength
 
struct CurveMappingcurve_jitter
 
struct CurveMappingcurve_rand_pressure
 
struct CurveMappingcurve_rand_strength
 
struct CurveMappingcurve_rand_uv
 
struct CurveMappingcurve_rand_hue
 
struct CurveMappingcurve_rand_saturation
 
struct CurveMappingcurve_rand_value
 
float outline_fac
 
float simplify_px
 
struct Materialmaterial
 
struct Materialmaterial_alt
 

Detailed Description

Definition at line 22 of file DNA_brush_types.h.

Member Data Documentation

◆ _pad

char BrushGpencilSettings::_pad[1]

Definition at line 52 of file DNA_brush_types.h.

◆ _pad1

char BrushGpencilSettings::_pad1[4]

Definition at line 108 of file DNA_brush_types.h.

◆ _pad2

char BrushGpencilSettings::_pad2[2]

Definition at line 49 of file DNA_brush_types.h.

◆ active_smooth

float BrushGpencilSettings::active_smooth

◆ aspect_ratio

float BrushGpencilSettings::aspect_ratio[2]

factor xy of shape for dots gradients

Definition at line 83 of file DNA_brush_types.h.

Referenced by blo_do_versions_280(), and blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::PaintOperationExecutor().

◆ brush_draw_mode

short BrushGpencilSettings::brush_draw_mode

◆ caps_type

◆ color_jitter_flag

int BrushGpencilSettings::color_jitter_flag

Definition at line 107 of file DNA_brush_types.h.

◆ curve_jitter

◆ curve_rand_hue

◆ curve_rand_pressure

◆ curve_rand_saturation

◆ curve_rand_strength

◆ curve_rand_uv

◆ curve_rand_value

◆ curve_sensitivity

◆ curve_strength

◆ dilate_pixels

int BrushGpencilSettings::dilate_pixels

Number of pixels to dilate fill area.

Definition at line 113 of file DNA_brush_types.h.

Referenced by blender::ed::greasepencil::process_image().

◆ DNA_DEPRECATED

int brush_type BrushGpencilSettings::DNA_DEPRECATED

Moved to 'Brush.gpencil_brush_type'.

Definition at line 68 of file DNA_brush_types.h.

◆ draw_angle

float BrushGpencilSettings::draw_angle

Angle when the brush has full thickness.

Definition at line 32 of file DNA_brush_types.h.

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

◆ draw_angle_factor

float BrushGpencilSettings::draw_angle_factor

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

Definition at line 34 of file DNA_brush_types.h.

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

◆ draw_jitter

◆ draw_random_press

float BrushGpencilSettings::draw_random_press

◆ draw_random_strength

float BrushGpencilSettings::draw_random_strength

◆ draw_smoothfac

float BrushGpencilSettings::draw_smoothfac

Amount of smoothing to apply to newly created strokes.

Definition at line 24 of file DNA_brush_types.h.

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

◆ draw_smoothlvl

short BrushGpencilSettings::draw_smoothlvl

Number of times to apply smooth factor to new strokes.

Definition at line 40 of file DNA_brush_types.h.

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

◆ draw_strength

float BrushGpencilSettings::draw_strength

Amount of alpha strength to apply to newly created strokes.

Definition at line 28 of file DNA_brush_types.h.

Referenced by BKE_brush_init_gpencil_settings().

◆ draw_subdivide

short BrushGpencilSettings::draw_subdivide

Number of times to subdivide new strokes.

Definition at line 42 of file DNA_brush_types.h.

◆ era_strength_f

float BrushGpencilSettings::era_strength_f

Factor to apply to strength for soft eraser.

Definition at line 74 of file DNA_brush_types.h.

Referenced by blo_do_versions_280().

◆ era_thickness_f

float BrushGpencilSettings::era_thickness_f

Factor to apply to thickness for soft eraser.

Definition at line 76 of file DNA_brush_types.h.

Referenced by blo_do_versions_280().

◆ eraser_mode

int BrushGpencilSettings::eraser_mode

Soft, hard or stroke.

Definition at line 70 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::EraseOperation::on_stroke_begin().

◆ fill_direction

short BrushGpencilSettings::fill_direction

◆ fill_draw_mode

int BrushGpencilSettings::fill_draw_mode

Type of control lines drawing mode.

Definition at line 59 of file DNA_brush_types.h.

Referenced by blender::ed::greasepencil::render_strokes().

◆ fill_extend_fac

float BrushGpencilSettings::fill_extend_fac

Factor to extend stroke extremes using fill tool.

Definition at line 111 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::GreasePencilFillOpData::from_context(), and blender::ed::sculpt_paint::grease_pencil_apply_fill().

◆ fill_extend_mode

int BrushGpencilSettings::fill_extend_mode

Type of gap filling extension to use.

Definition at line 61 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::GreasePencilFillOpData::from_context().

◆ fill_factor

float BrushGpencilSettings::fill_factor

Fill zoom factor

Definition at line 26 of file DNA_brush_types.h.

Referenced by blender::ed::greasepencil::fill_strokes().

◆ fill_layer_mode

short BrushGpencilSettings::fill_layer_mode

Layers used for fill.

Definition at line 44 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::grease_pencil_apply_fill().

◆ fill_simplylvl

int BrushGpencilSettings::fill_simplylvl

Number of simplify steps.

Definition at line 57 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::grease_pencil_apply_fill().

◆ fill_threshold

float BrushGpencilSettings::fill_threshold

Factor for transparency.

Definition at line 48 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::grease_pencil_apply_fill().

◆ flag

int BrushGpencilSettings::flag

◆ flag2

◆ hardness

◆ input_samples

int BrushGpencilSettings::input_samples

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

Definition at line 64 of file DNA_brush_types.h.

◆ material

◆ material_alt

struct Material* BrushGpencilSettings::material_alt

Material Alternative for secondary operations.

Definition at line 134 of file DNA_brush_types.h.

Referenced by BKE_grease_pencil_object_material_alt_ensure_from_brush(), brush_foreach_id(), and TEST_F().

◆ outline_fac

float BrushGpencilSettings::outline_fac

Factor for external line thickness conversion to outline.

Definition at line 126 of file DNA_brush_types.h.

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

◆ preset_type

short BrushGpencilSettings::preset_type

Preset type (used to reset brushes - internal).

Definition at line 96 of file DNA_brush_types.h.

◆ random_hue

float BrushGpencilSettings::random_hue

Randomness for Hue.

Definition at line 101 of file DNA_brush_types.h.

Referenced by do_version_convert_gp_jitter_values().

◆ random_saturation

float BrushGpencilSettings::random_saturation

Randomness for Saturation.

Definition at line 103 of file DNA_brush_types.h.

Referenced by do_version_convert_gp_jitter_values().

◆ random_value

float BrushGpencilSettings::random_value

Randomness for Value.

Definition at line 105 of file DNA_brush_types.h.

Referenced by do_version_convert_gp_jitter_values().

◆ sculpt_flag

int BrushGpencilSettings::sculpt_flag

eGP_Sculpt_Flag.

Definition at line 92 of file DNA_brush_types.h.

◆ sculpt_mode_flag

◆ simplify_f

float BrushGpencilSettings::simplify_f

Simplify adaptive factor

Definition at line 85 of file DNA_brush_types.h.

◆ simplify_px

float BrushGpencilSettings::simplify_px

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

Definition at line 128 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


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