Blender
V3.3
|
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_context.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 "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "view3d_intern.h"
Go to the source code of this file.
|
static |
Definition at line 116 of file view3d_gizmo_light.c.
References Light::area_shape, Light::area_size, Light::area_sizey, wmGizmoPropertyType::array_length, BLI_assert, wmGizmoProperty::custom_func, ELEM, float(), LA_AREA_ELLIPSE, LA_AREA_RECT, wmGizmoProperty::type, and wmGizmoProperty::user_data.
Referenced by WIDGETGROUP_light_area_refresh().
|
static |
Definition at line 129 of file view3d_gizmo_light.c.
References Light::area_shape, Light::area_size, Light::area_sizey, wmGizmoPropertyType::array_length, BLI_assert, wmGizmoProperty::custom_func, DEG_id_tag_update(), ELEM, float(), Light::id, ID_RECALC_COPY_ON_WRITE, LA_AREA_ELLIPSE, LA_AREA_RECT, len_v3(), NC_LAMP, ND_LIGHTING_DRAW, wmGizmoProperty::type, wmGizmoProperty::user_data, and WM_main_add_notifier().
Referenced by WIDGETGROUP_light_area_refresh().
void VIEW3D_GGT_light_area | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 213 of file view3d_gizmo_light.c.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_light_area_poll(), WIDGETGROUP_light_area_refresh(), WIDGETGROUP_light_area_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DEPTH_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
void VIEW3D_GGT_light_spot | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 96 of file view3d_gizmo_light.c.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_light_spot_poll(), WIDGETGROUP_light_spot_refresh(), WIDGETGROUP_light_spot_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DEPTH_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
void VIEW3D_GGT_light_target | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 301 of file view3d_gizmo_light.c.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_light_target_draw_prepare(), WIDGETGROUP_light_target_poll(), WIDGETGROUP_light_target_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by view3d_widgets().
|
static |
Definition at line 149 of file view3d_gizmo_light.c.
References BASACT, BASE_SELECTABLE, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, View3D::gizmo_flag, View3D::gizmo_show_light, LA_AREA, OB_LAMP, Base::object, Light::type, Object::type, V3D_GIZMO_HIDE, V3D_GIZMO_HIDE_CONTEXT, and V3D_GIZMO_SHOW_LIGHT_SIZE.
Referenced by VIEW3D_GGT_light_area().
|
static |
Definition at line 186 of file view3d_gizmo_light.c.
References Light::area_shape, C, copy_m4_m4(), CTX_data_view_layer(), wmGizmoGroup::customdata, Object::data, ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE, ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE_UNIFORM, ELEM, wmGizmoWrapper::gizmo, gizmo_area_light_prop_matrix_get(), gizmo_area_light_prop_matrix_set(), LA_AREA_DISK, LA_AREA_SQUARE, wmGizmo::matrix_basis, NULL, OBACT, Object::obmat, wmGizmo::ptr, RNA_enum_set(), and WM_gizmo_target_property_def_func().
Referenced by VIEW3D_GGT_light_area().
|
static |
Definition at line 171 of file view3d_gizmo_light.c.
References wmGizmo::color, wmGizmo::color_hi, wmGizmoGroup::customdata, ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE, wmGizmoWrapper::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_light_area().
|
static |
Definition at line 38 of file view3d_gizmo_light.c.
References BASACT, BASE_SELECTABLE, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, View3D::gizmo_flag, View3D::gizmo_show_light, LA_SPOT, OB_LAMP, Base::object, Light::type, Object::type, V3D_GIZMO_HIDE, V3D_GIZMO_HIDE_CONTEXT, and V3D_GIZMO_SHOW_LIGHT_SIZE.
Referenced by VIEW3D_GGT_light_spot().
|
static |
Definition at line 75 of file view3d_gizmo_light.c.
References C, CTX_data_view_layer(), wmGizmoGroup::customdata, Object::data, wmGizmoWrapper::gizmo, Light::id, negate_v3_v3(), OBACT, Object::obmat, RNA_pointer_create(), WM_gizmo_set_matrix_location(), WM_gizmo_set_matrix_rotation_from_z_axis(), and WM_gizmo_target_property_def_rna().
Referenced by VIEW3D_GGT_light_spot().
|
static |
Definition at line 60 of file view3d_gizmo_light.c.
References wmGizmo::color, wmGizmoGroup::customdata, ED_gizmo_arrow3d_set_range_fac(), ED_GIZMO_ARROW_XFORM_FLAG_INVERTED, wmGizmoWrapper::gizmo, MEM_mallocN, NULL, wmGizmo::ptr, RNA_enum_set(), TH_GIZMO_SECONDARY, UI_GetThemeColor3fv(), and WM_gizmo_new().
Referenced by VIEW3D_GGT_light_spot().
|
static |
Definition at line 280 of file view3d_gizmo_light.c.
References C, CTX_data_view_layer(), wmGizmoGroup::customdata, Object::data, wmGizmoWrapper::gizmo, LA_SPOT, madd_v3_v3fl(), wmGizmo::matrix_basis, wmGizmo::matrix_offset, normalize_m4_m4(), OB_LAMP, OBACT, Object::obmat, Light::spotsize, Light::type, Object::type, unit_m4(), WM_GIZMO_DRAW_OFFSET_SCALE, and WM_gizmo_set_flag().
Referenced by VIEW3D_GGT_light_target().
|
static |
Definition at line 232 of file view3d_gizmo_light.c.
References BASACT, BASE_SELECTABLE, C, CTX_data_view_layer(), CTX_wm_view3d(), Object::data, ELEM, View3D::gizmo_flag, View3D::gizmo_show_light, LA_AREA, LA_SPOT, LA_SUN, OB_CAMERA, OB_LAMP, Base::object, Light::type, Object::type, V3D_GIZMO_HIDE, V3D_GIZMO_HIDE_CONTEXT, and V3D_GIZMO_SHOW_LIGHT_LOOK_AT.
Referenced by VIEW3D_GGT_light_target().
|
static |
Definition at line 259 of file view3d_gizmo_light.c.
References wmGizmo::color, wmGizmo::color_hi, wmGizmoGroup::customdata, ED_GIZMO_MOVE_DRAW_FLAG_ALIGN_VIEW, ED_GIZMO_MOVE_DRAW_FLAG_FILL, wmGizmoWrapper::gizmo, MEM_mallocN, NULL, ot, wmGizmo::ptr, RNA_enum_set(), wmGizmo::scale_basis, TH_GIZMO_HI, TH_GIZMO_PRIMARY, UI_GetThemeColor3fv(), WM_gizmo_new(), WM_gizmo_operator_set(), and WM_operatortype_find().
Referenced by VIEW3D_GGT_light_target().