|
Blender
V2.93
|
#include <math.h>#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_rect.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_image.h"#include "BKE_main.h"#include "ED_gizmo_library.h"#include "ED_screen.h"#include "IMB_imbuf_types.h"#include "MEM_guardedalloc.h"#include "RNA_access.h"#include "WM_api.h"#include "WM_types.h"#include "node_intern.h"Go to the source code of this file.
Classes | |
| struct | NodeCropWidgetGroup |
| struct | NodeSunBeamsWidgetGroup |
| struct | NodeCornerPinWidgetGroup |
|
static |
Definition at line 79 of file node_gizmo.c.
References wmGizmoPropertyType::array_length, BLI_assert, wmGizmoProperty::custom_func, float(), wmGizmoProperty::type, wmGizmoProperty::user_data, SpaceNode::xof, SpaceNode::yof, and SpaceNode::zoom.
Referenced by WIDGETGROUP_node_transform_refresh().
|
static |
Definition at line 92 of file node_gizmo.c.
References wmGizmoPropertyType::array_length, BLI_assert, wmGizmoProperty::custom_func, float(), wmGizmoProperty::type, wmGizmoProperty::user_data, SpaceNode::xof, SpaceNode::yof, and SpaceNode::zoom.
Referenced by WIDGETGROUP_node_transform_refresh().
|
static |
Definition at line 262 of file node_gizmo.c.
References wmGizmoPropertyType::array_length, BLI_assert, BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rctf_size_x(), BLI_rctf_size_y(), wmGizmoProperty::custom_func, wmGizmoGroup::customdata, NodeCropWidgetGroup::dims, fabsf, float(), node, wmGizmo::parent_gzgroup, NodeCropWidgetGroup::state, two_xy_to_rect(), wmGizmoProperty::type, and wmGizmoProperty::user_data.
Referenced by WIDGETGROUP_node_crop_refresh().
|
static |
Definition at line 281 of file node_gizmo.c.
References wmGizmoPropertyType::array_length, BLI_assert, BLI_rctf_isect(), BLI_rctf_recenter(), BLI_rctf_resize(), wmGizmoProperty::custom_func, wmGizmoGroup::customdata, NodeCropWidgetGroup::dims, fabsf, float(), gizmo_node_crop_update(), node, ny, wmGizmo::parent_gzgroup, NodeCropWidgetGroup::state, SWAP, two_xy_from_rect(), two_xy_to_rect(), wmGizmoProperty::type, and wmGizmoProperty::user_data.
Referenced by WIDGETGROUP_node_crop_refresh().
|
static |
Definition at line 217 of file node_gizmo.c.
References NodeCropWidgetGroup::context, NodeCropWidgetGroup::prop, NodeCropWidgetGroup::ptr, RNA_property_update(), and NodeCropWidgetGroup::update_data.
Referenced by gizmo_node_crop_prop_matrix_set().
| void NODE_GGT_backdrop_corner_pin | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 632 of file node_gizmo.c.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_node_corner_pin_draw_prepare(), WIDGETGROUP_node_corner_pin_poll(), WIDGETGROUP_node_corner_pin_refresh(), WIDGETGROUP_node_corner_pin_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by node_widgets().
| void NODE_GGT_backdrop_crop | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 405 of file node_gizmo.c.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_node_crop_draw_prepare(), WIDGETGROUP_node_crop_poll(), WIDGETGROUP_node_crop_refresh(), WIDGETGROUP_node_crop_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by node_widgets().
| void NODE_GGT_backdrop_sun_beams | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 510 of file node_gizmo.c.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_node_sbeam_draw_prepare(), WIDGETGROUP_node_sbeam_poll(), WIDGETGROUP_node_sbeam_refresh(), WIDGETGROUP_node_sbeam_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by node_widgets().
| void NODE_GGT_backdrop_transform | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 184 of file node_gizmo.c.
References wmGizmoGroupType::flag, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoGroupType::setup, wmGizmoGroupType::setup_keymap, WIDGETGROUP_node_transform_poll(), WIDGETGROUP_node_transform_refresh(), WIDGETGROUP_node_transform_setup(), WM_gizmogroup_setup_keymap_generic_maybe_drag(), and WM_GIZMOGROUPTYPE_PERSISTENT.
Referenced by node_widgets().
|
static |
Definition at line 50 of file node_gizmo.c.
References mul_v3_fl(), unit_m4(), ARegion::winx, ARegion::winy, SpaceNode::xof, SpaceNode::yof, and SpaceNode::zoom.
Referenced by WIDGETGROUP_node_crop_draw_prepare().
|
static |
Definition at line 61 of file node_gizmo.c.
References mul_v3_fl(), unit_m4(), ARegion::winx, ARegion::winy, SpaceNode::xof, SpaceNode::yof, and SpaceNode::zoom.
Referenced by WIDGETGROUP_node_corner_pin_draw_prepare(), and WIDGETGROUP_node_sbeam_draw_prepare().
|
static |
Definition at line 242 of file node_gizmo.c.
References NodeTwoXYs::fac_x1, NodeTwoXYs::fac_x2, NodeTwoXYs::fac_y1, NodeTwoXYs::fac_y2, NodeTwoXYs::x1, NodeTwoXYs::x2, rctf::xmax, rctf::xmin, NodeTwoXYs::y1, NodeTwoXYs::y2, rctf::ymax, and rctf::ymin.
Referenced by gizmo_node_crop_prop_matrix_set().
|
static |
Definition at line 223 of file node_gizmo.c.
References NodeTwoXYs::fac_x1, NodeTwoXYs::fac_x2, NodeTwoXYs::fac_y1, NodeTwoXYs::fac_y2, NodeTwoXYs::x1, NodeTwoXYs::x2, rctf::xmax, rctf::xmin, NodeTwoXYs::y1, NodeTwoXYs::y2, rctf::ymax, and rctf::ymin.
Referenced by gizmo_node_crop_prop_matrix_get(), and gizmo_node_crop_prop_matrix_set().
|
static |
Definition at line 575 of file node_gizmo.c.
References C, copy_m4_m4(), CTX_wm_region(), CTX_wm_space_node(), wmGizmoGroup::customdata, NodeCornerPinWidgetGroup::dims, NodeCornerPinWidgetGroup::gizmos, wmGizmo::matrix_space, node_gizmo_calc_matrix_space_with_image_dims(), and NodeCornerPinWidgetGroup::state.
Referenced by NODE_GGT_backdrop_corner_pin().
|
static |
Definition at line 538 of file node_gizmo.c.
References C, CMP_NODE_CORNERPIN, CTX_wm_space_node(), SpaceNode::edittree, ELEM, SpaceNode::flag, node, nodeGetActive(), NTREE_COMPOSIT, SNODE_BACKDRAW, and bNodeTree::type.
Referenced by NODE_GGT_backdrop_corner_pin().
|
static |
Definition at line 592 of file node_gizmo.c.
References BKE_image_acquire_ibuf(), BKE_image_ensure_viewer(), BKE_image_release_ibuf(), C, CTX_data_main(), CTX_wm_space_node(), wmGizmoGroup::customdata, NodeCornerPinWidgetGroup::dims, SpaceNode::edittree, NodeCornerPinWidgetGroup::gizmos, IMA_TYPE_COMPOSITE, next, node, nodeGetActive(), NULL, RNA_NodeSocket, RNA_pointer_create(), SOCK_VECTOR, NodeCornerPinWidgetGroup::state, WM_GIZMO_DRAW_MODAL, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), WM_gizmo_target_property_def_rna(), ImBuf::x, and ImBuf::y.
Referenced by NODE_GGT_backdrop_corner_pin().
|
static |
Definition at line 557 of file node_gizmo.c.
References wmGizmoGroup::customdata, ED_GIZMO_MOVE_STYLE_CROSS_2D, NodeCornerPinWidgetGroup::gizmos, MEM_mallocN, NULL, wmGizmo::ptr, RNA_enum_set(), wmGizmo::scale_basis, WM_gizmo_new_ptr(), and WM_gizmotype_find().
Referenced by NODE_GGT_backdrop_corner_pin().
|
static |
Definition at line 353 of file node_gizmo.c.
References C, CTX_wm_region(), CTX_wm_space_node(), ListBase::first, wmGizmoGroup::gizmos, wmGizmo::matrix_space, and node_gizmo_calc_matrix_space().
Referenced by NODE_GGT_backdrop_crop().
|
static |
Definition at line 317 of file node_gizmo.c.
References C, CMP_NODE_CROP, CTX_wm_space_node(), SpaceNode::edittree, ELEM, SpaceNode::flag, node, nodeGetActive(), NTREE_COMPOSIT, SNODE_BACKDRAW, and bNodeTree::type.
Referenced by NODE_GGT_backdrop_crop().
|
static |
Definition at line 363 of file node_gizmo.c.
References BKE_image_acquire_ibuf(), BKE_image_ensure_viewer(), BKE_image_release_ibuf(), NodeCropWidgetGroup::border, C, NodeCropWidgetGroup::context, CTX_data_main(), CTX_wm_space_node(), wmGizmoGroup::customdata, NodeCropWidgetGroup::dims, SpaceNode::edittree, gizmo_node_crop_prop_matrix_get(), gizmo_node_crop_prop_matrix_set(), IMA_TYPE_COMPOSITE, node, nodeGetActive(), NULL, NodeCropWidgetGroup::prop, NodeCropWidgetGroup::ptr, wmGizmo::ptr, RNA_CompositorNodeCrop, RNA_float_set_array(), RNA_pointer_create(), RNA_struct_find_property(), NodeCropWidgetGroup::state, NodeCropWidgetGroup::update_data, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), WM_gizmo_target_property_def_func(), ImBuf::x, and ImBuf::y.
Referenced by NODE_GGT_backdrop_crop().
|
static |
Definition at line 339 of file node_gizmo.c.
References NodeCropWidgetGroup::border, wmGizmoGroup::customdata, ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE, ED_GIZMO_CAGE2D_XFORM_FLAG_TRANSLATE, MEM_mallocN, NULL, wmGizmo::ptr, RNA_enum_set(), and WM_gizmo_new().
Referenced by NODE_GGT_backdrop_crop().
|
static |
Definition at line 467 of file node_gizmo.c.
References C, CTX_wm_region(), CTX_wm_space_node(), wmGizmoGroup::customdata, NodeSunBeamsWidgetGroup::dims, ListBase::first, wmGizmoGroup::gizmos, wmGizmo::matrix_space, node_gizmo_calc_matrix_space_with_image_dims(), and NodeSunBeamsWidgetGroup::state.
Referenced by NODE_GGT_backdrop_sun_beams().
|
static |
Definition at line 433 of file node_gizmo.c.
References C, CMP_NODE_SUNBEAMS, CTX_wm_space_node(), SpaceNode::edittree, ELEM, SpaceNode::flag, node, nodeGetActive(), NTREE_COMPOSIT, SNODE_BACKDRAW, and bNodeTree::type.
Referenced by NODE_GGT_backdrop_sun_beams().
|
static |
Definition at line 479 of file node_gizmo.c.
References BKE_image_acquire_ibuf(), BKE_image_ensure_viewer(), BKE_image_release_ibuf(), C, CTX_data_main(), CTX_wm_space_node(), wmGizmoGroup::customdata, NodeSunBeamsWidgetGroup::dims, SpaceNode::edittree, NodeSunBeamsWidgetGroup::gizmo, IMA_TYPE_COMPOSITE, node, nodeGetActive(), NULL, RNA_CompositorNodeSunBeams, RNA_pointer_create(), NodeSunBeamsWidgetGroup::state, WM_GIZMO_DRAW_MODAL, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), WM_gizmo_target_property_def_rna(), ImBuf::x, and ImBuf::y.
Referenced by NODE_GGT_backdrop_sun_beams().
|
static |
Definition at line 452 of file node_gizmo.c.
References wmGizmoGroup::customdata, ED_GIZMO_MOVE_STYLE_CROSS_2D, NodeSunBeamsWidgetGroup::gizmo, MEM_mallocN, NULL, wmGizmo::ptr, RNA_enum_set(), wmGizmo::scale_basis, and WM_gizmo_new().
Referenced by NODE_GGT_backdrop_sun_beams().
|
static |
Definition at line 105 of file node_gizmo.c.
References C, CMP_NODE_SPLITVIEWER, CMP_NODE_VIEWER, CTX_wm_space_node(), SpaceNode::edittree, ELEM, SpaceNode::flag, node, nodeGetActive(), NTREE_COMPOSIT, SNODE_BACKDRAW, and bNodeTree::type.
Referenced by NODE_GGT_backdrop_transform().
|
static |
Definition at line 137 of file node_gizmo.c.
References BKE_image_acquire_ibuf(), BKE_image_ensure_viewer(), BKE_image_release_ibuf(), C, CTX_data_main(), CTX_wm_region(), CTX_wm_space_node(), wmGizmoGroup::customdata, gizmo_node_backdrop_prop_matrix_get(), gizmo_node_backdrop_prop_matrix_set(), SpaceNode::id, IMA_TYPE_COMPOSITE, NULL, wmGizmo::ptr, RNA_float_set_array(), RNA_pointer_create(), RNA_SpaceNodeEditor, ARegion::winx, ARegion::winy, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), WM_gizmo_set_matrix_location(), WM_gizmo_target_property_def_func(), WM_gizmo_target_property_def_rna(), ImBuf::x, and ImBuf::y.
Referenced by NODE_GGT_backdrop_transform().
|
static |
Definition at line 124 of file node_gizmo.c.
References wmGizmoGroup::customdata, ED_GIZMO_CAGE2D_XFORM_FLAG_SCALE_UNIFORM, ED_GIZMO_CAGE2D_XFORM_FLAG_TRANSLATE, wmGizmoWrapper::gizmo, MEM_mallocN, NULL, wmGizmo::ptr, RNA_enum_set(), and WM_gizmo_new().
Referenced by NODE_GGT_backdrop_transform().