Commit 23b50d12 authored by iSergio's avatar iSergio
Browse files

Added a polylinePositions getter to Cesium3DTileFeature that gets the decoded...

Added a polylinePositions getter to Cesium3DTileFeature that gets the decoded positions of a polyline vector feature.
parent 6e021bec
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package org.cesiumjs.cs.scene;

import com.google.gwt.typedarrays.shared.Float64Array;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
@@ -52,6 +53,13 @@ public class Cesium3DTileFeature extends PickedObject {
     */
    @JsProperty
    public Color color;
    /**
     * Gets a typed array containing the ECEF positions of the polyline.
     * Returns undefined if {@link Cesium3DTileset#vectorKeepDecodedPositions} is false or the feature
     * is not a polyline in a vector tile.
     */
    @JsProperty(name = "polylinePositions")
    public native Float64Array polylinePositions();
    /**
     * Gets or sets if the feature will be shown. This is set for all features when
     * a style's show is evaluated. Default: true
+12 −1
Original line number Diff line number Diff line
@@ -609,7 +609,18 @@ public class Cesium3DTileset {
     */
    @JsProperty(name = "totalMemoryUsageInBytes")
    public native int totalMemoryUsageInBytes();

    /**
     * Indicates that only the tileset's vector tiles should be used for classification.
     * Default: false
     */
    @JsProperty
    public boolean vectorClassificationOnly;
    /**
     * Whether vector tiles should keep decoded positions in memory. This is used with Cesium3DTileFeature.getPolylinePositions.
     * Default: false
     */
    @JsProperty
    public boolean vectorKeepDecodedPositions;
    /**
     * The resource used to fetch the tileset JSON file.
     */