Blender
V2.93
source
blender
compositor
nodes
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
:
32
virtual
NodeOperation
*
getColorConverter
(
const
CompositorContext
&
context
)
const
= 0;
33
};
34
35
class
CombineRGBANode
:
public
CombineColorNode
{
36
public
:
37
CombineRGBANode
(
bNode
*editorNode) :
CombineColorNode
(editorNode)
38
{
39
}
40
41
NodeOperation
*
getColorConverter
(
const
CompositorContext
&
context
)
const override
;
42
};
43
44
class
CombineHSVANode
:
public
CombineColorNode
{
45
public
:
46
CombineHSVANode
(
bNode
*editorNode) :
CombineColorNode
(editorNode)
47
{
48
}
49
50
NodeOperation
*
getColorConverter
(
const
CompositorContext
&
context
)
const override
;
51
};
52
53
class
CombineYCCANode
:
public
CombineColorNode
{
54
public
:
55
CombineYCCANode
(
bNode
*editorNode) :
CombineColorNode
(editorNode)
56
{
57
}
58
59
NodeOperation
*
getColorConverter
(
const
CompositorContext
&
context
)
const override
;
60
};
61
62
class
CombineYUVANode
:
public
CombineColorNode
{
63
public
:
64
CombineYUVANode
(
bNode
*editorNode) :
CombineColorNode
(editorNode)
65
{
66
}
67
68
NodeOperation
*
getColorConverter
(
const
CompositorContext
&
context
)
const override
;
69
};
70
71
}
// namespace blender::compositor
COM_Node.h
blender::compositor::CombineColorNode
Definition:
COM_CombineColorNode.h:25
blender::compositor::CombineColorNode::getColorConverter
virtual NodeOperation * getColorConverter(const CompositorContext &context) const =0
blender::compositor::CombineColorNode::convertToOperations
void convertToOperations(NodeConverter &converter, const CompositorContext &context) const override
convert node to operation
Definition:
COM_CombineColorNode.cc:29
blender::compositor::CombineColorNode::CombineColorNode
CombineColorNode(bNode *editorNode)
Definition:
COM_CombineColorNode.cc:25
blender::compositor::CombineHSVANode
Definition:
COM_CombineColorNode.h:44
blender::compositor::CombineHSVANode::CombineHSVANode
CombineHSVANode(bNode *editorNode)
Definition:
COM_CombineColorNode.h:46
blender::compositor::CombineHSVANode::getColorConverter
NodeOperation * getColorConverter(const CompositorContext &context) const override
Definition:
COM_CombineColorNode.cc:75
blender::compositor::CombineRGBANode
Definition:
COM_CombineColorNode.h:35
blender::compositor::CombineRGBANode::CombineRGBANode
CombineRGBANode(bNode *editorNode)
Definition:
COM_CombineColorNode.h:37
blender::compositor::CombineRGBANode::getColorConverter
NodeOperation * getColorConverter(const CompositorContext &context) const override
Definition:
COM_CombineColorNode.cc:70
blender::compositor::CombineYCCANode
Definition:
COM_CombineColorNode.h:53
blender::compositor::CombineYCCANode::CombineYCCANode
CombineYCCANode(bNode *editorNode)
Definition:
COM_CombineColorNode.h:55
blender::compositor::CombineYCCANode::getColorConverter
NodeOperation * getColorConverter(const CompositorContext &context) const override
Definition:
COM_CombineColorNode.cc:80
blender::compositor::CombineYUVANode
Definition:
COM_CombineColorNode.h:62
blender::compositor::CombineYUVANode::getColorConverter
NodeOperation * getColorConverter(const CompositorContext &context) const override
Definition:
COM_CombineColorNode.cc:88
blender::compositor::CombineYUVANode::CombineYUVANode
CombineYUVANode(bNode *editorNode)
Definition:
COM_CombineColorNode.h:64
blender::compositor::CompositorContext
Overall context of the compositor.
Definition:
COM_CompositorContext.h:37
blender::compositor::NodeConverter
Definition:
COM_NodeConverter.h:43
blender::compositor::NodeOperation
NodeOperation contains calculation logic.
Definition:
COM_NodeOperation.h:259
blender::compositor::Node
Definition:
COM_Node.h:42
blender::compositor
Definition:
COM_defines.h:21
blender::compositor::context
cl_context context
Definition:
COM_WorkScheduler.cc:90
bNode
Definition:
DNA_node_types.h:212
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1