Blender V5.3
gizmo_library_utils.cc File Reference
#include "DNA_screen_types.h"
#include "DNA_view3d_types.h"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_main.hh"
#include "BKE_screen.hh"
#include "BLI_listbase.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "RNA_access.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_screen.hh"
#include "ED_view3d.hh"
#include "CLG_log.h"
#include "gizmo_library_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define GIZMO_PRECISION_FAC   0.05f

Functions

BLI_INLINE float blender::gizmo_offset_from_value_constr (const float range_fac, const float min, const float range, const float value, const bool inverted)
BLI_INLINE float blender::gizmo_value_from_offset_constr (const float range_fac, const float min, const float range, const float value, const bool inverted)
float blender::gizmo_offset_from_value (GizmoCommonData *data, float value, bool constrained, bool inverted)
float blender::gizmo_value_from_offset (GizmoCommonData *data, GizmoInteraction *inter, float offset, bool constrained, bool inverted, bool use_precision)
void blender::gizmo_property_data_update (wmGizmo *gz, GizmoCommonData *data, wmGizmoProperty *gz_prop, bool constrained, bool inverted)
void blender::gizmo_property_value_reset (bContext *C, const wmGizmo *gz, GizmoInteraction *inter, wmGizmoProperty *gz_prop)
void blender::gizmo_color_get (const wmGizmo *gz, bool highlight, float r_color[4])
bool blender::gizmo_window_project_2d (bContext *C, const wmGizmo *gz, const float mval[2], int axis, bool use_offset, float r_co[2])
bool blender::gizmo_window_project_3d (bContext *C, const wmGizmo *gz, const float mval[2], bool use_offset, float r_co[3])
RNA Utils
wmGizmo * blender::gizmo_find_from_properties (const IDProperty *properties, const int spacetype, const int regionid)

Variables

static CLG_LogRef blender::LOG = {"tool.gizmo"}

Macro Definition Documentation

◆ GIZMO_PRECISION_FAC

#define GIZMO_PRECISION_FAC   0.05f

Definition at line 44 of file gizmo_library_utils.cc.

Referenced by blender::gizmo_value_from_offset().