27 b.use_custom_socket_order();
28 b.allow_any_socket_order();
31 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
34 .structure_type(StructureType::Dynamic);
35 b.add_output<
decl::Color>(
"Image").structure_type(StructureType::Dynamic).align_with_previous();
45 .description(
"Interpolation method");
50 .description(
"The extension mode applied to the X axis");
55 .description(
"The extension mode applied to the Y axis");
79 output.transform(transformation);
89 const MenuValue menu_value =
input.get_single_value_default(default_menu_value);
91 switch (interpolation) {
108 const MenuValue menu_value =
input.get_single_value_default(default_menu_value);
110 switch (extension_x) {
126 const MenuValue menu_value =
input.get_single_value_default(default_menu_value);
128 switch (extension_y) {
159 ntype.
declare = file_ns::cmp_node_rotate_declare;
160 ntype.
initfunc = file_ns::node_composit_init_rotate;
#define NODE_CLASS_DISTORT
@ CMP_NODE_INTERPOLATION_NEAREST
@ CMP_NODE_INTERPOLATION_BILINEAR
@ CMP_NODE_INTERPOLATION_BICUBIC
@ CMP_NODE_INTERPOLATION_ANISOTROPIC
@ CMP_NODE_EXTENSION_MODE_EXTEND
@ CMP_NODE_EXTENSION_MODE_CLIP
@ CMP_NODE_EXTENSION_MODE_REPEAT
#define NOD_REGISTER_NODE(REGISTER_FUNC)
BMesh const char void * data
NodeOperation(Context &context, DNode node)
Result & get_result(StringRef identifier)
Result & get_input(StringRef identifier) const
void share_data(const Result &source)
RealizationOptions & get_realization_options()
T get_single_value_default(const T &default_value) const
DeclType::Builder & add_input(StringRef name, StringRef identifier="")
const CompositorInputRealizationMode & compositor_realization_mode() const
ExtensionMode get_extension_mode_x()
Interpolation get_interpolation()
ExtensionMode get_extension_mode_y()
NodeOperation(Context &context, DNode node)
void * MEM_callocN(size_t len, const char *str)
void node_register_type(bNodeType &ntype)
void node_type_storage(bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
AngleRadianBase< float > AngleRadian
MatT from_rotation(const RotationT &rotation)
static void cmp_node_rotate_declare(NodeDeclarationBuilder &b)
static void node_composit_init_rotate(bNodeTree *, bNode *node)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
MatBase< float, 3, 3 > float3x3
static void register_node_type_cmp_rotate()
void cmp_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
const EnumPropertyItem rna_enum_node_compositor_extension_items[]
const EnumPropertyItem rna_enum_node_compositor_interpolation_items[]
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
void(* initfunc)(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy
NodeDeclareFunction declare
ExtensionMode extension_x
ExtensionMode extension_y