startSphere.setMaterial(startTransparentMaterial); else startSphere.setMaterial(startOpaqueMaterial); goalSphere.setMaterial(goalTransparentMaterial); else goalSphere.setMaterial(goalOpaqueMaterial);
startSphere.setMaterial(startTransparentMaterial); else startSphere.setMaterial(startOpaqueMaterial); goalSphere.setMaterial(goalTransparentMaterial); else goalSphere.setMaterial(goalOpaqueMaterial); lowLevelGoalSphere.setMaterial(lowLevelGoalOpaqueMaterial);
public BodyPathMeshViewer(Messager messager, ExecutorService executorService) { isExecutorServiceProvided = executorService == null; if (isExecutorServiceProvided) this.executorService = Executors.newSingleThreadExecutor(ThreadTools.getNamedThreadFactory(getClass().getSimpleName())); else this.executorService = executorService; bodyPathMeshView.setMouseTransparent(true); bodyPathMeshView.setMaterial(new PhongMaterial(Color.YELLOW)); Vector3D defaultSize = new Vector3D(1.0, 1.0, 1.0); defaultSize.scale(1.5 * BODYPATH_LINE_THICKNESS); walkerSize = messager.createInput(UIVisibilityGraphsTopics.WalkerSize, defaultSize); walkerOffsetHeight = messager.createInput(UIVisibilityGraphsTopics.WalkerOffsetHeight, 0.0); walker.setMaterial(new PhongMaterial(Color.YELLOW)); walker.setRadius(1.0); resetRequested = messager.createInput(UIVisibilityGraphsTopics.GlobalReset, false); show = messager.createInput(UIVisibilityGraphsTopics.ShowBodyPath, true); messager.registerTopicListener(UIVisibilityGraphsTopics.BodyPathData, this::processBodyPathOnThread); walkerPosition = messager.createInput(UIVisibilityGraphsTopics.WalkerPosition, null); enableWalkerAnimation = messager.createInput(UIVisibilityGraphsTopics.EnableWalkerAnimation, true); root.getChildren().addAll(bodyPathMeshView, walker); }
if (curPosGroup.getChildren().size() < 2) { Sphere sphere = new Sphere(curPosPointSize); sphere.setMaterial(ptMaterial); Text txt = new Text(track.name); txt.setTranslateX(20.0); sphere.setTranslateY(tp.y * getDistScale()); sphere.setTranslateZ(tp.z * getDistScale()); sphere.setMaterial(ptMaterial); trackGroup.getChildren().addAll(sphere, cyl); if (null != tp.getRpy() && isShowRotationFrames()) {
material.setDiffuseColor(Color.DARKRED); material.setSpecularColor(Color.RED); focusPointViz.setMaterial(material); focusPointViz.getTransforms().add(focusPointTranslation);
material.setDiffuseColor(Color.DARKRED); material.setSpecularColor(Color.RED); focusPointViz.setMaterial(material); focusPointViz.getTransforms().add(focusPointTranslation);
sphere.setMaterial(new PhongMaterial(Color.BLACK)); sphere.setTranslateX(pointcloud.getPoint(i).getX()); sphere.setTranslateY(pointcloud.getPoint(i).getY());