Blender  V2.93
COM_CombineColorNode.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * Copyright 2011, Blender Foundation.
17  */
18 
19 #pragma once
20 
21 #include "COM_Node.h"
22 
23 namespace blender::compositor {
24 
25 class CombineColorNode : public Node {
26  public:
27  CombineColorNode(bNode *editorNode);
28  void convertToOperations(NodeConverter &converter,
29  const CompositorContext &context) const override;
30 
31  protected:
33 };
34 
36  public:
37  CombineRGBANode(bNode *editorNode) : CombineColorNode(editorNode)
38  {
39  }
40 
42 };
43 
45  public:
46  CombineHSVANode(bNode *editorNode) : CombineColorNode(editorNode)
47  {
48  }
49 
51 };
52 
54  public:
55  CombineYCCANode(bNode *editorNode) : CombineColorNode(editorNode)
56  {
57  }
58 
60 };
61 
63  public:
64  CombineYUVANode(bNode *editorNode) : CombineColorNode(editorNode)
65  {
66  }
67 
69 };
70 
71 } // namespace blender::compositor
virtual NodeOperation * getColorConverter(const CompositorContext &context) const =0
void convertToOperations(NodeConverter &converter, const CompositorContext &context) const override
convert node to operation
NodeOperation * getColorConverter(const CompositorContext &context) const override
NodeOperation * getColorConverter(const CompositorContext &context) const override
NodeOperation * getColorConverter(const CompositorContext &context) const override
NodeOperation * getColorConverter(const CompositorContext &context) const override
Overall context of the compositor.
NodeOperation contains calculation logic.