ui: bundling nodes in the graph view
This change bundles similar nodes in the graph view together. When the bundled node or it's aggregation edge are clicked, then the bundle is split. This change also adds an arrow to the aggregation edge based on the direction of it's edges.
This commit is contained in:
@@ -10,7 +10,6 @@ public:
|
||||
MessageActivateTokens(const std::vector<Id>& tokenIds)
|
||||
: tokenIds(tokenIds)
|
||||
, isEdge(false)
|
||||
, isAggregation(false)
|
||||
, isFromSystem(false)
|
||||
{
|
||||
}
|
||||
@@ -18,7 +17,6 @@ public:
|
||||
MessageActivateTokens(Id tokenId)
|
||||
: tokenIds(1, tokenId)
|
||||
, isEdge(false)
|
||||
, isAggregation(false)
|
||||
, isFromSystem(false)
|
||||
{
|
||||
}
|
||||
@@ -31,7 +29,7 @@ public:
|
||||
const std::vector<Id> tokenIds;
|
||||
|
||||
bool isEdge;
|
||||
bool isAggregation;
|
||||
bool isBundle;
|
||||
bool isFromSystem;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#ifndef MESSAGE_GRAPH_NODE_BUNDLE_SPLIT_H
|
||||
#define MESSAGE_GRAPH_NODE_BUNDLE_SPLIT_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
#include "utility/types.h"
|
||||
|
||||
class MessageGraphNodeBundleSplit
|
||||
: public Message<MessageGraphNodeBundleSplit>
|
||||
{
|
||||
public:
|
||||
MessageGraphNodeBundleSplit(Id bundleId)
|
||||
: bundleId(bundleId)
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageGraphNodeBundleSplit";
|
||||
}
|
||||
|
||||
Id bundleId;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_GRAPH_NODE_BUNDLE_SPLIT_H
|
||||
Reference in New Issue
Block a user