Blender  V3.3
Public Attributes | List of all members
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
 
short fill_leak
 
int8_t caps_type
 
char _pad
 
int flag2
 
int fill_simplylvl
 
int fill_draw_mode
 
int icon_id
 
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 hardeness
 
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
 
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
 
struct Materialmaterial
 

Detailed Description

Definition at line 34 of file DNA_brush_types.h.

Member Data Documentation

◆ _pad

char BrushGpencilSettings::_pad

Definition at line 65 of file DNA_brush_types.h.

◆ active_smooth

float BrushGpencilSettings::active_smooth

Smooth while drawing factor.

Definition at line 85 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), and gpencil_stroke_addpoint().

◆ aspect_ratio

float BrushGpencilSettings::aspect_ratio[2]

◆ brush_draw_mode

short BrushGpencilSettings::brush_draw_mode

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

Definition at line 111 of file DNA_brush_types.h.

Referenced by ED_gpencil_fill_vertex_color_set(), ED_gpencil_point_vertex_color_set(), and ED_gpencil_sbuffer_vertex_color_set().

◆ caps_type

int8_t BrushGpencilSettings::caps_type

◆ curve_jitter

struct CurveMapping* BrushGpencilSettings::curve_jitter

◆ curve_rand_hue

struct CurveMapping* BrushGpencilSettings::curve_rand_hue

◆ curve_rand_pressure

struct CurveMapping* BrushGpencilSettings::curve_rand_pressure

◆ curve_rand_saturation

struct CurveMapping* BrushGpencilSettings::curve_rand_saturation

◆ curve_rand_strength

struct CurveMapping* BrushGpencilSettings::curve_rand_strength

◆ curve_rand_uv

struct CurveMapping* BrushGpencilSettings::curve_rand_uv

◆ curve_rand_value

struct CurveMapping* BrushGpencilSettings::curve_rand_value

◆ curve_sensitivity

struct CurveMapping* BrushGpencilSettings::curve_sensitivity

◆ curve_strength

struct CurveMapping* BrushGpencilSettings::curve_strength

◆ dilate_pixels

int BrushGpencilSettings::dilate_pixels

Number of pixels to dilate fill area.

Definition at line 123 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), and gpencil_get_outline_points().

◆ DNA_DEPRECATED

int brush_type BrushGpencilSettings::DNA_DEPRECATED

Moved to 'Brush.gpencil_tool'.

Definition at line 81 of file DNA_brush_types.h.

◆ draw_angle

float BrushGpencilSettings::draw_angle

Angle when the brush has full thickness.

Definition at line 44 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), gpencil_brush_angle(), and gpencil_brush_angle_segment().

◆ draw_angle_factor

float BrushGpencilSettings::draw_angle_factor

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

Definition at line 46 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), gpencil_add_arc_points(), gpencil_brush_angle(), gpencil_brush_angle_segment(), and gpencil_stroke_addpoint().

◆ draw_jitter

float BrushGpencilSettings::draw_jitter

Amount of jitter to apply to newly created strokes.

Definition at line 42 of file DNA_brush_types.h.

Referenced by BKE_brush_init_gpencil_settings(), BKE_gpencil_brush_preset_set(), gpencil_primitive_update_strokes(), and gpencil_stroke_addpoint().

◆ 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 36 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), and gpencil_stroke_newfrombuffer().

◆ draw_smoothlvl

short BrushGpencilSettings::draw_smoothlvl

Number of times to apply smooth factor to new strokes.

Definition at line 52 of file DNA_brush_types.h.

Referenced by BKE_brush_init_gpencil_settings(), BKE_gpencil_brush_preset_set(), and gpencil_stroke_newfrombuffer().

◆ draw_strength

float BrushGpencilSettings::draw_strength

◆ draw_subdivide

short BrushGpencilSettings::draw_subdivide

Number of times to subdivide new strokes.

Definition at line 54 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), and gpencil_stroke_newfrombuffer().

◆ era_strength_f

float BrushGpencilSettings::era_strength_f

Factor to apply to strength for soft eraser.

Definition at line 87 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), blo_do_versions_280(), and gpencil_stroke_eraser_dostroke().

◆ era_thickness_f

float BrushGpencilSettings::era_thickness_f

