Blender V4.3
tGPsdata Struct Reference

Public Attributes

Mainbmain
 
Scenescene
 
Depsgraph * depsgraph
 
wmWindowwin
 
ScrAreaarea
 
ARegionregion
 
View2Dv2d
 
ViewDepthsdepths
 
const rctfsubrect
 
rctf subrect_data
 
GP_SpaceConversion gsc
 
PointerRNA ownerPtr
 
bGPdatagpd
 
bGPDlayergpl
 
bGPDframegpf
 
char * align_flag
 
eGPencil_PaintStatus status
 
eGPencil_PaintModes paintmode
 
eGPencil_PaintFlags flags
 
short radius
 
float stabilizer_factor
 
char stabilizer_radius
 
void * stabilizer_cursor
 
float mval [2]
 
float mvalo [2]
 
float pressure
 
float opressure
 
double inittime
 
double curtime
 
double ocurtime
 
float imat [4][4]
 
float mat [4][4]
 
float custom_color [4]
 
void * erasercursor
 
short straight [2]
 
short keymodifier
 

Detailed Description

Definition at line 93 of file annotate_paint.cc.

Member Data Documentation

◆ align_flag

char* tGPsdata::align_flag

projection-mode flags (toolsettings - eGPencil_Placement_Flags)

Definition at line 126 of file annotate_paint.cc.

Referenced by annotation_paint_initstroke(), annotation_project_check(), and annotation_session_initdata().

◆ area

◆ bmain

Main* tGPsdata::bmain

◆ curtime

double tGPsdata::curtime

Used when converting to path.

Definition at line 161 of file annotate_paint.cc.

Referenced by annotation_draw_apply(), annotation_draw_apply_event(), and annotation_draw_exec().

◆ custom_color

float tGPsdata::custom_color[4]

custom color - hack for enforcing a particular color for track/mask editing.

Definition at line 171 of file annotate_paint.cc.

Referenced by annotation_paint_initstroke(), and annotation_session_initdata().

◆ depsgraph

◆ depths

ViewDepths* tGPsdata::depths

◆ erasercursor

void* tGPsdata::erasercursor

radial cursor data for drawing eraser.

Definition at line 174 of file annotate_paint.cc.

Referenced by annotation_draw_toggle_eraser_cursor().

◆ flags

◆ gpd

◆ gpf

◆ gpl

bGPDlayer* tGPsdata::gpl

layer we're working on.

Definition at line 121 of file annotate_paint.cc.

Referenced by annotation_paint_initstroke(), annotation_stroke_end(), and annotation_stroke_newfrombuffer().

◆ gsc

GP_SpaceConversion tGPsdata::gsc

settings to pass to gp_points_to_xy().

Definition at line 114 of file annotate_paint.cc.

Referenced by annotation_paint_initstroke(), annotation_session_initdata(), and annotation_stroke_eraser_dostroke().

◆ imat

float tGPsdata::imat[4][4]

Inverted transformation matrix applying when converting coords from screen-space to region space.

Definition at line 167 of file annotate_paint.cc.

Referenced by annotation_session_initdata(), and annotation_stroke_convertcoords().

◆ inittime

◆ keymodifier

short tGPsdata::keymodifier

key used for invoking the operator.

Definition at line 180 of file annotate_paint.cc.

Referenced by annotation_draw_init().

◆ mat

float tGPsdata::mat[4][4]

Definition at line 168 of file annotate_paint.cc.

Referenced by annotation_paint_initstroke(), and annotation_session_initdata().

◆ mval

◆ mvalo

float tGPsdata::mvalo[2]

◆ ocurtime

double tGPsdata::ocurtime

Used when converting to path.

Definition at line 163 of file annotate_paint.cc.

Referenced by annotation_draw_apply(), annotation_draw_apply_event(), and annotation_draw_exec().

◆ opressure

float tGPsdata::opressure

previous stylus pressure.

Definition at line 151 of file annotate_paint.cc.

Referenced by annotation_draw_apply(), annotation_draw_apply_event(), and annotation_draw_exec().

◆ ownerPtr

PointerRNA tGPsdata::ownerPtr

pointer to owner of gp-datablock.

Definition at line 117 of file annotate_paint.cc.

Referenced by annotation_session_initdata().

◆ paintmode

◆ pressure

float tGPsdata::pressure

current stylus pressure.

Definition at line 149 of file annotate_paint.cc.

Referenced by annotation_draw_apply(), annotation_draw_apply_event(), and annotation_draw_exec().

◆ radius

short tGPsdata::radius

◆ region

◆ scene

◆ stabilizer_cursor

void* tGPsdata::stabilizer_cursor

Definition at line 141 of file annotate_paint.cc.

Referenced by annotation_draw_toggle_stabilizer_cursor().

◆ stabilizer_factor

float tGPsdata::stabilizer_factor

Definition at line 139 of file annotate_paint.cc.

Referenced by annotation_draw_apply(), and annotation_draw_invoke().

◆ stabilizer_radius

char tGPsdata::stabilizer_radius

Definition at line 140 of file annotate_paint.cc.

Referenced by annotation_draw_invoke(), and annotation_stroke_filtermval().

◆ status

◆ straight

short tGPsdata::straight[2]

1: line horizontal, 2: line vertical, other: not defined, second element position.

Definition at line 177 of file annotate_paint.cc.

Referenced by annotation_draw_apply_event().

◆ subrect

const rctf* tGPsdata::subrect

for using the camera rect within the 3d view.

Definition at line 110 of file annotate_paint.cc.

Referenced by annotation_paint_initstroke(), and annotation_stroke_convertcoords().

◆ subrect_data

rctf tGPsdata::subrect_data

Definition at line 111 of file annotate_paint.cc.

Referenced by annotation_paint_initstroke().

◆ v2d

View2D* tGPsdata::v2d

needed for GP_STROKE_2DSPACE.

Definition at line 106 of file annotate_paint.cc.

Referenced by annotation_paint_initstroke(), annotation_session_initdata(), and annotation_stroke_convertcoords().

◆ win


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