Appearance
KBE3D / KBCore / Cesium / ModelGraphics
类: ModelGraphics
A 3D model based on glTF, the runtime asset format for WebGL, OpenGL ES, and OpenGL. The position and orientation of the model is determined by the containing Entity. <p> Cesium includes support for glTF geometry, materials, animations, and skinning. Cameras and lights are not currently supported. </p>
参数
Object describing initialization options
属性
definitionChanged
readonlydefinitionChanged:Event
Gets the event that is raised whenever a property or sub-property is changed or modified.
show
show:
Property|undefined
Gets or sets the boolean Property specifying the visibility of the model.
uri
uri:
Property|undefined
Gets or sets the string Property specifying the URI of the glTF asset.
scale
scale:
Property|undefined
Gets or sets the numeric Property specifying a uniform linear scale for this model. Values greater than 1.0 increase the size of the model while values less than 1.0 decrease it.
enableVerticalExaggeration
enableVerticalExaggeration:
Property|undefined
Gets or sets the boolean Property specifying if the model is exaggerated along the ellipsoid normal when Scene.verticalExaggeration is set to a value other than <code>1.0</code>.
minimumPixelSize
minimumPixelSize:
Property|undefined
Gets or sets the numeric Property specifying 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 <code>0.0</code>, no minimum size is enforced.
maximumScale
maximumScale:
Property|undefined
Gets or sets the numeric Property specifying the maximum scale size of a model. This property is used as an upper limit for ModelGraphics#minimumPixelSize.
incrementallyLoadTextures
incrementallyLoadTextures:
Property|undefined
Get or sets the boolean Property specifying whether textures may continue to stream in after the model is loaded.
runAnimations
runAnimations:
Property|undefined
Gets or sets the boolean Property specifying if glTF animations should be run.
clampAnimations
clampAnimations:
Property|undefined
Gets or sets the boolean Property specifying if glTF animations should hold the last pose for time durations with no keyframes.
shadows
shadows:
Property|undefined
Get or sets the enum Property specifying whether the model casts or receives shadows from light sources.
heightReference
heightReference:
Property|undefined
Gets or sets the Property specifying the HeightReference.
silhouetteColor
silhouetteColor:
Property|undefined
Gets or sets the Property specifying the Color of the silhouette.
silhouetteSize
silhouetteSize:
Property|undefined
Gets or sets the numeric Property specifying the size of the silhouette in pixels.
color
color:
Property|undefined
Gets or sets the Property specifying the Color that blends with the model's rendered color.
colorBlendMode
colorBlendMode:
Property|undefined
Gets or sets the enum Property specifying how the color blends with the model.
colorBlendAmount
colorBlendAmount:
Property|undefined
A numeric Property specifying the color strength when the <code>colorBlendMode</code> is MIX. A value of 0.0 results in the model's rendered color while a value of 1.0 results in a solid color, with any value in-between resulting in a mix of the two.
imageBasedLightingFactor
imageBasedLightingFactor:
Property|undefined
A property specifying the Cartesian2 used to scale the diffuse and specular image-based lighting contribution to the final color.
environmentMapOptions
environmentMapOptions:
PropertyBag
Gets or sets the DynamicEnvironmentMapManager.ConstructorOptions to apply to this model. This is represented as an PropertyBag.
lightColor
lightColor:
Property|undefined
A property specifying the Cartesian3 light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
distanceDisplayCondition
distanceDisplayCondition:
Property|undefined
Gets or sets the DistanceDisplayCondition Property specifying at what distance from the camera that this model will be displayed.
nodeTransformations
nodeTransformations:
PropertyBag
Gets or sets the set of node transformations to apply to this model. This is represented as an PropertyBag, where keys are names of nodes, and values are TranslationRotationScale Properties describing the transformation to apply to that node. The transformation is applied after the node's existing transformation as specified in the glTF, and does not replace the node's existing transformation.
articulations
articulations:
PropertyBag
Gets or sets the set of articulation values to apply to this model. This is represented as an PropertyBag, where keys are composed as the name of the articulation, a single space, and the name of the stage.
clippingPlanes
clippingPlanes:
Property|undefined
A property specifying the ClippingPlaneCollection used to selectively disable rendering the model.
customShader
customShader:
Property|undefined
Gets or sets the CustomShader to apply to this model. When <code>undefined</code>, no custom shader code is used.
方法
clone()
clone(
result?:ModelGraphics):ModelGraphics
Duplicates this instance.
参数
result?
ModelGraphics
The object onto which to store the result.
返回
ModelGraphics
The modified result parameter or a new instance if one was not provided.
merge()
merge(
source:ModelGraphics):void
Assigns each unassigned property on this object to the value of the same property on the provided source object.
参数
source
ModelGraphics
The object to be merged into this object.
返回
void
构造函数
构造函数
new ModelGraphics(
options?:ConstructorOptions):ModelGraphics
参数
options?
返回
ModelGraphics
