Blender V5.0
grease_pencil_layers.cc File Reference
#include "BLI_listbase.h"
#include "BLI_math_matrix.h"
#include "BLI_math_matrix.hh"
#include "BLI_string.h"
#include "BKE_attribute_math.hh"
#include "BKE_context.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_object.hh"
#include "BKE_report.hh"
#include "BLT_translation.hh"
#include "DEG_depsgraph.hh"
#include "ED_grease_pencil.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "UI_interface.hh"
#include "DNA_scene_types.h"
#include "WM_api.hh"
#include "WM_message.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::greasepencil

Enumerations

enum class  blender::ed::greasepencil::LayerMoveDirection : int8_t { blender::ed::greasepencil::Up = -1 , blender::ed::greasepencil::Down = 1 }
enum class  blender::ed::greasepencil::MergeMode : int8_t { blender::ed::greasepencil::Down = 0 , blender::ed::greasepencil::Group = 1 , blender::ed::greasepencil::All = 2 }
enum class  blender::ed::greasepencil::DuplicateCopyMode { blender::ed::greasepencil::All = 0 , blender::ed::greasepencil::Active }

Functions

static float4x4 blender::ed::greasepencil::get_bone_mat (const Object *parent, const char *parsubstr)
bool blender::ed::greasepencil::grease_pencil_layer_parent_set (bke::greasepencil::Layer &layer, Object *parent, StringRefNull bone, const bool keep_transform)
void blender::ed::greasepencil::grease_pencil_layer_parent_clear (bke::greasepencil::Layer &layer, const bool keep_transform)
void blender::ed::greasepencil::select_layer_channel (GreasePencil &grease_pencil, bke::greasepencil::Layer *layer)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_add_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_add_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_add (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_remove_exec (bContext *C, wmOperator *)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_remove (wmOperatorType *ot)
static bool blender::ed::greasepencil::grease_pencil_layer_move_poll (bContext *C)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_move_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_move (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_active_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_active (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_group_add_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_group_add (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_group_remove_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_group_remove (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_hide_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_hide (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_reveal_exec (bContext *C, wmOperator *)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_reveal (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_isolate_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_isolate (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_lock_all_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_lock_all (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_duplicate_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_duplicate (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_merge_layer_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_merge (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_mask_add_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_mask_add (wmOperatorType *ot)
static bool blender::ed::greasepencil::grease_pencil_layer_mask_poll (bContext *C)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_mask_remove_exec (bContext *C, wmOperator *)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_mask_remove (wmOperatorType *ot)
static bool blender::ed::greasepencil::grease_pencil_layer_mask_reorder_poll (bContext *C)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_mask_reorder_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_mask_reorder (wmOperatorType *ot)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_group_color_tag_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_group_color_tag (wmOperatorType *ot)
static void blender::ed::greasepencil::copy_layer_and_frames_to_target_object (GreasePencil &dst_grease_pencil, const GreasePencil &src_grease_pencil, const blender::bke::greasepencil::Layer &src_layer, const DuplicateCopyMode copy_frame_mode, const int current_frame)
static wmOperatorStatus blender::ed::greasepencil::grease_pencil_layer_duplicate_object_exec (bContext *C, wmOperator *op)
static void blender::ed::greasepencil::GREASE_PENCIL_OT_layer_duplicate_object (wmOperatorType *ot)
void ED_operatortypes_grease_pencil_layers ()

Variables

static const EnumPropertyItem blender::ed::greasepencil::enum_layer_move_direction []
const EnumPropertyItem blender::ed::greasepencil::enum_layergroup_color_items []

Function Documentation

◆ ED_operatortypes_grease_pencil_layers()