Factor to apply to thickness for soft eraser.

Definition at line 89 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), blo_do_versions_280(), and gpencil_stroke_eraser_dostroke().

◆ eraser_mode

int BrushGpencilSettings::eraser_mode

Soft, hard or stroke.

Definition at line 83 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), gpencil_get_default_eraser(), and gpencil_stroke_eraser_dostroke().

◆ fill_direction

short BrushGpencilSettings::fill_direction

Definition at line 57 of file DNA_brush_types.h.

Referenced by gpencil_fill_modal().

◆ fill_draw_mode

int BrushGpencilSettings::fill_draw_mode

Type of control lines drawing mode.

Definition at line 72 of file DNA_brush_types.h.

Referenced by gpencil_session_init_fill().

◆ fill_extend_fac

float BrushGpencilSettings::fill_extend_fac

Factor to extend stroke extremes using fill tool.

Definition at line 121 of file DNA_brush_types.h.

Referenced by gpencil_fill_modal(), and gpencil_session_init_fill().

◆ fill_factor

float BrushGpencilSettings::fill_factor

Fill zoom factor

Definition at line 38 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), gpencil_fill_modal(), and gpencil_session_init_fill().

◆ fill_layer_mode

short BrushGpencilSettings::fill_layer_mode

Layers used for fill.

Definition at line 56 of file DNA_brush_types.h.

Referenced by gpencil_create_extensions(), gpencil_draw_datablock(), and gpencil_zoom_level_set().

◆ fill_leak

short BrushGpencilSettings::fill_leak

Number of pixel to consider the leak is too small (x 2).

Definition at line 62 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), and gpencil_session_init_fill().

◆ fill_simplylvl

int BrushGpencilSettings::fill_simplylvl

Number of simplify steps.

Definition at line 70 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), and gpencil_session_init_fill().

◆ fill_threshold

float BrushGpencilSettings::fill_threshold

Factor for transparency.

Definition at line 60 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), and gpencil_session_init_fill().

◆ flag

int BrushGpencilSettings::flag

◆ flag2

int BrushGpencilSettings::flag2

◆ hardeness

float BrushGpencilSettings::hardeness

◆ icon_id

int BrushGpencilSettings::icon_id

◆ input_samples

int BrushGpencilSettings::input_samples

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

Definition at line 77 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), gpencil_add_fake_points(), and gpencil_stroke_newfrombuffer().

◆ material

struct Material* BrushGpencilSettings::material

◆ preset_type

short BrushGpencilSettings::preset_type

Preset type (used to reset brushes - internal).

Definition at line 109 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), and gpencil_brush_reset_exec().

◆ random_hue

float BrushGpencilSettings::random_hue

Randomness for Hue.

Definition at line 114 of file DNA_brush_types.h.

Referenced by ED_gpencil_init_random_settings(), and gpencil_sbuffer_vertex_color_random().

◆ random_saturation

float BrushGpencilSettings::random_saturation

Randomness for Saturation.

Definition at line 116 of file DNA_brush_types.h.

Referenced by ED_gpencil_init_random_settings(), and gpencil_sbuffer_vertex_color_random().

◆ random_value

float BrushGpencilSettings::random_value

Randomness for Value.

Definition at line 118 of file DNA_brush_types.h.

Referenced by ED_gpencil_init_random_settings(), and gpencil_sbuffer_vertex_color_random().

◆ sculpt_flag

int BrushGpencilSettings::sculpt_flag

◆ sculpt_mode_flag

int BrushGpencilSettings::sculpt_mode_flag

◆ simplify_f

float BrushGpencilSettings::simplify_f

Simplify adaptive factor

Definition at line 98 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set(), and gpencil_stroke_newfrombuffer().

◆ uv_random

float BrushGpencilSettings::uv_random

Random factor for UV rotation.

Definition at line 79 of file DNA_brush_types.h.

Referenced by ED_gpencil_init_random_settings(), and gpencil_apply_randomness().

◆ vertex_factor

float BrushGpencilSettings::vertex_factor

◆ vertex_mode

int BrushGpencilSettings::vertex_mode

Definition at line 102 of file DNA_brush_types.h.

Referenced by BKE_gpencil_brush_preset_set().


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