23 b.use_custom_socket_order();
24 b.allow_any_socket_order();
27 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
30 .structure_type(StructureType::Dynamic);
32 .structure_type(StructureType::Dynamic)
33 .align_with_previous();
46 .description(
"Interpolation method");
51 .description(
"The extension mode applied to the X axis");
56 .description(
"The extension mode applied to the Y axis");
85 output.transform(transformation);
94 this->
get_input(
"Interpolation").get_single_value_default<MenuValue>().value);
95 switch (interpolation) {
112 this->
get_input(
"Extension X").get_single_value_default<MenuValue>().value);
113 switch (extension_x) {
128 this->
get_input(
"Extension Y").get_single_value_default<MenuValue>().value);
129 switch (extension_y) {
#define NODE_CLASS_DISTORT
#define NOD_REGISTER_NODE(REGISTER_FUNC)
NodeOperation(Context &context, const bNode &node)
const bNode & node() const
Result & get_result(StringRef identifier)
Context & context() const
Result & get_input(StringRef identifier) const
InputDescriptor & get_input_descriptor(StringRef identifier)
static ResultType type(gpu::TextureFormat format)
T get_single_value_default() const
DeclType::Builder & add_input(UString name, UString identifier=""_ustr)
const CompositorInputRealizationMode & compositor_realization_mode() const
RotateOperation(Context &context, const bNode &node)
Interpolation get_interpolation()
Extension get_extension_mode_x()
Extension get_extension_mode_y()
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 NodeOperation * get_compositor_operation(Context &context, const bNode &node)
static void node_declare(NodeDeclarationBuilder &b)
static void node_init(bNodeTree *, bNode *node)
static void node_register()
const EnumPropertyItem rna_enum_node_compositor_extension_items[]
BMesh const char void * data
@ CMP_NODE_EXTENSION_MODE_REPEAT
@ CMP_NODE_EXTENSION_MODE_EXTEND
@ CMP_NODE_EXTENSION_MODE_CLIP
@ CMP_NODE_INTERPOLATION_NEAREST
@ CMP_NODE_INTERPOLATION_BICUBIC
@ CMP_NODE_INTERPOLATION_ANISOTROPIC
@ CMP_NODE_INTERPOLATION_BILINEAR
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
void node_free_standard_storage(bNode *node)
const EnumPropertyItem rna_enum_node_compositor_interpolation_items[]
void cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
void(*) initfunc(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy
NodeDeclareFunction declare