16 .structure_type(StructureType::Dynamic);
22 "Zero centered coordinates normalizes along the larger dimension for uniform scaling");
26 .description(
"Normalized coordinates with half pixel offsets");
30 .description(
"Integer pixel coordinates");
57 uniform_coordinates_result.
share_data(uniform_coordinates);
65 normalized_coordinates_result.
share_data(normalized_coordinates);
73 pixel_coordinates_result.
share_data(pixel_coordinates);
89 ntype.
ui_name =
"Image Coordinates";
90 ntype.
ui_description =
"Returns the coordinates of the pixels of an image";
#define NOD_REGISTER_NODE(REGISTER_FUNC)
StaticCacheManager & cache_manager()
Result & get(Context &context, const Domain &domain, const CoordinatesType type)
NodeOperation(Context &context, const bNode &node)
const bNode & node() const
Result & get_result(StringRef identifier)
void allocate_default_remaining_outputs()
Context & context() const
Result & get_input(StringRef identifier) const
InputDescriptor & get_input_descriptor(StringRef identifier)
void share_data(const Result &source)
bool is_single_value() const
bool should_compute() const
ImageCoordinatesContainer image_coordinates
StructureType structure_type
const CompositorInputRealizationMode & compositor_realization_mode() const
ImageCoordinatesOperation(Context &context, const bNode &node)
void node_register_type(bNodeType &ntype)
static void node_register()
static NodeOperation * get_compositor_operation(Context &context, const bNode &node)
static void node_declare(NodeDeclarationBuilder &b)
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
NodeDeclareFunction declare