Skip to content

WIP: Progress on run-time arcs.

David Thompson requested to merge dcthomp/smtk:runtime-arcs-ii into master

This MR adds support to smtk::graph::Resource for run-time arcs using the new smtk::common::RuntimeTypeContainer class.

Graph resources that wish to allow users to add directed (or undirected) arc types at run time should include smtk::graph::RuntimeArc<IsDirected> (or smtk::graph::RuntimeArc<IsUndirected>, respectively) to their traits object's ArcTypes tuple. The graph resource provides two new operations:

  • CreateArcType – for adding a runtime arc type to a resource.
  • CreateArc – for connecting two nodes using the new arc type.

Most things seem to be working. Need more defensive programming:

  • check for invalid RuntimeArcEndpoint before invoking null functors
  • maybe print warnings?
Edited by David Thompson

Merge request reports

Loading