Blender V4.3
BKE_grease_pencil.hh File Reference

Low-level operations for grease pencil. More...

Go to the source code of this file.

Classes

class  blender::bke::greasepencil::DrawingRuntime
 
class  blender::bke::greasepencil::Drawing
 
class  blender::bke::greasepencil::DrawingReference
 
class  blender::bke::greasepencil::TreeNode
 
class  blender::bke::greasepencil::LayerMask
 
struct  blender::bke::greasepencil::LayerTransformData
 
class  blender::bke::greasepencil::LayerRuntime
 
class  blender::bke::greasepencil::Layer
 
class  blender::bke::greasepencil::LayerGroupRuntime
 
class  blender::bke::greasepencil::LayerGroup
 
class  blender::bke::GreasePencilRuntime
 
class  blender::bke::GreasePencilDrawingEditHints
 
class  blender::bke::GreasePencilEditHints
 
struct  GreasePencilPointCoordinates
 

Namespaces

namespace  blender
 
namespace  blender::bke
 
namespace  blender::bke::bake
 
namespace  blender::bke::greasepencil
 

Macros

#define TREENODE_COMMON_METHODS
 
#define TREENODE_COMMON_METHODS_FORWARD_IMPL(class_name)
 

Typedefs

using blender::bke::greasepencil::FramesMapKeyT = int
 

Functions

void blender::bke::greasepencil::copy_drawing_array (Span< const GreasePencilDrawingBase * > src_drawings, MutableSpan< GreasePencilDrawingBase * > dst_drawings)
 
 blender::bke::greasepencil::TREENODE_COMMON_METHODS_FORWARD_IMPL (Layer)
 
 blender::bke::greasepencil::TREENODE_COMMON_METHODS_FORWARD_IMPL (LayerGroup)
 
bool BKE_grease_pencil_drawing_attribute_required (const GreasePencilDrawing *, const char *name)
 
void * BKE_grease_pencil_add (Main *bmain, const char *name)
 
GreasePencilBKE_grease_pencil_new_nomain ()
 
GreasePencilBKE_grease_pencil_copy_for_eval (const GreasePencil *grease_pencil_src)
 
void BKE_grease_pencil_copy_parameters (const GreasePencil &src, GreasePencil &dst)
 
void BKE_grease_pencil_copy_layer_parameters (const blender::bke::greasepencil::Layer &src, blender::bke::greasepencil::Layer &dst)
 
void BKE_grease_pencil_copy_layer_group_parameters (const blender::bke::greasepencil::LayerGroup &src, blender::bke::greasepencil::LayerGroup &dst)
 
void BKE_grease_pencil_nomain_to_grease_pencil (GreasePencil *grease_pencil_src, GreasePencil *grease_pencil_dst)
 
void BKE_grease_pencil_vgroup_name_update (Object *ob, const char *old_name, const char *new_name)
 
void BKE_grease_pencil_data_update (Depsgraph *depsgraph, Scene *scene, Object *object)
 
void BKE_grease_pencil_duplicate_drawing_array (const GreasePencil *grease_pencil_src, GreasePencil *grease_pencil_dst)
 
int BKE_grease_pencil_stroke_point_count (const GreasePencil &grease_pencil)
 
void BKE_grease_pencil_point_coords_get (const GreasePencil &grease_pencil, GreasePencilPointCoordinates *elem_data)
 
void BKE_grease_pencil_point_coords_apply (GreasePencil &grease_pencil, GreasePencilPointCoordinates *elem_data)
 
void BKE_grease_pencil_point_coords_apply_with_mat4 (GreasePencil &grease_pencil, GreasePencilPointCoordinates *elem_data, const blender::float4x4 &mat)
 
int BKE_grease_pencil_object_material_index_get_by_name (Object *ob, const char *name)
 
MaterialBKE_grease_pencil_object_material_new (Main *bmain, Object *ob, const char *name, int *r_index)
 
MaterialBKE_grease_pencil_object_material_from_brush_get (Object *ob, Brush *brush)
 
MaterialBKE_grease_pencil_object_material_ensure_by_name (Main *bmain, Object *ob, const char *name, int *r_index)
 
