Blender V5.3
editmesh_add_gizmo.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_context.hh"
#include "BKE_editmesh.hh"
#include "BKE_object_types.hh"
#include "BKE_scene.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "ED_gizmo_library.hh"
#include "ED_gizmo_utils.hh"
#include "ED_mesh.hh"
#include "ED_object.hh"
#include "ED_screen.hh"
#include "ED_undo.hh"
#include "ED_view3d.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "UI_resources.hh"
#include "mesh_intern.hh"

Go to the source code of this file.

Classes

struct  blender::GizmoPlacementGroup

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Helper Functions
static void blender::calc_initial_placement_point_from_view (bContext *C, const float mval[2], float r_location[3], float r_rotation[3][3])
Placement Gizmo
static void blender::gizmo_placement_exec (GizmoPlacementGroup *ggd)
static void blender::gizmo_mesh_placement_update_from_op (GizmoPlacementGroup *ggd)
static void blender::gizmo_placement_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::gizmo_placement_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value)
static bool blender::gizmo_mesh_placement_poll (const bContext *C, wmGizmoGroupType *gzgt)
static void blender::gizmo_mesh_placement_modal_from_setup (const bContext *C, wmGizmoGroup *gzgroup)
static void blender::gizmo_mesh_placement_setup (const bContext *C, wmGizmoGroup *gzgroup)
static void blender::gizmo_mesh_placement_draw_prepare (const bContext *, wmGizmoGroup *gzgroup)
static void blender::MESH_GGT_add_bounds (wmGizmoGroupType *gzgt)
Add Cube Gizmo-Operator

For now we use a separate operator to add a cube, we can try to merge then however they are invoked differently and share the same BMesh creation code.

static wmOperatorStatus blender::add_primitive_cube_gizmo_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::add_primitive_cube_gizmo_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::MESH_OT_primitive_cube_add_gizmo (wmOperatorType *ot)

Detailed Description

Creation gizmos.

Definition in file editmesh_add_gizmo.cc.