Skip to content

Commit eab81fb

Browse files
committed
Merge pull request #3458 from AnalyticalGraphicsInc/3d-tiles-doc
Start of 3D Tiles reference doc
2 parents 811f385 + 6a86603 commit eab81fb

18 files changed

+754
-183
lines changed

Apps/Sandcastle/gallery/Cities.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
if (Cesium.defined(current.building) && (current.building !== pickedBuilding)) {
125125
// Restore original color to building that is no longer selected
126126

127-
// This assignment is nessearcy to work with the set property
127+
// This assignment is necessary to work with the set property
128128
current.building.color = Cesium.Color.clone(current.originalColor, current.building.color);
129129
current.building = undefined;
130130
}
@@ -386,11 +386,12 @@
386386
var max = styleableProperties[currentPropertyName].maximum;
387387
var delta = max - min;
388388
var content = tile.content;
389-
var batchTableResources = content.batchTableResources;
390389

391390
// Is the tile a Batched 3D Model?
392391
if (content instanceof Cesium.Batched3DModel3DTileContentProvider) {
393392
// Does it have a per-model height property?
393+
var batchTableResources = content.batchTableResources;
394+
394395
if (batchTableResources.hasProperty(currentPropertyName)) {
395396
var length = content.batchSize;
396397
for (var i = 0; i < length; ++i) {

CHANGES.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,22 @@ Change Log
33

44
### TODO
55

6+
* Added support for [3D Tiles](https://github.com/AnalyticalGraphicsInc/3d-tiles/blob/master/README.md) for streaming massive heterogeneous 3D geospatial datasets. The new Cesium types are:
7+
* `Cesium3DTileset`
8+
* `Cesium3DTile`
9+
* `Batched3DModel3DTileContentProvider`
10+
* `Instanced3DModel3DTileContentProvider`
11+
* `Points3DTileContentProvider`
12+
* `Composite3DTileContentProvider`
13+
* `Tileset3DTileContentProvider`
14+
* `Empty3DTileContentProvider`
15+
* `BatchedModel`
16+
* `Cesium3DTileBatchTableResources`
17+
18+
TODO: these are still private:
619
* Added `vertexShaderLoaded`, `fragmentShaderLoaded`, `uniformMapLoaded`, `pickVertexShaderLoaded`, `pickFragmentShaderLoaded`, and `pickUniformMapLoaded` callbacks to the `Model` constructor and `Model.fromGltf`.
20+
21+
TODO: this is not finished yet:
722
* Added support for glTF compression using the `mesh_compression_open3dgc` glTF extension.
823

924
### 1.18 - 2016-02-01

Source/Scene/Batched3DModel3DTileContentProvider.js

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,18 @@ define([
3636
"use strict";
3737

3838
/**
39-
* DOC_TBA
39+
* Represents the contents of a
40+
* {@link https://github.com/AnalyticalGraphicsInc/3d-tiles/blob/master/TileFormats/Batched3DModel/README.md|Batched 3D Model}
41+
* tile in a {@link https://github.com/AnalyticalGraphicsInc/3d-tiles/blob/master/README.md|3D Tiles} tileset.
42+
* <p>
43+
* Use this to access and modify individual features (models) in the tile.
44+
* </p>
45+
* <p>
46+
* Do not construct this directly. Access it through {@link Cesium3DTile#content}.
47+
* </p>
48+
*
49+
* @alias Batched3DModel3DTileContentProvider
50+
* @constructor
4051
*/
4152
function Batched3DModel3DTileContentProvider(tileset, tile, url) {
4253
this._model = undefined;
@@ -45,17 +56,23 @@ define([
4556
this._tile = tile;
4657

4758
/**
48-
* @readonly
59+
* Part of the {@link Cesium3DTileContentProvider} interface.
60+
*
61+
* @private
4962
*/
5063
this.state = Cesium3DTileContentState.UNLOADED;
5164

5265
/**
53-
* @type {Promise}
66+
* Part of the {@link Cesium3DTileContentProvider} interface.
67+
*
68+
* @private
5469
*/
5570
this.processingPromise = when.defer();
5671

5772
/**
58-
* @type {Promise}
73+
* Part of the {@link Cesium3DTileContentProvider} interface.
74+
*
75+
* @private
5976
*/
6077
this.readyPromise = when.defer();
6178

@@ -119,9 +136,9 @@ define([
119136
var sizeOfUint32 = Uint32Array.BYTES_PER_ELEMENT;
120137

121138
/**
122-
* DOC_TBA
139+
* Part of the {@link Cesium3DTileContentProvider} interface.
123140
*
124-
* Use Cesium3DTile#requestContent
141+
* @private
125142
*/
126143
Batched3DModel3DTileContentProvider.prototype.request = function() {
127144
var that = this;
@@ -149,7 +166,9 @@ define([
149166
};
150167

151168
/**
152-
* DOC_TBA
169+
* Part of the {@link Cesium3DTileContentProvider} interface.
170+
*
171+
* @private
153172
*/
154173
Batched3DModel3DTileContentProvider.prototype.initialize = function(arrayBuffer, byteOffset) {
155174
var byteStart = defaultValue(byteOffset, 0);
@@ -230,27 +249,31 @@ define([
230249
};
231250

232251
/**
233-
* DOC_TBA
252+
* Part of the {@link Cesium3DTileContentProvider} interface.
234253
*
235-
* Use Cesium3DTile#update
254+
* @private
236255
*/
237-
Batched3DModel3DTileContentProvider.prototype.update = function(owner, frameState) {
256+
Batched3DModel3DTileContentProvider.prototype.update = function(tiles3D, frameState) {
238257
// In the PROCESSING state we may be calling update() to move forward
239258
// the content's resource loading. In the READY state, it will
240259
// actually generate commands.
241-
this._batchTableResources.update(owner, frameState);
260+
this._batchTableResources.update(tiles3D, frameState);
242261
this._model.update(frameState);
243262
};
244263

245-
/**
246-
* DOC_TBA
247-
*/
264+
/**
265+
* Part of the {@link Cesium3DTileContentProvider} interface.
266+
*
267+
* @private
268+
*/
248269
Batched3DModel3DTileContentProvider.prototype.isDestroyed = function() {
249270
return false;
250271
};
251272

252273
/**
253-
* DOC_TBA
274+
* Part of the {@link Cesium3DTileContentProvider} interface.
275+
*
276+
* @private
254277
*/
255278
Batched3DModel3DTileContentProvider.prototype.destroy = function() {
256279
this._model = this._model && this._model.destroy();

0 commit comments

Comments
 (0)