Skip to content

Commit

Permalink
Merge branch 'master' into entity-model-matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
rahwang authored Jul 11, 2017
2 parents a05c5dc + 05b9dce commit 95535ab
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 42 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Change Log
* Fixed a bug where a Model's compressed textures were not being displayed. [#5596](https://github.com/AnalyticalGraphicsInc/cesium/pull/5596)
* Fixed a bug where jsep was undefined when using webpack [#5593](https://github.com/AnalyticalGraphicsInc/cesium/issues/5593)
* Make Entity mode matrix public via computeModelMatrix(). [#5584](https://github.com/AnalyticalGraphicsInc/cesium/pull/5584)
* Fixed documentation for `OrthographicFrustum` [#5586](https://github.com/AnalyticalGraphicsInc/cesium/issues/5586)


### 1.35 - 2017-07-05

Expand Down
4 changes: 2 additions & 2 deletions Source/Core/GoogleEarthEnterpriseMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ define([

/**
* Gets the proxy used for metadata requests.
* @memberof GoogleEarthEnterpriseImageryProvider.prototype
* @memberof GoogleEarthEnterpriseMetadata.prototype
* @type {Proxy}
* @readonly
*/
Expand All @@ -169,7 +169,7 @@ define([

/**
* Gets a promise that resolves to true when the metadata is ready for use.
* @memberof GoogleEarthEnterpriseProvider.prototype
* @memberof GoogleEarthEnterpriseMetadata.prototype
* @type {Promise.<Boolean>}
* @readonly
*/
Expand Down
34 changes: 17 additions & 17 deletions Source/Core/GoogleEarthEnterpriseTerrainProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ define([
defineProperties(GoogleEarthEnterpriseTerrainProvider.prototype, {
/**
* Gets the name of the Google Earth Enterprise server url hosting the imagery.
* @memberof GoogleEarthEnterpriseProvider.prototype
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
* @type {String}
* @readonly
*/
Expand All @@ -197,7 +197,7 @@ define([

/**
* Gets the proxy used by this provider.
* @memberof GoogleEarthEnterpriseProvider.prototype
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
* @type {Proxy}
* @readonly
*/
Expand All @@ -209,8 +209,8 @@ define([

/**
* Gets the tiling scheme used by this provider. This function should
* not be called before {@link GoogleEarthEnterpriseProvider#ready} returns true.
* @memberof GoogleEarthEnterpriseProvider.prototype
* not be called before {@link GoogleEarthEnterpriseTerrainProvider#ready} returns true.
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
* @type {TilingScheme}
* @readonly
*/
Expand All @@ -230,7 +230,7 @@ define([
* Gets an event that is raised when the imagery provider encounters an asynchronous error. By subscribing
* to the event, you will be notified of the error and can potentially recover from it. Event listeners
* are passed an instance of {@link TileProviderError}.
* @memberof GoogleEarthEnterpriseProvider.prototype
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
* @type {Event}
* @readonly
*/
Expand All @@ -242,7 +242,7 @@ define([

/**
* Gets a value indicating whether or not the provider is ready for use.
* @memberof GoogleEarthEnterpriseProvider.prototype
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
* @type {Boolean}
* @readonly
*/
Expand All @@ -254,7 +254,7 @@ define([

/**
* Gets a promise that resolves to true when the provider is ready for use.
* @memberof GoogleEarthEnterpriseProvider.prototype
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
* @type {Promise.<Boolean>}
* @readonly
*/
Expand All @@ -266,8 +266,8 @@ define([

/**
* Gets the credit to display when this terrain provider is active. Typically this is used to credit
* the source of the terrain. This function should not be called before {@link GoogleEarthEnterpriseProvider#ready} returns true.
* @memberof GoogleEarthEnterpriseProvider.prototype
* the source of the terrain. This function should not be called before {@link GoogleEarthEnterpriseTerrainProvider#ready} returns true.
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
* @type {Credit}
* @readonly
*/
Expand All @@ -281,8 +281,8 @@ define([
* Gets a value indicating whether or not the provider includes a water mask. The water mask
* indicates which areas of the globe are water rather than land, so they can be rendered
* as a reflective surface with animated waves. This function should not be
* called before {@link GoogleEarthEnterpriseProvider#ready} returns true.
* @memberof GoogleEarthEnterpriseProvider.prototype
* called before {@link GoogleEarthEnterpriseTerrainProvider#ready} returns true.
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
* @type {Boolean}
*/
hasWaterMask : {
Expand All @@ -293,8 +293,8 @@ define([

/**
* Gets a value indicating whether or not the requested tiles include vertex normals.
* This function should not be called before {@link GoogleEarthEnterpriseProvider#ready} returns true.
* @memberof GoogleEarthEnterpriseProvider.prototype
* This function should not be called before {@link GoogleEarthEnterpriseTerrainProvider#ready} returns true.
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
* @type {Boolean}
*/
hasVertexNormals : {
Expand All @@ -306,9 +306,9 @@ define([
/**
* Gets an object that can be used to determine availability of terrain from this provider, such as
* at points and in rectangles. This function should not be called before
* {@link GoogleEarthEnterpriseProvider#ready} returns true. This property may be undefined if availability
* {@link GoogleEarthEnterpriseTerrainProvider#ready} returns true. This property may be undefined if availability
* information is not available.
* @memberof GoogleEarthEnterpriseProvider.prototype
* @memberof GoogleEarthEnterpriseTerrainProvider.prototype
* @type {TileAvailability}
*/
availability : {
Expand Down Expand Up @@ -339,7 +339,7 @@ define([

/**
* Requests the geometry for a given tile. This function should not be called before
* {@link GoogleEarthEnterpriseProvider#ready} returns true. The result must include terrain data and
* {@link GoogleEarthEnterpriseTerrainProvider#ready} returns true. The result must include terrain data and
* may optionally include a water mask and an indication of which child tiles are available.
*
* @param {Number} x The X coordinate of the tile for which to request geometry.
Expand All @@ -350,7 +350,7 @@ define([
* returns undefined instead of a promise, it is an indication that too many requests are already
* pending and the request will be retried later.
*
* @exception {DeveloperError} This function must not be called before {@link GoogleEarthEnterpriseProvider#ready}
* @exception {DeveloperError} This function must not be called before {@link GoogleEarthEnterpriseTerrainProvider#ready}
* returns true.
*/
GoogleEarthEnterpriseTerrainProvider.prototype.requestTileGeometry = function(x, y, level, request) {
Expand Down
9 changes: 9 additions & 0 deletions Source/Core/Iso8601.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,27 @@ define([
/**
* A {@link JulianDate} representing the earliest time representable by an ISO8601 date.
* This is equivalent to the date string '0000-01-01T00:00:00Z'
*
* @type {JulianDate}
* @constant
*/
MINIMUM_VALUE : MINIMUM_VALUE,

/**
* A {@link JulianDate} representing the latest time representable by an ISO8601 date.
* This is equivalent to the date string '9999-12-31T24:00:00Z'
*
* @type {JulianDate}
* @constant
*/
MAXIMUM_VALUE : MAXIMUM_VALUE,

/**
* A {@link TimeInterval} representing the largest interval representable by an ISO8601 interval.
* This is equivalent to the interval string '0000-01-01T00:00:00Z/9999-12-31T24:00:00Z'
*
* @type {JulianDate}
* @constant
*/
MAXIMUM_INTERVAL : MAXIMUM_INTERVAL
};
Expand Down
1 change: 1 addition & 0 deletions Source/Core/ScreenSpaceEventHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ define([
/**
* The amount of time, in milliseconds, that mouse events will be disabled after
* receiving any touch events, such that any emulated mouse events will be ignored.
* @type {Number}
* @default 800
*/
ScreenSpaceEventHandler.mouseEmulationIgnoreMilliseconds = 800;
Expand Down
5 changes: 5 additions & 0 deletions Source/Core/TimeStandard.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@ define([
* <code>UTC = TAI - deltaT</code> where <code>deltaT</code> is the number of leap
* seconds which have been introduced as of the time in TAI.
*
* @type {Number}
* @constant
*/
UTC : 0,

/**
* Represents the International Atomic Time (TAI) time standard.
* TAI is the principal time standard to which the other time standards are related.
*
* @type {Number}
* @constant
*/
TAI : 1
};
Expand Down
44 changes: 24 additions & 20 deletions Source/Core/Transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ define([
* <li>The <code>z</code> axis points in the direction of the ellipsoid surface normal which passes through the position.</li>
* </ul>
*
* @function
* @param {Cartesian3} origin The center point of the local reference frame.
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid whose fixed frame is used in the transformation.
* @param {Matrix4} [result] The object onto which to store the result.
Expand All @@ -244,6 +245,7 @@ define([
* <li>The <code>z</code> axis points in the opposite direction of the ellipsoid surface normal which passes through the position.</li>
* </ul>
*
* @function
* @param {Cartesian3} origin The center point of the local reference frame.
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid whose fixed frame is used in the transformation.
* @param {Matrix4} [result] The object onto which to store the result.
Expand All @@ -266,6 +268,7 @@ define([
* <li>The <code>z</code> axis points in the local east direction.</li>
* </ul>
*
* @function
* @param {Cartesian3} origin The center point of the local reference frame.
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid whose fixed frame is used in the transformation.
* @param {Matrix4} [result] The object onto which to store the result.
Expand All @@ -279,26 +282,27 @@ define([
Transforms.northUpEastToFixedFrame = Transforms.localFrameToFixedFrameGenerator('north','up');

/**
* Computes a 4x4 transformation matrix from a reference frame with an north-west-up axes
* centered at the provided origin to the provided ellipsoid's fixed reference frame.
* The local axes are defined as:
* <ul>
* <li>The <code>x</code> axis points in the local north direction.</li>
* <li>The <code>y</code> axis points in the local west direction.</li>
* <li>The <code>z</code> axis points in the direction of the ellipsoid surface normal which passes through the position.</li>
* </ul>
*
* @param {Cartesian3} origin The center point of the local reference frame.
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid whose fixed frame is used in the transformation.
* @param {Matrix4} [result] The object onto which to store the result.
* @returns {Matrix4} The modified result parameter or a new Matrix4 instance if none was provided.
*
* @example
* // Get the transform from local north-West-Up at cartographic (0.0, 0.0) to Earth's fixed frame.
* var center = Cesium.Cartesian3.fromDegrees(0.0, 0.0);
* var transform = Cesium.Transforms.northWestUpToFixedFrame(center);
*/
Transforms.northWestUpToFixedFrame = Transforms.localFrameToFixedFrameGenerator('north','west');
* Computes a 4x4 transformation matrix from a reference frame with an north-west-up axes
* centered at the provided origin to the provided ellipsoid's fixed reference frame.
* The local axes are defined as:
* <ul>
* <li>The <code>x</code> axis points in the local north direction.</li>
* <li>The <code>y</code> axis points in the local west direction.</li>
* <li>The <code>z</code> axis points in the direction of the ellipsoid surface normal which passes through the position.</li>
* </ul>
*
* @function
* @param {Cartesian3} origin The center point of the local reference frame.
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid whose fixed frame is used in the transformation.
* @param {Matrix4} [result] The object onto which to store the result.
* @returns {Matrix4} The modified result parameter or a new Matrix4 instance if none was provided.
*
* @example
* // Get the transform from local north-West-Up at cartographic (0.0, 0.0) to Earth's fixed frame.
* var center = Cesium.Cartesian3.fromDegrees(0.0, 0.0);
* var transform = Cesium.Transforms.northWestUpToFixedFrame(center);
*/
Transforms.northWestUpToFixedFrame = Transforms.localFrameToFixedFrameGenerator('north','west');

var scratchHPRQuaternion = new Quaternion();
var scratchScale = new Cartesian3(1.0, 1.0, 1.0);
Expand Down
2 changes: 1 addition & 1 deletion Source/DataSources/PolygonGraphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ define([

/**
* Gets or sets the {@link DistanceDisplayCondition} Property specifying at what distance from the camera that this polygon will be displayed.
* @memberof BillboardGraphics.prototype
* @memberof PolygonGraphics.prototype
* @type {Property}
*/
distanceDisplayCondition : createPropertyDescriptor('distanceDisplayCondition')
Expand Down
4 changes: 2 additions & 2 deletions Source/Scene/OrthographicFrustum.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ define([
* define the unit vector normal to the plane, and the w component is the distance of the
* plane from the origin/camera position.
*
* @alias OrthographicOffCenterFrustum
* @alias OrthographicFrustum
* @constructor
*
* @example
* var maxRadii = ellipsoid.maximumRadius;
*
* var frustum = new Cesium.OrthographicOffCenterFrustum();
* var frustum = new Cesium.OrthographicFrustum();
* frustum.near = 0.01 * maxRadii;
* frustum.far = 50.0 * maxRadii;
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,8 @@ define([

/**
* Generates an HTML string of the statistics
*
* @function
* @param {Cesium3DTileset} tileset The tileset
* @param {Boolean} isPick Whether this is getting the statistics for the pick pass
* @returns {String} The formatted statistics
Expand Down

0 comments on commit 95535ab

Please sign in to comment.