25#include "RNA_prototypes.hh"
98 const float ofs[3] = {0.0f, -size, 0.0f};
114 gzgt->
name =
"Force Field Widgets";
115 gzgt->
idname =
"VIEW3D_GGT_force_field";
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
void get_color_3fv(int colorid, float col[3])
void WM_gizmo_set_matrix_rotation_from_z_axis(wmGizmo *gz, const float z_axis[3])
void * MEM_new_uninitialized(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void ED_gizmo_arrow3d_set_range_fac(wmGizmo *gz, const float range_fac)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
void VIEW3D_GGT_force_field(wmGizmoGroupType *gzgt)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
Base * BKE_view_layer_active_base_get(ViewLayer *view_layer)
void WM_gizmo_set_matrix_offset_location(wmGizmo *gz, const float offset[3])
ViewLayer * CTX_data_view_layer(const bContext *C)
void WM_gizmo_target_property_def_rna(wmGizmo *gz, const char *idname, PointerRNA *ptr, const char *propname, int index)
void WM_gizmo_set_flag(wmGizmo *gz, const int flag, const bool enable)
@ ED_GIZMO_ARROW_XFORM_FLAG_CONSTRAINED
static void WIDGETGROUP_forcefield_setup(const bContext *, wmGizmoGroup *gzgroup)
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
wmGizmo * WM_gizmo_new(const StringRef idname, wmGizmoGroup *gzgroup, PointerRNA *properties)
@ V3D_GIZMO_SHOW_EMPTY_FORCE_FIELD
@ WM_GIZMOGROUPTYPE_DEPTH_3D
@ WM_GIZMOGROUPTYPE_PERSISTENT
@ WM_GIZMOGROUPTYPE_SCALE
Main * CTX_data_main(const bContext *C)
void ED_gizmo_arrow3d_set_ui_range(wmGizmo *gz, const float min, const float max)
static bool WIDGETGROUP_forcefield_poll(const bContext *C, wmGizmoGroupType *)
Scene * CTX_data_scene(const bContext *C)
wmKeyMap * WM_gizmogroup_setup_keymap_generic_maybe_drag(const wmGizmoGroupType *, wmKeyConfig *kc)
void WM_gizmo_set_matrix_location(wmGizmo *gz, const float origin[3])
bool BKE_id_is_editable(const Main *bmain, const ID *id)
View3D * CTX_wm_view3d(const bContext *C)
static void WIDGETGROUP_forcefield_refresh(const bContext *C, wmGizmoGroup *gzgroup)
eView3D_GizmoShowEmpty gizmo_show_empty
eView3D_GizmoFlag gizmo_flag
wmGizmoGroupFnRefresh refresh
wmGizmoGroupFnSetupKeymap setup_keymap
eWM_GizmoFlagGroupTypeFlag flag
ListBaseT< wmGizmo > gizmos