Blender V5.0
node_gizmo.cc File Reference
#include <cmath>
#include "BLI_listbase.h"
#include "BLI_math_matrix.h"
#include "BLI_math_rotation.h"
#include "BLI_math_vector.h"
#include "BLI_rect.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BKE_context.hh"
#include "BKE_image.hh"
#include "BKE_node_runtime.hh"
#include "ED_gizmo_library.hh"
#include "ED_screen.hh"
#include "IMB_imbuf_types.hh"
#include "MEM_guardedalloc.h"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "WM_types.hh"
#include "node_intern.hh"

Go to the source code of this file.

Classes

struct  blender::ed::space_node::NodeBBoxWidgetGroup
struct  blender::ed::space_node::NodeGlareWidgetGroup
struct  blender::ed::space_node::NodeCornerPinWidgetGroup

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::space_node

Functions

Backdrop Gizmo
static void blender::ed::space_node::gizmo_node_backdrop_prop_matrix_get (const wmGizmo *, wmGizmoProperty *gz_prop, void *value_p)
static void blender::ed::space_node::gizmo_node_backdrop_prop_matrix_set (const wmGizmo *, wmGizmoProperty *gz_prop, const void *value_p)
static bool blender::ed::space_node::WIDGETGROUP_node_transform_poll (const bContext *C, wmGizmoGroupType *)
static void blender::ed::space_node::WIDGETGROUP_node_transform_setup (const bContext *, wmGizmoGroup *gzgroup)
static void blender::ed::space_node::WIDGETGROUP_node_transform_refresh (const bContext *C, wmGizmoGroup *gzgroup)
void blender::ed::space_node::NODE_GGT_backdrop_transform (wmGizmoGroupType *gzgt)
Crop Gizmo
static void blender::ed::space_node::gizmo_node_bbox_update (NodeBBoxWidgetGroup *bbox_group)
static void blender::ed::space_node::node_input_to_rect (const bNode *node, const float2 &dims, const float2 offset, rctf *r_rect)
static void blender::ed::space_node::node_input_from_rect (bNode *node, const rctf *rect, const float2 &dims, const float2 &offset)
static void blender::ed::space_node::gizmo_node_crop_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::ed::space_node::gizmo_node_crop_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static bool blender::ed::space_node::WIDGETGROUP_node_crop_poll (const bContext *C, wmGizmoGroupType *)
static void blender::ed::space_node::WIDGETGROUP_node_crop_setup (const bContext *, wmGizmoGroup *gzgroup)
static void blender::ed::space_node::WIDGETGROUP_node_crop_draw_prepare (const bContext *C, wmGizmoGroup *gzgroup)
static void blender::ed::space_node::WIDGETGROUP_node_crop_refresh (const bContext *C, wmGizmoGroup *gzgroup)
void blender::ed::space_node::NODE_GGT_backdrop_crop (wmGizmoGroupType *gzgt)
Box Mask
static void blender::ed::space_node::gizmo_node_box_mask_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::ed::space_node::gizmo_node_box_mask_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static bool blender::ed::space_node::WIDGETGROUP_node_box_mask_poll (const bContext *C, wmGizmoGroupType *)
static void blender::ed::space_node::WIDGETGROUP_node_box_mask_setup (const bContext *, wmGizmoGroup *gzgroup)
static void blender::ed::space_node::WIDGETGROUP_bbox_draw_prepare (const bContext *C, wmGizmoGroup *gzgroup)
static void blender::ed::space_node::WIDGETGROUP_node_mask_refresh (const bContext *C, wmGizmoGroup *gzgroup)
void blender::ed::space_node::NODE_GGT_backdrop_box_mask (wmGizmoGroupType *gzgt)
Ellipse Mask
static bool blender::ed::space_node::WIDGETGROUP_node_ellipse_mask_poll (const bContext *C, wmGizmoGroupType *)
static void blender::ed::space_node::WIDGETGROUP_node_ellipse_mask_setup (const bContext *, wmGizmoGroup *gzgroup)
void blender::ed::space_node::NODE_GGT_backdrop_ellipse_mask (wmGizmoGroupType *gzgt)
Glare
static bool blender::ed::space_node::WIDGETGROUP_node_glare_poll (const bContext *C, wmGizmoGroupType *)
static void blender::ed::space_node::WIDGETGROUP_node_glare_setup (const bContext *, wmGizmoGroup *gzgroup)
static void blender::ed::space_node::WIDGETGROUP_node_glare_draw_prepare (const bContext *C, wmGizmoGroup *gzgroup)
static void blender::ed::space_node::WIDGETGROUP_node_glare_refresh (const bContext *C, wmGizmoGroup *gzgroup)
void blender::ed::space_node::NODE_GGT_backdrop_glare (wmGizmoGroupType *gzgt)
Corner Pin
static bool blender::ed::space_node::WIDGETGROUP_node_corner_pin_poll (const bContext *C, wmGizmoGroupType *)
static void blender::ed::space_node::WIDGETGROUP_node_corner_pin_setup (const bContext *, wmGizmoGroup *gzgroup)
static void blender::ed::space_node::WIDGETGROUP_node_corner_pin_draw_prepare (const bContext *C, wmGizmoGroup *gzgroup)
static void blender::ed::space_node::WIDGETGROUP_node_corner_pin_refresh (const bContext *C, wmGizmoGroup *gzgroup)
void blender::ed::space_node::NODE_GGT_backdrop_corner_pin (wmGizmoGroupType *gzgt)
Split
static bool blender::ed::space_node::WIDGETGROUP_node_split_poll (const bContext *C, wmGizmoGroupType *)
static void blender::ed::space_node::WIDGETGROUP_node_split_setup (const bContext *, wmGizmoGroup *gzgroup)
static void blender::ed::space_node::gizmo_node_split_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::ed::space_node::gizmo_node_split_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static void blender::ed::space_node::WIDGETGROUP_node_split_refresh (const bContext *C, wmGizmoGroup *gzgroup)
void blender::ed::space_node::NODE_GGT_backdrop_split (wmGizmoGroupType *gzgt)

Local Utilities

static const float2 blender::ed::space_node::GIZMO_NODE_DEFAULT_DIMS {64.0f, 64.0f}
static void blender::ed::space_node::node_gizmo_calc_matrix_space (const SpaceNode *snode, const ARegion *region, float matrix_space[4][4])
static void blender::ed::space_node::node_gizmo_calc_matrix_space_with_image_dims (const SpaceNode *snode, const ARegion *region, const float2 &image_dims, const float2 &image_offset, float matrix_space[4][4])
static bool blender::ed::space_node::node_gizmo_is_set_visible (const bContext *C)
static float2 blender::ed::space_node::node_gizmo_safe_calc_dims (const ImBuf *ibuf, const float2 &fallback_dims)