mathnode: began math node

This commit is contained in:
itsmattkc
2020-03-28 17:51:35 +11:00
parent b54388894c
commit 938527b9fe
4 changed files with 76 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ add_subdirectory(audio)
add_subdirectory(block)
add_subdirectory(distort)
add_subdirectory(input)
add_subdirectory(math)
add_subdirectory(output)
set(OLIVE_SOURCES
+22
View File
@@ -0,0 +1,22 @@
# Olive - Non-Linear Video Editor
# Copyright (C) 2019 Olive Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
set(OLIVE_SOURCES
${OLIVE_SOURCES}
node/math/math.h
node/math/math.cpp
PARENT_SCOPE
)
+31
View File
@@ -0,0 +1,31 @@
#include "math.h"
MathNode::MathNode()
{
}
Node *MathNode::copy() const
{
return new MathNode();
}
QString MathNode::Name() const
{
return tr("Math");
}
QString MathNode::id() const
{
return QStringLiteral("org.olivevideoeditor.Olive.math");
}
QString MathNode::Category() const
{
return tr("Math");
}
QString MathNode::Description() const
{
return tr("Perform a mathematical operation between two.");
}
+22
View File
@@ -0,0 +1,22 @@
#ifndef MATHNODE_H
#define MATHNODE_H
#include "node/node.h"
class MathNode : public Node
{
public:
MathNode();
virtual Node* copy() const override;
virtual QString Name() const override;
virtual QString id() const override;
virtual QString Category() const override;
virtual QString Description() const override;
virtual void Retranslate() override;
};
#endif // MATHNODE_H