logic: Simplified node bundling by collecting relevant data upfront
This commit is contained in:
@@ -13,6 +13,23 @@ class Node;
|
||||
struct DummyNode
|
||||
{
|
||||
public:
|
||||
struct BundleInfo
|
||||
{
|
||||
BundleInfo()
|
||||
: isActive(false)
|
||||
, isDefined(false)
|
||||
, layoutVertical(false)
|
||||
, isReferenced(false)
|
||||
, isReferencing(false)
|
||||
{}
|
||||
|
||||
bool isActive;
|
||||
bool isDefined;
|
||||
bool layoutVertical;
|
||||
bool isReferenced;
|
||||
bool isReferencing;
|
||||
};
|
||||
|
||||
DummyNode()
|
||||
: visible(false)
|
||||
, childVisible(false)
|
||||
@@ -200,6 +217,9 @@ public:
|
||||
// ExpandToggleNode
|
||||
size_t invisibleSubNodeCount;
|
||||
|
||||
// Bundling
|
||||
BundleInfo bundleInfo;
|
||||
|
||||
// BundleNode
|
||||
std::vector<DummyNode> bundledNodes;
|
||||
size_t bundledNodeCount;
|
||||
|
||||
Reference in New Issue
Block a user