MCPcopy
hub / github.com/CesiumGS/cesium / update

Method update

packages/engine/Source/Scene/Model/ModelImagery.js:97–119  ·  view source on GitHub ↗

* The update function that is called from Model.update in * each frame. * * This checks whether the imagery layer objects that are associated * with the model are all ready . If they are not yet * ready, then nothing is done. * * Otherwise, this just cal

(frameState)

Source from the content-addressed store, hash-verified

95 * @param {FrameState} frameState The frame state
96 */
97 update(frameState) {
98 //>>includeStart('debug', pragmas.debug);
99 Check.defined("frameState", frameState);
100 //>>includeEnd('debug');
101
102 if (!this._hasImagery) {
103 // When there is no imagery, make sure to delete any model primitive
104 // imageries that may previously have been created
105 this._deleteModelPrimitiveImageries();
106 return;
107 }
108
109 if (!this._allImageryLayersReady) {
110 return;
111 }
112
113 if (!defined(this._modelPrimitiveImageries)) {
114 this._modelPrimitiveImageries = this._createModelPrimitiveImageries();
115 }
116 this._updateModelPrimitiveImageries(frameState);
117
118 this._checkForModifiedImageryConfigurations();
119 }
120
121 /**
122 * Creates the <code>ModelPrimitiveImagery</code> array that contains

Callers 15

updateFramebuffersFunction · 0.45
pickBeginFunction · 0.45
Picking.jsFile · 0.45
getRayIntersectionFunction · 0.45
updateFramebuffersFunction · 0.45
createFramebuffersFunction · 0.45
renderFrameFunction · 0.45
PickFramebuffer.jsFile · 0.45
SunPostProcess.jsFile · 0.45

Tested by

no test coverage detected