|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "BLI_math_color.h"#include "BLI_math_vector.h"#include "BKE_context.hh"#include "ED_gizmo_library.hh"#include "ED_screen.hh"#include "ED_view3d.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "../gizmo_library_intern.hh"Go to the source code of this file.
Classes | |
| struct | SnapGizmo3D |
| void ED_gizmotypes_snap_3d | ( | ) |
Definition at line 391 of file snap3d_gizmo.cc.
References GIZMO_GT_snap_3d(), and WM_gizmotype_append().
Referenced by ED_spacetypes_init().
| SnapObjectContext * ED_gizmotypes_snap_3d_context_ensure | ( | Scene * | scene, |
| wmGizmo * | gz ) |
Definition at line 45 of file snap3d_gizmo.cc.
References ED_view3d_cursor_snap_context_ensure().
Referenced by view3d_ruler_item_mousemove().
| void ED_gizmotypes_snap_3d_data_get | ( | const bContext * | C, |
| wmGizmo * | gz, | ||
| float | r_loc[3], | ||
| float | r_nor[3], | ||
| int | r_elem_index[3], | ||
| eSnapMode * | r_snap_elem ) |
Definition at line 62 of file snap3d_gizmo.cc.
References copy_v3_v3(), copy_v3_v3_int(), CTX_wm_region(), CTX_wm_window(), ED_view3d_cursor_snap_data_get(), ED_view3d_cursor_snap_data_update(), V3DSnapCursorData::elem_index, wmWindow::eventstate, V3DSnapCursorData::loc, V3DSnapCursorData::nor, SnapGizmo3D::snap_state, and V3DSnapCursorData::type_target.
Referenced by gizmo_ruler_modal(), and view3d_ruler_item_mousemove().
Definition at line 50 of file snap3d_gizmo.cc.
References flag, and V3DSnapCursorState::flag.
Referenced by WIDGETGROUP_ruler_setup().
| bool ED_gizmotypes_snap_3d_is_enabled | ( | const wmGizmo * | gz | ) |
Definition at line 56 of file snap3d_gizmo.cc.
References ED_view3d_cursor_snap_data_get(), and V3DSnapCursorData::is_enabled.
Referenced by gizmo_ruler_modal(), view3d_ruler_add_invoke(), and view3d_ruler_item_mousemove().
|
static |
Definition at line 298 of file snap3d_gizmo.cc.
References BLI_assert, wmGizmoType::draw, FLT_MAX, free(), wmGizmoType::free, gizmo_snap_rna_location_get_fn(), gizmo_snap_rna_location_set_fn(), gizmo_snap_rna_normal_get_fn(), gizmo_snap_rna_prevpoint_get_fn(), gizmo_snap_rna_prevpoint_set_fn(), gizmo_snap_rna_snap_elem_index_get_fn(), gizmo_snap_rna_snap_srouce_type_get_fn(), gizmo_snap_rna_snap_srouce_type_set_fn(), wmGizmoType::idname, wmGizmoType::invoke, wmGizmoType::modal, RNA_def_enum(), RNA_def_float_array(), RNA_def_float_translation(), RNA_def_float_vector_xyz(), RNA_def_int_vector(), RNA_def_property_enum_funcs_runtime(), RNA_def_property_float_array_funcs_runtime(), RNA_def_property_int_array_funcs_runtime(), rna_enum_snap_element_items, RNA_pointer_create(), RNA_property_enum_items(), RNA_struct_find_property(), SCE_SNAP_TO_NONE, wmGizmoType::setup, snap_gizmo_draw(), snap_gizmo_free(), snap_gizmo_invoke(), snap_gizmo_modal(), snap_gizmo_setup(), snap_gizmo_test_select(), wmGizmoType::srna, wmGizmoType::struct_size, and wmGizmoType::test_select.
Referenced by ED_gizmotypes_snap_3d().
|
static |
Definition at line 104 of file snap3d_gizmo.cc.
References PointerRNA::data, gizmo_find_from_properties(), ptr, RGN_TYPE_WINDOW, and SPACE_VIEW3D.
Referenced by gizmo_snap_state_from_rna_get().
|
static |
Definition at line 136 of file snap3d_gizmo.cc.
References copy_v3_v3(), ED_view3d_cursor_snap_data_get(), and V3DSnapCursorData::loc.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 144 of file snap3d_gizmo.cc.
References copy_v3_v3(), ED_view3d_cursor_snap_data_get(), and V3DSnapCursorData::loc.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 152 of file snap3d_gizmo.cc.
References copy_v3_v3(), ED_view3d_cursor_snap_data_get(), and V3DSnapCursorData::nor.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 120 of file snap3d_gizmo.cc.
References copy_v3_v3(), gizmo_snap_state_from_rna_get(), V3DSnapCursorState::prevpoint, and ptr.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 128 of file snap3d_gizmo.cc.
References ED_view3d_cursor_snap_state_prevpoint_set(), gizmo_snap_state_from_rna_get(), and ptr.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 160 of file snap3d_gizmo.cc.
References copy_v3_v3_int(), ED_view3d_cursor_snap_data_get(), and V3DSnapCursorData::elem_index.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 168 of file snap3d_gizmo.cc.
References ED_view3d_cursor_snap_data_get(), int, and V3DSnapCursorData::type_source.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 174 of file snap3d_gizmo.cc.
References ED_view3d_cursor_snap_data_get(), and V3DSnapCursorData::type_source.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 110 of file snap3d_gizmo.cc.
References ED_view3d_cursor_snap_state_active_get(), gizmo_snap_rna_find_operator(), ptr, and SnapGizmo3D::snap_state.
Referenced by gizmo_snap_rna_prevpoint_get_fn(), and gizmo_snap_rna_prevpoint_set_fn().
|
static |
Definition at line 188 of file snap3d_gizmo.cc.
References ED_view3d_cursor_snap_state_free(), SnapGizmo3D::snap_state, and SnapGizmo3D::snap_state_stored.
Referenced by snap_cursor_poll(), and snap_gizmo_free().
|
static |
Definition at line 198 of file snap3d_gizmo.cc.
References wmGizmo::flag, SnapGizmo3D::gizmo, wmGizmo::parent_gzgroup, snap_cursor_free(), wmGizmo::state, wmGizmoGroup::type, WM_GIZMO_DRAW_VALUE, WM_GIZMO_HIDDEN, WM_GIZMO_STATE_HIGHLIGHT, and WM_gizmomap_group_find_ptr().
Referenced by snap_gizmo_setup().
Definition at line 240 of file snap3d_gizmo.cc.
References ED_view3d_cursor_snap_state_active_set(), ED_view3d_cursor_snap_state_create(), SnapGizmo3D::snap_state, and SnapGizmo3D::snap_state_stored.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 293 of file snap3d_gizmo.cc.
References snap_cursor_free().
Referenced by GIZMO_GT_snap_3d().
Definition at line 288 of file snap3d_gizmo.cc.
References OPERATOR_RUNNING_MODAL.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 280 of file snap3d_gizmo.cc.
References OPERATOR_RUNNING_MODAL.
Referenced by GIZMO_GT_snap_3d().
|
static |
Definition at line 226 of file snap3d_gizmo.cc.
References V3DSnapCursorState::draw_plane, V3DSnapCursorState::draw_point, ED_view3d_cursor_snap_state_create(), wmGizmo::flag, V3DSnapCursorState::poll, V3DSnapCursorState::poll_data, snap_cursor_poll(), SnapGizmo3D::snap_state, SnapGizmo3D::snap_state_stored, and WM_GIZMO_NO_TOOLTIP.
Referenced by GIZMO_GT_snap_3d().
Definition at line 253 of file snap3d_gizmo.cc.
References CTX_wm_region(), CTX_wm_window(), ED_view3d_cursor_snap_data_get(), ED_view3d_cursor_snap_data_update(), wmWindow::eventstate, SCE_SNAP_TO_NONE, SnapGizmo3D::snap_state, V3DSnapCursorData::type_target, x, wmEvent::xy, and y.
Referenced by GIZMO_GT_snap_3d().