24 b.use_custom_socket_order();
25 b.allow_any_socket_order();
28 .default_value({0.8f, 0.8f, 0.8f, 1.0f})
31 .structure_type(StructureType::Dynamic);
33 .structure_type(StructureType::Dynamic)
34 .align_with_previous();
58 .description(
"Interpolation method");
63 .description(
"The extension mode applied to the X axis");
68 .description(
"The extension mode applied to the Y axis");
91 this->
get_input(
"Y").get_single_value_default<float>());
95 translation, rotation,
scale);
101 output.transform(transformation);
110 this->
get_input(
"Interpolation").get_single_value_default<MenuValue>().value);
111 switch (interpolation) {
128 this->
get_input(
"Extension X").get_single_value_default<MenuValue>().value);
129 switch (extension_x) {
144 this->
get_input(
"Extension Y").get_single_value_default<MenuValue>().value);
145 switch (extension_y) {
#define NODE_CLASS_DISTORT
#define CMP_NODE_TRANSFORM
Read Blender memory allocation and freeing.
#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
float3x3 scale(float3x3 mat, float2 scale)
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)
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