|
Blender V5.0
|
#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 456 of file BKE_grease_pencil.hh.
| using blender::bke::greasepencil::Layer::SortedKeysIterator = const int * |
Definition at line 458 of file BKE_grease_pencil.hh.
Definition at line 1151 of file grease_pencil.cc.
|
explicit |
Definition at line 1179 of file grease_pencil.cc.
| blender::bke::greasepencil::Layer::Layer | ( | const Layer & | other | ) |
Definition at line 1184 of file grease_pencil.cc.
Definition at line 1216 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 1275 of file grease_pencil.cc.
|
inline |
Definition at line 893 of file BKE_grease_pencil.hh.
|
inline |
Definition at line 889 of file BKE_grease_pencil.hh.
| int blender::bke::greasepencil::Layer::drawing_index_at | ( | const int | frame_number | ) | const |
Definition at line 1448 of file grease_pencil.cc.
| GreasePencilFrame * blender::bke::greasepencil::Layer::frame_at | ( | const int | frame_number | ) |
Definition at line 1428 of file grease_pencil.cc.
| const GreasePencilFrame * blender::bke::greasepencil::Layer::frame_at | ( | const int | frame_number | ) | const |
Definition at line 1408 of file grease_pencil.cc.
| const Map< int, GreasePencilFrame > & blender::bke::greasepencil::Layer::frames | ( | ) | const |
Definition at line 1235 of file grease_pencil.cc.
Definition at line 1240 of file grease_pencil.cc.
| int blender::bke::greasepencil::Layer::get_frame_duration_at | ( | const int | frame_number | ) | const |
Definition at line 1459 of file grease_pencil.cc.
| bool blender::bke::greasepencil::Layer::has_drawing_at | ( | const int | frame_number | ) | const |
Definition at line 1454 of file grease_pencil.cc.
|
inline |
Definition at line 899 of file BKE_grease_pencil.hh.
The local transform of the layer (in layer space, not object space).
Definition at line 1585 of file grease_pencil.cc.
Returns the name of the parent bone. Should only be used in case the parent object is an armature.
Definition at line 1551 of file grease_pencil.cc.
Definition at line 907 of file BKE_grease_pencil.hh.
|
inline |
Definition at line 903 of file BKE_grease_pencil.hh.
Definition at line 1580 of file grease_pencil.cc.
Prepare the DNA GreasePencilLayer data before blend-file writing.
Definition at line 1491 of file grease_pencil.cc.
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 1305 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 1591 of file grease_pencil.cc.
| void blender::bke::greasepencil::Layer::set_parent_bone_name | ( | StringRef | new_name | ) |
Definition at line 1556 of file grease_pencil.cc.
| void blender::bke::greasepencil::Layer::set_view_layer_name | ( | StringRef | new_name | ) |
Definition at line 1604 of file grease_pencil.cc.
Returns the sorted keys (start frame numbers) of the frames of this layer.
Definition at line 1344 of file grease_pencil.cc.
| int blender::bke::greasepencil::Layer::sorted_keys_index_at | ( | int | frame_number | ) | const |
Definition at line 1399 of file grease_pencil.cc.
| Layer::SortedKeysIterator blender::bke::greasepencil::Layer::sorted_keys_iterator_at | ( | int | frame_number | ) | const |
Definition at line 1357 of file grease_pencil.cc.
| std::optional< int > blender::bke::greasepencil::Layer::start_frame_at | ( | int | frame_number | ) | const |
Definition at line 1389 of file grease_pencil.cc.
Definition at line 1480 of file grease_pencil.cc.
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 1485 of file grease_pencil.cc.
| float4x4 blender::bke::greasepencil::Layer::to_object_space | ( | const Object & | object | ) | const |
Returns the transformation from layer space to object space.
Definition at line 1541 of file grease_pencil.cc.
| float4x4 blender::bke::greasepencil::Layer::to_world_space | ( | const Object & | object | ) | const |
Returns the transformation from layer space to world space.
Definition at line 1532 of file grease_pencil.cc.
Update from DNA GreasePencilLayer data after blend-file reading.
Definition at line 1515 of file grease_pencil.cc.
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 1599 of file grease_pencil.cc.
Definition at line 466 of file BKE_grease_pencil.hh.