Blender  V2.93
COM_SocketProxyNode.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 
29 class SocketProxyNode : public Node {
30  public:
31  SocketProxyNode(bNode *editorNode,
32  bNodeSocket *editorInput,
33  bNodeSocket *editorOutput,
34  bool use_conversion);
35  void convertToOperations(NodeConverter &converter,
36  const CompositorContext &context) const override;
37 
38  bool getUseConversion() const
39  {
40  return m_use_conversion;
41  }
42  void setUseConversion(bool use_conversion)
43  {
44  m_use_conversion = use_conversion;
45  }
46 
47  private:
49  bool m_use_conversion;
50 };
51 
52 class SocketBufferNode : public Node {
53  public:
54  SocketBufferNode(bNode *editorNode, bNodeSocket *editorInput, bNodeSocket *editorOutput);
55  void convertToOperations(NodeConverter &converter,
56  const CompositorContext &context) const override;
57 };
58 
59 } // namespace blender::compositor
Overall context of the compositor.
void convertToOperations(NodeConverter &converter, const CompositorContext &context) const override
convert node to operation
SocketBufferNode(bNode *editorNode, bNodeSocket *editorInput, bNodeSocket *editorOutput)
SocketProxyNode(bNode *editorNode, bNodeSocket *editorInput, bNodeSocket *editorOutput, bool use_conversion)
void setUseConversion(bool use_conversion)
void convertToOperations(NodeConverter &converter, const CompositorContext &context) const override
convert node to operation