}
}
} else if (n instanceof PipeRun) {
- // FIXME: may require rule based update!
PipeRun run = (PipeRun)n;
+
+ // Check for change to turn radii and update turn components
+ if (ids.contains(Plant3D.URIs.HasTurnRadiusArray) ||
+ ids.contains(Plant3D.URIs.HasTurnRadius)) {
+ requestTurnUpdates(run);
+ }
+
Set<String> ids2 = new HashSet<String>();
ids2.add(Plant3D.URIs.hasGeometry);
for (PipeControlPoint pcp : run.getControlPoints()) {
}
}
+ private void requestTurnUpdates(PipeRun run) {
+ for (PipeControlPoint pcp : run.getControlPoints()) {
+ if (pcp.isTurn())
+ PipingRules.requestUpdate(pcp);
+ }
+ }
+
private void updateTransform(IP3DNode node) {
if (DEBUG) System.out.println("P3DNodeMap update Transform " + debugString(node));