Enhanced ShapeRule type to carry more information and to be easier to use

This commit is contained in:
Daniel Wolf
2016-12-29 18:51:41 +01:00
parent b02f37e961
commit 9c9d79c54d
10 changed files with 61 additions and 27 deletions

View File

@@ -23,7 +23,7 @@ ContinuousTimeline<ShapeRule> convertToTargetShapeSet(const ContinuousTimeline<S
ContinuousTimeline<ShapeRule> result(shapeRules);
for (const auto& timedShapeRule : shapeRules) {
ShapeRule rule = timedShapeRule.getValue();
std::get<ShapeSet>(rule) = convertToTargetShapeSet(std::get<ShapeSet>(rule), targetShapeSet);
rule.shapeSet = convertToTargetShapeSet(rule.shapeSet, targetShapeSet);
result.set(timedShapeRule.getTimeRange(), rule);
}
return result;