Commit f9d31394 authored by iSergio's avatar iSergio
Browse files

Feature IDs for styling and picking in ModelExperimental can now be selected...

Feature IDs for styling and picking in ModelExperimental can now be selected via (tileset|model).featureIdIndex and (tileset|model).instanceFeatureIdIndex
parent 11c8d908
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -144,6 +144,29 @@ public class Cesium3DTileset {
     */
    @JsProperty
    public CustomShader customShader;
    /**
     * The index into the list of primitive feature IDs used for picking and styling. For EXT_feature_metadata,
     * feature ID attributes are listed before feature ID textures. If both per-primitive and per-instance feature
     * IDs are present, the instance feature IDs take priority.
     *
     * Default: 0
     */
    @JsProperty
    public double featureIdIndex;
    /**
     * The index into the list of instance feature IDs used for picking and styling. If both per-primitive and
     * per-instance feature IDs are present, the instance feature IDs take priority.
     *
     * Default: 0
     */
    @JsProperty
    public double instanceFeatureIdIndex;
    /**
     * The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's
     * specified variable value.
     */
    @JsProperty
    public String debugHeatmapTilePropertyName;
    /**
     * For debugging only. Determines if only the tiles from last frame should be
     * used for rendering. Defaule: false;
+9 −4
Original line number Diff line number Diff line
@@ -74,17 +74,22 @@ public class ModelExperimental {
    @JsProperty
    public boolean debugShowBoundingVolume;
    /**
     * The index of the feature ID attribute to use for picking features per-instance or per-primitive.
     * The index into the list of primitive feature IDs used for picking and styling. For EXT_feature_metadata,
     * feature ID attributes are listed before feature ID textures. If both per-primitive and per-instance feature
     * IDs are present, the instance feature IDs take priority.
     *
     * Default: 0
     */
    @JsProperty
    public Number featureIdAttributeIndex;
    public double featureIdIndex;
    /**
     * The index of the feature ID texture to use for picking features per-primitive.
     * The index into the list of instance feature IDs used for picking and styling. If both per-primitive and
     * per-instance feature IDs are present, the instance feature IDs take priority.
     *
     * Default: 0
     */
    @JsProperty
    public Number featureIdTextureIndex;
    public double instanceFeatureIdIndex;
    /**
     * When true, this model is ready to render, i.e., the external binary, image, and shader files were downloaded and the WebGL resources were created. This is set to true right before ModelExperimental#readyPromise is resolved.
     * Default: false
+9 −4
Original line number Diff line number Diff line
@@ -93,17 +93,22 @@ public class ModelExperimentalOptions {
    @JsProperty
    public double colorBlendAmount;
    /**
     * The index of the feature ID attribute to use for picking features per-instance or per-primitive.
     * The index into the list of primitive feature IDs used for picking and styling. For EXT_feature_metadata,
     * feature ID attributes are listed before feature ID textures. If both per-primitive and per-instance feature
     * IDs are present, the instance feature IDs take priority.
     *
     * Default: 0
     */
    @JsProperty
    public Number featureIdAttributeIndex;
    public double featureIdIndex;
    /**
     * The index of the feature ID texture to use for picking features per-primitive.
     * The index into the list of instance feature IDs used for picking and styling. If both per-primitive and
     * per-instance feature IDs are present, the instance feature IDs take priority.
     *
     * Default: 0
     */
    @JsProperty
    public Number featureIdTextureIndex;
    public double instanceFeatureIdIndex;

    @JsConstructor
    private ModelExperimentalOptions() {}
+46 −0
Original line number Diff line number Diff line
@@ -298,6 +298,52 @@ public class Cesium3DTilesetOptions {
     */
    @JsProperty
    public boolean backFaceCulling;
    /**
     * 	Whether to display the outline for models using the CESIUM_primitive_outline extension. When true,
     * 	outlines are displayed. When false, outlines are not displayed.
     *
     * 	Default: true
     */
    @JsProperty
    public boolean showOutline;
    /**
     * 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 {@link org.cesiumjs.cs.scene.Cesium3DTileFeature#getPolylinePositions}.
     *
     * Default: false
     */
    @JsProperty
    public boolean vectorKeepDecodedPositions;
    /**
     * The index into the list of primitive feature IDs used for picking and styling. For EXT_feature_metadata,
     * feature ID attributes are listed before feature ID textures. If both per-primitive and per-instance feature
     * IDs are present, the instance feature IDs take priority.
     *
     * Default: 0
     */
    @JsProperty
    public double featureIdIndex;
    /**
     * The index into the list of instance feature IDs used for picking and styling. If both per-primitive and
     * per-instance feature IDs are present, the instance feature IDs take priority.
     *
     * Default: 0
     */
    @JsProperty
    public double instanceFeatureIdIndex;
    /**
     * The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's
     * specified variable value.
     */
    @JsProperty
    public String debugHeatmapTilePropertyName;
    /**
     * For debugging only. Determines if only the tiles from last frame should be
     * used for rendering. Defaule: false;