Blender V4.3
bGPDstroke Struct Reference

#include <DNA_gpencil_legacy_types.h>

Public Attributes

struct bGPDstrokenext
 
struct bGPDstrokeprev
 
bGPDspointpoints
 
bGPDtriangletriangles
 
int totpoints
 
int tot_triangles
 
short thickness
 
short flag
 
short _pad [2]
 
double inittime
 
char colorname[128] DNA_DEPRECATED
 
int mat_nr
 
short caps [2]
 
float hardness
 
float aspect_ratio [2]
 
float fill_opacity_fac
 
float boundbox_min [3]
 
float boundbox_max [3]
 
float uv_rotation
 
float uv_translation [2]
 
float uv_scale
 
int select_index
 
char _pad4 [4]
 
struct MDeformVertdvert
 
void * _pad3
 
float vert_color_fill [4]
 
struct bGPDcurveeditcurve
 
bGPDstroke_Runtime runtime
 
void * _pad5
 

Detailed Description

Grease-Pencil Annotations - 'Stroke' -> A stroke represents a (simplified version) of the curve drawn by the user in one 'mouse-down'->'mouse-up' operation

Definition at line 273 of file DNA_gpencil_legacy_types.h.

Member Data Documentation

◆ _pad

short bGPDstroke::_pad[2]

Definition at line 290 of file DNA_gpencil_legacy_types.h.

◆ _pad3

void* bGPDstroke::_pad3

Definition at line 328 of file DNA_gpencil_legacy_types.h.

◆ _pad4

char bGPDstroke::_pad4[4]

Definition at line 324 of file DNA_gpencil_legacy_types.h.

◆ _pad5

void* bGPDstroke::_pad5

Definition at line 337 of file DNA_gpencil_legacy_types.h.

◆ aspect_ratio

float bGPDstroke::aspect_ratio[2]

factor xy of shape for dots gradients

Definition at line 306 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_stroke_newfrombuffer(), BKE_gpencil_stroke_new(), and view3d_ruler_to_gpencil().

◆ boundbox_max

float bGPDstroke::boundbox_max[3]

Max of the bound box used to speedup painting operators.

Definition at line 314 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_stroke_boundingbox_calc(), and BKE_gpencil_stroke_editcurve_generate().

◆ boundbox_min

float bGPDstroke::boundbox_min[3]

Min of the bound box used to speedup painting operators.

Definition at line 312 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_stroke_boundingbox_calc(), and BKE_gpencil_stroke_editcurve_generate().

◆ caps

short bGPDstroke::caps[2]

Caps mode for each stroke extreme

Definition at line 301 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_stroke_delete_tagged_points().

◆ DNA_DEPRECATED

char colorname [128] bGPDstroke::DNA_DEPRECATED

Color name.

Definition at line 296 of file DNA_gpencil_legacy_types.h.

◆ dvert

◆ editcurve

◆ fill_opacity_fac

float bGPDstroke::fill_opacity_fac

Factor of opacity for Fill color (used by opacity modifier).

Definition at line 309 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_stroke_newfrombuffer(), BKE_gpencil_stroke_new(), and view3d_ruler_to_gpencil().

◆ flag

◆ hardness

float bGPDstroke::hardness

gradient control along y for color

Definition at line 304 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_stroke_newfrombuffer(), BKE_gpencil_stroke_new(), and view3d_ruler_to_gpencil().

◆ inittime

double bGPDstroke::inittime

◆ mat_nr

int bGPDstroke::mat_nr

◆ next

◆ points

bGPDspoint* bGPDstroke::points

Array of data-points for stroke.

