Blender V4.3
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 BrushClone {
24 struct Image *image;
26 float offset[2];
28 float alpha;
29 char _pad[4];
31
32typedef struct BrushGpencilSettings {
56
59 char _pad2[2];
60 /* Type of caps: eGPDstroke_Caps. */
62 char _pad[1];
63
64 int flag2;
65
72
76 float uv_random;
78 int brush_type DNA_DEPRECATED;
88 int flag;
89
91 float hardness;
93 float aspect_ratio[2];
96
100
109
116
121
131
136
137 /* optional link of material to replace default in context */
143
166
168#define AUTOMASKING_BOUNDARY_EDGES_MAX_PROPAGATION_STEPS 20
173typedef struct Brush {
175
176 ID id;
177
181 struct MTex mtex;
183
185
191
193 char icon_filepath[1024];
194
198
200 short blend;
202 short ob_mode;
204 float weight;
206 int size;
208 int flag;
209 int flag2;
211
214
218 float jitter;
229 float rate;
230
232 float rgb[3];
234 float alpha;
236 float hardness;
238 float flow;
240 float wet_mix;
243 float density;
245
247 /* Factor that controls the shape of the brush tip by rounding the corners of a square. */
248 /* 0.0 value produces a square, 1.0 produces a circle. */
251
254
258
261
264
270
276
280
301 char _pad1[6];
302
304
306
308
310
314
317 float height;
318
320
322
323 /* Maximum distance to search fake neighbors from a vertex. */
325
327
328 /* automasking */
331
336
339
340 /* snake hook */
342
343 /* pose */
349
350 /* boundary */
354
355 /* cloth */
359
362
365
367
368 /* smooth */
373
374 /* multiplane scrape */
376
377 /* smear */
379
380 /* slide/relax */
382
383 /* overlay */
387
389
390 /* soften/sharpen */
394
395 /* fill tool */
397
398 float add_col[4];
399 float sub_col[4];
400
401 float stencil_pos[2];
403
406
409
412
415
416/* Struct to hold palette colors for sorting. */
417typedef struct tPaletteColorHSV {
418 float rgb[3];
419 float value;
420 float h;
421 float s;
422 float v;
424
425typedef struct PaletteColor {
427 /* two values, one to store rgb, other to store values for sculpt/weight */
428 float rgb[3];
429 float value;
431
432typedef struct Palette {
434
437
439 char _pad[4];
441
448
ID and Library types, which are fundamental for SDNA.
struct PaintCurve PaintCurve
struct PaintCurvePoint PaintCurvePoint
struct PaletteColor PaletteColor
struct tPaletteColorHSV tPaletteColorHSV
struct Palette Palette
#define DNA_DEFINE_CXX_METHODS(class_name)
Definition DNA_defs.h:66
unsigned int uint32_t
Definition stdint.h:80
unsigned char uint8_t
Definition stdint.h:78
signed char int8_t
Definition stdint.h:75
struct Image * image
float offset[2]
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
struct ImBuf * icon_imbuf
struct ColorBand * gradient
int sculpt_plane
int blur_kernel_radius
struct BrushClone clone
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 MTex mtex
int pose_smooth_iterations
float stencil_pos[2]
int texture_overlay_alpha
float normal_weight
float rake_factor
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 _pad1[6]
char image_brush_type
int curve_preset
int automasking_cavity_blur_steps
struct CurveMapping * curve
float tip_scale_x
float texture_sample_bias
float fill_threshold
int boundary_falloff_type
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
short blend
struct Brush * toggle_brush
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 disconnected_distance_max
int smooth_deform_type
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 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
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:413
PaintCurvePoint * points
struct PaletteColor * next
struct PaletteColor * prev
ListBase colors
char _pad[4]