Blender
V3.3
|
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_layer.h"
#include "DNA_object_force_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.
Functions | |
Force Field Gizmos | |
static bool | WIDGETGROUP_forcefield_poll (const bContext *C, wmGizmoGroupType *UNUSED(gzgt)) |
static void | WIDGETGROUP_forcefield_setup (const bContext *UNUSED(C), wmGizmoGroup *gzgroup) |
static void | WIDGETGROUP_forcefield_refresh (const bContext *C, wmGizmoGroup *gzgroup) |
void | VIEW3D_GGT_force_field (wmGizmoGroupType *gzgt) |
void VIEW3D_GGT_force_field | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 97 of file view3d_gizmo_forcefield.c.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_forcefield_poll(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_forcefield_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), WM_GIZMOGROUPTYPE_3D, WM_GIZMOGROUPTYPE_DEPTH_3D, WM_GIZMOGROUPTYPE_PERSISTENT, and WM_GIZMOGROUPTYPE_SCALE.
Referenced by view3d_widgets().
|
static |
Definition at line 34 of file view3d_gizmo_forcefield.c.
References BASACT, BASE_SELECTABLE, C, CTX_data_view_layer(), CTX_wm_view3d(), PartDeflect::forcefield, View3D::gizmo_flag, View3D::gizmo_show_empty, Base::object, Object::pd, V3D_GIZMO_HIDE, V3D_GIZMO_HIDE_CONTEXT, and V3D_GIZMO_SHOW_EMPTY_FORCE_FIELD.
Referenced by VIEW3D_GGT_force_field().
|
static |
Definition at line 72 of file view3d_gizmo_forcefield.c.
References C, CTX_data_view_layer(), wmGizmoGroup::customdata, Object::empty_drawsize, PartDeflect::forcefield, wmGizmoWrapper::gizmo, Object::id, OB_EMPTY, OBACT, Object::obmat, Object::pd, PFIELD_WIND, RNA_pointer_create(), size(), Object::type, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), WM_gizmo_set_matrix_location(), WM_gizmo_set_matrix_offset_location(), WM_gizmo_set_matrix_rotation_from_z_axis(), and WM_gizmo_target_property_def_rna().
Referenced by VIEW3D_GGT_force_field().
|
static |
Definition at line 56 of file view3d_gizmo_forcefield.c.
References wmGizmo::color, wmGizmo::color_hi, wmGizmoGroup::customdata, ED_gizmo_arrow3d_set_range_fac(), ED_gizmo_arrow3d_set_ui_range(), ED_GIZMO_ARROW_XFORM_FLAG_CONSTRAINED, wmGizmoWrapper::gizmo, MEM_mallocN, NULL, wmGizmo::ptr, RNA_enum_set(), TH_GIZMO_HI, TH_GIZMO_PRIMARY, UI_GetThemeColor3fv(), and WM_gizmo_new().
Referenced by VIEW3D_GGT_force_field().