Blender V5.3
blender::bGPdata Struct Reference

#include <DNA_gpencil_legacy_types.h>

Public Attributes

ID id
struct AnimData * adt = nullptr
ListBaseT< bGPDlayer > layers = {nullptr, nullptr}
eGPdata_Flag flag = {}
int curve_edit_resolution = 0
float curve_edit_threshold = 0
float curve_edit_corner_angle = 0
ListBaseT< bGPDpalette > palettes = {nullptr, nullptr}
ListBaseT< bDeformGroup > vertex_group_names = {nullptr, nullptr}
float pixfactor = 0
float line_color [4] = {}
float onion_factor = 0
eGP_OnionModes onion_mode = GP_ONION_MODE_ABSOLUTE
eGPD_OnionFlag onion_flag = {}
short gstep = 0
short gstep_next = 0
float gcolor_prev [3] = {}
float gcolor_next [3] = {}
float zdepth_offset = 0
struct Material ** mat = nullptr
short totcol = 0
short totlayer = 0
short totframe = 0
char _pad2 [6] = {}
int totstroke = 0
int totpoint = 0
eGP_DrawMode draw_mode = GP_DRAWMODE_2D
short onion_keytype = 0
int select_last_index = 0
int vertex_group_active_index = 0
bGPgrid grid
bGPdata_Runtime runtime

Detailed Description

Grease-Pencil Annotations - 'DataBlock'.

Definition at line 722 of file DNA_gpencil_legacy_types.h.

Member Data Documentation

◆ _pad2

char blender::bGPdata::_pad2[6] = {}

Definition at line 792 of file DNA_gpencil_legacy_types.h.

◆ adt

struct AnimData* blender::bGPdata::adt = nullptr

Animation data - for animating draw settings.

Definition at line 732 of file DNA_gpencil_legacy_types.h.

Referenced by blender::acf_dsgpencil_setting_ptr(), and blender::make_new_animlistelem().

◆ curve_edit_corner_angle

float blender::bGPdata::curve_edit_corner_angle = 0

Curve Editing corner angle (less or equal is treated as corner).

Definition at line 744 of file DNA_gpencil_legacy_types.h.

Referenced by blender::BKE_annotations_data_addnew(), and blender::blo_do_versions_290().

◆ curve_edit_resolution

int blender::bGPdata::curve_edit_resolution = 0

Default resolution for generated curves using curve editing method.

Definition at line 740 of file DNA_gpencil_legacy_types.h.

Referenced by blender::BKE_annotations_data_addnew(), and blender::blo_do_versions_290().

◆ curve_edit_threshold

float blender::bGPdata::curve_edit_threshold = 0

◆ draw_mode

eGP_DrawMode blender::bGPdata::draw_mode = GP_DRAWMODE_2D

◆ flag

◆ gcolor_next

float blender::bGPdata::gcolor_next[3] = {}

◆ gcolor_prev

float blender::bGPdata::gcolor_prev[3] = {}

◆ grid

bGPgrid blender::bGPdata::grid

◆ gstep

short blender::bGPdata::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 770 of file DNA_gpencil_legacy_types.h.

Referenced by blender::BKE_annotations_data_addnew(), and blender::bke::greasepencil::convert::legacy_gpencil_to_grease_pencil().

◆ gstep_next

short blender::bGPdata::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 775 of file DNA_gpencil_legacy_types.h.

Referenced by blender::BKE_annotations_data_addnew(), and blender::bke::greasepencil::convert::legacy_gpencil_to_grease_pencil().

◆ id

ID blender::bGPdata::id

Grease Pencil data is a data-block.

Definition at line 730 of file DNA_gpencil_legacy_types.h.

Referenced by blender::achannel_setting_flush_widget_cb(), blender::animdata_filter_ds_gpencil(), blender::annotation_paint_initstroke(), blender::annotation_paint_strokeend(), blender::BKE_annotations_data_duplicate(), blender::BKE_annotations_tag(), blender::deg::DepsgraphRelationBuilder::build_object_data_geometry_datablock(), blender::click_select_channel_gplayer(), blender::ed::object::data_xform_tag_update(), blender::edbm_fit_edge_loops_to_annotation_exec(), blender::gpencil_actframe_delete_exec(), blender::gpencil_data_add_exec(), blender::gpencil_data_unlink_exec(), blender::gpencil_layer_add_exec(), blender::gpencil_layer_move_exec(), blender::gpencil_layer_remove_exec(), blender::greasepencil_blend_write(), blender::bke::greasepencil::convert::layer_adjustments_to_modifiers(), blender::bke::greasepencil::convert::legacy_gpencil_object(), blender::bke::greasepencil::convert::legacy_gpencil_sanitize_annotations(), blender::bke::greasepencil::convert::legacy_gpencil_to_grease_pencil(), blender::bke::greasepencil::convert::legacy_main(), blender::ed::outliner::namebutton_fn(), blender::ed::transform::posttrans_gpd_clean(), blender::rearrange_gpencil_channels(), blender::screen_ctx_active_annotation_layer(), blender::screen_ctx_annotation_data(), blender::bke::greasepencil::convert::thickness_factor_to_modifier(), blender::tracking_tracks_copy(), and blender::ed::outliner::tree_element_gplayer_activate().

◆ layers

◆ line_color

float blender::bGPdata::line_color[4] = {}

Color for edit line.

Definition at line 757 of file DNA_gpencil_legacy_types.h.

Referenced by blender::BKE_annotations_data_addnew(), and blender::blo_do_versions_280().

◆ mat

◆ onion_factor

float blender::bGPdata::onion_factor = 0

◆ onion_flag

eGPD_OnionFlag blender::bGPdata::onion_flag = {}

◆ onion_keytype

short blender::bGPdata::onion_keytype = 0

◆ onion_mode

◆ palettes

◆ pixfactor

float blender::bGPdata::pixfactor = 0

Factor to define pixel size conversion.

Definition at line 755 of file DNA_gpencil_legacy_types.h.

Referenced by blender::BKE_annotations_data_addnew(), and blender::blo_do_versions_280().

◆ runtime

◆ select_last_index

int blender::bGPdata::select_last_index = 0

Stroke selection last index. Used to generate a unique selection index.

Definition at line 802 of file DNA_gpencil_legacy_types.h.

◆ totcol

◆ totframe

short blender::bGPdata::totframe = 0

Definition at line 791 of file DNA_gpencil_legacy_types.h.

◆ totlayer

short blender::bGPdata::totlayer = 0

Definition at line 790 of file DNA_gpencil_legacy_types.h.

◆ totpoint

int blender::bGPdata::totpoint = 0

Definition at line 794 of file DNA_gpencil_legacy_types.h.

◆ totstroke

int blender::bGPdata::totstroke = 0

Definition at line 793 of file DNA_gpencil_legacy_types.h.

◆ vertex_group_active_index

int blender::bGPdata::vertex_group_active_index = 0

◆ vertex_group_names

◆ zdepth_offset

float blender::bGPdata::zdepth_offset = 0

Offset for drawing over surfaces to keep strokes on top.

Definition at line 783 of file DNA_gpencil_legacy_types.h.

Referenced by blender::BKE_annotations_data_addnew(), and blender::blo_do_versions_280().


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