Blender V5.3
blender::bGPDlayer Struct Reference

#include <DNA_gpencil_legacy_types.h>

Public Attributes

struct bGPDlayer * next = nullptr
struct bGPDlayer * prev = nullptr
ListBaseT< bGPDframe > frames = {nullptr, nullptr}
bGPDframe * actframe = nullptr
eGPDlayer_Flag flag = {}
eGPDlayer_OnionFlag onion_flag = {}
float color [4] = {}
float fill [4] = {}
char info [128] = ""
short thickness = 0
short pass_index = 0
struct Object * parent = nullptr
float inverse [4][4] = {}
char parsubstr [64] = ""
short partype = 0
short line_change = 0
float tintcolor [4] = {}
float opacity = 0
char viewlayername [64] = ""
eGPLayerBlendModes blend_mode = eGplBlendMode_Regular
float vertex_paint_opacity = 0
short gstep = 0
short gstep_next = 0
float gcolor_prev [3] = {0.302f, 0.851f, 0.302f}
float gcolor_next [3] = {0.250f, 0.1f, 1.0f}
char _pad1 [4] = {}
ListBaseT< bGPDlayer_Mask > mask_layers = {nullptr, nullptr}
int act_mask = 0
char _pad2 [4] = {}
float location [3] = {}
float rotation [3] = {}
float scale [3] = {}
float layer_mat [4][4] = {}
float layer_invmat [4][4] = {}
char _pad3 [4] = {}
bGPDlayer_Runtime runtime

Detailed Description

Grease-Pencil Annotations - 'Layer'.

Definition at line 582 of file DNA_gpencil_legacy_types.h.

Member Data Documentation

◆ _pad1

char blender::bGPDlayer::_pad1[4] = {}

Definition at line 650 of file DNA_gpencil_legacy_types.h.

◆ _pad2

char blender::bGPDlayer::_pad2[4] = {}

Definition at line 656 of file DNA_gpencil_legacy_types.h.

◆ _pad3

char blender::bGPDlayer::_pad3[4] = {}

Definition at line 661 of file DNA_gpencil_legacy_types.h.

◆ act_mask

int blender::bGPDlayer::act_mask = 0

Current Mask index (noted base 1).

Definition at line 655 of file DNA_gpencil_legacy_types.h.

◆ actframe

◆ blend_mode

eGPLayerBlendModes blender::bGPDlayer::blend_mode = eGplBlendMode_Regular

Blend modes.

Definition at line 630 of file DNA_gpencil_legacy_types.h.

◆ color

◆ fill

float blender::bGPDlayer::fill[4] = {}

Fill color for strokes in layers. Not used anymore (was only for).

Definition at line 601 of file DNA_gpencil_legacy_types.h.

Referenced by blender::blo_do_versions_270().

◆ flag

◆ frames

ListBaseT<bGPDframe> blender::bGPDlayer::frames = {nullptr, nullptr}

List of annotations to display for frames (bGPDframe list).

Definition at line 588 of file DNA_gpencil_legacy_types.h.

Referenced by blender::actkeys_framejump_exec(), blender::BKE_annotations_blend_read_data(), blender::BKE_annotations_frame_addcopy(), blender::BKE_annotations_frame_addnew(), blender::BKE_annotations_free_frames(), blender::BKE_annotations_layer_duplicate(), blender::BKE_annotations_layer_frame_delete(), blender::BKE_annotations_layer_frame_find(), blender::BKE_annotations_layer_frame_get(), blender::BKE_annotations_layer_frames_sort(), blender::blo_do_versions_270(), blender::blo_do_versions_280(), blender::ed::transform::count_gplayer_frames(), blender::ed::transform::createTransActionData(), blender::do_versions_after_linking_290(), blender::do_versions_fix_annotations(), blender::ED_gpencil_anim_copybuf_copy(), blender::ED_gpencil_anim_copybuf_paste(), blender::ED_gpencil_layer_frame_select_check(), blender::ED_gpencil_layer_frames_delete(), blender::ED_gpencil_layer_frames_duplicate(), blender::ED_gpencil_layer_frames_keytype_set(), blender::ED_gpencil_layer_frames_looper(), blender::ED_gpencil_layer_frames_select_box(), blender::ED_gpencil_layer_frames_select_region(), blender::ED_gpencil_layer_make_cfra_list(), blender::ED_gpencil_select_frames(), blender::gather_frames_to_render_for_grease_pencil(), blender::get_gpencil_bounds(), blender::get_keyframe_extents(), blender::gpl_to_keylist(), blender::ed::transform::GPLayerToTransData(), blender::greasepencil_blend_write(), blender::greasepencil_copy_data(), and blender::ed::transform::posttrans_gpd_clean().

◆ gcolor_next

float blender::bGPDlayer::gcolor_next[3] = {0.250f, 0.1f, 1.0f}

Color for ghosts after the active frame.

Definition at line 649 of file DNA_gpencil_legacy_types.h.

Referenced by blender::annotation_draw_onionskins(), blender::BKE_annotations_layer_addnew(), and blender::blo_do_versions_280().

◆ gcolor_prev

float blender::bGPDlayer::gcolor_prev[3] = {0.302f, 0.851f, 0.302f}

Color for ghosts before the active frame.

Definition at line 647 of file DNA_gpencil_legacy_types.h.

Referenced by blender::annotation_draw_onionskins(), blender::BKE_annotations_layer_addnew(), and blender::blo_do_versions_280().

◆ gstep

short blender::bGPDlayer::gstep = 0

Ghosts Before: max number of ghost frames to show between active frame and the one before it (0 = only the ghost itself).

Definition at line 639 of file DNA_gpencil_legacy_types.h.

Referenced by blender::annotation_draw_onionskins().

◆ gstep_next

short blender::bGPDlayer::gstep_next = 0

Ghosts After: max number of ghost frames to show after active frame and the following it (0 = only the ghost itself).

Definition at line 644 of file DNA_gpencil_legacy_types.h.

Referenced by blender::annotation_draw_onionskins().

◆ info

char blender::bGPDlayer::info[128] = ""

◆ inverse

float blender::bGPDlayer::inverse[4][4] = {}

Inverse matrix (only used if parented).

Definition at line 615 of file DNA_gpencil_legacy_types.h.

◆ layer_invmat

float blender::bGPDlayer::layer_invmat[4][4] = {}

◆ layer_mat

float blender::bGPDlayer::layer_mat[4][4] = {}

◆ line_change

short blender::bGPDlayer::line_change = 0

Thickness adjustment.

Definition at line 621 of file DNA_gpencil_legacy_types.h.

Referenced by blender::blo_do_versions_280().

◆ location

float blender::bGPDlayer::location[3] = {}

◆ mask_layers

◆ next

◆ onion_flag

◆ opacity

◆ parent

struct Object* blender::bGPDlayer::parent = nullptr

◆ parsubstr

char blender::bGPDlayer::parsubstr[64] = ""

String describing sub-object info.

Definition at line 617 of file DNA_gpencil_legacy_types.h.

Referenced by blender::deg::DepsgraphRelationBuilder::build_object_data_geometry_datablock().

◆ partype

short blender::bGPDlayer::partype = 0

◆ pass_index

short blender::bGPDlayer::pass_index = 0

Used to filter groups of layers in modifiers.

Definition at line 610 of file DNA_gpencil_legacy_types.h.

◆ prev

struct bGPDlayer * blender::bGPDlayer::prev = nullptr

◆ rotation

float blender::bGPDlayer::rotation[3] = {}

◆ runtime

◆ scale

◆ thickness

◆ tintcolor

float blender::bGPDlayer::tintcolor[4] = {}

Color used to tint layer, alpha value is used as factor.

Definition at line 623 of file DNA_gpencil_legacy_types.h.

Referenced by blender::blo_do_versions_270(), blender::blo_do_versions_280(), and blender::do_versions_fix_annotations().

◆ vertex_paint_opacity

float blender::bGPDlayer::vertex_paint_opacity = 0

◆ viewlayername

char blender::bGPDlayer::viewlayername[64] = ""

Name of the layer used to filter render output.

Definition at line 627 of file DNA_gpencil_legacy_types.h.


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