Blender V4.5
DNA_brush_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2005 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_ID.h"
12#include "DNA_brush_enums.h"
13#include "DNA_curve_types.h"
14#include "DNA_defs.h"
15#include "DNA_texture_types.h" /* for MTex */
16
17struct CurveMapping;
18struct Image;
19struct MTex;
20struct Material;
21
22typedef struct BrushGpencilSettings {
46
49 char _pad2[2];
50 /* Type of caps: eGPDstroke_Caps. */
51 int8_t caps_type;
52 char _pad[1];
53
54 int flag2;
55
62
66 float uv_random;
68 int brush_type DNA_DEPRECATED;
78 int flag;
79
81 float hardness;
83 float aspect_ratio[2];
86
90
99
106
108 char _pad1[4];
109
114
124
129
130 /* optional link of material to replace default in context */
136
159
161#define AUTOMASKING_BOUNDARY_EDGES_MAX_PROPAGATION_STEPS 20
166typedef struct Brush {
167#ifdef __cplusplus
170 static constexpr ID_Type id_type = ID_BR;
171#endif
172
174
177 struct MTex mtex;
179
180 /* TODO (Sean): To be removed in 5.0 */
181 struct Brush *toggle_brush DNA_DEPRECATED;
182
188
189 char icon_filepath[/*FILE_MAX*/ 1024];
190
194
196 short blend;
198 short ob_mode;
200 float weight;
202 int size;
204 int flag;
205 int flag2;
207
210
214 float jitter;
225 float rate;
226
228 float rgb[3];
230 float hsv_jitter[3];
231
236
238 float alpha;
240 float hardness;
242 float flow;
244 float wet_mix;
247 float density;
249
251 /* Factor that controls the shape of the brush tip by rounding the corners of a square. */
252 /* 0.0 value produces a square, 1.0 produces a circle. */
255
258
262
265
268
274
280
284
305 char _pad1[10];
306
308
310
312
314
318
321 float height;
322
323 /* Plane Brush */
329
331
333
334 /* Maximum distance to search fake neighbors from a vertex. */
336
338
339 /* automasking */
342
347
350
351 /* snake hook */
353
354 /* pose */
360
361 /* boundary */
365
366 /* cloth */
370
373
376
378
379 /* smooth */
384
385 /* multiplane scrape */
387
388 /* smear */
390
391 /* slide/relax */
393
394 /* overlay */
398
400
401 /* soften/sharpen */
405
406 /* fill tool */
408
409 float add_col[4];
410 float sub_col[4];
411
412 float stencil_pos[2];
414
417
420
423
426
427/* Struct to hold palette colors for sorting. */
428typedef struct tPaletteColorHSV {
429 float rgb[3];
430 float value;
431 float h;
432 float s;
433 float v;
435
436typedef struct PaletteColor {
438 /* two values, one to store rgb, other to store values for sculpt/weight */
439 float rgb[3];
440 float value;
442
443typedef struct Palette {
444#ifdef __cplusplus
446 static constexpr ID_Type id_type = ID_PAL;
447#endif
448
450
453
455 char _pad[4];
457
464
465typedef struct PaintCurve {
466#ifdef __cplusplus
468 static constexpr ID_Type id_type = ID_PC;
469#endif
470
ID and Library types, which are fundamental for SDNA.
ID_Type
@ ID_PAL
@ ID_BR
@ ID_PC
#define DNA_DEFINE_CXX_METHODS(class_name)
struct CurveMapping * curve_parameter_falloff
struct CurveMapping * curve_sensitivity
struct CurveMapping * curve_strength
struct CurveMapping * curve_jitter
struct CurveMapping * curve_rand_pressure
struct CurveMapping * curve_rand_strength
struct CurveMapping * curve_rand_saturation
struct CurveMapping * curve_rand_hue
struct CurveMapping * curve_rand_uv
int brush_type DNA_DEPRECATED
struct Material * material
struct Material * material_alt
struct CurveMapping * curve_rand_value
float cloth_mass
float falloff_angle
float multiplane_scrape_angle
float alpha
int pose_deform_type
float topology_rake_factor
float automasking_cavity_factor
char sculpt_brush_type
float jitter
int mask_overlay_alpha
int plane_inversion_mode
struct ImBuf * icon_imbuf
struct ColorBand * gradient
int sculpt_plane
int blur_kernel_radius
struct CurveMapping * curve_rand_saturation
int cloth_deform_type
float area_radius_factor
int snake_hook_deform_type
float density
int slide_deform_type
int elastic_deform_type
float automasking_view_normal_limit
int automasking_flags
float add_col[4]
float normal_radius_factor
struct CurveMapping * curve_rand_hue
struct MTex mtex
int pose_smooth_iterations
float stencil_pos[2]
int texture_overlay_alpha
float normal_weight
float rake_factor
float stabilize_normal
float elastic_deform_volume_preservation
float unprojected_radius
char gpencil_sculpt_brush_type
float smooth_stroke_factor
float sharp_threshold
short ob_mode
float cloth_sim_falloff
float wet_paint_radius_factor
float stencil_dimension[2]
int smooth_stroke_radius
int cursor_overlay_alpha
char image_brush_type
int curve_preset
float plane_depth
int automasking_cavity_blur_steps
struct CurveMapping * curve
float tip_scale_x
float texture_sample_bias
struct CurveMapping * curve_rand_value
float fill_threshold
int boundary_falloff_type
float stabilize_plane
float plane_trim
int automasking_boundary_edges_propagation_steps
int dash_samples
char gradient_fill_mode
char falloff_shape
float tilt_strength_factor
int jitter_absolute
float mask_stencil_pos[2]
float rgb[3]
char gpencil_weight_brush_type
float hardness
struct BrushGpencilSettings * gpencil_settings
float cloth_sim_limit
char has_unsaved_changes
struct Brush *toggle_brush DNA_DEPRECATED
short blend
char gradient_stroke_mode
char gpencil_vertex_brush_type
int input_samples
float height
int sampling_flag
char icon_filepath[1024]
PreviewImage * preview
float sub_col[4]
struct CurveMapping * automasking_cavity_curve
int pose_ik_segments
float dash_ratio
struct BrushCurvesSculptSettings * curves_sculpt_settings
char curves_sculpt_brush_type
float crease_pinch_factor
char mask_tool
float plane_height
float disconnected_distance_max
int smooth_deform_type
char _pad1[10]
struct MTex mask_mtex
float automasking_start_normal_limit
int mask_pressure
float mask_stencil_dimension[2]
int cloth_simulation_area_type
float wet_mix
float wet_persistence
float boundary_offset
float automasking_start_normal_falloff
int color_jitter_flag
int deform_target
float weight
float plane_offset
float automasking_view_normal_falloff
int gradient_spacing
char gpencil_brush_type
float secondary_rgb[3]
int smear_deform_type
int surface_smooth_iterations
float cloth_constraint_softbody_strength
float surface_smooth_current_vertex
struct PaintCurve * paint_curve
char weight_brush_type
float hsv_jitter[3]
int cloth_force_falloff_type
int boundary_deform_type
float pose_offset
int pose_origin_type
float tip_roundness
float autosmooth_factor
int paint_flags
float cloth_damping
int overlay_flags
char vertex_brush_type
float surface_smooth_shape_preservation
Definition DNA_ID.h:404
PaintCurvePoint * points
struct PaletteColor * next
struct PaletteColor * prev
ListBase colors
char _pad[4]