Better routing
This commit is contained in:
parent
916965488c
commit
07e2fb4c5a
3 changed files with 99 additions and 27 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue