nodeview: support multiple flow directions

This commit is contained in:
itsmattkc
2020-04-27 16:08:48 +10:00
parent 690bdb6581
commit b947b2224a
16 changed files with 338 additions and 176 deletions
+8
View File
@@ -25,6 +25,7 @@
#include <QPalette>
#include "node/edge.h"
#include "nodeviewcommon.h"
OLIVE_NAMESPACE_ENTER
@@ -83,6 +84,11 @@ public:
*/
void SetPoints(const QPointF& start, const QPointF& end);
/**
* @brief Sets the direction nodes are flowing
*/
void SetFlowDirection(NodeViewCommon::FlowDirection dir);
private:
void UpdatePen();
@@ -94,6 +100,8 @@ private:
QPalette::ColorRole color_role_;
NodeViewCommon::FlowDirection flow_dir_;
};
OLIVE_NAMESPACE_EXIT