MaterialBKE_grease_pencil_brush_material_get (Brush *brush)
 
MaterialBKE_grease_pencil_object_material_ensure_from_brush (Main *bmain, Object *ob, Brush *brush)
 
MaterialBKE_grease_pencil_object_material_ensure_from_active_input_brush (Main *bmain, Object *ob, Brush *brush)
 
MaterialBKE_grease_pencil_object_material_ensure_from_active_input_material (Object *ob)
 
MaterialBKE_grease_pencil_object_material_ensure_active (Object *ob)
 
void BKE_grease_pencil_material_remap (GreasePencil *grease_pencil, const uint *remap, int totcol)
 
void BKE_grease_pencil_material_index_remove (GreasePencil *grease_pencil, int index)
 
bool BKE_grease_pencil_references_cyclic_check (const GreasePencil *id_reference, const GreasePencil *grease_pencil)
 
bool BKE_grease_pencil_material_index_used (GreasePencil *grease_pencil, int index)
 

Variables

constexpr float blender::bke::greasepencil::LEGACY_RADIUS_CONVERSION_FACTOR = 1.0f / 2000.0f
 

Detailed Description

Low-level operations for grease pencil.

Definition in file BKE_grease_pencil.hh.

Macro Definition Documentation

◆ TREENODE_COMMON_METHODS

#define TREENODE_COMMON_METHODS
Value:
StringRefNull name() const; \
void set_name(StringRefNull new_name); \
bool is_visible() const; \
void set_visible(bool visible); \
bool is_locked() const; \
void set_locked(bool locked); \
bool is_editable() const; \
bool is_selected() const; \
void set_selected(bool selected); \
bool use_onion_skinning() const; \
bool use_masks() const; \
bool ignore_locked_materials() const; \
bool is_child_of(const LayerGroup &group) const;

Definition at line 211 of file BKE_grease_pencil.hh.

◆ TREENODE_COMMON_METHODS_FORWARD_IMPL

#define TREENODE_COMMON_METHODS_FORWARD_IMPL ( class_name)

Function Documentation

◆ BKE_grease_pencil_add()

void * BKE_grease_pencil_add ( Main * bmain,
const char * name )

◆ BKE_grease_pencil_brush_material_get()

◆ BKE_grease_pencil_copy_for_eval()

◆ BKE_grease_pencil_copy_layer_group_parameters()

◆ BKE_grease_pencil_copy_layer_parameters()

◆ BKE_grease_pencil_copy_parameters()

◆ BKE_grease_pencil_data_update()

◆ BKE_grease_pencil_drawing_attribute_required()

bool BKE_grease_pencil_drawing_attribute_required ( const GreasePencilDrawing * ,
const char * name )

◆ BKE_grease_pencil_duplicate_drawing_array()

◆ BKE_grease_pencil_material_index_remove()

◆ BKE_grease_pencil_material_index_used()

◆ BKE_grease_pencil_material_remap()

◆ BKE_grease_pencil_new_nomain()

◆ BKE_grease_pencil_nomain_to_grease_pencil()

◆ BKE_grease_pencil_object_material_ensure_active()

◆ BKE_grease_pencil_object_material_ensure_by_name()

◆ BKE_grease_pencil_object_material_ensure_from_active_input_brush()

◆ BKE_grease_pencil_object_material_ensure_from_active_input_material()

◆ BKE_grease_pencil_object_material_ensure_from_brush()

◆ BKE_grease_pencil_object_material_from_brush_get()

◆ BKE_grease_pencil_object_material_index_get_by_name()

◆ BKE_grease_pencil_object_material_new()

◆ BKE_grease_pencil_point_coords_apply()

◆ BKE_grease_pencil_point_coords_apply_with_mat4()

◆ BKE_grease_pencil_point_coords_get()

◆ BKE_grease_pencil_references_cyclic_check()

bool BKE_grease_pencil_references_cyclic_check ( const GreasePencil * id_reference,
const GreasePencil * grease_pencil )

◆ BKE_grease_pencil_stroke_point_count()

◆ BKE_grease_pencil_vgroup_name_update()

void BKE_grease_pencil_vgroup_name_update ( Object * ob,
const char * old_name,
const char * new_name )