/** * If true, this node (together with all its children) is completely transparent to mouse events. * When choosing target for mouse event, nodes with {@code mouseTransparent} set to {@code true} and their subtrees won't be taken into account greatly reducing computation load especially when rendering many nodes. * @param value whether to make the entire scene mouse transparent or not. */ public void setRootMouseTransparent(boolean value) { root.setMouseTransparent(value); }
/** * Set true if UI elements should forward mouse events * to the game layer. * * @param b flag * @defaultValue false */ public void setUIMouseTransparent(boolean b) { uiRoot.setMouseTransparent(b); }
/** * If true, this node (together with all its children) is completely transparent to mouse events. * When choosing target for mouse event, nodes with {@code mouseTransparent} set to {@code true} and their subtrees won't be taken into account greatly reducing computation load especially when rendering many nodes. * @param value whether to make the entire scene mouse transparent or not. */ public void setRootMouseTransparent(boolean value) { root.setMouseTransparent(value); }
public NavigableRegionViewer(Messager messager, ExecutorService executorService) { this.messager = messager; isExecutorServiceProvided = executorService == null; if (isExecutorServiceProvided) this.executorService = Executors.newSingleThreadExecutor(ThreadTools.getNamedThreadFactory(getClass().getSimpleName())); else this.executorService = executorService; root.setMouseTransparent(true); }
public ClusterMeshViewer(Messager messager, ExecutorService executorService) { this.messager = messager; isExecutorServiceProvided = executorService == null; if (isExecutorServiceProvided) this.executorService = Executors.newSingleThreadExecutor(ThreadTools.getNamedThreadFactory(getClass().getSimpleName())); else this.executorService = executorService; root.setMouseTransparent(true); root.getChildren().addAll(rawPointsGroup, navigableExtrusionsGroup, nonNavigableExtrusionsGroup); }
public LidarFrameViewer(REAUIMessager uiMessager) { lidarCoordinateSystem = new JavaFXCoordinateSystem(0.1); lidarCoordinateSystem.getTransforms().add(lidarPose); root.getChildren().add(lidarCoordinateSystem); root.setMouseTransparent(true); uiMessager.registerTopicListener(REAModuleAPI.LidarScanState, this::handleMessage); uiMessager.registerModuleMessagerStateListener(isMessagerOpen -> { if (isMessagerOpen) start(); else stop(); }); }