public CompoundInteractWidget withMultiPlanarHandle() { MoveMultiPlanarWidget widget = (MoveMultiPlanarWidget) _widgets .get(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY); if (widget != null) { widget.getHandle().removeFromParent(); } widget = new MoveMultiPlanarWidget(_filters); _widgets.put(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY, widget); _handle.attachChild(widget.getHandle()); return this; }
public CompoundInteractWidget withMultiPlanarHandle(final double extent) { MoveMultiPlanarWidget widget = (MoveMultiPlanarWidget) _widgets .get(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY); if (widget != null) { widget.getHandle().removeFromParent(); } widget = new MoveMultiPlanarWidget(_filters, extent); _widgets.put(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY, widget); _handle.attachChild(widget.getHandle()); return this; }
public CompoundInteractWidget withPlanarHandle(final MovePlane plane, final ReadOnlyColorRGBA color) { MovePlanarWidget widget = (MovePlanarWidget) _widgets.get(CompoundInteractWidget.MOVE_PLANAR_KEY); if (widget != null) { widget.getHandle().removeFromParent(); } widget = new MovePlanarWidget(_filters).withPlane(plane).withDefaultHandle(.5, .25, color); _widgets.put(CompoundInteractWidget.MOVE_PLANAR_KEY, widget); _handle.attachChild(widget.getHandle()); return this; }
public CompoundInteractWidget withPlanarHandle(final MovePlane plane, final double radius, final double height, final ReadOnlyColorRGBA color) { MovePlanarWidget widget = (MovePlanarWidget) _widgets.get(CompoundInteractWidget.MOVE_PLANAR_KEY); if (widget != null) { widget.getHandle().removeFromParent(); } widget = new MovePlanarWidget(_filters).withPlane(plane).withDefaultHandle(radius, height, color); _widgets.put(CompoundInteractWidget.MOVE_PLANAR_KEY, widget); _handle.attachChild(widget.getHandle()); return this; }
protected void createJointAttachment(final JointNode jointChildNode, final Node node, final Node subNode) { final AttachmentPoint attach = new AttachmentPoint("attach-" + node.getName(), (short) 0, subNode, new Transform(subNode.getTransform())); _dataCache.addAttachmentPoint(jointChildNode.getJoint(), attach); // we will attach to scene instead. subNode.removeFromParent(); }