<commit_before>/*
 * Copyright 2017 iserge.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.cesiumjs.cs.core;

import jsinterop.annotations.JsConstructor;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import org.cesiumjs.cs.collections.ImageryLayerCollection;
import org.cesiumjs.cs.core.providers.TerrainProvider;
import org.cesiumjs.cs.scene.Scene;

/**
 * @author <NAME> aka iSergio <<EMAIL>>
 */
@JsType(isNative = true, namespace = "Cesium", name = "Globe")
public class Globe {
    /**
     * Gets or sets the color of the globe when no imagery is available.
     */
    @JsProperty
    public Color baseColor;
    /**
     * True if primitives such as billboards, polylines, labels, etc. should be depth-tested against the terrain surface,
     * or false if such primitives should always be drawn on top of terrain unless they're on the opposite side of the globe.
     * The disadvantage of depth testing primitives against terrain is that slight numerical noise or terrain
     * level-of-detail switched can sometimes make a primitive that should be on the surface disappear underneath it.
     * Default: false.
     */
    @JsProperty
    public boolean depthTestAgainstTerrain;
    /**
     * Gets an ellipsoid describing the shape of this globe.
     */
    @JsProperty
    public Ellipsoid ellipsoid;
    /**
     * Enable lighting the globe with the sun as a light source.
     * Default:  false
     */
    @JsProperty
    public boolean enableLighting;
    /**
     * Gets the collection of imagery layers that will be rendered on this globe.
     */
    @JsProperty
    public ImageryLayerCollection imageryLayers;
    /**
     * The distance where lighting resumes. This only takes effect when enableLighting is true.
     * Default:  9000000.0
     */
    @JsProperty
    public double lightingFadeInDistance;
    /**
     * The distance where everything becomes lit. This only takes effect when enableLighting is true.
     * Default:  6500000.0
     */
    @JsProperty
    public double lightingFadeOutDistance;
    /**
     * The maximum screen-space error used to drive level-of-detail refinement. Higher values will provide better
     * performance but lower visual quality.<commit_msg>Added Globe.material to apply materials to the globe/terrain for shading such as height- or slope-based color ramps.<commit_after>/*
 * Copyright 2017 iserge.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.cesiumjs.cs.core;

import jsinterop.annotations.JsConstructor;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import org.cesiumjs.cs.collections.ImageryLayerCollection;
import org.cesiumjs.cs.core.providers.TerrainProvider;
import org.cesiumjs.cs.scene.Material;
import org.cesiumjs.cs.scene.Scene;

/**
 * @author <NAME> aka iSergio <<EMAIL>>
 */
@JsType(isNative = true, namespace = "Cesium", name = "Globe")
public class Globe {
    /**
     * Gets or sets the color of the globe when no imagery is available.
     */
    @JsProperty
    public Color baseColor;
    /**
     * True if primitives such as billboards, polylines, labels, etc. should be depth-tested against the terrain surface,
     * or false if such primitives should always be drawn on top of terrain unless they're on the opposite side of the globe.
     * The disadvantage of depth testing primitives against terrain is that slight numerical noise or terrain
     * level-of-detail switched can sometimes make a primitive that should be on the surface disappear underneath it.
     * Default: false.
     */
    @JsProperty
    public boolean depthTestAgainstTerrain;
    /**
     * Gets an ellipsoid describing the shape of this globe.
     */
    @JsProperty
    public Ellipsoid ellipsoid;
    /**
     * Enable lighting the globe with the sun as a light source.
     * Default:  false
     */
    @JsProperty
    public boolean enableLighting;
    /**
     * Gets the collection of imagery layers that will be rendered on this globe.
     */
    @JsProperty
    public ImageryLayerCollection imageryLayers;
    /**
     * The distance where lighting resumes. This only takes effect when enableLighting is true.
     * Default:  9000000.0
     */
    @JsProperty
    public double lightingFadeInDistance;
    /**
     * The distance where everything becomes lit. This only takes effect when enableLighting is true.
     * Default:  6500000.0
     */
    @JsProperty
    public double lightingFadeOutDistance;
    /**
     * Gets or sets the material appearance of the Globe. This can be one of several built-in Material objects or a custom material, scripted with Fabric.
     */
    @JsProperty
    public Material material;
    /**
     * The maximum screen-space error used to drive level-of-detail refinement. Higher values will provide better
     * performance but lower visual quality.
{'fraction_non_alphanumeric': 0.0712017382583988, 'fraction_numerical': 0.008022731071368878, 'mean_word_length': 3.211118930330753, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4936938', 'n_tokens_mistral': 1625, 'n_tokens_neox': 1549, 'n_words': 664}