|
Blender V5.3
|
#include <BKE_grease_pencil.hh>
Inherits blender::GreasePencilDrawing.
Additional Inherited Members | |
| Public Attributes inherited from blender::GreasePencilDrawing | |
| GreasePencilDrawingBase | base |
| CurvesGeometry | geometry |
| bke::greasepencil::DrawingRuntime * | runtime = nullptr |
Definition at line 136 of file BKE_grease_pencil.hh.
Definition at line 461 of file grease_pencil.cc.
Referenced by blender::ed::greasepencil::grease_pencil_copy_keyframes().
| blender::bke::greasepencil::Drawing::Drawing | ( | const Drawing & | other | ) |
Definition at line 471 of file grease_pencil.cc.
| blender::bke::greasepencil::Drawing::Drawing | ( | Drawing && | other | ) |
Definition at line 486 of file grease_pencil.cc.
Definition at line 519 of file grease_pencil.cc.
|
inline |
Add a user for this drawing. When a drawing has multiple users, both users are allowed to modify this drawings data.
Definition at line 858 of file BKE_grease_pencil.hh.
Normal vectors for a plane that fits the stroke.
Definition at line 854 of file grease_pencil.cc.
Fill colors of the curves. Default is black and fully transparent. This is mixed on top of the base material fill color.
Definition at line 1129 of file grease_pencil.cc.
Definition at line 1135 of file grease_pencil.cc.
| std::optional< GroupedSpan< int > > blender::bke::greasepencil::Drawing::fills | ( | ) | const |
Group of curve indices for each fill. Can be nullopt when there are no fills in this drawing.
Definition at line 537 of file grease_pencil.cc.
|
inline |
Return true if this drawing has at least one user.
Definition at line 870 of file BKE_grease_pencil.hh.
The extra points used when fill geometry intersect. Grouped by each fill. Can be empty when there are no fills in this drawing. See fills().
Definition at line 796 of file grease_pencil.cc.
|
inline |
Returns true for when this drawing has more than one user.
Definition at line 866 of file BKE_grease_pencil.hh.
| VArray< float > blender::bke::greasepencil::Drawing::opacities | ( | ) | const |
Opacity array for the points. Used by the render engine as an alpha value so they are expected to be between 0 and 1 inclusive.
Definition at line 1098 of file grease_pencil.cc.
Definition at line 1104 of file grease_pencil.cc.
Definition at line 499 of file grease_pencil.cc.
Definition at line 509 of file grease_pencil.cc.
| VArray< float > blender::bke::greasepencil::Drawing::radii | ( | ) | const |
Radii of the points. Values are expected to be in blender units.
Definition at line 1083 of file grease_pencil.cc.
Definition at line 1089 of file grease_pencil.cc.
|
inline |
Removes a user from this drawing. Note that this does not handle deleting the drawing if it has not users.
Definition at line 862 of file BKE_grease_pencil.hh.
| void blender::bke::greasepencil::Drawing::set_texture_matrices | ( | Span< float4x2 > | matrices, |
| const IndexMask & | selection ) |
Sets the matrices that transform from a 3D point in layer-space to a 2D point in texture-space
Definition at line 993 of file grease_pencil.cc.
| const bke::CurvesGeometry & blender::bke::greasepencil::Drawing::strokes | ( | ) | const |
Definition at line 1073 of file grease_pencil.cc.
Definition at line 1078 of file grease_pencil.cc.
Tag when the fills have changed, e.g. when curves have been filled/unfilled.
Definition at line 1155 of file grease_pencil.cc.
Tag when the positions of points have changed.
Definition at line 1161 of file grease_pencil.cc.
| void blender::bke::greasepencil::Drawing::tag_positions_changed | ( | const IndexMask & | changed_curves | ) |
Tag only the positions of some curves.
Definition at line 1295 of file grease_pencil.cc.
Tag when the texture coordinates have changed.
Definition at line 1145 of file grease_pencil.cc.
Definition at line 1370 of file grease_pencil.cc.
| void blender::bke::greasepencil::Drawing::tag_topology_changed | ( | const IndexMask & | changed_curves | ) |
Tag only some curves for a topology change. Do not call this if curves have been added or removed.
Definition at line 1377 of file grease_pencil.cc.
Definition at line 1150 of file grease_pencil.cc.
Returns the matrices that transform from a 3D point in layer-space to a 2D point in texture-space. This is stored per curve.
Definition at line 958 of file grease_pencil.cc.
| std::optional< GroupedSpan< int3 > > blender::bke::greasepencil::Drawing::triangles | ( | ) | const |
The triangles for fill geometry. Grouped by each fill. Can be nullopt when there are no fills in this drawing. See fills().
Definition at line 785 of file grease_pencil.cc.
|
inline |
Return the number of users (keyframes) of this drawing.
Definition at line 874 of file BKE_grease_pencil.hh.
Vertex colors of the points. Default is black. This is mixed on top of the base material stroke color.
Definition at line 1113 of file grease_pencil.cc.
Definition at line 1119 of file grease_pencil.cc.