|
Blender V5.3
|
#include <BKE_grease_pencil.hh>
Public Member Functions | |
| void | clear () |
Public Attributes | |
| Map< FramesMapKeyT, GreasePencilFrame > | frames_ |
| SharedCache< Vector< FramesMapKeyT > > | sorted_keys_cache_ |
| Vector< LayerMask > | masks_ |
| LayerTransformData | trans_data_ |
| bool | is_visibility_animated_ |
| int | orig_layer_index_ = -1 |
Definition at line 457 of file BKE_grease_pencil.hh.
| void blender::bke::greasepencil::LayerRuntime::clear | ( | ) |
Reset all runtime data.
Definition at line 1605 of file grease_pencil.cc.
References frames_, masks_, sorted_keys_cache_, and trans_data_.
Referenced by blender::bke::greasepencil::Layer::update_from_dna_read().
| Map<FramesMapKeyT, GreasePencilFrame> blender::bke::greasepencil::LayerRuntime::frames_ |
Definition at line 484 of file BKE_grease_pencil.hh.
Referenced by clear(), blender::bke::greasepencil::Layer::frames(), blender::bke::greasepencil::Layer::frames_for_write(), and blender::bke::greasepencil::Layer::Layer().
| bool blender::bke::greasepencil::LayerRuntime::is_visibility_animated_ |
Whether this layer's visibility is animated (via the ".hide" RNA property). This is only set when creating a copy of the owning GreasePencil ID for the depsgraph evaluation.
Definition at line 502 of file BKE_grease_pencil.hh.
A vector of LayerMask. This layer will be masked by the layers referenced in the masks. A layer can have zero or more layer masks.
Definition at line 493 of file BKE_grease_pencil.hh.
Referenced by clear().
| int blender::bke::greasepencil::LayerRuntime::orig_layer_index_ = -1 |
For evaluated layers, the index of the corresponding original layer, or -1 if there is no original layer that could be mapped to. E.g. when the layer was created during evaluation.
TODO: Find a way to store this information in GreasePencilEditHints instead.
Definition at line 510 of file BKE_grease_pencil.hh.
Referenced by blender::bke::greasepencil::Layer::Layer(), and blender::bke::remember_deformed_grease_pencil_if_necessary().
|
mutable |
Caches a sorted vector of the keys of frames_.
Definition at line 488 of file BKE_grease_pencil.hh.
Referenced by clear(), blender::bke::greasepencil::Layer::Layer(), blender::bke::greasepencil::Layer::sorted_keys(), and blender::bke::greasepencil::Layer::tag_frames_map_keys_changed().
| LayerTransformData blender::bke::greasepencil::LayerRuntime::trans_data_ |
Runtime data used for frame transformations.
Definition at line 496 of file BKE_grease_pencil.hh.
Referenced by clear().