|
Blender V5.0
|
#include "BLI_math_vector.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "ED_gizmo_library.hh"#include "ED_screen.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "MEM_guardedalloc.h"#include "RNA_access.hh"#include "WM_api.hh"#include "WM_types.hh"#include "view3d_intern.hh"Go to the source code of this file.
View3D Navigation Gizmo Group | |
| #define | GIZMO_SIZE U.gizmo_size_navigate_v3d |
| #define | GIZMO_OFFSET 10.0f |
| #define | GIZMO_MINI_SIZE 28.0f |
| #define | GIZMO_MINI_OFFSET 2.0f |
| static NavigateGizmoInfo | g_navigate_params [GZ_INDEX_TOTAL] |
| static void | navigate_context_toggle_camera_lock_init (PointerRNA *ptr) |
| static bool | WIDGETGROUP_navigate_poll (const bContext *C, wmGizmoGroupType *) |
| static void | WIDGETGROUP_navigate_setup (const bContext *C, wmGizmoGroup *gzgroup) |
| static void | WIDGETGROUP_navigate_draw_prepare (const bContext *C, wmGizmoGroup *gzgroup) |
| void | VIEW3D_GGT_navigate (wmGizmoGroupType *gzgt) |
| #define GIZMO_MINI_OFFSET 2.0f |
Definition at line 43 of file view3d_gizmo_navigate.cc.
Referenced by WIDGETGROUP_navigate_draw_prepare().
| #define GIZMO_MINI_SIZE 28.0f |
Definition at line 40 of file view3d_gizmo_navigate.cc.
Referenced by WIDGETGROUP_navigate_draw_prepare(), and WIDGETGROUP_navigate_setup().
| #define GIZMO_OFFSET 10.0f |
Definition at line 37 of file view3d_gizmo_navigate.cc.
Referenced by WIDGETGROUP_navigate_draw_prepare().
| #define GIZMO_SIZE U.gizmo_size_navigate_v3d |
Definition at line 34 of file view3d_gizmo_navigate.cc.
|
static |
Definition at line 89 of file view3d_gizmo_navigate.cc.
References ptr, and RNA_string_set().
| void VIEW3D_GGT_navigate | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 395 of file view3d_gizmo_navigate.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::setup, WIDGETGROUP_navigate_draw_prepare(), WIDGETGROUP_navigate_poll(), WIDGETGROUP_navigate_setup(), WM_GIZMOGROUPTYPE_DRAW_MODAL_ALL, WM_GIZMOGROUPTYPE_PERSISTENT, and WM_GIZMOGROUPTYPE_SCALE.
Referenced by view3d_widgets().
|
static |
Definition at line 281 of file view3d_gizmo_navigate.cc.
References ARRAY_SIZE, C, CHECK_TYPE_PAIR, copy_v3_v3(), CTX_wm_region(), CTX_wm_view3d(), wmGizmoGroup::customdata, ED_region_visible_rect(), View3D::flag2, GIZMO_MINI_OFFSET, GIZMO_MINI_SIZE, GIZMO_OFFSET, GIZMO_SIZE, i, RegionView3D::is_persp, wmGizmo::matrix_basis, wmGizmo::matrix_offset, RegionView3D::persp, ARegion::regiondata, roundf, RV3D_CAMOB, RV3D_LOCK_FLAGS, RV3D_LOCK_LOCATION, RV3D_LOCK_ROTATION, RV3D_LOCK_ZOOM_AND_DOLLY, U, UI_SCALE_FAC, UI_UNIT_X, USER_MINI_AXIS_TYPE_GIZMO, USER_MINI_AXIS_TYPE_MINIMAL, USER_MINI_AXIS_TYPE_NONE, USER_SHOW_GIZMO_NAVIGATE, V3D_LOCK_CAMERA, RegionView3D::viewlock, RegionView3D::viewmat, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), rcti::xmax, and rcti::ymax.
|
static |
Definition at line 151 of file view3d_gizmo_navigate.cc.
References C, CTX_wm_view3d(), View3D::gizmo_flag, U, USER_MINI_AXIS_TYPE_GIZMO, USER_SHOW_GIZMO_NAVIGATE, V3D_GIZMO_HIDE, and V3D_GIZMO_HIDE_NAVIGATE.
|
static |
Definition at line 163 of file view3d_gizmo_navigate.cc.
References ARRAY_SIZE, C, wmGizmo::color, wmGizmo::color_hi, copy_v3_fl(), CTX_wm_manager(), wmGizmoGroup::customdata, wmGizmo::drag_part, ED_GIZMO_BUTTON_SHOW_BACKDROP, ED_GIZMO_BUTTON_SHOW_OUTLINE, wmGizmo::flag, g_navigate_params, GIZMO_MINI_SIZE, GIZMO_SIZE, i, wmGizmo::keymap, MEM_callocN(), ot, ptr, wmGizmo::ptr, wmGizmoOpElem::ptr, RNA_boolean_set(), RNA_enum_set(), RNA_property_enum_set(), RNA_struct_find_property(), RV3D_VIEW_BACK, RV3D_VIEW_BOTTOM, RV3D_VIEW_FRONT, RV3D_VIEW_LEFT, RV3D_VIEW_RIGHT, RV3D_VIEW_TOP, wmGizmo::scale_basis, TH_HEADER, TH_TEXT, UI_GetThemeColor3ubv(), UI_GetThemeColorShade3fv(), WM_GIZMO_DRAW_MODAL, WM_gizmo_keymap_generic_press_drag(), WM_GIZMO_MOVE_CURSOR, WM_gizmo_new(), WM_gizmo_operator_get(), WM_gizmo_operator_set(), and WM_operatortype_find().
|
static |
Definition at line 94 of file view3d_gizmo_navigate.cc.
Referenced by WIDGETGROUP_navigate_setup().