Commit 0c6c783c authored by iSergio's avatar iSergio
Browse files

Added minimumPixelSize, scale, and maximumScale to ModelExperimental

parent b70d299e
Loading
Loading
Loading
Loading
+37 −26
Original line number Diff line number Diff line
@@ -21,8 +21,11 @@ import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import org.cesiumjs.cs.core.BoundingSphere;
import org.cesiumjs.cs.core.Cartesian3;
import org.cesiumjs.cs.core.Color;
import org.cesiumjs.cs.promise.Promise;
import org.cesiumjs.cs.scene.ImageBasedLighting;
import org.cesiumjs.cs.scene.PointCloudShading;
import org.cesiumjs.cs.scene.enums.ColorBlendMode;
import org.cesiumjs.cs.scene.experimental.options.ModelExperimentalFromGltfOptions;
import org.cesiumjs.cs.scene.experimental.options.ModelExperimentalOptions;
@@ -90,32 +93,40 @@ public class ModelExperimental {
     */
    @JsProperty
    public double instanceFeatureIdLabel;
//    ImageBasedLighting imageBasedLighting;
//
//    The properties for managing image-based lighting on this model.
//            instanceFeatureIdLabel : String Scene/ModelExperimental/ModelExperimental.js 760
//
//    Label of the instance feature ID set used for picking and styling.
//    If instanceFeatureIdLabel is set to an integer N, it is converted to the string "instanceFeatureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority.
//
//    Experimental
//    This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
//    lightColor : Cartesian3 Scene/ModelExperimental/ModelExperimental.js 813
//
//    The light color when shading the model. When undefined the scene's light color is used instead.
//    Disabling additional light sources by setting model.imageBasedLightingFactor = new Cartesian2(0.0, 0.0) will make the model much darker. Here, increasing the intensity of the light source will make the model brighter.
//
//    Default Value:  undefined
//    maximumScale : Number Scene/ModelExperimental/ModelExperimental.js 951
//
//    The maximum scale size for a model. This can be used to give an upper limit to the Model#minimumPixelSize, ensuring that the model is never an unreasonable scale.
//            minimumPixelSize : Number Scene/ModelExperimental/ModelExperimental.js 930
//
//    The approximate minimum pixel size of the model regardless of zoom. This can be used to ensure that a model is visible even when the viewer zooms out. When 0.0, no minimum size is enforced.
//    Default Value:  0.0
//    pointCloudShading : PointCloudShading Scene/ModelExperimental/ModelExperimental.js 437
//
//    Point cloud shading settings for controlling point cloud attenuation and lighting. For 3D Tiles, this is inherited from the Cesium3DTileset.
    /**
     * The properties for managing image-based lighting on this model.
     */
    @JsProperty
    public ImageBasedLighting imageBasedLighting;
    /**
     * The light color when shading the model. When undefined the scene's light color is used instead.
     * Disabling additional light sources by setting model.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)
     * will make the model much darker. Here, increasing the intensity of the light source will make the model
     * brighter.
     *
     * Default: undefined
     */
    @JsProperty
    public Cartesian3 lightColor;
    /**
     * The maximum scale size for a model. This can be used to give an upper limit to the Model#minimumPixelSize,
     * ensuring that the model is never an unreasonable scale.
     */
    @JsProperty
    public double maximumScale;
    /**
     * The approximate minimum pixel size of the model regardless of zoom. This can be used to ensure that a model
     * is visible even when the viewer zooms out. When 0.0, no minimum size is enforced.
     * Default: 0.0
     */
    @JsProperty
    public double minimumPixelSize;
    /**
     * Point cloud shading settings for controlling point cloud attenuation and lighting. For 3D Tiles,
     * this is inherited from the Cesium3DTileset.
     */
    @JsProperty
    public PointCloudShading pointCloudShading;
    /**
     * 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