Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CWindLayer

Hierarchy

Index

Constructors

  • 构建图层

    memberof

    CPixelLayer

    Parameters

    Returns CWindLayer

Properties

allowPicking: boolean

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

appearance: Appearance

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

asynchronous: boolean

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

compressVertices: boolean

When true, geometry vertices are compressed, which will save memory.

cull: boolean

When true, the renderer frustum culls and horizon culls the primitive's commands based on their bounding volume. Set this to false for a small performance gain if you are manually culling the primitive.

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.

depthFailAppearance: Appearance

The {@link Appearance} used to shade this primitive when it fails the depth test. Each geometry instance is shaded with the same appearance. Some appearances, like {@link PerInstanceColorAppearance} allow giving each instance unique properties.

When using an appearance that requires a color attribute, like PerInstanceColorAppearance, add a depthFailColor per-instance attribute instead.

Requires the EXT_frag_depth WebGL extension to render properly. If the extension is not supported, there may be artifacts.

geometryInstances: GeometryInstance | 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.

modelMatrix: Matrix4

The 4x4 transformation matrix that transforms the primitive (all geometry instances) from model to world coordinates. When this is the identity matrix, the primitive is drawn in world coordinates, i.e., Earth's WGS84 coordinates. Local reference frames can be used by providing a different transformation matrix, like that returned by {@link Transforms.eastNorthUpToFixedFrame}.

This property is only supported in 3D mode.

example

var origin = Cesium.Cartesian3.fromDegrees(-95.0, 40.0, 200000.0); p.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(origin);

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 {@link Primitive#update} is called.

readyPromise: Promise<Primitive>

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.

shadows: ShadowMode

Determines whether this primitive casts or receives shadows from light sources.

show: boolean

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

vertexCacheOptimize: boolean

When true, geometry vertices are optimized for the pre and post-vertex-shader caches.

DefaultOptions: ICWindLayerOptions = ...

默认参数

static
memberof

CWindLayer

Methods

  • clearPreDataSource(): void
  • Returns void

  • destroy(): void
  • Returns void

  • getGeometryInstanceAttributes(id: any): any
  • Returns the modifiable per-instance attributes for a {@link GeometryInstance}.

    example

    var attributes = primitive.getGeometryInstanceAttributes('an id'); attributes.color = Cesium.ColorGeometryInstanceAttribute.toValue(Cesium.Color.AQUA); attributes.show = Cesium.ShowGeometryInstanceAttribute.toValue(true); attributes.distanceDisplayCondition = Cesium.DistanceDisplayConditionGeometryInstanceAttribute.toValue(100.0, 10000.0); attributes.offset = Cesium.OffsetGeometryInstanceAttribute.toValue(Cartesian3.IDENTITY);

    Parameters

    • id: any

      The id of the {@link GeometryInstance}.

    Returns any

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

  • isDestroyed(): boolean
  • 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 {@link DeveloperError} exception.

    Returns boolean

    true if this object was destroyed; otherwise, false.

  • Parameters

    Returns CWindLayer

  • 设置绘制参数

    Parameters

    Returns CWindLayer

  • setLayerOptions(options: IC3DLayerOptions, partialUpdate?: boolean): void
  • Parameters

    • options: IC3DLayerOptions
    • partialUpdate: boolean = true

    Returns void

  • setVisible(visible: boolean): void
  • Parameters

    • visible: boolean

    Returns void

  • update(frameState?: any): void
  • 系统函数,请勿框架外部调用

    Parameters

    • Optional frameState: any

    Returns void

Generated using TypeDoc