* 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)
| 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 |
no test coverage detected