Blender V5.0
blender::bke::greasepencil::LayerRuntime Class Reference

#include <BKE_grease_pencil.hh>

Public Member Functions

void clear ()

Public Attributes

Map< FramesMapKeyT, GreasePencilFrameframes_
SharedCache< Vector< FramesMapKeyT > > sorted_keys_cache_
Vector< LayerMaskmasks_
LayerTransformData trans_data_
bool is_visibility_animated_
int orig_layer_index_ = -1

Detailed Description

Member Function Documentation

◆ clear()

void blender::bke::greasepencil::LayerRuntime::clear ( )

Member Data Documentation

◆ frames_

Map<FramesMapKeyT, GreasePencilFrame> blender::bke::greasepencil::LayerRuntime::frames_

◆ is_visibility_animated_

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.

Examples
/usr/src/RPM/BUILD/blender5.0-5.0.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 437 of file BKE_grease_pencil.hh.

◆ masks_

Vector<LayerMask> blender::bke::greasepencil::LayerRuntime::masks_

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.

Examples
/usr/src/RPM/BUILD/blender5.0-5.0.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 428 of file BKE_grease_pencil.hh.

Referenced by clear().

◆ orig_layer_index_

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.

Examples
/usr/src/RPM/BUILD/blender5.0-5.0.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 445 of file BKE_grease_pencil.hh.

◆ sorted_keys_cache_

SharedCache<Vector<FramesMapKeyT> > blender::bke::greasepencil::LayerRuntime::sorted_keys_cache_
mutable

Caches a sorted vector of the keys of frames_.

Examples
/usr/src/RPM/BUILD/blender5.0-5.0.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 423 of file BKE_grease_pencil.hh.

Referenced by clear().

◆ trans_data_

LayerTransformData blender::bke::greasepencil::LayerRuntime::trans_data_

Runtime data used for frame transformations.

Examples
/usr/src/RPM/BUILD/blender5.0-5.0.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 431 of file BKE_grease_pencil.hh.

Referenced by clear().


The documentation for this class was generated from the following files: