ui: added color_scheme_test command displaying all graph node types and states

implementations for other views comming.
This commit is contained in:
Eberhard Graether
2016-06-22 16:14:06 +02:00
parent 36c504d8a0
commit 7f867bf889
17 changed files with 457 additions and 50 deletions
@@ -42,6 +42,7 @@ public:
, hasParent(true)
, accessType(TokenComponentAccess::ACCESS_NONE)
, invisibleSubNodeCount(0)
, layoutBucket(0, 0)
, bundledNodeCount(0)
{
}
@@ -191,6 +192,16 @@ public:
return bundledNodes.size();
}
void forEachDummyNodeRecursive(std::function<void(DummyNode*)> func)
{
func(this);
for (std::shared_ptr<DummyNode> node : subNodes)
{
node->forEachDummyNodeRecursive(func);
}
}
Vec2i position;
Vec2i size;
@@ -220,6 +231,9 @@ public:
// Bundling
BundleInfo bundleInfo;
// Layout
Vec2i layoutBucket;
// BundleNode
std::vector<std::shared_ptr<DummyNode>> bundledNodes;
size_t bundledNodeCount;