Definition at line 279 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_can_draw_stroke(), annotation_free_stroke(), annotation_stroke_addpoint(), annotation_stroke_arrow_allocate(), annotation_stroke_eraser_dostroke(), annotation_stroke_newfrombuffer(), BKE_gpencil_editcurve_stroke_sync_selection(), BKE_gpencil_frame_original_pointers_update(), BKE_gpencil_free_stroke(), BKE_gpencil_point_coords_apply(), BKE_gpencil_point_coords_apply_with_mat4(), BKE_gpencil_point_coords_get(), BKE_gpencil_stroke_average_pressure_get(), BKE_gpencil_stroke_close(), BKE_gpencil_stroke_delete_tagged_points(), BKE_gpencil_stroke_duplicate(), BKE_gpencil_stroke_editcurve_generate(), BKE_gpencil_stroke_fill_triangulate(), BKE_gpencil_stroke_flip(), BKE_gpencil_stroke_from_view_space(), BKE_gpencil_stroke_is_pressure_constant(), BKE_gpencil_stroke_join(), BKE_gpencil_stroke_length(), BKE_gpencil_stroke_minmax(), BKE_gpencil_stroke_new(), BKE_gpencil_stroke_normal(), BKE_gpencil_stroke_segment_length(), BKE_gpencil_stroke_set_random_color(), BKE_gpencil_stroke_smooth(), BKE_gpencil_stroke_smooth_point(), BKE_gpencil_stroke_smooth_strength(), BKE_gpencil_stroke_smooth_thickness(), BKE_gpencil_stroke_smooth_uv(), BKE_gpencil_stroke_to_view_space(), BKE_gpencil_stroke_trim(), BKE_gpencil_stroke_uv_update(), BKE_gpencil_transform(), check_point_in_stroke(), createTransGPencil_center_get(), draw_distortion(), ED_gpencil_strokes_copybuf_free(), blender::bke::greasepencil::convert::get_legacy_layer_to_stroke_matrix(), gpencil_stroke_copy_point(), gpencil_stroke_editcurve_generate_edgecases(), gpencil_stroke_join_islands(), track_mask_gpencil_layer_rasterize(), and view3d_ruler_to_gpencil().

◆ prev

struct bGPDstroke * bGPDstroke::prev

Definition at line 276 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_stroke_duplicate().

◆ runtime

◆ select_index

int bGPDstroke::select_index

Stroke selection index.

Definition at line 323 of file DNA_gpencil_legacy_types.h.

◆ thickness

short bGPDstroke::thickness

◆ tot_triangles

◆ totpoints

int bGPDstroke::totpoints

Number of data-points in array.

Definition at line 283 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_can_draw_stroke(), annotation_stroke_addpoint(), annotation_stroke_arrow_allocate(), annotation_stroke_eraser_dostroke(), annotation_stroke_newfrombuffer(), BKE_armature_deform_coords_with_gpencil_stroke(), BKE_gpencil_frame_original_pointers_update(), BKE_gpencil_free_stroke_weights(), BKE_gpencil_point_coords_apply(), BKE_gpencil_point_coords_apply_with_mat4(), BKE_gpencil_point_coords_get(), BKE_gpencil_stroke_average_pressure_get(), BKE_gpencil_stroke_close(), BKE_gpencil_stroke_delete_tagged_points(), BKE_gpencil_stroke_editcurve_generate(), BKE_gpencil_stroke_fill_triangulate(), BKE_gpencil_stroke_flip(), BKE_gpencil_stroke_from_view_space(), BKE_gpencil_stroke_geometry_update(), BKE_gpencil_stroke_is_pressure_constant(), BKE_gpencil_stroke_join(), BKE_gpencil_stroke_length(), BKE_gpencil_stroke_minmax(), BKE_gpencil_stroke_new(), BKE_gpencil_stroke_normal(), BKE_gpencil_stroke_point_count(), BKE_gpencil_stroke_segment_length(), BKE_gpencil_stroke_set_random_color(), BKE_gpencil_stroke_smooth(), BKE_gpencil_stroke_smooth_point(), BKE_gpencil_stroke_smooth_strength(), BKE_gpencil_stroke_smooth_thickness(), BKE_gpencil_stroke_smooth_uv(), BKE_gpencil_stroke_to_view_space(), BKE_gpencil_stroke_trim(), BKE_gpencil_stroke_uv_update(), BKE_gpencil_stroke_weights_duplicate(), BKE_gpencil_transform(), check_point_in_stroke(), createTransGPencil_center_get(), draw_distortion(), blender::bke::greasepencil::convert::get_legacy_layer_to_stroke_matrix(), gpencil_calc_stroke_fill_uv(), gpencil_stroke_copy_point(), gpencil_stroke_editcurve_generate_edgecases(), gpencil_stroke_join_islands(), track_mask_gpencil_layer_rasterize(), and view3d_ruler_to_gpencil().

◆ triangles

◆ uv_rotation

float bGPDstroke::uv_rotation

◆ uv_scale

◆ uv_translation

float bGPDstroke::uv_translation[2]

UV translation (X and Y axis)

Definition at line 319 of file DNA_gpencil_legacy_types.h.

Referenced by blender::bke::greasepencil::convert::get_legacy_texture_matrix(), and gpencil_calc_stroke_fill_uv().

◆ vert_color_fill

float bGPDstroke::vert_color_fill[4]

Vertex Color for Fill (one for all stroke, A=mix factor).

Definition at line 331 of file DNA_gpencil_legacy_types.h.


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