Blender V5.3
editmesh_extrude_spin_gizmo.cc File Reference
#include "BLI_listbase.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BKE_context.hh"
#include "BKE_scene.hh"
#include "BKE_screen.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "WM_api.hh"
#include "WM_message.hh"
#include "WM_toolsystem.hh"
#include "WM_types.hh"
#include "ED_gizmo_utils.hh"
#include "ED_screen.hh"
#include "ED_view3d.hh"
#include "UI_resources.hh"
#include "MEM_guardedalloc.h"
#include "mesh_intern.hh"
#include "ED_transform.hh"
#include "ED_gizmo_library.hh"
#include "ED_undo.hh"

Go to the source code of this file.

Classes

struct  blender::GizmoGroupData_SpinInit
struct  blender::GizmoGroupData_SpinRedo

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define ORTHO_AXIS_OFFSET   2

Variables

static const float blender::dial_angle_partial = M_PI_2
static const float blender::dial_angle_partial_margin = 0.92f

Spin Tool Gizmo

#define USE_DIAL_HOVER
#define INIT_SCALE_BASE   2.3f
#define INIT_SCALE_BUTTON   0.15f
static const uchar blender::shape_plus []
static void blender::gizmo_mesh_spin_init_setup (const bContext *, wmGizmoGroup *gzgroup)
static void blender::gizmo_mesh_spin_init_refresh (const bContext *C, wmGizmoGroup *gzgroup)
static void blender::gizmo_mesh_spin_init_refresh_axis_orientation (wmGizmoGroup *gzgroup, int axis_index, const float axis_vec[3], const float axis_tan[3])
static void blender::gizmo_mesh_spin_init_draw_prepare (const bContext *C, wmGizmoGroup *gzgroup)
static void blender::gizmo_mesh_spin_init_invoke_prepare (const bContext *, wmGizmoGroup *gzgroup, wmGizmo *gz, const wmEvent *)
static void blender::gizmo_mesh_spin_init_message_subscribe (const bContext *C, wmGizmoGroup *gzgroup, wmMsgBus *mbus)
void blender::MESH_GGT_spin (wmGizmoGroupType *gzgt)

Spin Redo Gizmo

#define USE_ANGLE_Z_ORIENT
static void blender::gizmo_spin_exec (GizmoGroupData_SpinRedo *ggd)
static void blender::gizmo_mesh_spin_redo_update_orient_axis (GizmoGroupData_SpinRedo *ggd, const float plane_no[3])
static void blender::gizmo_mesh_spin_redo_update_from_op (GizmoGroupData_SpinRedo *ggd)
static void blender::gizmo_spin_prop_depth_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::gizmo_spin_prop_depth_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static void blender::gizmo_spin_prop_translate_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::gizmo_spin_prop_translate_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value)
static void blender::gizmo_spin_prop_axis_angle_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::gizmo_spin_prop_axis_angle_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static void blender::gizmo_spin_prop_angle_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::gizmo_spin_prop_angle_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static bool blender::gizmo_mesh_spin_redo_poll (const bContext *C, wmGizmoGroupType *gzgt)
static void blender::gizmo_mesh_spin_redo_modal_from_setup (const bContext *C, wmGizmoGroup *gzgroup)
static void blender::gizmo_mesh_spin_redo_setup (const bContext *C, wmGizmoGroup *gzgroup)
static void blender::gizmo_mesh_spin_redo_draw_prepare (const bContext *, wmGizmoGroup *gzgroup)
void blender::MESH_GGT_spin_redo (wmGizmoGroupType *gzgt)

Macro Definition Documentation

◆ INIT_SCALE_BASE

#define INIT_SCALE_BASE   2.3f

◆ INIT_SCALE_BUTTON

#define INIT_SCALE_BUTTON   0.15f

◆ ORTHO_AXIS_OFFSET

#define ORTHO_AXIS_OFFSET   2

◆ USE_ANGLE_Z_ORIENT

#define USE_ANGLE_Z_ORIENT

Orient the dial so the 'arc' starts where the mouse cursor is, this is simply to keep the gizmo displaying where the cursor starts. It's not needed for practical functionality.

Definition at line 481 of file editmesh_extrude_spin_gizmo.cc.

◆ USE_DIAL_HOVER

#define USE_DIAL_HOVER

Definition at line 94 of file editmesh_extrude_spin_gizmo.cc.