28 b.use_custom_socket_order();
29 b.allow_any_socket_order();
32 .default_value({0.8f, 0.8f, 0.8f, 1.0f})
35 .structure_type(StructureType::Dynamic);
36 b.add_output<
decl::Color>(
"Image").structure_type(StructureType::Dynamic).align_with_previous();
38 b.add_input<
decl::Float>(
"X").default_value(0.0f).min(-10000.0f).max(10000.0f);
39 b.add_input<
decl::Float>(
"Y").default_value(0.0f).min(-10000.0f).max(10000.0f);
49 .description(
"Interpolation method");
54 .description(
"The extension mode applied to the X axis");
59 .description(
"The extension mode applied to the Y axis");
78 this->
get_input(
"Y").get_single_value_default(0.0f));
82 translation, rotation, scale);
87 output.transform(transformation);
97 const MenuValue menu_value =
input.get_single_value_default(default_menu_value);
99 switch (interpolation) {
116 const MenuValue menu_value =
input.get_single_value_default(default_menu_value);
118 switch (extension_x) {
134 const MenuValue menu_value =
input.get_single_value_default(default_menu_value);
136 switch (extension_y) {
167 ntype.
declare = file_ns::cmp_node_transform_declare;
169 ntype.
initfunc = file_ns::cmp_node_init_transform;
#define NODE_CLASS_DISTORT
#define CMP_NODE_TRANSFORM
@ 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
Read Guarded memory(de)allocation.
#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
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_loc_rot_scale(const typename MatT::loc_type &location, const RotationT &rotation, const VecBase< typename MatT::base_type, ScaleDim > &scale)
VecBase< float, 2 > float2
MatBase< float, 3, 3 > float3x3
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