nodes can now be connected through the node editor

This commit is contained in:
itsmattkc
2019-04-13 02:40:58 +10:00
parent 6b67727bd8
commit 8cd96eae64
24 changed files with 480 additions and 85 deletions
+39
View File
@@ -0,0 +1,39 @@
#ifndef NODEEDGE_H
#define NODEEDGE_H
#include <memory>
class EffectRow;
class NodeEdge;
using NodeEdgePtr = std::shared_ptr<NodeEdge>;
class NodeEdge
{
public:
/**
* @brief NodeEdge Constructor
*
* Creates a node edge and stores its two connections.
*
* This should not be used directly. Use the static function EffectRow::ConnectEdge instead.
*
* @param output
*
* Output/from EffectRow that this edge "starts" at
*
* @param input
*
* Input/to EffectRow that this edge "ends" at
*/
NodeEdge(EffectRow* output, EffectRow* input);
EffectRow* output();
EffectRow* input();
private:
EffectRow* output_;
EffectRow* input_;
};
#endif // NODEEDGE_H