|
Blender V4.3
|
#include "BKE_grease_pencil.hh"#include "BKE_attribute_filter.hh"#include "BLI_generic_span.hh"#include "BLI_index_mask_fwd.hh"#include "BLI_math_matrix_types.hh"#include "BLI_set.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::bke::crazyspace |
| 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 48 of file ED_grease_pencil.hh.
| void ED_filltool_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1765 of file grease_pencil_draw_ops.cc.
References int, 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 1058 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 1003 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::draw::overlay::GreasePencil::begin_sync(), 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_select_verts().
| int ED_grease_pencil_join_objects_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Join selected objects. Called from #OBJECT_OT_join.
Definition at line 4055 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(), Object::data, DEG_get_original_object(), DEG_id_tag_update(), DEG_relations_tag_update(), GP_DRAWING, GreasePencil::id, ID_RECALC_GEOMETRY, 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, 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 1063 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 1017 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 1073 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(), 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 1043 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(), 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(), grease_pencil_circle_select(), blender::ed::greasepencil::select_all_exec(), blender::ed::greasepencil::select_random_exec(), blender::ed::greasepencil::select_set_mode_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 1068 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 1030 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 1406 of file grease_pencil_interpolate.cc.
References int, 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 332 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 297 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 278 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 370 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 1755 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 3715 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 917 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 1399 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 541 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 1208 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 529 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 506 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 429 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 1503 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 1088 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 567 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 441 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 964 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 1514 of file grease_pencil_primitive.cc.
References int, 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 * | undo_type | ) |
Definition at line 417 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 236 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().