|
Blender V4.5
|
#include "BKE_grease_pencil.hh"#include "BKE_attribute_filter.hh"#include "BLI_index_mask_fwd.hh"#include "BLI_math_matrix_types.hh"#include "BLI_set.hh"#include "BLI_task.hh"#include "ED_keyframes_edit.hh"#include "ED_select_utils.hh"#include "WM_api.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::bke |
| namespace | blender::ed |
| namespace | blender::ed::greasepencil |
| namespace | blender::ed::greasepencil::image_render |
| namespace | blender::ed::greasepencil::trim |
Typedefs | |
| using | blender::ed::greasepencil::SelectionUpdateFunc |
| anonymous enum |
| Enumerator | |
|---|---|
| LAYER_REORDER_ABOVE | |
| LAYER_REORDER_BELOW | |
Definition at line 52 of file ED_grease_pencil.hh.
| void ED_filltool_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 2073 of file grease_pencil_draw_ops.cc.
References wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_grease_pencil().
| bool ED_grease_pencil_edit_segment_selection_enabled | ( | const ToolSettings * | tool_settings | ) |
True if segment selection is enabled.
Definition at line 1102 of file grease_pencil_select.cc.
References GP_SELECTMODE_SEGMENT, and ToolSettings::gpencil_selectmode_edit.
Referenced by ED_grease_pencil_segment_selection_enabled().
| blender::bke::AttrDomain ED_grease_pencil_edit_selection_domain_get | ( | const ToolSettings * | tool_settings | ) |
Get the selection mode for Grease Pencil selection operators: point, stroke, segment.
Definition at line 1047 of file grease_pencil_select.cc.
References blender::bke::Curve, GP_SELECTMODE_POINT, GP_SELECTMODE_SEGMENT, GP_SELECTMODE_STROKE, ToolSettings::gpencil_selectmode_edit, and blender::bke::Point.
Referenced by blender::ed::sculpt_paint::greasepencil::deselect_stroke(), ED_grease_pencil_selection_domain_get(), blender::ed::greasepencil::gpencil_stroke_subdivide_exec(), blender::ed::greasepencil::grease_pencil_copy_strokes_exec(), blender::ed::greasepencil::grease_pencil_delete_exec(), blender::ed::greasepencil::grease_pencil_duplicate_exec(), blender::ed::greasepencil::grease_pencil_paste_strokes_exec(), blender::ed::greasepencil::grease_pencil_reproject_exec(), and blender::ed::object::vgroup_grease_pencil_select_verts().
| wmOperatorStatus ED_grease_pencil_join_objects_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Join selected objects. Called from #OBJECT_OT_join.
Definition at line 5059 of file grease_pencil_edit.cc.
References blender::ed::greasepencil::add_materials_to_map(), blender::ed::object::base_free_and_unlink(), BKE_object_material_array_assign(), BKE_report(), CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::data(), Object::data, DEG_get_original(), DEG_id_tag_update(), DEG_relations_tag_update(), GP_DRAWING, GreasePencil::id, ID_RECALC_GEOMETRY, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::ed::greasepencil::join_object_with_active(), NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, OB_GREASE_PENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::ed::greasepencil::remap_material_indices(), wmOperator::reports, RPT_WARNING, scene, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), Object::type, WM_event_add_notifier(), and wrap().
Referenced by blender::ed::object::object_join_exec().
| bool ED_grease_pencil_sculpt_segment_selection_enabled | ( | const ToolSettings * | tool_settings | ) |
Definition at line 1107 of file grease_pencil_select.cc.
References GP_SCULPT_MASK_SELECTMODE_SEGMENT, and ToolSettings::gpencil_selectmode_sculpt.
Referenced by ED_grease_pencil_segment_selection_enabled().
| blender::bke::AttrDomain ED_grease_pencil_sculpt_selection_domain_get | ( | const ToolSettings * | tool_settings | ) |
Definition at line 1061 of file grease_pencil_select.cc.
References blender::bke::Curve, GP_SCULPT_MASK_SELECTMODE_POINT, GP_SCULPT_MASK_SELECTMODE_SEGMENT, GP_SCULPT_MASK_SELECTMODE_STROKE, ToolSettings::gpencil_selectmode_sculpt, and blender::bke::Point.
Referenced by ED_grease_pencil_selection_domain_get().
| bool ED_grease_pencil_segment_selection_enabled | ( | const ToolSettings * | tool_settings, |
| const Object * | object ) |
Definition at line 1117 of file grease_pencil_select.cc.
References ED_grease_pencil_edit_segment_selection_enabled(), ED_grease_pencil_sculpt_segment_selection_enabled(), ED_grease_pencil_vertex_segment_selection_enabled(), Object::mode, OB_MODE_EDIT, OB_MODE_SCULPT_GREASE_PENCIL, and OB_MODE_VERTEX_GREASE_PENCIL.
Referenced by blender::ed::greasepencil::selection_update().
| blender::bke::AttrDomain ED_grease_pencil_selection_domain_get | ( | const ToolSettings * | tool_settings, |
| const Object * | object ) |
Definition at line 1087 of file grease_pencil_select.cc.
References ED_grease_pencil_edit_selection_domain_get(), ED_grease_pencil_sculpt_selection_domain_get(), ED_grease_pencil_vertex_selection_domain_get(), Object::mode, OB_MODE_EDIT, OB_MODE_SCULPT_GREASE_PENCIL, OB_MODE_VERTEX_GREASE_PENCIL, and blender::bke::Point.
Referenced by do_grease_pencil_box_select(), do_lasso_select_grease_pencil(), ed_grease_pencil_select_pick(), blender::ed::greasepencil::ensure_selection_domain(), grease_pencil_circle_select(), blender::ed::greasepencil::grease_pencil_material_select_exec(), blender::ed::greasepencil::select_all_exec(), blender::ed::greasepencil::select_random_exec(), blender::ed::greasepencil::select_similar_exec(), and blender::ed::greasepencil::selection_update().
| bool ED_grease_pencil_vertex_segment_selection_enabled | ( | const ToolSettings * | tool_settings | ) |
Definition at line 1112 of file grease_pencil_select.cc.
References GP_VERTEX_MASK_SELECTMODE_SEGMENT, and ToolSettings::gpencil_selectmode_vertex.
Referenced by ED_grease_pencil_segment_selection_enabled().
| blender::bke::AttrDomain ED_grease_pencil_vertex_selection_domain_get | ( | const ToolSettings * | tool_settings | ) |
Definition at line 1074 of file grease_pencil_select.cc.
References blender::bke::Curve, GP_VERTEX_MASK_SELECTMODE_POINT, GP_VERTEX_MASK_SELECTMODE_SEGMENT, GP_VERTEX_MASK_SELECTMODE_STROKE, ToolSettings::gpencil_selectmode_vertex, and blender::bke::Point.
Referenced by ED_grease_pencil_selection_domain_get().
| void ED_interpolatetool_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1533 of file grease_pencil_interpolate.cc.
References wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_grease_pencil().
| void ED_keymap_grease_pencil | ( | wmKeyConfig * | keyconf | ) |
Definition at line 360 of file grease_pencil_ops.cc.
References ED_filltool_modal_keymap(), ED_interpolatetool_modal_keymap(), and ED_primitivetool_modal_keymap().
Referenced by ED_spacetypes_keymap().
| void ED_operatormacros_grease_pencil | ( | ) |
Definition at line 325 of file grease_pencil_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
| void ED_operatortypes_grease_pencil | ( | ) |
Definition at line 306 of file grease_pencil_ops.cc.
References ED_operatortypes_grease_pencil_bake_animation(), ED_operatortypes_grease_pencil_draw(), ED_operatortypes_grease_pencil_edit(), ED_operatortypes_grease_pencil_frames(), ED_operatortypes_grease_pencil_interpolate(), ED_operatortypes_grease_pencil_join(), ED_operatortypes_grease_pencil_layers(), ED_operatortypes_grease_pencil_lineart(), ED_operatortypes_grease_pencil_material(), ED_operatortypes_grease_pencil_modes(), ED_operatortypes_grease_pencil_primitives(), ED_operatortypes_grease_pencil_select(), ED_operatortypes_grease_pencil_trace(), ED_operatortypes_grease_pencil_vertex_paint(), and ED_operatortypes_grease_pencil_weight_paint().
Referenced by ED_spacetypes_init().
| void ED_operatortypes_grease_pencil_bake_animation | ( | ) |
Definition at line 369 of file grease_pencil_bake_animation.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_draw | ( | ) |
Definition at line 2061 of file grease_pencil_draw_ops.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_edit | ( | ) |
Definition at line 4703 of file grease_pencil_edit.cc.
References GREASE_PENCIL_OT_stroke_trim(), and WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_frames | ( | ) |
Definition at line 998 of file grease_pencil_frames.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_interpolate | ( | ) |
Definition at line 1526 of file grease_pencil_interpolate.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_join | ( | ) |
Definition at line 582 of file grease_pencil_join_selection.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_layers | ( | ) |
Definition at line 1246 of file grease_pencil_layers.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_lineart | ( | ) |
Definition at line 531 of file grease_pencil_lineart.cc.
References OBJECT_OT_lineart_bake_strokes(), OBJECT_OT_lineart_clear(), and WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_material | ( | ) |
Definition at line 507 of file grease_pencil_material.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_modes | ( | ) |
Definition at line 431 of file grease_pencil_modes.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_primitives | ( | ) |
Definition at line 1693 of file grease_pencil_primitive.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_select | ( | ) |
Definition at line 1132 of file grease_pencil_select.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_trace | ( | ) |
Definition at line 587 of file grease_pencil_trace.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_vertex_paint | ( | ) |
Definition at line 498 of file grease_pencil/intern/grease_pencil_vertex_paint.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_operatortypes_grease_pencil_weight_paint | ( | ) |
Definition at line 968 of file grease_pencil_weight_paint.cc.
References WM_operatortype_append().
Referenced by ED_operatortypes_grease_pencil().
| void ED_primitivetool_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1704 of file grease_pencil_primitive.cc.
References wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_grease_pencil().
| void ED_undosys_type_grease_pencil | ( | UndoType * | ut | ) |
Definition at line 411 of file grease_pencil_undo.cc.
References UndoType::flags, UndoType::name, UndoType::poll, UndoType::step_decode, UndoType::step_encode, UndoType::step_foreach_ID_ref, UndoType::step_free, UndoType::step_size, and UNDOTYPE_FLAG_NEED_CONTEXT_FOR_ENCODE.
Referenced by ED_undosys_type_init().
| void GREASE_PENCIL_OT_stroke_trim | ( | wmOperatorType * | ot | ) |
Definition at line 247 of file grease_pencil_trim.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_gesture_lasso_cancel(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), and WM_operator_properties_gesture_lasso().
Referenced by ED_operatortypes_grease_pencil_edit().