|
Blender V5.0
|
#include <BKE_grease_pencil.hh>
Inherits GreasePencilDrawing.
Additional Inherited Members | |
| Public Attributes inherited from GreasePencilDrawing | |
| GreasePencilDrawingBase | base |
| CurvesGeometry | geometry |
| GreasePencilDrawingRuntimeHandle * | runtime |
Definition at line 87 of file BKE_grease_pencil.hh.
Definition at line 391 of file grease_pencil.cc.
| blender::bke::greasepencil::Drawing::Drawing | ( | const Drawing & | other | ) |
Definition at line 401 of file grease_pencil.cc.
| blender::bke::greasepencil::Drawing::Drawing | ( | Drawing && | other | ) |
Definition at line 416 of file grease_pencil.cc.
Definition at line 449 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 792 of file BKE_grease_pencil.hh.
Normal vectors for a plane that fits the stroke.
Definition at line 576 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 853 of file grease_pencil.cc.
Definition at line 859 of file grease_pencil.cc.
|
inline |
Return true if this drawing has at least one user.
Definition at line 804 of file BKE_grease_pencil.hh.
|
inline |
Returns true for when this drawing has more than one user.
Definition at line 800 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 821 of file grease_pencil.cc.
Definition at line 827 of file grease_pencil.cc.
Definition at line 429 of file grease_pencil.cc.
Definition at line 439 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 805 of file grease_pencil.cc.
Definition at line 811 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 796 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 715 of file grease_pencil.cc.
| const bke::CurvesGeometry & blender::bke::greasepencil::Drawing::strokes | ( | ) | const |
Definition at line 795 of file grease_pencil.cc.
Definition at line 800 of file grease_pencil.cc.
Definition at line 874 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 882 of file grease_pencil.cc.
Definition at line 869 of file grease_pencil.cc.
Definition at line 922 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 929 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 680 of file grease_pencil.cc.
| Span< int3 > blender::bke::greasepencil::Drawing::triangles | ( | ) | const |
The triangles for fill geometry. Grouped by each stroke.
Definition at line 519 of file grease_pencil.cc.
|
inline |
Return the number of users (keyframes) of this drawing.
Definition at line 808 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 837 of file grease_pencil.cc.
Definition at line 843 of file grease_pencil.cc.