Blender V5.0
blender::Drawing Class Reference

#include <BKE_grease_pencil.hh>

Inherits GreasePencilDrawing.

Public Member Functions

 Drawing ()
 Drawing (const Drawing &other)
 Drawing (Drawing &&other)
Drawingoperator= (const Drawing &other)
Drawingoperator= (Drawing &&other)
 ~Drawing ()
const bke::CurvesGeometrystrokes () const
bke::CurvesGeometrystrokes_for_write ()
Span< int3triangles () const
Span< float3curve_plane_normals () const
void tag_texture_matrices_changed ()
void tag_positions_changed ()
void tag_positions_changed (const IndexMask &changed_curves)
void tag_topology_changed ()
void tag_topology_changed (const IndexMask &changed_curves)
Span< float4x2texture_matrices () const
void set_texture_matrices (Span< float4x2 > matrices, const IndexMask &selection)
VArray< floatradii () const
MutableSpan< floatradii_for_write ()
VArray< floatopacities () const
MutableSpan< floatopacities_for_write ()
VArray< ColorGeometry4fvertex_colors () const
MutableSpan< ColorGeometry4fvertex_colors_for_write ()
VArray< ColorGeometry4ffill_colors () const
MutableSpan< ColorGeometry4ffill_colors_for_write ()
void add_user () const
void remove_user () const
bool is_instanced () const
bool has_users () const
int user_count () const

Additional Inherited Members

Public Attributes inherited from GreasePencilDrawing
GreasePencilDrawingBase base
CurvesGeometry geometry
GreasePencilDrawingRuntimeHandleruntime

Detailed Description

Definition at line 87 of file BKE_grease_pencil.hh.

Constructor & Destructor Documentation

◆ Drawing() [1/3]

◆ Drawing() [2/3]

Definition at line 401 of file grease_pencil.cc.

◆ Drawing() [3/3]

◆ ~Drawing()

Member Function Documentation

◆ add_user()

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.

◆ curve_plane_normals()

Normal vectors for a plane that fits the stroke.

Definition at line 576 of file grease_pencil.cc.

◆ fill_colors()

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.

◆ fill_colors_for_write()

◆ has_users()

Return true if this drawing has at least one user.

Definition at line 804 of file BKE_grease_pencil.hh.

◆ is_instanced()

Returns true for when this drawing has more than one user.

Definition at line 800 of file BKE_grease_pencil.hh.

◆ opacities()

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.

◆ opacities_for_write()

◆ operator=() [1/2]

Drawing & blender::bke::greasepencil::Drawing::operator= ( const Drawing & other)

Definition at line 429 of file grease_pencil.cc.

◆ operator=() [2/2]

Drawing & blender::bke::greasepencil::Drawing::operator= ( Drawing && other)

Definition at line 439 of file grease_pencil.cc.

◆ radii()

Radii of the points. Values are expected to be in blender units.

Definition at line 805 of file grease_pencil.cc.

◆ radii_for_write()

◆ remove_user()

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.

◆ set_texture_matrices()

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.

◆ strokes()

◆ strokes_for_write()

◆ tag_positions_changed() [1/2]

◆ tag_positions_changed() [2/2]

Tag only the positions of some curves.

Definition at line 882 of file grease_pencil.cc.

◆ tag_texture_matrices_changed()

◆ tag_topology_changed() [1/2]

◆ tag_topology_changed() [2/2]

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.

◆ texture_matrices()

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.

◆ triangles()

The triangles for fill geometry. Grouped by each stroke.

Definition at line 519 of file grease_pencil.cc.

◆ user_count()

Return the number of users (keyframes) of this drawing.

Definition at line 808 of file BKE_grease_pencil.hh.

◆ vertex_colors()

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.

◆ vertex_colors_for_write()


The documentation for this class was generated from the following files: