Implement showing interaction paths.

This commit is contained in:
2018-04-03 14:06:38 +02:00
parent c0032aa688
commit d76c067489
6 changed files with 37 additions and 6 deletions

View File

@@ -94,6 +94,10 @@ void RenderingState::handleKey(unsigned char x)
reset();
break;
case 'p':
toggle(options.renderInteractionPaths);
break;
case 'o':
toggle(options.activatedOnly);
break;
@@ -254,6 +258,7 @@ void RenderingState::renderOverlayText() const
"l: toggle layers visible\n"
"i: toggle interactions visible\n"
"o: toggle activated nodes only\n"
"p: toggle interaction paths visible\n"
"q: quit\n";
}
@@ -312,3 +317,8 @@ bool RenderingState::renderActivatedOnly() const
{
return options.activatedOnly;
}
bool RenderingState::renderInteractionPaths() const
{
return options.renderInteractionPaths;
}