Blender  V3.3
Public Attributes | List of all members
tGPDprimitive Struct Reference

#include <gpencil_intern.h>

Public Attributes

struct Mainbmain
 
struct Depsgraphdepsgraph
 
struct wmWindowwin
 
struct Scenescene
 
struct Objectob
 
struct Objectob_eval
 
struct ScrAreaarea
 
struct RegionView3Drv3d
 
struct View3Dv3d
 
struct ARegionregion
 
struct bGPdatagpd
 
struct Materialmaterial
 
struct Brushbrush
 
struct ViewDepthsdepths
 
GP_SpaceConversion gsc
 
int cframe
 
struct bGPDlayergpl
 
struct bGPDframegpf
 
int type
 
int orign_type
 
bool curve
 
int brush_size
 
float brush_strength
 
short flip
 
tGPspointpoints
 
int point_count
 
int subdiv
 
int tot_stored_edges
 
int tot_edges
 
float move [2]
 
float origin [2]
 
float start [2]
 
float end [2]
 
float midpoint [2]
 
float cp1 [2]
 
float cp2 [2]
 
int sel_cp
 
int flag
 
int prev_flag
 
float mval [2]
 
float mvalo [2]
 
int lock_axis
 
struct RNGrng
 
NumInput num
 
float totpixlen
 
GpRandomSettings random_settings
 

Detailed Description

Definition at line 126 of file gpencil_intern.h.

Member Data Documentation

◆ area

struct ScrArea* tGPDprimitive::area

area where painting originated

Definition at line 139 of file gpencil_intern.h.

Referenced by gpencil_primitive_init().

◆ bmain

struct Main* tGPDprimitive::bmain

main database pointer

Definition at line 128 of file gpencil_intern.h.

Referenced by gpencil_init_colors(), and gpencil_primitive_init().

◆ brush

struct Brush* tGPDprimitive::brush

◆ brush_size

int tGPDprimitive::brush_size

brush size

Definition at line 171 of file gpencil_intern.h.

Referenced by gpencil_primitive_modal(), and gpencil_primitive_size().

◆ brush_strength

float tGPDprimitive::brush_strength

brush strength

Definition at line 173 of file gpencil_intern.h.

Referenced by gpencil_primitive_modal(), and gpencil_primitive_strength().

◆ cframe

int tGPDprimitive::cframe

current frame number

Definition at line 159 of file gpencil_intern.h.

Referenced by gpencil_primitive_init(), gpencil_primitive_interaction_end(), and gpencil_primitive_set_initdata().

◆ cp1

float tGPDprimitive::cp1[2]

◆ cp2

float tGPDprimitive::cp2[2]

◆ curve

bool tGPDprimitive::curve

◆ depsgraph

struct Depsgraph* tGPDprimitive::depsgraph

◆ depths

struct ViewDepths* tGPDprimitive::depths

For operations that require occlusion testing.

Definition at line 153 of file gpencil_intern.h.

Referenced by gpencil_primitive_exit(), and gpencil_primitive_update_strokes().

◆ end

float tGPDprimitive::end[2]

◆ flag

int tGPDprimitive::flag

◆ flip

short tGPDprimitive::flip

flip option

Definition at line 175 of file gpencil_intern.h.

Referenced by gpencil_primitive_edit_event_handling(), and gpencil_primitive_update_cps().

◆ gpd

struct bGPdata* tGPDprimitive::gpd

◆ gpf

struct bGPDframe* tGPDprimitive::gpf

◆ gpl

struct bGPDlayer* tGPDprimitive::gpl

◆ gsc

GP_SpaceConversion tGPDprimitive::gsc

Settings to pass to gp_points_to_xy().

Definition at line 156 of file gpencil_intern.h.

Referenced by gpencil_primitive_init(), and gpencil_primitive_interaction_end().

◆ lock_axis

int tGPDprimitive::lock_axis

lock to viewport axis

Definition at line 212 of file gpencil_intern.h.

Referenced by gpencil_primitive_init(), and gpencil_primitive_update_strokes().

