Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/compositor/nodes/COM_TranslateNode.cc')
-rw-r--r--source/blender/compositor/nodes/COM_TranslateNode.cc46
1 files changed, 23 insertions, 23 deletions
diff --git a/source/blender/compositor/nodes/COM_TranslateNode.cc b/source/blender/compositor/nodes/COM_TranslateNode.cc
index 6dbd350fabf..b9f96d92942 100644
--- a/source/blender/compositor/nodes/COM_TranslateNode.cc
+++ b/source/blender/compositor/nodes/COM_TranslateNode.cc
@@ -24,53 +24,53 @@
namespace blender::compositor {
-TranslateNode::TranslateNode(bNode *editorNode) : Node(editorNode)
+TranslateNode::TranslateNode(bNode *editor_node) : Node(editor_node)
{
/* pass */
}
-void TranslateNode::convertToOperations(NodeConverter &converter,
- const CompositorContext &context) const
+void TranslateNode::convert_to_operations(NodeConverter &converter,
+ const CompositorContext &context) const
{
- bNode *bnode = this->getbNode();
+ bNode *bnode = this->get_bnode();
NodeTranslateData *data = (NodeTranslateData *)bnode->storage;
- NodeInput *inputSocket = this->getInputSocket(0);
- NodeInput *inputXSocket = this->getInputSocket(1);
- NodeInput *inputYSocket = this->getInputSocket(2);
- NodeOutput *outputSocket = this->getOutputSocket(0);
+ NodeInput *input_socket = this->get_input_socket(0);
+ NodeInput *input_xsocket = this->get_input_socket(1);
+ NodeInput *input_ysocket = this->get_input_socket(2);
+ NodeOutput *output_socket = this->get_output_socket(0);
TranslateOperation *operation = context.get_execution_model() == eExecutionModel::Tiled ?
new TranslateOperation() :
new TranslateCanvasOperation();
operation->set_wrapping(data->wrap_axis);
if (data->relative) {
- const RenderData *rd = context.getRenderData();
- const float render_size_factor = context.getRenderPercentageAsFactor();
+ const RenderData *rd = context.get_render_data();
+ const float render_size_factor = context.get_render_percentage_as_factor();
float fx = rd->xsch * render_size_factor;
float fy = rd->ysch * render_size_factor;
operation->setFactorXY(fx, fy);
}
- converter.addOperation(operation);
- converter.mapInputSocket(inputXSocket, operation->getInputSocket(1));
- converter.mapInputSocket(inputYSocket, operation->getInputSocket(2));
- converter.mapOutputSocket(outputSocket, operation->getOutputSocket(0));
+ converter.add_operation(operation);
+ converter.map_input_socket(input_xsocket, operation->get_input_socket(1));
+ converter.map_input_socket(input_ysocket, operation->get_input_socket(2));
+ converter.map_output_socket(output_socket, operation->get_output_socket(0));
if (data->wrap_axis && context.get_execution_model() != eExecutionModel::FullFrame) {
/* TODO: To be removed with tiled implementation. */
- WriteBufferOperation *writeOperation = new WriteBufferOperation(DataType::Color);
- WrapOperation *wrapOperation = new WrapOperation(DataType::Color);
- wrapOperation->setMemoryProxy(writeOperation->getMemoryProxy());
- wrapOperation->setWrapping(data->wrap_axis);
+ WriteBufferOperation *write_operation = new WriteBufferOperation(DataType::Color);
+ WrapOperation *wrap_operation = new WrapOperation(DataType::Color);
+ wrap_operation->set_memory_proxy(write_operation->get_memory_proxy());
+ wrap_operation->set_wrapping(data->wrap_axis);
- converter.addOperation(writeOperation);
- converter.addOperation(wrapOperation);
- converter.mapInputSocket(inputSocket, writeOperation->getInputSocket(0));
- converter.addLink(wrapOperation->getOutputSocket(), operation->getInputSocket(0));
+ converter.add_operation(write_operation);
+ converter.add_operation(wrap_operation);
+ converter.map_input_socket(input_socket, write_operation->get_input_socket(0));
+ converter.add_link(wrap_operation->get_output_socket(), operation->get_input_socket(0));
}
else {
- converter.mapInputSocket(inputSocket, operation->getInputSocket(0));
+ converter.map_input_socket(input_socket, operation->get_input_socket(0));
}
}