Blender
V3.3
|
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_image.h"
#include "BKE_layer.h"
#include "BKE_object.h"
#include "DEG_depsgraph.h"
#include "DNA_light_types.h"
#include "DNA_object_types.h"
#include "ED_gizmo_library.h"
#include "ED_screen.h"
#include "UI_resources.h"
#include "MEM_guardedalloc.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "view3d_intern.h"
Go to the source code of this file.
Classes | |
struct | EmptyImageWidgetGroup |
Functions | |
Empty Image Gizmos | |
static void | gizmo_empty_image_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p) |
static void | gizmo_empty_image_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p) |
static bool | WIDGETGROUP_empty_image_poll (const bContext *C, wmGizmoGroupType *UNUSED(gzgt)) |
static void | WIDGETGROUP_empty_image_setup (const bContext *UNUSED(C), wmGizmoGroup *gzgroup) |
static void | WIDGETGROUP_empty_image_refresh (const bContext *C, wmGizmoGroup *gzgroup) |
void | VIEW3D_GGT_empty_image (wmGizmoGroupType *gzgt) |
|
static |
Definition at line 47 of file view3d_gizmo_empty.c.
References wmGizmoPropertyType::array_length, BLI_assert, wmGizmoProperty::custom_func, EmptyImageWidgetGroup::dims, Object::empty_drawsize, float(), Object::ima_ofs, EmptyImageWidgetGroup::ob, wmGizmo::ptr, RNA_float_get_array(), EmptyImageWidgetGroup::state, wmGizmoProperty::type, unit_m4(), and wmGizmoProperty::user_data.
Referenced by WIDGETGROUP_empty_image_refresh().
|
static |
Definition at line 69 of file view3d_gizmo_empty.c.
References wmGizmoPropertyType::array_length, BLI_assert, wmGizmoProperty::custom_func, DEG_id_tag_update(), EmptyImageWidgetGroup::dims, Object::empty_drawsize, float(), Object::id, ID_RECALC_TRANSFORM, Object::ima_ofs, EmptyImageWidgetGroup::ob, wmGizmo::ptr, RNA_float_get_array(), EmptyImageWidgetGroup::state, wmGizmoProperty::type, and wmGizmoProperty::user_data.
Referenced by WIDGETGROUP_empty_image_refresh().
void VIEW3D_GGT_empty_image | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 181 of file view3d_gizmo_empty.c.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_empty_image_poll(), WIDGETGROUP_empty_image_refresh(), WIDGETGROUP_empty_image_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DEPTH_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
|
static |
Definition at line 90 of file view3d_gizmo_empty.c.
References BASACT, BASE_SELECTABLE, BKE_object_empty_image_frame_is_visible_in_view3d(), C, CTX_data_view_layer(), CTX_wm_region_view3d(), CTX_wm_view3d(), Object::empty_drawtype, View3D::gizmo_flag, View3D::gizmo_show_empty, EmptyImageWidgetGroup::ob, OB_EMPTY, OB_EMPTY_IMAGE, Base::object, Object::type, V3D_GIZMO_HIDE, V3D_GIZMO_HIDE_CONTEXT, and V3D_GIZMO_SHOW_EMPTY_IMAGE.
Referenced by VIEW3D_GGT_empty_image().
|
static |
Definition at line 131 of file view3d_gizmo_empty.c.
References BKE_image_get_size_fl(), C, copy_m4_m4(), copy_v2_fl(), CTX_data_view_layer(), wmGizmoGroup::customdata, Object::data, EmptyImageWidgetGroup::dims, ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE, ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE_UNIFORM, ED_GIZMO_CAGE2D_XFORM_FLAG_TRANSLATE, EmptyImageWidgetGroup::gizmo, gizmo_empty_image_prop_matrix_get(), gizmo_empty_image_prop_matrix_set(), image(), Object::iuser, wmGizmo::matrix_basis, max_ff(), NULL, EmptyImageWidgetGroup::ob, OBACT, Object::obmat, wmGizmo::ptr, RNA_enum_set(), RNA_float_set_array(), size(), EmptyImageWidgetGroup::state, and WM_gizmo_target_property_def_func().
Referenced by VIEW3D_GGT_empty_image().
|
static |
Definition at line 115 of file view3d_gizmo_empty.c.
References wmGizmo::color, wmGizmo::color_hi, wmGizmoGroup::customdata, ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE, EmptyImageWidgetGroup::gizmo, MEM_mallocN, NULL, wmGizmo::ptr, RNA_enum_set(), TH_GIZMO_HI, TH_GIZMO_PRIMARY, UI_GetThemeColor3fv(), WM_GIZMO_DRAW_HOVER, WM_gizmo_new(), and WM_gizmo_set_flag().
Referenced by VIEW3D_GGT_empty_image().