Better routing

This commit is contained in:
Joey Yakimowich-Payne 2026-02-06 13:24:18 -07:00
commit 07e2fb4c5a
3 changed files with 99 additions and 27 deletions

View file

@ -98,6 +98,12 @@ public:
void setNodePeakLevel(QtNodes::NodeId nodeId, float level);
float nodePeakLevel(QtNodes::NodeId nodeId) const;
struct ConnectionChannel {
int index = 0;
int count = 1;
};
ConnectionChannel connectionChannel(QtNodes::ConnectionId cId) const;
Q_SIGNALS:
void beginBatchUpdate();
void endBatchUpdate();
@ -173,4 +179,7 @@ private:
std::unordered_map<QtNodes::NodeId, QPointer<QWidget>> m_volumeWidgets;
mutable std::unordered_map<QtNodes::NodeId, QVariant> m_styleCache;
std::unordered_map<QtNodes::NodeId, float> m_peakLevels;
std::unordered_map<QtNodes::ConnectionId, ConnectionChannel> m_connectionChannels;
void recomputeConnectionChannels();
};