Blender V5.0
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 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 230 of file DNA_gpencil_legacy_types.h.

Member Data Documentation

◆ _pad

short bGPDstroke::_pad[2]

Definition at line 247 of file DNA_gpencil_legacy_types.h.

◆ _pad3

void* bGPDstroke::_pad3

Definition at line 280 of file DNA_gpencil_legacy_types.h.

◆ _pad4

char bGPDstroke::_pad4[4]

Definition at line 276 of file DNA_gpencil_legacy_types.h.

◆ _pad5

void* bGPDstroke::_pad5

Definition at line 289 of file DNA_gpencil_legacy_types.h.

◆ aspect_ratio

float bGPDstroke::aspect_ratio[2]

factor xy of shape for dots gradients

Definition at line 263 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_stroke_newfrombuffer(), and view3d_ruler_to_gpencil().

◆ caps

short bGPDstroke::caps[2]

Caps mode for each stroke extreme

Definition at line 258 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 253 of file DNA_gpencil_legacy_types.h.

◆ dvert

◆ editcurve

struct bGPDcurve* bGPDstroke::editcurve

Curve used to edit the stroke using Bezier handlers.

Definition at line 286 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_free_stroke(), BKE_gpencil_free_stroke_editcurve(), and BKE_gpencil_stroke_duplicate().

◆ fill_opacity_fac

float bGPDstroke::fill_opacity_fac

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

Definition at line 266 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_stroke_newfrombuffer(), and view3d_ruler_to_gpencil().

◆ flag

◆ hardness

float bGPDstroke::hardness

gradient control along y for color

Definition at line 261 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_stroke_newfrombuffer(), and view3d_ruler_to_gpencil().

◆ inittime

double bGPDstroke::inittime

Init time of stroke.

Definition at line 250 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_stroke_newfrombuffer(), and BKE_gpencil_stroke_delete_tagged_points().

◆ mat_nr

int bGPDstroke::mat_nr

Material index.

Definition at line 256 of file DNA_gpencil_legacy_types.h.

◆ next

◆ points

◆ prev

struct bGPDstroke * bGPDstroke::prev

Definition at line 233 of file DNA_gpencil_legacy_types.h.

Referenced by BKE_gpencil_stroke_duplicate().

◆ runtime

bGPDstroke_Runtime bGPDstroke::runtime

Definition at line 288 of file DNA_gpencil_legacy_types.h.

◆ select_index

int bGPDstroke::select_index

Stroke selection index.

Definition at line 275 of file DNA_gpencil_legacy_types.h.

◆ thickness

short bGPDstroke::thickness

Thickness of stroke.

Definition at line 245 of file DNA_gpencil_legacy_types.h.

Referenced by annotation_stroke_newfrombuffer(), and view3d_ruler_to_gpencil().

◆ tot_triangles

int bGPDstroke::tot_triangles

◆ totpoints

◆ 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 271 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 283 of file DNA_gpencil_legacy_types.h.


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