if (ids.contains(id)) {
node.visualize(view);
updateRenderObjectsFor(node);
- updateTransform(node);
+ //updateTransform(node);
break;
}
}
for (PipeControlPoint pcp : run.getControlPoints()) {
updateActor(pcp, ids2);
}
- }
+ }
if (ids.contains(G3D.URIs.hasPosition) ||
ids.contains(G3D.URIs.hasOrientation) ||
ids.contains(G3D.URIs.hasWorldOrientation)) {
updateTransform(node);
}
+ if (ids.contains(Plant3D.URIs.HasTurnRadiusIndex)) {
+ node.visualize(view);
+ updateRenderObjectsFor(node);
+ }
}
private void updateTransform(IP3DNode node) {
node.visualize(view);
- for (vtkProp3D act : node.getActors()) {
- nodeToActor.add(node, act);
- actorToNode.put(act, node);
- }
+ map(node, node.getActors());
+
if (DEBUG) System.out.println("Added " + node.getActors().size() + " actors");
if (node instanceof P3DParentNode<?>) {
private boolean hasActor(IP3DVisualNode node) {
- List<vtkProp> list = nodeToActor.getValues(node);
+ Collection<vtkProp> list = getRenderObjects(node);
if (list == null || list.size() == 0)
return false;
return true;
if (Thread.currentThread() != view.getThreadQueue().getThread())
throw new RuntimeException("Illegal thread.");
- List<vtkProp> list = nodeToActor.getValues(node);
- if (list != null) {
- for (vtkProp obj : list) {
- actorToNode.remove(obj);
- }
- nodeToActor.remove(node);
- view.lock();
-
- node.stopVisualize();
-
- view.unlock();
+ Collection<vtkProp> list = getRenderObjects(node);
+ if (list.size() > 0) {
+ removeMap(node);
+ view.lock();
+ node.stopVisualize();
+ view.unlock();
}
}