|
Blender V4.3
|
#include <cmath>#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "DNA_view3d_types.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "BKE_appdir.hh"#include "BKE_blender_copybuffer.hh"#include "BKE_blendfile.hh"#include "BKE_context.hh"#include "BKE_report.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_outliner.hh"#include "ED_screen.hh"#include "ED_transform.hh"#include "view3d_intern.hh"#include "view3d_navigate.hh"Go to the source code of this file.
Functions | |
Local Utilities | |
| static void | view3d_copybuffer_filepath_get (char filepath[FILE_MAX], size_t filepath_maxncpy) |
Viewport Copy Operator | |
| static int | view3d_copybuffer_exec (bContext *C, wmOperator *op) |
| static void | VIEW3D_OT_copybuffer (wmOperatorType *ot) |
Viewport Paste Operator | |
| static int | view3d_pastebuffer_exec (bContext *C, wmOperator *op) |
| static void | VIEW3D_OT_pastebuffer (wmOperatorType *ot) |
Registration | |
| void | view3d_operatortypes () |
| void | view3d_keymap (wmKeyConfig *keyconf) |
|
static |
Definition at line 58 of file view3d_ops.cc.
References BKE_main_blendfile_path(), BKE_reportf(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), FILE_MAX, blender::bke::blendfile::PartialWriteContext::id_add(), OPERATOR_FINISHED, wmOperator::reports, RPT_INFO, and view3d_copybuffer_filepath_get().
Referenced by VIEW3D_OT_copybuffer().
|
static |
Definition at line 47 of file view3d_ops.cc.
References BKE_tempdir_base(), and BLI_path_join.
Referenced by view3d_copybuffer_exec(), and view3d_pastebuffer_exec().
| void view3d_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 238 of file view3d_ops.cc.
References fly_modal_keymap(), RGN_TYPE_WINDOW, SPACE_VIEW3D, viewdolly_modal_keymap(), viewmove_modal_keymap(), viewplace_modal_keymap(), viewrotate_modal_keymap(), viewzoom_modal_keymap(), walk_modal_keymap(), and WM_keymap_ensure().
Referenced by ED_spacetype_view3d().
| void view3d_operatortypes | ( | ) |
Definition at line 163 of file view3d_ops.cc.
References transform_operatortypes(), VIEW3D_OT_bone_select_menu(), VIEW3D_OT_camera_background_image_add(), VIEW3D_OT_camera_background_image_remove(), VIEW3D_OT_camera_to_view(), VIEW3D_OT_camera_to_view_selected(), VIEW3D_OT_clear_render_border(), VIEW3D_OT_clip_border(), VIEW3D_OT_copybuffer(), VIEW3D_OT_cursor3d(), VIEW3D_OT_dolly(), VIEW3D_OT_drop_world(), VIEW3D_OT_fly(), VIEW3D_OT_interactive_add(), VIEW3D_OT_localview(), VIEW3D_OT_localview_remove_from(), VIEW3D_OT_move(), VIEW3D_OT_navigate(), VIEW3D_OT_object_as_camera(), VIEW3D_OT_object_mode_pie_or_toggle(), VIEW3D_OT_pastebuffer(), VIEW3D_OT_render_border(), VIEW3D_OT_rotate(), VIEW3D_OT_ruler_add(), VIEW3D_OT_ruler_remove(), VIEW3D_OT_select(), VIEW3D_OT_select_box(), VIEW3D_OT_select_circle(), VIEW3D_OT_select_lasso(), VIEW3D_OT_select_menu(), VIEW3D_OT_smoothview(), VIEW3D_OT_snap_cursor_to_active(), VIEW3D_OT_snap_cursor_to_center(), VIEW3D_OT_snap_cursor_to_grid(), VIEW3D_OT_snap_cursor_to_selected(), VIEW3D_OT_snap_selected_to_active(), VIEW3D_OT_snap_selected_to_cursor(), VIEW3D_OT_snap_selected_to_grid(), VIEW3D_OT_toggle_matcap_flip(), VIEW3D_OT_toggle_shading(), VIEW3D_OT_toggle_xray(), VIEW3D_OT_view_all(), VIEW3D_OT_view_axis(), VIEW3D_OT_view_camera(), VIEW3D_OT_view_center_camera(), VIEW3D_OT_view_center_cursor(), VIEW3D_OT_view_center_lock(), VIEW3D_OT_view_center_pick(), VIEW3D_OT_view_lock_clear(), VIEW3D_OT_view_lock_to_active(), VIEW3D_OT_view_orbit(), VIEW3D_OT_view_pan(), VIEW3D_OT_view_persportho(), VIEW3D_OT_view_roll(), VIEW3D_OT_view_selected(), VIEW3D_OT_walk(), VIEW3D_OT_zoom(), VIEW3D_OT_zoom_border(), VIEW3D_OT_zoom_camera_1_to_1(), and WM_operatortype_append().
Referenced by ED_spacetype_view3d().
|
static |
Definition at line 88 of file view3d_ops.cc.
References wmOperatorType::description, ED_operator_scene(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view3d_copybuffer_exec().
Referenced by view3d_operatortypes().
|
static |
Definition at line 134 of file view3d_ops.cc.
References wmOperatorType::description, ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, and view3d_pastebuffer_exec().
Referenced by view3d_operatortypes().
|
static |
Definition at line 106 of file view3d_ops.cc.
References BKE_copybuffer_paste(), BKE_report(), BKE_reportf(), ED_outliner_select_sync_from_object_tag(), FILE_ACTIVE_COLLECTION, FILE_AUTOSELECT, FILE_MAX, FILTER_ID_OB, flag, NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_INFO, view3d_copybuffer_filepath_get(), and WM_event_add_notifier().
Referenced by VIEW3D_OT_pastebuffer().