34#include "RNA_prototypes.hh"
52 if (ibuf && ibuf->
x > 0 && ibuf->
y > 0) {
65 const float2 &image_offset,
66 float matrix_space[4][4])
69 mul_v3_fl(matrix_space[0], zoom * image_dims.x);
70 mul_v3_fl(matrix_space[1], zoom * image_dims.y);
71 matrix_space[3][0] = ((region->
winx / 2) + space_offset.x) -
72 ((image_dims.x / 2.0f - image_offset.x + 0.5f) * zoom);
73 matrix_space[3][1] = ((region->
winy / 2) + space_offset.y) -
74 ((image_dims.y / 2.0f - image_offset.y + 0.5f) * zoom);
80 float matrix_space[4][4])
85 matrix_space[3][0] = (region->
winx / 2) - offset.x - 0.5f * zoom;
86 matrix_space[3][1] = (region->
winy / 2) - offset.y - 0.5f * zoom;
176 const UString socket_identifier,
184 callback(ptr, prop,
index);
217 if (
node ==
nullptr) {
221 if (
node &&
node->is_type(
"CompositorNodeBoxMask"_ustr)) {
222 node_tree->ensure_topology_cache();
224 if (
STR_ELEM(input.
name,
"Position",
"Size",
"Rotation") && input.is_directly_linked()) {
237 if (snode ==
nullptr) {
250 if (sima ==
nullptr) {
259 if (snode ==
nullptr || snode->
edittree ==
nullptr) {
315 float (*matrix)[4] =
static_cast<float (*)[4]
>(value_p);
322 const float aspect = dims.x / dims.y;
324 float loc[3],
rot[3][3], size[3];
333 loc[0] = (
position.x - 0.5) * dims.x + offset.x;
334 loc[1] = (
position.y - 0.5) * dims.y + offset.y;
339 size[0] = size_value.x;
340 size[1] = size_value.y * aspect;
356 const float (*matrix)[4] =
static_cast<const float (*)[4]
>(value_p);
370 const float aspect = dims.x / dims.y;
385 if (size[0] != 0 and size[1] != 0) {
393 &rct, ((loc[0] - offset.x) / dims.x) + 0.5, ((loc[1] - offset.y) / dims.y) + 0.5);
399 size[1] / aspect / 2;
425 if (ibuf ==
nullptr) [[unlikely]] {
447 reinterpret_cast<ID *
>(snode->
edittree), RNA_NodeSocket, source_input);
470 nullptr, RNA_NodeSocket,
const_cast<bNodeSocket *
>(x_input));
471 const float xmin =
float(
RNA_int_get(&x_input_rna_pointer,
"default_value"));
475 nullptr, RNA_NodeSocket,
const_cast<bNodeSocket *
>(y_input));
476 const float ymin =
float(
RNA_int_get(&y_input_rna_pointer,
"default_value"));
480 nullptr, RNA_NodeSocket,
const_cast<bNodeSocket *
>(width_input));
481 const float width =
float(
RNA_int_get(&width_input_rna_pointer,
"default_value"));
485 nullptr, RNA_NodeSocket,
const_cast<bNodeSocket *
>(height_input));
486 const float height =
float(
RNA_int_get(&height_input_rna_pointer,
"default_value"));
488 r_rect->
xmin = (xmin + offset.x) / dims.x;
489 r_rect->
xmax = (xmin + width + offset.x) / dims.x;
490 r_rect->
ymin = (ymin + offset.y) / dims.y;
491 r_rect->
ymax = (ymin + height + offset.y) / dims.y;
501 nullptr, RNA_NodeSocket,
const_cast<bNodeSocket *
>(x_input));
505 nullptr, RNA_NodeSocket,
const_cast<bNodeSocket *
>(y_input));
509 nullptr, RNA_NodeSocket,
const_cast<bNodeSocket *
>(width_input));
513 nullptr, RNA_NodeSocket,
const_cast<bNodeSocket *
>(height_input));
515 const float xmin = rect->
xmin * dims.x - offset.x;
516 const float width = rect->
xmax * dims.x - offset.x - xmin;
517 const float ymin = rect->
ymin * dims.y - offset.y;
518 const float height = rect->
ymax * dims.y - offset.y - ymin;
530 float (*matrix)[4] =
static_cast<float (*)[4]
>(value_p);
551 const float (*matrix)[4] =
static_cast<const float (*)[4]
>(value_p);
562 BLI_rctf_recenter(&rct, ((matrix[3][0]) / dims[0]) + 0.5f, ((matrix[3][1]) / dims[1]) + 0.5f);
564 rct_isect.
xmin = offset.x / dims.x;
565 rct_isect.
xmax = offset.x / dims.x + 1;
566 rct_isect.
ymin = offset.y;
567 rct_isect.
ymax = offset.y / dims.y + 1;
580 if (!
node || !
node->is_type(
"CompositorNodeCrop"_ustr)) {
584 node_tree->ensure_topology_cache();
586 if (!
STREQ(input.
name,
"Image") && input.is_directly_linked()) {
591 if (
STREQ(input.
name,
"Alpha Crop") && !input.is_directly_linked()) {
607 if (snode ==
nullptr) {
620 if (sima ==
nullptr) {
629 if (snode ==
nullptr || snode->
edittree ==
nullptr) {
671 if (ibuf ==
nullptr) [[unlikely]] {
690 reinterpret_cast<ID *
>(snode->
edittree), RNA_NodeSocket, source_input);
742 if (!
node || !
node->is_type(
"CompositorNodeGlare"_ustr)) {
747 node_tree->ensure_topology_cache();
748 if (type_socket.is_directly_linked()) {
757 if (
STR_ELEM(input.
name,
"Sun Position") && input.is_directly_linked()) {
767 if (snode ==
nullptr) {
790 glare_group->
state.dims,
791 glare_group->
state.offset,
798 if (sima ==
nullptr) {
807 if (snode ==
nullptr || snode->
edittree ==
nullptr) {
825 {snode->xof, snode->yof},
826 glare_group->
state.dims,
827 glare_group->
state.offset,
857 if (ibuf ==
nullptr) [[unlikely]] {
876 reinterpret_cast<ID *
>(snode->
edittree), RNA_NodeSocket, source_input);
897 if (
node &&
node->is_type(
"CompositorNodeCornerPin"_ustr)) {
907 if (snode ==
nullptr) {
920 if (sima ==
nullptr) {
929 if (snode ==
nullptr || snode->
edittree ==
nullptr) {
944 float matrix_space[4][4];
947 {snode->xof, snode->yof},
948 cpin_group->
state.dims,
949 cpin_group->
state.offset,
952 for (
int i = 0; i < 4; i++) {
973 cpin_group->
state.dims,
974 cpin_group->
state.offset,
984 for (
int i = 0; i < 4; i++) {
1008 if (ibuf ==
nullptr) [[unlikely]] {
1009 for (
int i = 0; i < 4; i++) {
1029 for (
bNodeSocket *sock =
node->inputs.first(); sock && i < 4; sock = sock->next) {
1034 id_cast<ID *>(snode->
edittree), RNA_NodeSocket, sock);
1048 if (
node &&
node->is_type(
"CompositorNodeEllipseMask"_ustr)) {
1049 snode.
edittree->ensure_topology_cache();
1051 if (
STR_ELEM(input.
name,
"Position",
"Size",
"Rotation") && input.is_directly_linked()) {
1064 if (snode ==
nullptr) {
1077 if (sima ==
nullptr) {
1086 if (snode ==
nullptr || snode->
edittree ==
nullptr) {
1130 float (*matrix)[4] =
reinterpret_cast<float (*)[4]
>(value_p);
1138 float loc[3],
rot[3][3], size[3];
1147 const float gizmo_width = 0.1f;
1151 float3{(pos.x - 0.5f) * dims.x + offset.x, (pos.y - 0.5f) * dims.y + offset.y, 0.0f},
1153 float3{gizmo_width, std::numeric_limits<float>::epsilon(), 1.0f});
1158 const void *value_p)
1160 const float (*matrix)[4] =
reinterpret_cast<const float (*)[4]
>(value_p);
1171 float pos_x = (matrix[3][0] - offset.x) + dims.x * 0.5;
1172 float pos_y = (matrix[3][1] - offset.y) + dims.y * 0.5;
1193 if (
node &&
node->is_type(
"CompositorNodeSplit"_ustr)) {
1194 snode.
edittree->ensure_topology_cache();
1196 if (
STR_ELEM(input.
name,
"Position",
"Rotation") && input.is_directly_linked()) {
1216 if (ibuf ==
nullptr) [[unlikely]] {
1239 reinterpret_cast<ID *
>(snode->
edittree), RNA_NodeSocket, source_input);
1257 if (snode ==
nullptr) {
1270 if (sima ==
nullptr) {
1279 if (snode ==
nullptr || snode->
edittree ==
nullptr) {
1316 float (*matrix)[4] =
static_cast<float (*)[4]
>(value_p);
1321 const float2 offset = transform_group->
state.offset;
1322 matrix[0][0] = snode->
zoom;
1323 matrix[1][1] = snode->
zoom;
1324 matrix[3][0] = snode->
xof + (offset.x - 0.5f) * snode->
zoom;
1325 matrix[3][1] = snode->
yof + (offset.y - 0.5f) * snode->
zoom;
1330 const void *value_p)
1332 const float (*matrix)[4] =
static_cast<const float (*)[4]
>(value_p);
1336 const float2 offset = transform_group->
state.offset;
1338 snode->
zoom = matrix[0][0];
1339 snode->
xof = matrix[3][0] - (offset.x - 0.5f) * snode->
zoom;
1340 snode->
yof = matrix[3][1] - (offset.y - 0.5f) * snode->
zoom;
1346 if (snode ==
nullptr) {
1355 if (
node &&
node->is_type(
"CompositorNodeViewer"_ustr)) {
1397 if (ibuf ==
nullptr) [[unlikely]] {
1434 float *gz_offset =
static_cast<float(*)
>(value_p);
1438 const float2 offset = translate_group->
state.offset;
1447 gz_offset[0] =
x + offset.x;
1448 gz_offset[1] =
y + offset.y;
1449 gz_offset[2] = 0.0f;
1454 const void *value_p)
1456 const float *gz_offset =
static_cast<const float(*)
>(value_p);
1460 const float2 offset = translate_group->
state.offset;
1542 if (ibuf ==
nullptr) [[unlikely]] {
1561 reinterpret_cast<ID *
>(snode->
edittree), RNA_NodeSocket, source_input);
1586 if (!
node || !
node->is_type(
"CompositorNodeTranslate"_ustr)) {
1590 node_tree->ensure_topology_cache();
1592 if (
STR_ELEM(input.
name,
"X",
"Y") && input.is_directly_linked()) {
1602 if (snode ==
nullptr) {
1615 if (sima ==
nullptr) {
1624 if (snode ==
nullptr || snode->
edittree ==
nullptr) {
1638 if (!
node || !
node->is_type(
"CompositorNodeTransform"_ustr)) {
1642 node_tree->ensure_topology_cache();
1644 if (
STR_ELEM(input.
identifier,
"X",
"Y",
"Angle",
"Scale") && input.is_directly_linked()) {
1654 if (sima ==
nullptr) {
1663 if (snode ==
nullptr || snode->
edittree ==
nullptr) {
1673 if (snode ==
nullptr) {
1712 const float rotation)
1715 float2 transformed_offset;
1719 return transformed_offset;
1726 float (*matrix)[4] =
static_cast<float (*)[4]
>(value_p);
1734 float loc[3],
rot[3][3], size[3];
1754 loc[0] =
x + transformed_offset.x;
1755 loc[1] =
y + transformed_offset.y;
1763 const void *value_p)
1765 const float (*matrix)[4] =
static_cast<const float (*)[4]
>(value_p);
1769 const float2 offset = transform_group->
state.offset;
1786 if (size[0] != 0 and size[1] != 0) {
1788 const float oldrot[3] = {0.0f, 0.0f, rotation->value};
1790 rotation->value = eul[2];
1793 const float scale = size[0];
1848 if (ibuf ==
nullptr) [[unlikely]] {
1873 reinterpret_cast<ID *
>(snode->
edittree), RNA_NodeSocket, source_input);
1920 float (*matrix)[4] =
static_cast<float (*)[4]
>(value_p);
1940 const void *value_p)
1942 const float (*matrix)[4] =
static_cast<const float (*)[4]
>(value_p);
1949 float loc[3],
rot[3][3], size[3];
1977 if (ibuf ==
nullptr) [[unlikely]] {
2000 reinterpret_cast<ID *
>(snode->
edittree), RNA_NodeSocket, source_input);
2042 if (!
node || !
node->is_type(
"CompositorNodeScale"_ustr)) {
2046 node_tree->ensure_topology_cache();
2058 if (snode ==
nullptr) {
2071 if (sima ==
nullptr) {
2080 if (snode ==
nullptr || snode->
edittree ==
nullptr) {
2093 return node.is_type(
"CompositorNodeBoxMask"_ustr) ||
node.is_type(
"CompositorNodeCrop"_ustr) ||
2094 node.is_type(
"CompositorNodeEllipseMask"_ustr) ||
2095 node.is_type(
"CompositorNodeGlare"_ustr) ||
2096 node.is_type(
"CompositorNodeCornerPin"_ustr) ||
2097 node.is_type(
"CompositorNodeSplit"_ustr) ||
2098 node.is_type(
"CompositorNodeTranslate"_ustr) ||
2099 node.is_type(
"CompositorNodeTransform"_ustr) ||
2100 node.is_type(
"CompositorNodeScale"_ustr) ||
node.is_type(
"CompositorNodeViewer"_ustr);
These structs are the foundation for all linked lists in the library system.
bool contains(const Key &key) const
NodeTreeLog * get_main_tree_log(const bke::bNodeTreeZone *zone) const
const float3x3 transformation
Set< int > evaluated_gizmo_nodes
void ensure_evaluated_gizmo_nodes()
void ensure_socket_values()
ValueLog * find_socket_value_log(const bNodeSocket &query_socket)
static ContextualNodeTreeLogs get_contextual_tree_logs(const SpaceNode &snode)
float3x3 scale(float3x3 mat, float2 scale)
bNode * node_get_active(bNodeTree &ntree)
bNodeSocket * node_find_socket(bNode &node, eNodeSocketInOut in_out, UString identifier)
T clamp(const T &a, const T &min, const T &max)
bool is_any_zero(const T &a)
T length(const VecBase< T, Size > &a)
static void gizmo_node_bbox_update(NodeBBoxWidgetGroup *bbox_group)
static bool show_translate_gizmo(const SpaceNode &snode)
static void gizmo_node_crop_foreach_rna_prop(wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
static bool show_split(const SpaceNode &snode)
bool translate_poll_space_node(const bContext *C, wmGizmoGroupType *)
bool split_poll_space_image(const bContext *C, wmGizmoGroupType *)
bool box_mask_poll_space_node(const bContext *C, wmGizmoGroupType *)
void split_setup(const bContext *, wmGizmoGroup *gzgroup)
static const eval_log::ImageInfoLog * gizmo_input_image_log(const SpaceNode &snode, const bNode &node)
static void gizmo_node_split_prop_matrix_set(const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
void split_refresh(const bContext *C, wmGizmoGroup *gzgroup)
void box_mask_refresh(const bContext *C, wmGizmoGroup *gzgroup)
void glare_draw_prepare_space_node(const bContext *C, wmGizmoGroup *gzgroup)
bool crop_poll_space_image(const bContext *C, wmGizmoGroupType *)
void viewer_setup(const bContext *, wmGizmoGroup *gzgroup)
static bool should_sync_gizmo_state_from_log(const SpaceNode &snode, const bNode &node, const wmGizmo &gz)
static void gizmo_node_split_prop_matrix_get(const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
void translate_setup(const bContext *, wmGizmoGroup *gzgroup)
static float2 node_scale_gizmo_scale_get(const bNode &node, const float2 &dims)
void glare_draw_prepare_space_image(const bContext *C, wmGizmoGroup *gzgroup)
void corner_pin_refresh(const bContext *C, wmGizmoGroup *gzgroup)
static void apply_socket_callback(bNode &node, const UString socket_identifier, const FunctionRef< void(PointerRNA &, PropertyRNA *, int)> callback, const int index=0)
bool corner_pin_poll_space_node(const bContext *C, wmGizmoGroupType *)
void glare_setup(const bContext *, wmGizmoGroup *gzgroup)
bool box_mask_poll_space_image(const bContext *C, wmGizmoGroupType *)
static bool gizmo_is_interacting(const wmGizmo &gz)
void box_mask_setup(const bContext *, wmGizmoGroup *gzgroup)
static void gizmo_node_translate_prop_offset_set(const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static bool show_scale_gizmo(const SpaceNode &snode)
static bool show_crop_gizmo(const SpaceNode &snode)
void crop_draw_prepare_space_node(const bContext *C, wmGizmoGroup *gzgroup)
static void gizmo_node_box_mask_foreach_rna_prop(wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
bool glare_poll_space_image(const bContext *C, wmGizmoGroupType *)
static bool show_transform_gizmo(const SpaceNode &snode)
static bool image_gizmo_is_set_visible(const SpaceImage &sima)
static void gizmo_node_box_mask_prop_matrix_get(const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void gizmo_node_scale_foreach_rna_prop(wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
void transform_setup(const bContext *, wmGizmoGroup *gzgroup)
static bool node_gizmo_is_set_visible(const SpaceNode &snode)
bool viewer_poll(const bContext *C, wmGizmoGroupType *)
void transform_refresh(const bContext *C, wmGizmoGroup *gzgroup)
static float2 gizmo_input_dims_from_log(const SpaceNode &snode, const bNode &node, const float2 &fallback)
bool translate_poll_space_image(const bContext *C, wmGizmoGroupType *)
void bbox_draw_prepare_space_image(const bContext *C, wmGizmoGroup *gzgroup)
void viewer_refresh(const bContext *C, wmGizmoGroup *gzgroup)
static void gizmo_node_crop_prop_matrix_get(const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static SpaceNode * find_active_node_editor(const bContext *C)
static bool show_corner_pin(const SpaceNode &snode)
static void gizmo_node_scale_prop_matrix_set(const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static void gizmo_node_transform_prop_matrix_set(const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
bool crop_poll_space_node(const bContext *C, wmGizmoGroupType *)
static void gizmo_node_backdrop_prop_matrix_get(const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
bool ellipse_mask_poll_space_node(const bContext *C, wmGizmoGroupType *)
static void gizmo_node_crop_prop_matrix_set(const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
void corner_pin_draw_prepare_space_node(const bContext *C, wmGizmoGroup *gzgroup)
bool transform_poll_space_image(const bContext *C, wmGizmoGroupType *)
void corner_pin_setup(const bContext *, wmGizmoGroup *gzgroup)
static bool show_box_mask_gizmo(const SpaceNode &snode)
static void gizmo_node_box_mask_prop_matrix_set(const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
void ellipse_mask_setup(const bContext *, wmGizmoGroup *gzgroup)
void translate_refresh(const bContext *C, wmGizmoGroup *gzgroup)
bool ellipse_mask_poll_space_image(const bContext *C, wmGizmoGroupType *)
bool transform_poll_space_node(const bContext *C, wmGizmoGroupType *)
static float2 GIZMO_NODE_DEFAULT_DIMS
static void node_gizmo_calc_matrix_space(const ARegion *region, const float zoom, const float2 offset, float matrix_space[4][4])
void corner_pin_draw_prepare_space_image(const bContext *C, wmGizmoGroup *gzgroup)
void crop_refresh(const bContext *C, wmGizmoGroup *gzgroup)
static float2 translate_gizmo_input_offset(const SpaceNode &snode, const bNode &node)
bool split_poll_space_node(const bContext *C, wmGizmoGroupType *)
static float2 node_gizmo_transformed_offset(const float2 &offset, const float2 &scale, const float rotation)
static void gizmo_node_translate_foreach_rna_prop(wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
bool scale_poll_space_node(const bContext *C, wmGizmoGroupType *)
void scale_refresh(const bContext *C, wmGizmoGroup *gzgroup)
static bool show_ellipse_mask_gizmo(const SpaceNode &snode)
static void gizmo_node_transform_prop_matrix_get(const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
void bbox_draw_prepare_space_node(const bContext *C, wmGizmoGroup *gzgroup)
static bool show_glare_gizmo(const SpaceNode &snode)
void glare_refresh(const bContext *C, wmGizmoGroup *gzgroup)
static void gizmo_node_scale_prop_matrix_get(const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void gizmo_group_enable_undo(wmGizmoGroup *gzgroup)
bool scale_poll_space_image(const bContext *C, wmGizmoGroupType *)
static void gizmo_node_transform_foreach_rna_prop(wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
static void gizmo_node_backdrop_prop_matrix_set(const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
void crop_setup(const bContext *, wmGizmoGroup *gzgroup)
bool node_has_gizmo(const bNode &node)
static void node_gizmo_calc_matrix_space_with_image_dims(const ARegion *region, const float zoom, const float2 space_offset, const float2 &image_dims, const float2 &image_offset, float matrix_space[4][4])
bool glare_poll_space_node(const bContext *C, wmGizmoGroupType *)
static float2 node_gizmo_safe_calc_dims(const ImBuf *ibuf, const float2 &fallback_dims)
static void gizmo_node_split_foreach_rna_prop(wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
static void gizmo_node_translate_prop_offset_get(const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void node_input_from_rect(bNode *node, const rctf *rect, const float2 &dims, const float2 &offset)
static bool node_scale_is_absolute(const bNode &node)
static void node_input_to_rect(const bNode *node, const float2 &dims, const float2 offset, rctf *r_rect)
static void node_scale_gizmo_scale_set(bNode &node, const float2 &dims, const float2 &scale)
bool corner_pin_poll_space_image(const bContext *C, wmGizmoGroupType *)
void scale_setup(const bContext *, wmGizmoGroup *gzgroup)
void * MEM_new_uninitialized(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_float_set_array(PointerRNA *ptr, const char *name, const float *values)
void mat4_to_loc_rot_size(float loc[3], float rot[3][3], float size[3], const float wmat[4][4])
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
void RNA_property_update(bContext *C, PointerRNA *ptr, PropertyRNA *prop)
void BLI_rctf_recenter(struct rctf *rect, float x, float y)
void WM_gizmo_target_property_def_func(wmGizmo *gz, const char *idname, const wmGizmoPropertyFnParams *params)
const wmGizmoType * WM_gizmotype_find(const StringRef idname, bool quiet)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
void BLI_rctf_resize(struct rctf *rect, float x, float y)
@ SNODE_GIZMO_HIDE_ACTIVE_NODE
void mat4_to_eul(float eul[3], const float mat[4][4])
int RNA_int_get(PointerRNA *ptr, const char *name)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
@ ED_GIZMO_CAGE_XFORM_FLAG_SCALE
@ ED_GIZMO_CAGE_XFORM_FLAG_TRANSLATE
@ ED_GIZMO_CAGE_XFORM_FLAG_ROTATE
@ ED_GIZMO_CAGE_XFORM_FLAG_SCALE_UNIFORM
MINLINE void mul_v3_fl(float r[3], float f)
@ ED_GIZMO_CAGE2D_STYLE_CIRCLE
void WM_gizmo_target_property_def_rna(wmGizmo *gz, const char *idname, PointerRNA *ptr, const char *propname, int index)
@ CMP_NODE_GLARE_SUN_BEAMS
void WM_gizmo_set_flag(wmGizmo *gz, const int flag, const bool enable)
VecBase< float, 2 > float2
@ SI_GIZMO_HIDE_ACTIVE_NODE
void rotate_v2_v2fl(float r[2], const float p[2], float angle)
BLI_INLINE float BLI_rctf_size_y(const struct rctf *rct)
wmWindowManager * CTX_wm_manager(const bContext *C)
@ ED_GIZMO_MOVE_STYLE_CROSS_2D
void mat4_to_compatible_eulO(float eul[3], const float oldrot[3], short order, const float mat[4][4])
void unit_m4(float m[4][4])
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
SpaceNode * CTX_wm_space_node(const bContext *C)
wmGizmo * WM_gizmo_new(const StringRef idname, wmGizmoGroup *gzgroup, PointerRNA *properties)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
MatBase< float, 3, 3 > float3x3
void loc_rot_size_to_mat4(float R[4][4], const float loc[3], const float rot[3][3], const float size[3])
ImBuf * BKE_image_acquire_ibuf(Image *ima, ImageUser *iuser, void **r_lock)
SpaceImage * CTX_wm_space_image(const bContext *C)
Main * CTX_data_main(const bContext *C)
void unit_m3(float m[3][3])
BLI_INLINE float BLI_rctf_size_x(const struct rctf *rct)
bool BLI_rctf_isect(const struct rctf *src1, const struct rctf *src2, struct rctf *dest)
Image * BKE_image_ensure_viewer(Main *bmain, int type, const char *name)
BLI_INLINE float BLI_rctf_cent_y(const struct rctf *rct)
@ CMP_NODE_SCALE_ABSOLUTE
@ ED_GIZMO_CAGE_DRAW_FLAG_XFORM_CENTER_HANDLE
@ ED_GIZMO_CAGE_DRAW_FLAG_CORNER_HANDLES
@ ED_GIZMO_CAGE_DRAW_FLAG_NOP
void copy_m4_m4(float m1[4][4], const float m2[4][4])
VecBase< float, 3 > float3
void WM_gizmo_set_matrix_location(wmGizmo *gz, const float origin[3])
wmGizmo * WM_gizmo_new_ptr(const wmGizmoType *gzt, wmGizmoGroup *gzgroup, PointerRNA *properties)
bScreen * WM_window_get_active_screen(const wmWindow *win)
ARegion * CTX_wm_region(const bContext *C)
BLI_INLINE float BLI_rctf_cent_x(const struct rctf *rct)
Image * ED_space_image(const SpaceImage *sima)
void axis_angle_to_mat3_single(float R[3][3], char axis, float angle)
void BKE_image_release_ibuf(Image *ima, ImBuf *ibuf, void *lock)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< SpaceLink > spacedata
eSpaceImage_Gizmo_Flag gizmo_flag
struct bNodeTree * edittree
eSpaceNode_Gizmo_Flag gizmo_flag
struct bNodeTree * nodetree
ListBaseT< bNodeTreePath > treepath
bNodeInstanceKey parent_key
bNodeInstanceKey active_viewer_key
ListBaseT< struct ScrArea > areabase
ListBaseT< wmGizmo > gizmos
void(*) customdata_free(void *)
wmGizmoPropertyFnSet value_set_fn
wmGizmoPropertyFnRangeGet range_get_fn
wmGizmoPropertyFnGet value_get_fn
wmGizmoPropertyFnForeachRNAProp foreach_rna_prop_fn
const wmGizmoPropertyType * type
struct blender::wmGizmoProperty::@216011055122204070127377170176223170047224321165 custom_func
wmGizmoGroup * parent_gzgroup
ListBaseT< wmWindow > windows