Blender
V3.3
|
#include "BKE_context.h"
#include "WM_api.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "ED_screen.h"
#include "view3d_intern.h"
#include "view3d_navigate.h"
Go to the source code of this file.
Functions | |
View Move (Pan) Operator | |
void | viewmove_modal_keymap (wmKeyConfig *keyconf) |
static int | viewmove_modal (bContext *C, wmOperator *op, const wmEvent *event) |
static int | viewmove_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
static void | viewmove_cancel (bContext *C, wmOperator *op) |
void | VIEW3D_OT_move (wmOperatorType *ot) |
void VIEW3D_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 189 of file view3d_navigate_move.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, ot, wmOperatorType::poll, V3D_OP_PROP_USE_MOUSE_INIT, view3d_location_poll(), view3d_operator_properties_common(), viewmove_cancel(), viewmove_invoke(), and viewmove_modal().
Referenced by view3d_operatortypes().
|
static |
Definition at line 183 of file view3d_navigate_move.c.
References C, wmOperator::customdata, NULL, and viewops_data_free().
Referenced by VIEW3D_OT_move().
|
static |
Definition at line 151 of file view3d_navigate_move.c.
References C, wmOperator::customdata, ED_view3d_smooth_view_force_finish(), MOUSEPAN, NULL, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::prev_xy, wmOperator::ptr, ViewOpsData::region, RNA_boolean_get(), wmEvent::type, ViewOpsData::v3d, viewmove_apply(), viewops_data_create(), viewops_data_free(), viewops_flag_from_prefs(), VIEWOPS_FLAG_ORBIT_SELECT, VIEWOPS_FLAG_USE_MOUSE_INIT, WM_event_add_modal_handler(), and wmEvent::xy.
Referenced by VIEW3D_OT_move().
|
static |
Definition at line 96 of file view3d_navigate_move.c.
References C, CTX_wm_manager(), wmOperator::customdata, ED_screen_animation_playing(), ED_view3d_camera_lock_autokey(), ED_view3d_camera_lock_undo_push(), ViewOpsData::event_type, EVT_MODAL_MAP, ViewOpsData::init, KM_RELEASE, MOUSEMOVE, wmOperatorType::name, NULL, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ret, ViewOpsData::rv3d, wmOperator::type, wmEvent::type, ViewOpsData::v3d, wmEvent::val, VIEW_APPLY, VIEW_CONFIRM, VIEW_MODAL_CONFIRM, VIEW_PASS, viewmove_apply(), viewops_data_free(), VIEWROT_MODAL_SWITCH_ROTATE, VIEWROT_MODAL_SWITCH_ZOOM, WM_OP_INVOKE_DEFAULT, WM_operator_name_call(), and wmEvent::xy.
Referenced by VIEW3D_OT_move().
void viewmove_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 25 of file view3d_navigate_move.c.
References EVT_ESCKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, KM_ANY, KM_PRESS, KM_RELEASE, LEFTMOUSE, MIDDLEMOUSE, wmKeyMap::modal_items, NULL, VIEW_MODAL_CONFIRM, VIEWROT_MODAL_SWITCH_ROTATE, VIEWROT_MODAL_SWITCH_ZOOM, WM_modalkeymap_add_item(), WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().