20 b.use_custom_socket_order();
21 b.allow_any_socket_order();
24 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
27 .structure_type(StructureType::Dynamic);
29 .structure_type(StructureType::Dynamic)
30 .align_with_previous();
48 .description(
"Interpolation method");
53 .description(
"The extension mode applied to the X axis");
58 .description(
"The extension mode applied to the Y axis");
98 this->
get_input(
"Interpolation").get_single_value_default<MenuValue>().value);
99 switch (interpolation) {
116 this->
get_input(
"Extension X").get_single_value_default<MenuValue>().value);
117 switch (extension_x) {
132 this->
get_input(
"Extension Y").get_single_value_default<MenuValue>().value);
133 switch (extension_y) {
#define NODE_CLASS_DISTORT
#define CMP_NODE_TRANSLATE
#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
Extension get_extension_mode_y()
Extension get_extension_mode_x()
Interpolation get_interpolation()
TranslateOperation(Context &context, const bNode &node)
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))
MatT from_location(const typename MatT::loc_type &location)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static void node_init(bNodeTree *, bNode *node)
static NodeOperation * get_compositor_operation(Context &context, const bNode &node)
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