EarthSDK
    正在准备搜索索引...

    类 XbsjGroundPolylinePrimitive

    索引

    构造函数

    • 参数

      • 可选options: {
            allowPicking?: boolean;
            appearance?: Appearance;
            asynchronous?: boolean;
            classificationType?: ClassificationType;
            debugShowBoundingVolume?: boolean;
            debugShowShadowVolume?: boolean;
            geometryInstances?: any[] | GeometryInstance;
            interleave?: boolean;
            releaseGeometryInstances?: boolean;
            show?: boolean;
        }

      返回 XbsjGroundPolylinePrimitive

    属性

    allowPicking: boolean

    When true, each geometry instance will only be pickable with Scene#pick. When false, GPU memory is saved.

    appearance: Appearance

    The Appearance used to shade this primitive. Each geometry instance is shaded with the same appearance. Some appearances, like PolylineColorAppearance allow giving each instance unique properties.

    asynchronous: boolean

    Determines if the geometry instances will be created and batched on a web worker.

    classificationType: ClassificationType

    Determines whether terrain, 3D Tiles or both will be classified.

    debugShowBoundingVolume: boolean

    This property is for debugging only; it is not for production use nor is it optimized.

    Draws the bounding sphere for each draw command in the primitive.

    debugShowShadowVolume: boolean

    This property is for debugging only; it is not for production use nor is it optimized.

    If true, draws the shadow volume for each geometry in the primitive.

    geometryInstances: any[] | GeometryInstance

    The geometry instances rendered with this primitive. This may be undefined if options.releaseGeometryInstances is true when the primitive is constructed.

    Changing this property after the primitive is rendered has no effect.

    interleave: boolean

    Determines if geometry vertex attributes are interleaved, which can slightly improve rendering performance.

    ready: boolean

    Determines if the primitive is complete and ready to render. If this property is true, the primitive will be rendered the next time that GroundPolylinePrimitive#update is called.

    readyPromise: Promise<XbsjGroundPolylinePrimitive>

    Gets a promise that resolves when the primitive is ready to render.

    releaseGeometryInstances: boolean

    When true, the primitive does not keep a reference to the input geometryInstances to save memory.

    show: boolean

    Determines if the primitive will be shown. This affects all geometry instances in the primitive.

    方法

    • Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

      Once an object is destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.

      返回 void

      e = e && e.destroy();
      
    • Returns the modifiable per-instance attributes for a GeometryInstance.

      参数

      • id: any

        The id of the GeometryInstance.

      返回 any

      The typed array in the attribute's format or undefined if the is no instance with id.

      const attributes = primitive.getGeometryInstanceAttributes('an id');
      attributes.color = Cesium.ColorGeometryInstanceAttribute.toValue(Cesium.Color.AQUA);
      attributes.show = Cesium.ShowGeometryInstanceAttribute.toValue(true);
    • Returns true if this object was destroyed; otherwise, false.

      If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.

      返回 boolean

      true if this object was destroyed; otherwise, false.

    • Called when Viewer or CesiumWidget render the scene to get the draw commands needed to render this primitive.

      Do not call this function directly. This is documented just to list the exceptions that may be propagated when the scene is rendered:

      返回 void

    • Initializes the minimum and maximum terrain heights. This only needs to be called if you are creating the GroundPolylinePrimitive synchronously.

      返回 Promise<void>

      A promise that will resolve once the terrain heights have been loaded.

    • Checks if the given Scene supports GroundPolylinePrimitives. GroundPolylinePrimitives require support for the WEBGL_depth_texture extension.

      参数

      • scene: Scene

        The current scene.

      返回 boolean

      Whether or not the current scene supports GroundPolylinePrimitives.