◆ material

struct Material* tGPDprimitive::material

◆ midpoint

float tGPDprimitive::midpoint[2]

midpoint box corner

Definition at line 195 of file gpencil_intern.h.

Referenced by gpencil_primitive_arc(), gpencil_primitive_rectangle(), and gpencil_primitive_update_cps().

◆ move

float tGPDprimitive::move[2]

move distance

Definition at line 187 of file gpencil_intern.h.

Referenced by gpencil_primitive_modal(), and gpencil_primitive_move().

◆ mval

float tGPDprimitive::mval[2]

◆ mvalo

float tGPDprimitive::mvalo[2]

◆ num

NumInput tGPDprimitive::num

numeric input

Definition at line 216 of file gpencil_intern.h.

Referenced by gpencil_primitive_modal(), and gpencil_primitive_status_indicators().

◆ ob

struct Object* tGPDprimitive::ob

◆ ob_eval

struct Object* tGPDprimitive::ob_eval

current evaluated gp object

Definition at line 137 of file gpencil_intern.h.

Referenced by gpencil_primitive_init(), and gpencil_primitive_update_strokes().

◆ origin

float tGPDprimitive::origin[2]

◆ orign_type

int tGPDprimitive::orign_type

original type of primitive

Definition at line 167 of file gpencil_intern.h.

Referenced by gpencil_primitive_edit_event_handling(), gpencil_primitive_init(), and gpencil_primitive_modal().

◆ point_count

int tGPDprimitive::point_count

number of edges allocated

Definition at line 179 of file gpencil_intern.h.

Referenced by gpencil_primitive_allocate_memory().

◆ points

tGPspoint* tGPDprimitive::points

◆ prev_flag

int tGPDprimitive::prev_flag

flag to determine operations previous mode

Definition at line 205 of file gpencil_intern.h.

Referenced by gpencil_primitive_modal().

◆ random_settings

GpRandomSettings tGPDprimitive::random_settings

Random settings by stroke

Definition at line 222 of file gpencil_intern.h.

Referenced by gpencil_primitive_invoke(), gpencil_primitive_update_strokes(), and gpencil_session_validatebuffer().

◆ region

struct ARegion* tGPDprimitive::region

region where painting originated

Definition at line 145 of file gpencil_intern.h.

Referenced by gpencil_primitive_init(), gpencil_primitive_interaction_begin(), and gpencil_primitive_update_strokes().

◆ rng

struct RNG* tGPDprimitive::rng

◆ rv3d

struct RegionView3D* tGPDprimitive::rv3d

region where painting originated

Definition at line 141 of file gpencil_intern.h.

Referenced by gpencil_primitive_init(), and gpencil_primitive_update_strokes().

◆ scene

struct Scene* tGPDprimitive::scene

◆ sel_cp

int tGPDprimitive::sel_cp

flag to determine control point is selected

Definition at line 201 of file gpencil_intern.h.

Referenced by gpencil_primitive_edit_event_handling().

◆ start

float tGPDprimitive::start[2]

◆ subdiv

int tGPDprimitive::subdiv

number of subdivisions.

Definition at line 181 of file gpencil_intern.h.

Referenced by gpencil_primitive_init().

◆ tot_edges

int tGPDprimitive::tot_edges

◆ tot_stored_edges

int tGPDprimitive::tot_stored_edges

◆ totpixlen

float tGPDprimitive::totpixlen

size in pixels for uv calculation

Definition at line 219 of file gpencil_intern.h.

Referenced by gpencil_primitive_update_strokes().

◆ type

int tGPDprimitive::type

◆ v3d

struct View3D* tGPDprimitive::v3d

view3d where painting originated

Definition at line 143 of file gpencil_intern.h.

Referenced by gpencil_primitive_init(), and gpencil_primitive_update_strokes().

◆ win

struct wmWindow* tGPDprimitive::win

window where painting originated

Definition at line 131 of file gpencil_intern.h.

Referenced by gpencil_primitive_init(), and gpencil_primitive_update_strokes().


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