Blender  V3.3
node_composite_sepcomb_hsva.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2006 Blender Foundation. All rights reserved. */
3 
8 #include "node_composite_util.hh"
9 
10 /* **************** SEPARATE HSVA ******************** */
11 
13 
15 {
16  b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f});
17  b.add_output<decl::Float>(N_("H"));
18  b.add_output<decl::Float>(N_("S"));
19  b.add_output<decl::Float>(N_("V"));
20  b.add_output<decl::Float>(N_("A"));
21 }
22 
23 } // namespace blender::nodes::node_composite_sepcomb_hsva_cc
24 
26 {
28 
29  static bNodeType ntype;
30 
33  ntype.gather_link_search_ops = nullptr;
34 
35  nodeRegisterType(&ntype);
36 }
37 
38 /* **************** COMBINE HSVA ******************** */
39 
41 
43 {
44  b.add_input<decl::Float>(N_("H")).min(0.0f).max(1.0f);
45  b.add_input<decl::Float>(N_("S")).min(0.0f).max(1.0f);
46  b.add_input<decl::Float>(N_("V")).min(0.0f).max(1.0f);
47  b.add_input<decl::Float>(N_("A")).default_value(1.0f).min(0.0f).max(1.0f);
48  b.add_output<decl::Color>(N_("Image"));
49 }
50 
51 } // namespace blender::nodes::node_composite_sepcomb_hsva_cc
52 
54 {
56 
57  static bNodeType ntype;
58 
61  ntype.gather_link_search_ops = nullptr;
62 
63  nodeRegisterType(&ntype);
64 }
#define CMP_NODE_SEPHSVA_LEGACY
Definition: BKE_node.h:1212
#define NODE_CLASS_CONVERTER
Definition: BKE_node.h:351
#define CMP_NODE_COMBHSVA_LEGACY
Definition: BKE_node.h:1241
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
static void cmp_node_sephsva_declare(NodeDeclarationBuilder &b)
static void cmp_node_combhsva_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_combhsva()
void register_node_type_cmp_sephsva()
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
#define min(a, b)
Definition: sort.c:35
Defines a node type.
Definition: BKE_node.h:226
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
Definition: BKE_node.h:335
NodeDeclareFunction declare
Definition: BKE_node.h:324
#define N_(msgid)