Blender V5.3
compositor_gizmos.cc File Reference
#include "BLI_listbase_iterator.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_rect.hh"
#include "BLI_string.hh"
#include "BKE_context.hh"
#include "BKE_image.hh"
#include "BKE_node.hh"
#include "BKE_node_runtime.hh"
#include "DNA_listBase.h"
#include "DNA_node_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_windowmanager_types.h"
#include "ED_gizmo_library.hh"
#include "ED_image.hh"
#include "IMB_imbuf_types.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "NOD_compositor_gizmos.hh"
#include "NOD_eval_log.hh"

Go to the source code of this file.

Classes

struct  blender::nodes::gizmos::NodeBBoxWidgetGroup
struct  blender::nodes::gizmos::NodeGlareWidgetGroup
struct  blender::nodes::gizmos::NodeCornerPinWidgetGroup
struct  blender::nodes::gizmos::NodeTransformWidgetGroup

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::nodes
namespace  blender::nodes::gizmos

Functions

static bool blender::nodes::gizmos::show_box_mask_gizmo (const SpaceNode &snode)
static void blender::nodes::gizmos::gizmo_node_box_mask_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::nodes::gizmos::gizmo_node_bbox_update (NodeBBoxWidgetGroup *bbox_group)
static void blender::nodes::gizmos::gizmo_node_box_mask_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static void blender::nodes::gizmos::gizmo_node_box_mask_foreach_rna_prop (wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
static void blender::nodes::gizmos::node_input_to_rect (const bNode *node, const float2 &dims, const float2 offset, rctf *r_rect)
static void blender::nodes::gizmos::node_input_from_rect (bNode *node, const rctf *rect, const float2 &dims, const float2 &offset)
static void blender::nodes::gizmos::gizmo_node_crop_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::nodes::gizmos::gizmo_node_crop_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static bool blender::nodes::gizmos::show_crop_gizmo (const SpaceNode &snode)
static void blender::nodes::gizmos::gizmo_node_crop_foreach_rna_prop (wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
static bool blender::nodes::gizmos::show_glare_gizmo (const SpaceNode &snode)
static bool blender::nodes::gizmos::show_corner_pin (const SpaceNode &snode)
static bool blender::nodes::gizmos::show_ellipse_mask_gizmo (const SpaceNode &snode)
static void blender::nodes::gizmos::gizmo_node_split_foreach_rna_prop (wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
static void blender::nodes::gizmos::gizmo_node_split_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::nodes::gizmos::gizmo_node_split_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static bool blender::nodes::gizmos::show_split (const SpaceNode &snode)
static void blender::nodes::gizmos::gizmo_node_backdrop_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::nodes::gizmos::gizmo_node_backdrop_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static void blender::nodes::gizmos::gizmo_node_translate_prop_offset_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::nodes::gizmos::gizmo_node_translate_prop_offset_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static const eval_log::ImageInfoLog * blender::nodes::gizmos::gizmo_input_image_log (const SpaceNode &snode, const bNode &node)
static float2 blender::nodes::gizmos::translate_gizmo_input_offset (const SpaceNode &snode, const bNode &node)
static void blender::nodes::gizmos::gizmo_node_translate_foreach_rna_prop (wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
static bool blender::nodes::gizmos::show_translate_gizmo (const SpaceNode &snode)
static bool blender::nodes::gizmos::show_transform_gizmo (const SpaceNode &snode)
static float2 blender::nodes::gizmos::node_gizmo_transformed_offset (const float2 &offset, const float2 &scale, const float rotation)
static void blender::nodes::gizmos::gizmo_node_transform_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::nodes::gizmos::gizmo_node_transform_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static float2 blender::nodes::gizmos::gizmo_input_dims_from_log (const SpaceNode &snode, const bNode &node, const float2 &fallback)
static void blender::nodes::gizmos::gizmo_node_transform_foreach_rna_prop (wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
static bool blender::nodes::gizmos::node_scale_is_absolute (const bNode &node)
static float2 blender::nodes::gizmos::node_scale_gizmo_scale_get (const bNode &node, const float2 &dims)
static void blender::nodes::gizmos::node_scale_gizmo_scale_set (bNode &node, const float2 &dims, const float2 &scale)
static void blender::nodes::gizmos::gizmo_node_scale_prop_matrix_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
static void blender::nodes::gizmos::gizmo_node_scale_prop_matrix_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
static void blender::nodes::gizmos::gizmo_node_scale_foreach_rna_prop (wmGizmoProperty *gz_prop, const FunctionRef< void(PointerRNA &ptr, PropertyRNA *prop, int index)> callback)
static bool blender::nodes::gizmos::show_scale_gizmo (const SpaceNode &snode)
Box Mask
bool blender::nodes::gizmos::box_mask_poll_space_node (const bContext *C, wmGizmoGroupType *)
bool blender::nodes::gizmos::box_mask_poll_space_image (const bContext *C, wmGizmoGroupType *)
void blender::nodes::gizmos::box_mask_setup (const bContext *, wmGizmoGroup *gzgroup)
Common BBox Gizmos
void blender::nodes::gizmos::bbox_draw_prepare_space_node (const bContext *C, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::bbox_draw_prepare_space_image (const bContext *C, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::box_mask_refresh (const bContext *C, wmGizmoGroup *gzgroup)
Crop
bool blender::nodes::gizmos::crop_poll_space_node (const bContext *C, wmGizmoGroupType *)
bool blender::nodes::gizmos::crop_poll_space_image (const bContext *C, wmGizmoGroupType *)
void blender::nodes::gizmos::crop_draw_prepare_space_node (const bContext *C, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::crop_refresh (const bContext *C, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::crop_setup (const bContext *, wmGizmoGroup *gzgroup)
Glare
bool blender::nodes::gizmos::glare_poll_space_node (const bContext *C, wmGizmoGroupType *)
void blender::nodes::gizmos::glare_draw_prepare_space_image (const bContext *C, wmGizmoGroup *gzgroup)
bool blender::nodes::gizmos::glare_poll_space_image (const bContext *C, wmGizmoGroupType *)
void blender::nodes::gizmos::glare_draw_prepare_space_node (const bContext *C, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::glare_setup (const bContext *, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::glare_refresh (const bContext *C, wmGizmoGroup *gzgroup)
Corner Pin
bool blender::nodes::gizmos::corner_pin_poll_space_node (const bContext *C, wmGizmoGroupType *)
bool blender::nodes::gizmos::corner_pin_poll_space_image (const bContext *C, wmGizmoGroupType *)
void blender::nodes::gizmos::corner_pin_draw_prepare_space_node (const bContext *C, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::corner_pin_draw_prepare_space_image (const bContext *C, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::corner_pin_setup (const bContext *, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::corner_pin_refresh (const bContext *C, wmGizmoGroup *gzgroup)
Ellipse Mask
bool blender::nodes::gizmos::ellipse_mask_poll_space_node (const bContext *C, wmGizmoGroupType *)
bool blender::nodes::gizmos::ellipse_mask_poll_space_image (const bContext *C, wmGizmoGroupType *)
void blender::nodes::gizmos::ellipse_mask_setup (const bContext *, wmGizmoGroup *gzgroup)
Split
void blender::nodes::gizmos::split_refresh (const bContext *C, wmGizmoGroup *gzgroup)
bool blender::nodes::gizmos::split_poll_space_node (const bContext *C, wmGizmoGroupType *)
bool blender::nodes::gizmos::split_poll_space_image (const bContext *C, wmGizmoGroupType *)
void blender::nodes::gizmos::split_setup (const bContext *, wmGizmoGroup *gzgroup)
Backdrop Gizmo
bool blender::nodes::gizmos::viewer_poll (const bContext *C, wmGizmoGroupType *)
void blender::nodes::gizmos::viewer_setup (const bContext *, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::viewer_refresh (const bContext *C, wmGizmoGroup *gzgroup)
Translate Gizmo
void blender::nodes::gizmos::translate_setup (const bContext *, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::translate_refresh (const bContext *C, wmGizmoGroup *gzgroup)
bool blender::nodes::gizmos::translate_poll_space_node (const bContext *C, wmGizmoGroupType *)
bool blender::nodes::gizmos::translate_poll_space_image (const bContext *C, wmGizmoGroupType *)
Transform Gizmo
bool blender::nodes::gizmos::transform_poll_space_image (const bContext *C, wmGizmoGroupType *)
bool blender::nodes::gizmos::transform_poll_space_node (const bContext *C, wmGizmoGroupType *)
void blender::nodes::gizmos::transform_setup (const bContext *, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::transform_refresh (const bContext *C, wmGizmoGroup *gzgroup)
Scale Gizmo
void blender::nodes::gizmos::scale_refresh (const bContext *C, wmGizmoGroup *gzgroup)
void blender::nodes::gizmos::scale_setup (const bContext *, wmGizmoGroup *gzgroup)
bool blender::nodes::gizmos::scale_poll_space_node (const bContext *C, wmGizmoGroupType *)
bool blender::nodes::gizmos::scale_poll_space_image (const bContext *C, wmGizmoGroupType *)
Gizmo Nodes
bool blender::nodes::gizmos::node_has_gizmo (const bNode &node)

Local Utilities

static float2 blender::nodes::gizmos::GIZMO_NODE_DEFAULT_DIMS {64.0f, 64.0f}
static float2 blender::nodes::gizmos::node_gizmo_safe_calc_dims (const ImBuf *ibuf, const float2 &fallback_dims)
static void blender::nodes::gizmos::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])
static void blender::nodes::gizmos::node_gizmo_calc_matrix_space (const ARegion *region, const float zoom, const float2 offset, float matrix_space[4][4])
static bool blender::nodes::gizmos::node_gizmo_is_set_visible (const SpaceNode &snode)
static bool blender::nodes::gizmos::image_gizmo_is_set_visible (const SpaceImage &sima)
static bool blender::nodes::gizmos::gizmo_is_interacting (const wmGizmo &gz)
static bool blender::nodes::gizmos::should_sync_gizmo_state_from_log (const SpaceNode &snode, const bNode &node, const wmGizmo &gz)
static SpaceNode * blender::nodes::gizmos::find_active_node_editor (const bContext *C)
static void blender::nodes::gizmos::apply_socket_callback (bNode &node, const UString socket_identifier, const FunctionRef< void(PointerRNA &, PropertyRNA *, int)> callback, const int index=0)
static void blender::nodes::gizmos::gizmo_group_enable_undo (wmGizmoGroup *gzgroup)