/** * Creates a color palette with the hue component set as the variable with a resolution of {@value #DEFAULT_RESOLUTION} and the saturation and brightness set to {@code 1.0}. */ public TextureColorPalette1D() { setHueBased(1.0, 1.0); }
/** * Creates a color palette with the hue component set as the variable with a resolution of {@value #DEFAULT_RESOLUTION} and the saturation and brightness set to {@code 1.0}. */ public TextureColorPalette1D() { setHueBased(1.0, 1.0); }
/** * Changes this color palette to have the hue component be variable with a default resolution of {@value #DEFAULT_RESOLUTION} and given the new constant values for the saturation and brightness components. * @param saturationConstant the new constant value for the saturation component. * @param brightnessConstant the new constant value for the brightness component. */ public void setHueBased(double saturationConstant, double brightnessConstant) { setHueBased(DEFAULT_RESOLUTION, saturationConstant, brightnessConstant); }
/** * Changes this color palette to have the hue component be variable with a default resolution of {@value #DEFAULT_RESOLUTION} and given the new constant values for the saturation and brightness components. * @param saturationConstant the new constant value for the saturation component. * @param brightnessConstant the new constant value for the brightness component. */ public void setHueBased(double saturationConstant, double brightnessConstant) { setHueBased(DEFAULT_RESOLUTION, saturationConstant, brightnessConstant); }
public LidarScanLogViewer() { JavaFXCoordinateSystem lidarFrame = new JavaFXCoordinateSystem(0.1); lidarFrame.getTransforms().add(lidarPose); root.getChildren().addAll(lidarFrame, scans); TextureColorPalette1D scanColorPalette = new TextureColorPalette1D(); scanColorPalette.setHueBased(1.0, 1.0); scanMeshBuilder = new JavaFXMultiColorMeshBuilder(scanColorPalette); }
public LidarScanLogViewer() { JavaFXCoordinateSystem lidarFrame = new JavaFXCoordinateSystem(0.1); lidarFrame.getTransforms().add(lidarPose); root.getChildren().addAll(lidarFrame, scans); TextureColorPalette1D scanColorPalette = new TextureColorPalette1D(); scanColorPalette.setHueBased(1.0, 1.0); scanMeshBuilder = new JavaFXMultiColorMeshBuilder(scanColorPalette); }
calculator.setPlane(pointOnPlane, planeNormal); colorPalette.setHueBased(0.9, 0.8);
public ArrowGraphic(double radius, double length, Color color) { TextureColorPalette1D colorPalette = new TextureColorPalette1D(); colorPalette.setHueBased(1.0, 1.0); JavaFXMultiColorMeshBuilder meshBuilder = new JavaFXMultiColorMeshBuilder(colorPalette); double coneHeight = 0.10 * length; double coneRadius = 1.5 * radius; meshBuilder.addCylinder(length, radius, new Point3D(), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), color); meshBuilder.addCone(coneHeight, coneRadius, new Point3D(length, 0.0, 0.0), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), color); this.arrow = new MeshView(meshBuilder.generateMesh()); arrow.setMaterial(meshBuilder.generateMaterial()); getChildren().add(arrow); }
public OcTreeMeshBuilder(REAUIMessager uiMessager) { this.uiMessager = uiMessager; enable = uiMessager.createInput(REAModuleAPI.OcTreeEnable, false); clear = uiMessager.createInput(REAModuleAPI.OcTreeClear, false); treeDepthForDisplay = uiMessager.createPropertyInput(REAModuleAPI.UIOcTreeDepth, Integer.MAX_VALUE); treeDepthForDisplay.addListener(this::setProcessChange); coloringType = uiMessager.createPropertyInput(REAModuleAPI.UIOcTreeColoringMode, ColoringType.DEFAULT); coloringType.addListener(this::setProcessChange); displayType = uiMessager.createPropertyInput(REAModuleAPI.UIOcTreeDisplayType, DisplayType.PLANE); displayType.addListener(this::setProcessChange); hidePlanarRegionNodes = uiMessager.createPropertyInput(REAModuleAPI.UIPlanarRegionHideNodes, false); hidePlanarRegionNodes.addListener(this::setProcessChange); ocTreeState = uiMessager.createInput(REAModuleAPI.OcTreeState); planarRegionSegmentationState = uiMessager.createInput(REAModuleAPI.PlanarRegionsSegmentationState); normalBasedColorPalette1D.setHueBased(0.9, 0.8); meshBuilder = new JavaFXMultiColorMeshBuilder(normalBasedColorPalette1D); }
public JavaFXCoordinateSystem(double length) { TextureColorPalette1D colorPalette = new TextureColorPalette1D(); colorPalette.setHueBased(1.0, 1.0); JavaFXMultiColorMeshBuilder meshBuilder = new JavaFXMultiColorMeshBuilder(colorPalette); double radius = 0.02 * length; double coneHeight = 0.10 * length; double coneRadius = 0.05 * length; meshBuilder.addCylinder(length, radius, new Point3d(), new AxisAngle4d(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED); meshBuilder.addCone(coneHeight, coneRadius, new Point3d(length, 0.0, 0.0), new AxisAngle4d(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED); meshBuilder.addCylinder(length, radius, new Point3d(), new AxisAngle4d(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN); meshBuilder.addCone(coneHeight, coneRadius, new Point3d(0.0, length, 0.0), new AxisAngle4d(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN); meshBuilder.addCylinder(length, radius, new Point3d(), Color.BLUE); meshBuilder.addCone(coneHeight, coneRadius, new Point3d(0.0, 0.0, length), Color.BLUE); MeshView coordinateSystem = new MeshView(meshBuilder.generateMesh()); coordinateSystem.setMaterial(meshBuilder.generateMaterial()); getChildren().addAll(coordinateSystem); } }
public JavaFXCoordinateSystem(double length) { TextureColorPalette1D colorPalette = new TextureColorPalette1D(); colorPalette.setHueBased(1.0, 1.0); JavaFXMultiColorMeshBuilder meshBuilder = new JavaFXMultiColorMeshBuilder(colorPalette); double radius = 0.02 * length; double coneHeight = 0.10 * length; double coneRadius = 0.05 * length; meshBuilder.addCylinder(length, radius, new Point3D(), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED); meshBuilder.addCone(coneHeight, coneRadius, new Point3D(length, 0.0, 0.0), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED); meshBuilder.addCylinder(length, radius, new Point3D(), new AxisAngle(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN); meshBuilder.addCone(coneHeight, coneRadius, new Point3D(0.0, length, 0.0), new AxisAngle(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN); meshBuilder.addCylinder(length, radius, new Point3D(), Color.BLUE); meshBuilder.addCone(coneHeight, coneRadius, new Point3D(0.0, 0.0, length), Color.BLUE); MeshView coordinateSystem = new MeshView(meshBuilder.generateMesh()); coordinateSystem.setMaterial(meshBuilder.generateMaterial()); getChildren().addAll(coordinateSystem); } }
palette.setHueBased(0.9, 0.8); JavaFXMultiColorMeshBuilder occupiedMeshBuilder = new JavaFXMultiColorMeshBuilder(palette); JavaFXMeshBuilder freeMeshBuilder = new JavaFXMeshBuilder();
palette.setHueBased(0.9, 0.8); JavaFXMultiColorMeshBuilder occupiedMeshBuilder = new JavaFXMultiColorMeshBuilder(palette); JavaFXMeshBuilder freeMeshBuilder = new JavaFXMeshBuilder();