|
Blender V4.5
|
#include <BKE_grease_pencil.hh>
Inherits GreasePencilDrawing.
Additional Inherited Members | |
| Public Attributes inherited from GreasePencilDrawing | |
| GreasePencilDrawingBase | base |
| CurvesGeometry | geometry |
| GreasePencilDrawingRuntimeHandle * | runtime |
Definition at line 81 of file BKE_grease_pencil.hh.
Definition at line 407 of file grease_pencil.cc.
| blender::bke::greasepencil::Drawing::Drawing | ( | const Drawing & | other | ) |
Definition at line 417 of file grease_pencil.cc.
| blender::bke::greasepencil::Drawing::Drawing | ( | Drawing && | other | ) |
Definition at line 432 of file grease_pencil.cc.
Definition at line 465 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 786 of file BKE_grease_pencil.hh.
Normal vectors for a plane that fits the stroke.
Definition at line 592 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 858 of file grease_pencil.cc.
Definition at line 864 of file grease_pencil.cc.
|
inline |
Return true if this drawing has at least one user.
Definition at line 798 of file BKE_grease_pencil.hh.
|
inline |
Returns true for when this drawing has more than one user.
Definition at line 794 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 832 of file grease_pencil.cc.
Definition at line 838 of file grease_pencil.cc.
Definition at line 445 of file grease_pencil.cc.
Definition at line 455 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 820 of file grease_pencil.cc.
Definition at line 826 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 790 of file BKE_grease_pencil.hh.
| void blender::bke::greasepencil::Drawing::set_texture_matrices | ( | Span< float4x2 > | matrices, |
| const IndexMask & | selection ) |
Sets the matrices the that transform from a 3D point in layer-space to a 2D point in texture-space
Definition at line 731 of file grease_pencil.cc.
| const bke::CurvesGeometry & blender::bke::greasepencil::Drawing::strokes | ( | ) | const |
Definition at line 810 of file grease_pencil.cc.
| bke::CurvesGeometry & blender::bke::greasepencil::Drawing::strokes_for_write | ( | ) |
Definition at line 815 of file grease_pencil.cc.
Referenced by BKE_grease_pencil_vgroup_name_update().
Definition at line 877 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 885 of file grease_pencil.cc.
Definition at line 872 of file grease_pencil.cc.
Definition at line 925 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 932 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 696 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 535 of file grease_pencil.cc.
|
inline |
Return the number of users (keyframes) of this drawing.
Definition at line 802 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 844 of file grease_pencil.cc.
Definition at line 850 of file grease_pencil.cc.