|
Blender V4.3
|
#include <BKE_grease_pencil.hh>
Inherits GreasePencilDrawing.
Additional Inherited Members | |
| Public Attributes inherited from GreasePencilDrawing | |
| GreasePencilDrawingBase | base |
| CurvesGeometry | geometry |
| GreasePencilDrawingRuntimeHandle * | runtime |
Definition at line 82 of file BKE_grease_pencil.hh.
| blender::bke::greasepencil::Drawing::Drawing | ( | ) |
Definition at line 311 of file grease_pencil.cc.
| blender::bke::greasepencil::Drawing::Drawing | ( | const Drawing & | other | ) |
Definition at line 321 of file grease_pencil.cc.
| blender::bke::greasepencil::Drawing::Drawing | ( | Drawing && | other | ) |
Definition at line 336 of file grease_pencil.cc.
| blender::bke::greasepencil::Drawing::~Drawing | ( | ) |
Definition at line 369 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 758 of file BKE_grease_pencil.hh.
Referenced by grease_pencil_transdata_add_drawing_users().
Normal vectors for a plane that fits the stroke.
Definition at line 496 of file grease_pencil.cc.
| VArray< ColorGeometry4f > blender::bke::greasepencil::Drawing::fill_colors | ( | ) | const |
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 758 of file grease_pencil.cc.
| MutableSpan< ColorGeometry4f > blender::bke::greasepencil::Drawing::fill_colors_for_write | ( | ) |
Definition at line 764 of file grease_pencil.cc.
|
inline |
Return true if this drawing has at least one user.
Definition at line 770 of file BKE_grease_pencil.hh.
|
inline |
Returns true for when this drawing has more than one user.
Definition at line 766 of file BKE_grease_pencil.hh.
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 732 of file grease_pencil.cc.
| MutableSpan< float > blender::bke::greasepencil::Drawing::opacities_for_write | ( | ) |
Definition at line 738 of file grease_pencil.cc.
Definition at line 349 of file grease_pencil.cc.
Definition at line 359 of file grease_pencil.cc.
Radii of the points. Values are expected to be in blender units.
Definition at line 720 of file grease_pencil.cc.
| MutableSpan< float > blender::bke::greasepencil::Drawing::radii_for_write | ( | ) |
Definition at line 726 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 762 of file BKE_grease_pencil.hh.
Referenced by grease_pencil_transdata_remove_drawing_users().
| 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 635 of file grease_pencil.cc.
| const bke::CurvesGeometry & blender::bke::greasepencil::Drawing::strokes | ( | ) | const |
Definition at line 710 of file grease_pencil.cc.
| bke::CurvesGeometry & blender::bke::greasepencil::Drawing::strokes_for_write | ( | ) |
Definition at line 715 of file grease_pencil.cc.
Referenced by BKE_grease_pencil_vgroup_name_update().
| void blender::bke::greasepencil::Drawing::tag_positions_changed | ( | ) |
Definition at line 777 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 785 of file grease_pencil.cc.
| void blender::bke::greasepencil::Drawing::tag_texture_matrices_changed | ( | ) |
Definition at line 772 of file grease_pencil.cc.
| void blender::bke::greasepencil::Drawing::tag_topology_changed | ( | ) |
Definition at line 825 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 832 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 600 of file grease_pencil.cc.
The triangles for fill geometry. Grouped by each stroke.
Definition at line 439 of file grease_pencil.cc.
|
inline |
Return the number of users (keyframes) of this drawing.
Definition at line 774 of file BKE_grease_pencil.hh.
| VArray< ColorGeometry4f > blender::bke::greasepencil::Drawing::vertex_colors | ( | ) | const |
Vertex colors of the points. Default is black. This is mixed on top of the base material stroke color.
Definition at line 744 of file grease_pencil.cc.
| MutableSpan< ColorGeometry4f > blender::bke::greasepencil::Drawing::vertex_colors_for_write | ( | ) |
Definition at line 750 of file grease_pencil.cc.