|
Blender V4.3
|
#include <BKE_grease_pencil.hh>
Inherits GreasePencilLayer.
Public Types | |
| using | SortedKeysIterator = const int * |
Public Attributes | |
| TREENODE_COMMON_METHODS | |
| Public Attributes inherited from GreasePencilLayer | |
| GreasePencilLayerTreeNode | base |
| GreasePencilLayerFramesMapStorage | frames_storage |
| int8_t | blend_mode |
| char | _pad [3] |
| float | opacity |
| ListBase | masks |
| int | active_mask_index |
| char | _pad2 [4] |
| struct Object * | parent |
| char * | parsubstr |
| float | parentinv [4][4] |
| float | translation [3] |
| float | rotation [3] |
| float | scale [3] |
| char | _pad3 [4] |
| char * | viewlayername |
| GreasePencilLayerRuntimeHandle * | runtime |
A layer maps drawings to scene frames. It can be thought of as one independent channel in the timeline.
Definition at line 437 of file BKE_grease_pencil.hh.
| using blender::bke::greasepencil::Layer::SortedKeysIterator = const int * |
Definition at line 439 of file BKE_grease_pencil.hh.
| blender::bke::greasepencil::Layer::Layer | ( | ) |
Definition at line 1055 of file grease_pencil.cc.
|
explicit |
Definition at line 1083 of file grease_pencil.cc.
| blender::bke::greasepencil::Layer::Layer | ( | const Layer & | other | ) |
Definition at line 1088 of file grease_pencil.cc.
| blender::bke::greasepencil::Layer::~Layer | ( | ) |
Definition at line 1120 of file grease_pencil.cc.
| GreasePencilFrame * blender::bke::greasepencil::Layer::add_frame | ( | FramesMapKeyT | key, |
| int | duration = 0 ) |
Adds a new frame into the layer frames map. Fails if there already exists a frame at key that is not an end-frame. End-frame at key and subsequent end-frames are removed.
If duration is 0, the frame is marked as an implicit hold (see GP_FRAME_IMPLICIT_HOLD). Otherwise adds an additional end-frame at key + duration, if necessary, to indicate the end of the added frame.
Definition at line 1179 of file grease_pencil.cc.
|
inline |
Definition at line 864 of file BKE_grease_pencil.hh.
|
inline |
Definition at line 860 of file BKE_grease_pencil.hh.
Referenced by rearrange_grease_pencil_channels().
Definition at line 1352 of file grease_pencil.cc.
| GreasePencilFrame * blender::bke::greasepencil::Layer::frame_at | ( | const int | frame_number | ) |
Definition at line 1332 of file grease_pencil.cc.
| const GreasePencilFrame * blender::bke::greasepencil::Layer::frame_at | ( | const int | frame_number | ) | const |
Definition at line 1312 of file grease_pencil.cc.
| const Map< int, GreasePencilFrame > & blender::bke::greasepencil::Layer::frames | ( | ) | const |
Definition at line 1139 of file grease_pencil.cc.
Referenced by actkeys_framejump_exec(), createTransActionData(), and insert_grease_pencil_key().
| Map< int, GreasePencilFrame > & blender::bke::greasepencil::Layer::frames_for_write | ( | ) |
Definition at line 1144 of file grease_pencil.cc.
Definition at line 1363 of file grease_pencil.cc.
| bool blender::bke::greasepencil::Layer::has_drawing_at | ( | const int | frame_number | ) | const |
Definition at line 1358 of file grease_pencil.cc.
|
inline |
Definition at line 870 of file BKE_grease_pencil.hh.
| float4x4 blender::bke::greasepencil::Layer::local_transform | ( | ) | const |
The local transform of the layer (in layer space, not object space).
Definition at line 1486 of file grease_pencil.cc.
| StringRefNull blender::bke::greasepencil::Layer::parent_bone_name | ( | ) | const |
Returns the name of the parent bone. Should only be used in case the parent object is an armature.
Definition at line 1455 of file grease_pencil.cc.
|
inline |
Definition at line 878 of file BKE_grease_pencil.hh.
|
inline |
Definition at line 874 of file BKE_grease_pencil.hh.
| float4x4 blender::bke::greasepencil::Layer::parent_inverse | ( | ) | const |
Definition at line 1481 of file grease_pencil.cc.
| void blender::bke::greasepencil::Layer::prepare_for_dna_write | ( | ) |
Prepare the DNA GreasePencilLayer data before blend-file writing.
Definition at line 1395 of file grease_pencil.cc.
| bool blender::bke::greasepencil::Layer::remove_frame | ( | FramesMapKeyT | key | ) |
Removes a frame with key from the frames map.
Fails if the map does not contain a frame with key or in the specific case where the previous frame has a fixed duration (is not marked as an implicit hold) and the frame to remove is an end frame.
Will remove end frame(s) after the frame to remove.
Definition at line 1209 of file grease_pencil.cc.
| void blender::bke::greasepencil::Layer::set_local_transform | ( | const float4x4 & | transform | ) |
Updates the local transform of the layer based on the matrix.
Definition at line 1492 of file grease_pencil.cc.
| void blender::bke::greasepencil::Layer::set_parent_bone_name | ( | const char * | new_name | ) |
Definition at line 1460 of file grease_pencil.cc.
| void blender::bke::greasepencil::Layer::set_view_layer_name | ( | const char * | new_name | ) |
Definition at line 1505 of file grease_pencil.cc.
| Span< FramesMapKeyT > blender::bke::greasepencil::Layer::sorted_keys | ( | ) | const |
Returns the sorted keys (start frame numbers) of the frames of this layer.
Definition at line 1248 of file grease_pencil.cc.
Referenced by get_grease_pencil_layer_bounds().
Definition at line 1303 of file grease_pencil.cc.
| Layer::SortedKeysIterator blender::bke::greasepencil::Layer::sorted_keys_iterator_at | ( | int | frame_number | ) | const |
Definition at line 1261 of file grease_pencil.cc.
Definition at line 1293 of file grease_pencil.cc.
Referenced by insert_grease_pencil_key().
| void blender::bke::greasepencil::Layer::tag_frames_map_changed | ( | ) |
Definition at line 1384 of file grease_pencil.cc.
| void blender::bke::greasepencil::Layer::tag_frames_map_keys_changed | ( | ) |
Should be called whenever the keys in the frames map have changed. E.g. when new keys were added, removed or updated.
Definition at line 1389 of file grease_pencil.cc.
Returns the transformation from layer space to object space.
Definition at line 1445 of file grease_pencil.cc.
Returns the transformation from layer space to world space.
Definition at line 1436 of file grease_pencil.cc.
| void blender::bke::greasepencil::Layer::update_from_dna_read | ( | ) |
Update from DNA GreasePencilLayer data after blend-file reading.
Definition at line 1419 of file grease_pencil.cc.
| StringRefNull blender::bke::greasepencil::Layer::view_layer_name | ( | ) | const |
Returns the view layer name that this layer should be rendered in or an empty StringRefNull if no such name is set.
Definition at line 1500 of file grease_pencil.cc.
| blender::bke::greasepencil::Layer::TREENODE_COMMON_METHODS |
Definition at line 447 of file BKE_grease_pencil.hh.