|
Blender V5.3
|
#include <BKE_grease_pencil.hh>
Public Attributes | |
| SharedCache< std::optional< FillCache > > | fill_cache |
| SharedCache< std::optional< TriangleCache > > | triangle_cache |
| SharedCache< Vector< float3 > > | curve_plane_normals_cache |
| SharedCache< Vector< float4x2 > > | curve_texture_matrices |
| std::atomic< int > | user_count = 1 |
| bool | fake_user = false |
Definition at line 98 of file BKE_grease_pencil.hh.
|
mutable |
Normal vector cache for every stroke. Computed using Newell's method.
Definition at line 114 of file BKE_grease_pencil.hh.
Referenced by blender::ed::greasepencil::add_single_curve(), blender::bke::greasepencil::Drawing::curve_plane_normals(), blender::bke::greasepencil::Drawing::Drawing(), blender::bke::greasepencil::Drawing::tag_positions_changed(), blender::bke::greasepencil::Drawing::tag_positions_changed(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
|
mutable |
|
mutable |
Ensures that the drawing is not deleted and can be used temporarily (e.g. by the transform code).
Definition at line 133 of file BKE_grease_pencil.hh.
Referenced by blender::ed::transform::grease_pencil_transdata_add_fake_drawing_users(), and blender::ed::transform::grease_pencil_transdata_remove_fake_drawing_users().
|
mutable |
Fill cache for the drawing. Will be nullopt when there are no fills.
Definition at line 103 of file BKE_grease_pencil.hh.
Referenced by blender::ed::greasepencil::add_single_curve(), blender::bke::greasepencil::Drawing::Drawing(), blender::bke::greasepencil::ensure_fill_cache(), blender::bke::greasepencil::Drawing::fills(), blender::bke::greasepencil::Drawing::tag_fills_changed(), blender::bke::greasepencil::Drawing::tag_positions_changed(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
|
mutable |
Triangle cache for all the fills in the drawing (see fill_cache). Will be nullopt when there are no fills.
Definition at line 109 of file BKE_grease_pencil.hh.
Referenced by blender::bke::greasepencil::Drawing::Drawing(), blender::bke::greasepencil::ensure_triangle_cache(), blender::bke::greasepencil::Drawing::intersection_points(), blender::bke::greasepencil::Drawing::tag_positions_changed(), blender::bke::greasepencil::Drawing::tag_topology_changed(), blender::bke::greasepencil::Drawing::tag_triangles_changed(), and blender::bke::greasepencil::Drawing::triangles().
|
mutable |
Number of users for this drawing. The users are the frames in the Grease Pencil layers. Different frames can refer to the same drawing, so we need to make sure we count these users and remove a drawing if it has zero users.
Definition at line 127 of file BKE_grease_pencil.hh.
Referenced by blender::bke::greasepencil::Drawing::add_user(), blender::grease_pencil_initialize_drawing_user_counts(), blender::bke::greasepencil::Drawing::has_users(), blender::bke::greasepencil::Drawing::is_instanced(), blender::bke::greasepencil::Drawing::remove_user(), and blender::bke::greasepencil::Drawing::user_count().